:root {
  --ink: #20253a;
  --ink-soft: #51596e;
  --night: #202841;
  --night-deep: #151b2f;
  --cream: #fffaf0;
  --paper: #fffef9;
  --orange: #df742f;
  --orange-dark: #a74720;
  --gold: #f2bd55;
  --violet: #8171bb;
  --mint: #8ec7ba;
  --line: rgba(32, 37, 58, .13);
  --shadow: 0 22px 55px rgba(39, 31, 39, .14);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--night);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(21, 27, 47, .93);
  color: #fff;
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night-deep);
  background: linear-gradient(145deg, var(--gold), #ffe5a5);
  box-shadow: 0 8px 20px rgba(242, 189, 85, .25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
}

.brand small {
  margin-top: -.15rem;
  color: rgba(255,255,255,.68);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: .94rem;
}

.site-header nav a {
  position: relative;
  color: rgba(255,255,255,.83);
  text-decoration: none;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.35rem;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #fff;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
}

.site-header .nav-external {
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
}

.site-header .nav-external::after {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 22%, rgba(242,189,85,.14) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.13) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 58%, rgba(255,255,255,.12) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--night-deep), var(--night) 55%, #332f54);
  background-size: 95px 95px, 130px 130px, 165px 165px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom right, transparent 49.4%, var(--cream) 50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  min-height: 710px;
  margin: 0 auto;
  padding: 82px 0 150px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: 5rem;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd67b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #221a15;
  background: linear-gradient(135deg, #ffd16b, var(--orange));
  box-shadow: 0 10px 28px rgba(223, 116, 47, .26);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 34px rgba(223, 116, 47, .36);
}

.button-secondary {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.06);
}

.section .button-secondary,
.download-section .button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.62);
}

.feature-list {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  list-style: none;
}

.feature-list li {
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  font-size: .86rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.book-shadow {
  position: absolute;
  width: 320px;
  height: 100px;
  bottom: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  filter: blur(24px);
  transform: rotate(-5deg);
}

.book-cover {
  position: relative;
  width: min(360px, 85vw);
  aspect-ratio: 2 / 3;
  padding: 2rem 1.8rem 1.8rem;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.7);
  border-radius: 8px 18px 18px 8px;
  color: #4e2f21;
  background:
    radial-gradient(circle at 16% 17%, rgba(255,255,255,.78) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 25%, rgba(242,189,85,.35) 0 3px, transparent 4px),
    linear-gradient(160deg, #fffdf8 0 62%, #fff3d6 100%);
  box-shadow: 22px 34px 48px rgba(0,0,0,.3), inset -14px 0 20px rgba(81,45,32,.08);
  transform: rotate(4deg);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 13px;
  background: linear-gradient(90deg, rgba(93,54,31,.2), rgba(255,255,255,.35));
}

.cover-stars {
  color: var(--gold);
  text-align: center;
  letter-spacing: .4em;
}

.cover-kicker {
  margin: .65rem 0 .35rem;
  text-align: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.book-cover h2 {
  margin-bottom: .6rem;
  color: #9e4e22;
  font-size: clamp(2rem, 4vw, 3.05rem);
  text-align: center;
}

.cat-portrait {
  width: 75%;
  margin: -.2rem auto -.2rem;
  filter: drop-shadow(0 12px 12px rgba(100,50,20,.18));
}

.cover-subtitle {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  color: #7c5138;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .35;
}

.hero-glow-one {
  width: 300px;
  height: 300px;
  top: 130px;
  right: 8%;
  background: rgba(223,116,47,.25);
}

.hero-glow-two {
  width: 230px;
  height: 230px;
  left: 35%;
  bottom: 70px;
  background: rgba(129,113,187,.28);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 100px 0;
}

.section-light {
  padding-top: 90px;
}

.section-heading {
  max-width: 750px;
}

.section-heading h2,
.story-copy h2,
.download-card h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.15rem, 4vw, 4rem);
  letter-spacing: -.035em;
}

.section-heading > p:last-child,
.story-copy > p,
.download-card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.value-grid {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.value-card {
  min-height: 230px;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 30px rgba(67,53,47,.055);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #532d1e;
  background: linear-gradient(145deg, #ffe5a5, #f5b958);
  font-size: 1.35rem;
}

.value-card:nth-child(2) .value-icon {
  color: #242443;
  background: linear-gradient(145deg, #dad1ff, #a99cd7);
}

.value-card:nth-child(3) .value-icon {
  color: #19453c;
  background: linear-gradient(145deg, #ccefe7, #91cabe);
}

.value-card h3 {
  margin-bottom: .6rem;
  font-size: 1.28rem;
}

.value-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.story-section {
  width: auto;
  max-width: none;
  padding: 110px max(20px, calc((100% - var(--max)) / 2));
  color: #fff;
  background: linear-gradient(125deg, var(--night-deep), #2b3152 65%, #41395e);
}

.story-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 5rem;
}

.story-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(242,189,85,.22), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}

.orange-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  top: 88px;
  left: 50%;
  border: 2px solid rgba(255,204,116,.45);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 28px rgba(223,116,47,.06), 0 0 0 60px rgba(129,113,187,.05);
}

.orange-orbit::before,
.orange-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
}

.orange-orbit::before {
  width: 42px;
  height: 42px;
  left: 18px;
  top: 24px;
  box-shadow: 130px 142px 0 -8px var(--gold), 176px 48px 0 -14px var(--mint);
}

.orange-orbit::after {
  width: 110px;
  height: 150px;
  left: 68px;
  top: 48px;
  border-radius: 55% 55% 45% 45%;
  background: linear-gradient(145deg, #f5b458, var(--orange));
  box-shadow: 0 24px 40px rgba(0,0,0,.22);
}

.paw {
  position: absolute;
  color: rgba(255,255,255,.12);
  font-size: 2.2rem;
}

.paw::before,
.paw::after {
  content: "●";
  position: absolute;
  top: -18px;
  font-size: .7em;
}

.paw::before { left: -13px; }
.paw::after { right: -13px; }
.paw-one { left: 42px; bottom: 50px; transform: rotate(-24deg); }
.paw-two { right: 44px; top: 52px; transform: rotate(28deg); }

.story-number {
  position: absolute;
  right: 24px;
  bottom: 10px;
  color: rgba(255,255,255,.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  font-weight: 700;
}

.story-copy .eyebrow {
  color: #ffd67b;
}

.story-copy > p {
  color: rgba(255,255,255,.72);
}

.story-copy .story-intro {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.5;
}

.story-tags {
  margin: 1.8rem 0 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.story-tags span {
  padding: .43rem .72rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.055);
  font-size: .86rem;
}

.chapter-list {
  padding: 1.4rem 1.55rem;
  border-left: 4px solid var(--orange);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.055);
}

.chapter-list h3 {
  margin-bottom: .65rem;
}

.chapter-list ol {
  margin: 0;
  padding-left: 1.35rem;
  color: rgba(255,255,255,.74);
}

.chapter-list li + li {
  margin-top: .38rem;
}

.download-section {
  padding-top: 105px;
  padding-bottom: 105px;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 10%, rgba(242,189,85,.28), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(142,199,186,.23), transparent 30%),
    var(--paper);
  box-shadow: var(--shadow);
}

.download-card h2 {
  margin-bottom: .7rem;
}

.download-card p {
  max-width: 700px;
  margin-bottom: 0;
}

.download-actions {
  justify-content: flex-end;
}

.site-footer {
  padding: 46px max(20px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem 3rem;
  color: rgba(255,255,255,.72);
  background: var(--night-deep);
}

.site-footer strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.site-footer p {
  margin: .25rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
}

.site-footer nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.46);
  font-size: .84rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .site-header nav {
    max-width: 520px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .65rem 1rem;
  }

  .hero-inner,
  .story-layout,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2.8rem;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    min-height: 560px;
  }

  .story-layout {
    gap: 3rem;
  }

  .story-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(calc(100% - 28px), var(--max));
    display: block;
  }

  .brand {
    margin-bottom: .8rem;
  }

  .site-header nav {
    justify-content: flex-start;
    font-size: .86rem;
  }

  .site-header .nav-external {
    padding: .35rem .62rem;
  }

  .hero-inner,
  .section {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-inner {
    min-height: 0;
    padding: 58px 0 130px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-art {
    min-height: 490px;
  }

  .book-cover {
    width: min(330px, 82vw);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 0;
  }

  .story-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .story-visual {
    min-height: 350px;
  }

  .orange-orbit {
    width: 210px;
    height: 210px;
    top: 70px;
  }

  .orange-orbit::after {
    width: 92px;
    height: 126px;
    left: 57px;
    top: 42px;
  }

  .orange-orbit::before {
    left: 12px;
    top: 18px;
    box-shadow: 112px 122px 0 -8px var(--gold), 147px 44px 0 -14px var(--mint);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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