@font-face {
  font-family: "Assistant";
  src: url("/assets/Assistant-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a3940;
  --ink-deep: #052a33;
  --teal: #073b44;
  --teal-light: #0d5660;
  --cream: #f6e8c8;
  --paper: #f9efd8;
  --paper-dark: #e9d3a5;
  --gold: #d4a954;
  --gold-light: #f3d18a;
  --burgundy: #6f2639;
  --rose: #a54e62;
  --white: #fffaf0;
  --shadow: 0 22px 60px rgb(0 16 21 / 35%);
  --radius: 26px;
  --ease-magic: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(circle at 15% 18%, rgb(9 104 112 / 24%) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 38%, rgb(235 190 96 / 28%) 0 1px, transparent 2px),
    linear-gradient(180deg, #042b34 0%, #073b44 42%, #052d36 100%);
  background-size: 67px 67px, 93px 93px, auto;
  font-family: "Assistant", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgb(212 169 84 / 18%);
}

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  inset: 12px 12px auto auto;
  z-index: 100;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 12px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  display: grid;
  min-height: 740px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgb(238 195 103 / 35%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgb(135 224 230 / 76%) 0 1px, transparent 2.5px),
    radial-gradient(circle at 74% 18%, rgb(244 207 126 / 78%) 0 1.5px, transparent 3px),
    radial-gradient(circle at 88% 57%, rgb(109 221 231 / 66%) 0 1px, transparent 2.5px),
    radial-gradient(circle at 32% 68%, rgb(249 211 129 / 72%) 0 1px, transparent 3px);
  animation: starlight 5.8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
  background: linear-gradient(transparent, #042d35 88%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero-library-door-v1.png");
  background-position: 50% 54%;
  background-size: cover;
  transform: scale(1.025);
  transform-origin: center 55%;
  animation:
    hero-awakens 2.2s var(--ease-magic) both,
    cinematic-scene-zoom 20s ease-in-out 2.2s infinite alternate;
  backface-visibility: hidden;
  will-change: transform;
}

.paper-panel {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgb(10 57 64 / 8%) 0 1px, transparent 1.5px),
    linear-gradient(145deg, #fff7e6, #f1dfb8);
  background-size: 34px 34px, auto;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: end;
  z-index: 1;
  width: min(90%, 660px);
  margin: 0 auto 42px;
  padding: 48px 34px 38px;
  text-align: center;
  border: 2px solid rgb(214 169 77 / 84%);
  border-radius: var(--radius);
  animation: panel-arrives .95s var(--ease-magic) .12s both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgb(10 57 64 / 20%);
  border-radius: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  font-weight: 730;
  line-height: .92;
  letter-spacing: -.045em;
}

.gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 12px;
}

.gold-rule::before,
.gold-rule::after {
  content: "";
  width: 82px;
  height: 1px;
  background: var(--gold);
}

.gold-rule span {
  width: 8px;
  height: 8px;
  margin: 0 10px;
  background: var(--gold);
  transform: rotate(45deg);
  animation: jewel-pulse 2.8s ease-in-out 1.2s infinite;
}

.author {
  margin: 0;
  color: var(--burgundy);
  font-size: 1.35rem;
  font-weight: 680;
}

.hero-intro {
  max-width: 500px;
  margin: 20px auto 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.ornament {
  position: absolute;
  color: var(--gold);
  font-size: 26px;
}

.ornament-top { inset: 15px 22px auto auto; }
.ornament-bottom { inset: auto auto 14px 22px; }

.section-shell {
  width: min(100% - 28px, 920px);
  margin-inline: auto;
}

.video-section { padding: 64px 0 38px; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 8px rgb(4 35 43 / 20%);
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.video-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgb(0 19 25 / 48%) 100%);
}

.coming-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: var(--white);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 700;
  text-shadow: 0 3px 12px #00171d;
}

.play-mark {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  background: rgb(248 233 199 / 94%);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 10px 36px rgb(0 0 0 / 35%);
}

.play-mark svg { width: 54px; fill: var(--ink); }

.surprise-section { padding: 28px 0 70px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  text-align: center;
}

.heading-star { color: var(--gold); }

.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.985);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity .72s var(--ease-magic) var(--reveal-delay, 0ms),
    transform .72s var(--ease-magic) var(--reveal-delay, 0ms);
}

.action-list { display: grid; gap: 14px; }

.love-invite {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 22px auto 0;
  padding: 10px 17px;
  color: var(--gold-light);
  background: rgb(3 30 37 / 42%);
  border: 1px solid rgb(212 169 84 / 55%);
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.love-invite > span:first-child {
  color: #f4cbd3;
  font-size: 1.45rem;
  line-height: 1;
}

.love-invite:hover,
.love-invite:focus-visible {
  background: rgb(112 34 56 / 62%);
  border-color: var(--gold);
  outline: none;
  transform: translateY(-2px);
}

.story-action {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 16px 22px;
  color: var(--burgundy);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgb(214 169 77 / 10%), transparent 45%),
    var(--paper);
  border: 2px solid var(--paper-dark);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgb(0 16 21 / 22%), inset 0 0 0 5px rgb(255 255 255 / 26%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-action:hover,
.story-action:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 15px 36px rgb(0 16 21 / 32%), 0 0 0 3px rgb(241 208 137 / 24%);
  outline: none;
}

.story-action.is-coming-soon {
  grid-template-columns: 72px 1fr;
  cursor: default;
}

.story-action.is-coming-soon:hover {
  transform: none;
  border-color: var(--paper-dark);
  box-shadow: 0 10px 28px rgb(0 16 21 / 22%), inset 0 0 0 5px rgb(255 255 255 / 26%);
}

.action-icon {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold-light);
  background: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.action-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stack-icon svg { fill: none; }

.action-text { display: grid; }
.action-text strong { font-size: clamp(1.14rem, 4.3vw, 1.55rem); line-height: 1.15; }
.action-text small { margin-top: 5px; color: #6e5060; font-size: .92rem; }
.action-arrow { color: #8d6332; font-size: 2.4rem; line-height: 1; }

.action-count {
  position: absolute;
  bottom: 8px;
  left: 10px;
  min-width: 62px;
  padding: 3px 8px;
  color: #fff4d7;
  background: var(--burgundy);
  border: 1px solid rgb(212 169 84 / 78%);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgb(68 20 36 / 18%);
  font-size: .68rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
}

.download-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 24px auto 0;
  color: var(--cream);
  font-size: 1rem;
  text-underline-offset: 5px;
}

.download-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more-books {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: end center;
  padding: 78px 20px 58px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #062e37 0%, rgb(3 30 37 / 25%) 35%, #031e25 100%),
    url("/assets/og-whatsapp-background-v1.png") center / cover;
  border-top: 1px solid rgb(233 190 95 / 34%);
}

.books-scene {
  position: absolute;
  inset: 56px auto auto max(6vw, 28px);
  z-index: 1;
  width: min(31vw, 260px);
  transform: rotate(-4deg);
  filter: drop-shadow(0 24px 34px rgb(0 0 0 / 55%));
}

.books-scene::before {
  content: "";
  position: absolute;
  inset: 9% 1% -5%;
  z-index: -1;
  background: radial-gradient(ellipse, rgb(232 181 78 / 28%), transparent 68%);
  filter: blur(16px);
}

.books-scene img {
  border-radius: 8px;
  animation: book-floats 6s ease-in-out infinite;
}

.soon-card {
  --magic-border-angle: 0deg;
  position: relative;
  z-index: 2;
  width: min(92%, 620px);
  padding: 26px 34px 28px;
  color: var(--cream);
  text-align: center;
  background:
    linear-gradient(rgb(112 34 56 / 94%), rgb(112 34 56 / 94%)) padding-box,
    conic-gradient(
      from var(--magic-border-angle),
      var(--gold) 0 66%,
      #ffd975 72%,
      #fff7cc 76%,
      #ffe49a 80%,
      var(--gold) 87% 100%
    ) border-box;
  border: 2px solid transparent;
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 0 0 6px rgb(255 240 201 / 8%);
  animation: magic-border-tour 5.2s linear infinite;
}

.soon-card > span {
  display: inline-block;
  animation: jewel-pulse 2.6s ease-in-out infinite;
}

.soon-card p { margin: 0; font-size: 1.15rem; font-weight: 620; }
.soon-card h2 { margin: 4px 0; font-size: clamp(2.8rem, 10vw, 5rem); line-height: 1; }
.soon-card small { color: #f2d8b0; }

.updates-invite {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgb(246 232 200 / 36%);
}

.updates-invite p {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 700;
}

.updates-invite small {
  display: block;
  margin-top: 2px;
}

.updates-form { margin-top: 14px; }

.updates-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.updates-fields input,
.updates-fields button {
  min-height: 48px;
  font: inherit;
  border-radius: 13px;
}

.updates-fields input {
  width: 100%;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff9ea;
  border: 2px solid transparent;
  outline: none;
}

.updates-fields input::placeholder { color: #7b6870; }

.updates-fields input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgb(244 207 126 / 22%);
}

.email-feedback {
  display: block;
  min-height: 1.35em;
  margin-top: 6px;
  color: #f4ddb6;
  font-size: .72rem;
  text-align: right;
  transition: color 160ms ease;
}

.email-feedback.is-invalid { color: #ffd1d8; }
.email-feedback.is-valid { color: #fff0b2; font-weight: 700; }

.updates-fields input.is-invalid {
  border-color: #df8295;
  box-shadow: 0 0 0 3px rgb(223 130 149 / 17%);
}

.updates-fields input.is-valid {
  border-color: #e6be62;
  box-shadow: 0 0 0 3px rgb(244 207 126 / 17%);
}

.updates-fields button {
  padding: 9px 20px;
  color: var(--ink-deep);
  background: var(--gold-light);
  border: 2px solid var(--gold);
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.updates-fields button:hover,
.updates-fields button:focus-visible {
  background: #ffe1a1;
  outline: none;
  transform: translateY(-1px);
}

.updates-fields button:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: saturate(.45);
  transform: none;
}

.updates-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--cream);
  text-align: right;
  background: rgb(255 247 226 / 9%);
  border: 1px solid rgb(244 207 126 / 58%);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.updates-choice:hover,
.updates-choice:focus-within {
  background: rgb(255 247 226 / 14%);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.updates-choice input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--gold);
}

.updates-choice span { display: grid; gap: 1px; }
.updates-choice strong { font-size: .9rem; }
.updates-choice small { font-size: .75rem; }

.updates-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: #f5dfba;
  font-size: .78rem;
  cursor: pointer;
}

.updates-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}

.signup-trap {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.soon-card .form-status {
  min-height: 1.35em;
  margin: 7px 0 -4px;
  color: #fff0cf;
  font-size: .86rem;
  font-weight: 620;
  line-height: 1.35;
}

.soon-card .form-status.is-error { color: #ffd1d8; }

.like-fab {
  position: fixed;
  inset: auto 18px max(18px, calc(env(safe-area-inset-bottom) + 12px)) auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 9px;
  min-width: 116px;
  min-height: 58px;
  padding: 7px 12px 7px 14px;
  color: var(--cream);
  background: rgb(93 29 49 / 94%);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgb(0 12 17 / 46%), inset 0 0 0 4px rgb(255 240 201 / 6%);
  font-family: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 180ms var(--ease-magic), background-color 180ms ease, box-shadow 180ms ease;
}

.like-fab:hover,
.like-fab:focus-visible {
  outline: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgb(0 12 17 / 54%), 0 0 0 3px rgb(244 207 126 / 22%);
}

.like-fab:disabled { cursor: wait; opacity: .96; }

.like-fab.is-pending .like-heart {
  animation: heart-tap .48s var(--ease-magic) both;
}

.like-fab.has-error { animation: button-nudge .42s ease both; }

.like-heart {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold-light);
  background: rgb(255 250 240 / 9%);
  border-radius: 50%;
}

.like-heart svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.like-copy {
  display: grid;
  min-width: 43px;
  text-align: right;
  line-height: 1.05;
}

.like-copy strong { font-size: .92rem; }
.like-copy small { margin-top: 4px; color: #f2d8b0; font-size: .76rem; }

.like-fab[aria-pressed="true"] { background: rgb(112 34 56 / 97%); }

.like-fab[aria-pressed="true"] .like-heart {
  color: #fff0c9;
  animation: heart-celebrates .62s var(--ease-magic) both;
}

.like-fab[aria-pressed="true"] .like-heart svg { fill: currentColor; }

.like-feedback {
  position: fixed;
  right: 18px;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 82px));
  z-index: 41;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 13px;
  color: var(--ink-deep);
  background: rgb(255 240 207 / 97%);
  border: 1px solid var(--gold);
  border-radius: 13px;
  box-shadow: 0 9px 24px rgb(0 12 17 / 30%);
  font-size: .82rem;
  font-weight: 680;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.97);
  transform-origin: bottom right;
  transition: opacity 160ms ease, transform 180ms var(--ease-magic);
}

.like-feedback.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.like-feedback.is-error {
  color: #fff3df;
  background: rgb(96 29 48 / 97%);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 39;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 13px;
  background: var(--confetti-color, var(--gold));
  border-radius: 2px;
  animation: confetti-pop var(--confetti-duration, 850ms) var(--ease-magic) forwards;
}

footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 25px 18px 28px;
  color: #d8c39b;
  background: #021a20;
  font-size: .9rem;
  text-align: center;
}

.book-signature {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.young-authors-credit {
  display: grid;
  gap: 2px;
  width: min(100%, 660px);
  padding-top: 13px;
  border-top: 1px solid rgb(212 169 84 / 34%);
  color: #ead7ad;
}

.young-authors-credit strong {
  color: var(--gold-light);
  font-size: .92rem;
  font-weight: 650;
}

.young-authors-credit span {
  color: #c8b68f;
  font-size: .8rem;
}

@keyframes hero-awakens {
  from { opacity: .72; transform: scale(1.085); filter: saturate(.82) brightness(.78); }
  to { opacity: 1; transform: scale(1.025); filter: saturate(1) brightness(1); }
}

@keyframes cinematic-scene-zoom {
  from { transform: translate3d(0, 0, 0) scale(1.025); }
  to { transform: translate3d(0, -.35%, 0) scale(1.075); }
}

@keyframes panel-arrives {
  from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes starlight {
  from { opacity: .38; transform: translate3d(0, 5px, 0); }
  to { opacity: .92; transform: translate3d(0, -6px, 0); }
}

@keyframes jewel-pulse {
  0%, 100% { opacity: .62; transform: rotate(45deg) scale(.78); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.18); filter: drop-shadow(0 0 7px rgb(244 207 126 / 62%)); }
}

@keyframes book-floats {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(.2deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(-.8deg); }
}

@keyframes heart-celebrates {
  0% { transform: scale(.72) rotate(-10deg); }
  55% { transform: scale(1.3) rotate(7deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes heart-tap {
  0% { transform: scale(.82); }
  58% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes button-nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-6px); }
  65% { transform: translateX(4px); }
}

@keyframes confetti-pop {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-x), var(--confetti-y), 0) rotate(var(--confetti-spin)); }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.08fr .92fr;
    min-height: 760px;
  }

  .hero-art {
    inset: 0 0 0 44%;
    background-position: 52% 50%;
  }

  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 62%, #f4e5c4 100%);
  }

  .hero-copy {
    grid-column: 2;
    align-self: center;
    width: min(88%, 620px);
    margin: 0 4vw 0 auto;
  }

  .hero h1 { font-size: clamp(4rem, 6.3vw, 6.7rem); }
  .hero-intro { font-size: 1.12rem; }
  .video-section { padding-top: 80px; }
  .story-action { min-height: 124px; padding-inline: 30px; }
  .more-books { min-height: 820px; }
  .books-scene { inset-inline-start: 10%; width: min(25vw, 300px); }
}

@media (max-width: 500px) {
  .hero {
    min-height: 680px;
    min-height: clamp(620px, 100svh, 720px);
    padding:
      max(8px, env(safe-area-inset-top))
      0
      max(16px, env(safe-area-inset-bottom));
  }
  .hero-art {
    background-position: 59% 68%;
    background-size: auto 111%;
    transform-origin: 59% 60%;
  }
  .hero-copy {
    width: calc(100% - 28px);
    margin-bottom: clamp(46px, 9svh, 72px);
    padding: 29px 18px 25px;
  }
  .hero-copy::before { inset: 8px; }
  .hero h1 { font-size: clamp(2.35rem, 11.8vw, 3.25rem); }
  .gold-rule { margin-block: 18px 10px; }
  .author { font-size: 1.15rem; }
  .hero-intro { font-size: .98rem; }
  .video-section { padding-top: 42px; }
  .video-frame { border-radius: 20px; }
  .play-mark { width: 70px; }
  .play-mark svg { width: 43px; }
  .section-heading { gap: 9px; }
  .story-action {
    grid-template-columns: 55px 1fr 18px;
    gap: 12px;
    min-height: 102px;
    padding: 14px 14px;
    border-radius: 17px;
  }
  .action-icon { width: 52px; }
  .action-icon svg { width: 31px; }
  .action-text strong { font-size: 1.08rem; }
  .action-text small { font-size: .8rem; line-height: 1.25; }
  .action-arrow { font-size: 1.9rem; }
  .action-count {
    bottom: 7px;
    left: 8px;
    min-width: 55px;
    padding-inline: 6px;
    font-size: .61rem;
  }
  .love-invite {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 6px;
    width: min(100%, 320px);
    font-size: .88rem;
  }
  .love-invite > span:first-child { grid-row: 1 / 3; }
  .love-invite > span:last-child { grid-column: 2; }
  .more-books {
    min-height: 790px;
    padding: 34px 16px max(36px, env(safe-area-inset-bottom));
  }
  .books-scene {
    inset: 34px auto auto 50%;
    width: clamp(148px, 41vw, 176px);
    transform: translateX(-50%) rotate(-3deg);
  }
  .soon-card {
    width: min(100%, 430px);
    padding: 22px 17px 22px;
  }
  .soon-card h2 { font-size: clamp(2.65rem, 15vw, 4rem); }
  .updates-fields { grid-template-columns: 1fr; }
  .updates-fields input,
  .updates-fields button { min-height: 45px; }
  .email-feedback { text-align: center; }
  .updates-choice { align-items: flex-start; }
  .updates-consent { align-items: flex-start; text-align: right; }
  .like-fab {
    right: 12px;
    left: auto;
    min-width: 108px;
    min-height: 54px;
    grid-template-columns: 38px auto;
    padding: 6px 9px 6px 12px;
  }
  .like-feedback {
    right: 12px;
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 76px));
  }
  .like-heart { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-art {
    animation: none !important;
    transform: scale(1.025);
  }
}

@property --magic-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes magic-border-tour {
  to { --magic-border-angle: 360deg; }
}
