@font-face { font-family: 'Clash Grotesk'; src: url('fonts/clash-grotesk-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('fonts/clash-grotesk-medium.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --navy: #032d56;
  --navy-soft: #0b477c;
  --paper: #ffffff;
  --gold: #efa91a;
  --aqua: #79d8d8;
  --muted: #36526d;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; overflow-x: hidden; color: var(--navy); background: var(--paper); font-family: 'Clash Grotesk', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; touch-action: manipulation; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { display: block; }
::selection { color: var(--navy); background: var(--gold); }

.hero { color: white; background: var(--navy); }
.topbar { width: min(1180px, calc(100% - 48px)); min-height: 104px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 164px; padding: 7px 9px; background: white; }
.brand img { width: 100%; height: auto; }
.top-link { display: inline-flex; gap: 22px; align-items: center; min-height: 46px; padding: 0 18px; color: var(--navy); background: white; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 150ms var(--ease), background-color 180ms ease; }

.hero-layout { width: min(1120px, calc(100% - 64px)); min-height: calc(100svh - 104px); margin: 0 auto; padding: 48px 0 84px; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(64px, 8vw, 112px); align-items: center; }
.hero-copy h1 { margin: 0; max-width: 10ch; font-size: clamp(58px, 6.7vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: .9; text-wrap: balance; }
.hero-copy h1 span { color: var(--gold); }
.hero-copy > p { max-width: 38ch; margin: 28px 0 32px; color: var(--aqua); font-size: 18px; line-height: 1.5; }
.primary-link, .amazon-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 56px; padding: 15px 18px; color: white; background: var(--navy); font-weight: 600; text-decoration: none; transition: transform 150ms var(--ease), background-color 180ms ease; }
.hero .primary-link { color: var(--navy); background: white; }

.cover-pair { max-width: 600px; margin-left: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.cover-pair a { min-width: 0; transition: transform 260ms var(--ease); }
.cover-pair a:first-child { transform: rotate(-3deg) translateY(18px); }
.cover-pair a:last-child { transform: rotate(3deg) translateY(-18px); }
.cover-pair img { width: 100%; height: auto; }

.books { padding: clamp(104px, 10vw, 148px) 32px 88px; }
.section-heading { width: min(820px, 100%); margin: 0 auto clamp(64px, 7vw, 92px); text-align: center; }
.section-heading h2, .final-cta h2 { margin: 0; font-size: clamp(46px, 6vw, 82px); font-weight: 600; letter-spacing: -.04em; line-height: .95; text-wrap: balance; }
.section-heading p { margin: 22px auto 0; max-width: 42ch; color: var(--muted); font-size: 18px; line-height: 1.5; }

.book-row { width: min(1080px, 100%); margin: 0 auto 88px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.book-row-reverse .book-picture { order: 2; }
.book-row-reverse .book-info { order: 1; }
.book-picture { min-height: 660px; padding: 72px; display: grid; place-items: center; }
.book-picture-gold { background: var(--gold); }
.book-picture-aqua { background: var(--aqua); }
.book-picture img { width: 100%; max-width: 370px; max-height: 540px; height: auto; object-fit: contain; }
.book-info { padding: clamp(52px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; background: white; }
.audience { margin: 20px 0 0; color: var(--navy); font-size: 16px; font-weight: 600; }
.book-info h3 { margin: 0; max-width: 10ch; font-size: clamp(46px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: .92; text-wrap: balance; }
.book-info .audience + p { max-width: 38ch; margin: 12px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.amazon-link { width: min(100%, 300px); }

.inside { padding: clamp(96px, 9vw, 132px) 32px clamp(108px, 10vw, 150px); color: white; background: var(--navy); }
.section-heading-light h2 { color: white; }
.section-heading-light p { color: var(--aqua); }
.frame-track { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.frame { min-width: 0; margin: 0; background: white; }
.frame img { width: 100%; height: auto; object-fit: contain; }
.frame figcaption { min-height: 94px; padding: 24px; color: var(--navy); background: white; font-size: 20px; font-weight: 600; line-height: 1.2; }

.final-cta { width: min(1080px, calc(100% - 64px)); margin: clamp(80px, 9vw, 120px) auto; padding: clamp(48px, 6vw, 76px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(34px, 5vw, 64px); align-items: center; color: white; background: var(--navy); }
.final-cta > img { width: 164px; height: auto; padding: 9px; background: white; }
.final-cta h2 { max-width: 10ch; font-size: clamp(40px, 5vw, 70px); }
.final-cta p { margin: 18px 0 0; color: var(--aqua); font-size: 18px; }
.primary-link-light { color: var(--navy); background: white; }

.footer { padding: 30px max(24px, calc((100vw - 1120px) / 2)); display: flex; justify-content: space-between; align-items: center; color: white; background: var(--navy); }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 28px; }
.footer a { display: inline-flex; gap: 10px; padding: 12px 0; font-weight: 600; text-decoration: none; }

.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.top-link:active, .primary-link:active, .amazon-link:active, .cover-pair a:active, .footer a:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .top-link:hover, .hero .primary-link:hover, .primary-link-light:hover { background: var(--gold); }
  .amazon-link:hover { background: var(--navy-soft); }
  .cover-pair a:first-child:hover { transform: rotate(-1deg) translateY(10px); }
  .cover-pair a:last-child:hover { transform: rotate(1deg) translateY(-10px); }
  .footer a:hover { color: var(--gold); }
}

@media (min-width: 721px) and (max-width: 900px) {
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta h2 { max-width: 12ch; }
  .final-cta .primary-link { grid-column: 2; width: min(100%, 260px); }
}

@media (max-width: 720px) {
  .topbar { width: calc(100% - 36px); min-height: 82px; padding-top: max(10px, env(safe-area-inset-top)); }
  .brand { width: 126px; padding: 6px 7px; }
  .top-link { min-height: 44px; padding-inline: 14px; gap: 12px; }
  .hero-layout { width: calc(100% - 36px); min-height: auto; padding: 42px 0 58px; grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1 { max-width: 9ch; font-size: clamp(48px, 14vw, 64px); }
  .hero-copy > p { margin: 22px 0 26px; font-size: 16px; }
  .hero .primary-link { width: 100%; }
  .cover-pair { max-width: none; margin: 0; gap: 16px; padding: 0 6px; }
  .cover-pair a:first-child { transform: rotate(-2deg) translateY(8px); }
  .cover-pair a:last-child { transform: rotate(2deg) translateY(-8px); }

  .books { padding: 72px 18px 26px; }
  .section-heading { margin-bottom: 42px; text-align: left; }
  .section-heading h2, .final-cta h2 { font-size: clamp(42px, 12vw, 56px); }
  .section-heading p { margin-left: 0; font-size: 16px; }
  .book-row { margin-bottom: 52px; grid-template-columns: 1fr; }
  .book-row-reverse .book-picture, .book-row-reverse .book-info { order: initial; }
  .book-picture { min-height: auto; padding: 42px 46px; }
  .book-picture img { max-width: 300px; max-height: none; }
  .book-info { padding: 32px 24px 36px; }
  .audience { margin-top: 16px; font-size: 15px; }
  .book-info h3 { font-size: clamp(44px, 13vw, 58px); }
  .book-info .audience + p { margin: 10px 0 24px; font-size: 16px; }
  .amazon-link { width: 100%; }

  .inside { padding: 70px 0 78px; }
  .inside .section-heading { width: calc(100% - 36px); }
  .frame-track { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 16px; }
  .frame { width: 100%; }
  .frame figcaption { min-height: 82px; padding: 20px; font-size: 18px; }

  .final-cta { width: calc(100% - 36px); margin: 56px auto; padding: 34px 24px 38px; grid-template-columns: 1fr; }
  .final-cta > img { width: 142px; }
  .final-cta p { font-size: 16px; }
  .primary-link-light { width: 100%; }

  .footer { padding: 32px 18px max(28px, env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer nav { width: 100%; justify-content: space-between; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
