@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

:root {
  --paper: #f7f5f0;
  --ink: #252923;
  --muted: #74776e;
  --olive: #727b60;
  --line: #deded5;
  --white: #fffefa;
  --content-width: 1040px;
  --wide-width: 1160px;
  --page-gutter: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 5px;
}

.site-header,
.site-footer,
.section-wrap {
  width: calc(100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header,
.site-footer {
  max-width: var(--wide-width);
}

.site-header {
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.wordmark span {
  color: var(--olive);
}

nav {
  display: flex;
  gap: 34px;
}

nav a,
.site-footer > a:last-child {
  color: #55594f;
  font-size: 0.8rem;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--olive);
}

.section-wrap {
  max-width: var(--content-width);
}

.arrow {
  font-family: Arial, Helvetica, sans-serif;
  font-variant-emoji: text;
}

/* Gemensam responsiv tvåkolumnslayout */

.responsive-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.intro {
  padding-block: 100px 112px;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
}

h1 em,
h2 em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.short-rule {
  width: 46px;
  height: 1px;
  margin: 30px 0 25px;
  background: var(--olive);
}

.welcome {
  max-width: 490px;
  color: #51544c;
  font-size: 0.96rem;
}

.welcome strong {
  color: var(--ink);
  font-weight: 700;
}

.signoff {
  margin-top: 28px;
  color: #51544c;
  line-height: 1.8;
}

.signoff span,
.signoff small {
  display: block;
}

.signoff span {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 600;
}

.signoff small {
  font-size: 0.76rem;
}

/* Boken */

.book-section {
  padding-block: 100px;
  background: #e9e9e1;
}

.book-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 100px);
}

.book-cover {
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 14px 18px 0 rgba(43, 48, 37, 0.06);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-copy {
  min-width: 0;
}

.book-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.book-description {
  max-width: 510px;
  margin-block: 26px 28px;
  color: #55594f;
  line-height: 1.8;
}

.book-description p {
  margin: 0 0 18px;
}

.book-description p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--olive);
  transform: translateY(-2px);
}

/* Intervjun */

.interview {
  padding-block: 105px 112px;
}

.interview-heading {
  margin-bottom: 38px;
  text-align: center;
}

.interview-heading .eyebrow {
  margin-bottom: 13px;
}

.interview-heading h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.interview-heading > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reel-embed {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.reel-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
}

.reel-fallback {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.reel-fallback a {
  color: var(--olive);
  text-underline-offset: 4px;
}

/* Sidfot */

.site-footer {
  min-height: 100px;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer > a:last-child {
  text-underline-offset: 4px;
}

/* Gemensam brytpunkt för intro och bok */

@media (max-width: 800px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header {
    min-height: 78px;
  }

  .responsive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .intro {
    padding-block: 48px 72px;
  }

  .portrait {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .book-section {
    padding-block: 70px;
  }

  .book-layout {
    gap: 48px;
  }

  .book-cover {
    width: min(72%, 280px);
  }

  .interview {
    padding-block: 72px 76px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding-block: 24px;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.7rem;
  }

  .wordmark {
    font-size: 0.8rem;
  }

  .responsive-grid {
    gap: 32px;
  }

  .book-layout {
    gap: 40px;
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}