:root {
  --forest: #173f32;
  --forest-2: #285b46;
  --rust: #b63a22;
  --rust-dark: #8f2919;
  --gold: #d9a441;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --ink: #25342d;
  --muted: #647268;
  --line: rgba(23, 63, 50, 0.16);
  --shadow: 0 18px 45px rgba(33, 48, 38, 0.14);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 6%, rgba(217,164,65,.11), transparent 30rem), linear-gradient(180deg, var(--cream), var(--paper) 34rem);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .75rem 1rem; border-radius: 10px; color: white; background: var(--forest); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(255,255,255,.12); color: white; background: rgba(23,63,50,.96); backdrop-filter: blur(14px); }
.nav-shell { display: flex; width: min(1180px, calc(100% - 2rem)); min-height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: white; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-size: 1.16rem; line-height: 1.05; }
.brand span span { display: block; color: #ead6a6; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.nav-toggle { display: none; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; color: white; background: transparent; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .7rem .9rem; border-radius: 999px; color: white; font: 700 .94rem Arial, sans-serif; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.site-nav .nav-cta { margin-left: .35rem; color: #37160f; background: var(--gold); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: #f0bd5a; }
.book-ribbon { overflow: hidden; border-bottom: 4px solid var(--gold); background: #0e2d24; }
.book-track { display: flex; width: max-content; animation: book-scroll 42s linear infinite; }
.book-track:hover { animation-play-state: paused; }
.ribbon-book { display: grid; width: 345px; min-height: 126px; padding: .7rem; grid-template-columns: 148px 1fr; gap: .85rem; align-items: center; color: white; text-decoration: none; border-right: 1px solid rgba(255,255,255,.16); }
.ribbon-book img { width: 148px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.ribbon-book small { display: block; color: #dfc989; font: 800 .76rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ribbon-book strong { display: block; margin-top: .2rem; font-size: 1.05rem; line-height: 1.22; }
@keyframes book-scroll { to { transform: translateX(-50%); } }
.hero { position: relative; display: grid; min-height: 650px; place-items: center; overflow: hidden; isolation: isolate; color: white; background: #203f31 url("../images/koco-series-hero.webp") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(18,43,33,.91) 0%, rgba(18,43,33,.70) 38%, rgba(18,43,33,.09) 75%); }
.hero-content { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 .65rem; color: #f0c66c; font: 800 .94rem Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { display: block; color: #f0c66c; font-size: .55em; letter-spacing: -.02em; }
.hero-lede { max-width: 600px; margin: 1.4rem 0 0; font-size: clamp(1.1rem, 2vw, 1.34rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; padding: .7rem 1.15rem; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 999px; color: white; background: var(--rust); font: 800 1rem Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); background: var(--rust-dark); }
.button.secondary { color: var(--forest); background: white; }
.button.outline { border-color: rgba(255,255,255,.8); background: rgba(0,0,0,.14); }
.button.amazon { background: #ff9900; color: #2b1d00; }
.button.youtube { background: #d52423; }
.button.small { min-height: 42px; padding: .55rem .9rem; font-size: .9rem; }
.section { padding: 5rem 0; }
.section.alt { background: rgba(236,224,192,.35); }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section-heading { max-width: 790px; margin-bottom: 2rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h1, .section-heading h2 { margin: .25rem 0 .8rem; color: var(--forest); font-size: clamp(2.25rem, 4.8vw, 4.2rem); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: #526158; font-size: 1.12rem; }
.kicker { color: var(--rust); font: 900 .86rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.feature-grid, .book-grid, .process-grid { display: grid; gap: 1.35rem; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .book-card, .paper-card, .order-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.feature-card { padding: 1.6rem; }
.feature-icon { display: grid; width: 54px; height: 54px; margin-bottom: 1rem; place-items: center; border-radius: 16px; color: white; background: var(--forest); font-size: 1.55rem; }
.feature-card h3 { margin: 0 0 .55rem; color: var(--forest); font-size: 1.4rem; }
.feature-card p { margin: 0; color: var(--muted); }
.book-grid { grid-template-columns: repeat(2, 1fr); }
.book-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.book-body { padding: 1.45rem; }
.book-number { color: var(--rust); font: 900 .8rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.book-body h2 { margin: .28rem 0 .65rem; color: var(--forest); font-size: 1.9rem; }
.book-body p { margin: 0; color: var(--muted); }
.book-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.book-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.book-card.featured img { height: 100%; aspect-ratio: auto; }
.story-callout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.story-callout img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story-callout h2 { margin: 0 0 1rem; color: var(--forest); font-size: clamp(2rem, 4vw, 3.7rem); }
.story-callout p { font-size: 1.1rem; }
.quote { padding-left: 1.2rem; border-left: 5px solid var(--gold); color: var(--forest); font-size: 1.3rem; font-style: italic; }
.author-layout { display: grid; grid-template-columns: minmax(300px,.82fr) 1.18fr; gap: 3rem; align-items: start; }
.author-portrait { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.bio-copy h1 { margin: .3rem 0 1rem; color: var(--forest); font-size: clamp(2.8rem, 6vw, 5rem); }
.bio-copy p { font-size: 1.12rem; }
.dedication { margin-top: 1.8rem; padding: 1.6rem; border: 1px solid #e9d49f; border-radius: 20px; background: #fff4d7; }
.dedication h2 { margin: 0 0 .6rem; color: var(--rust); }
.custom-hero { padding: 3.5rem 0; background: #e9d7a9; }
.custom-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.custom-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.custom-poster { position: sticky; top: 100px; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-chip { display: inline-block; margin: .5rem 0 1rem; padding: .45rem .85rem; border-radius: 999px; color: white; background: var(--rust); font: 900 1.35rem Arial, sans-serif; }
.process-grid { grid-template-columns: repeat(3, 1fr); counter-reset: steps; }
.process-card { padding: 1.3rem; border-radius: 18px; background: #f6edd7; counter-increment: steps; }
.process-card::before { content: counter(steps); display: grid; width: 36px; height: 36px; margin-bottom: .8rem; place-items: center; border-radius: 50%; color: white; background: var(--forest); font: 900 1rem Arial, sans-serif; }
.process-card h3 { margin: 0; color: var(--forest); }
.process-card p { margin: .4rem 0 0; color: var(--muted); }
.order-card { margin-top: 2rem; padding: 1.65rem; }
.order-card h2 { margin: 0 0 .5rem; color: var(--forest); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label, .checkbox-line { font: 700 .92rem Arial, sans-serif; }
.field input { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #aab8ae; border-radius: 11px; background: white; }
.checkbox-line { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox-line input { width: 20px; height: 20px; margin-top: .15rem; flex: 0 0 auto; }
.payment-box { margin-top: 1.25rem; padding: 1rem; border: 1px dashed #9eaa9f; border-radius: 16px; background: #fbfaf5; }
.payment-box[hidden], [hidden] { display: none !important; }
.payment-status { padding: .8rem 1rem; border-radius: 12px; background: #edf3ef; }
.payment-status.error { color: #7d2015; background: #fff0eb; }
.payment-status.success { color: #174e31; background: #e8f7ed; }
.fine-print { color: var(--muted); font: .78rem Arial, sans-serif; }
.paper-card { padding: clamp(1.4rem, 4vw, 3rem); }
.paper-card h1 { color: var(--forest); font-size: clamp(2.4rem, 5vw, 4rem); }
.paper-card h2 { margin-top: 2rem; color: var(--forest); }
.paper-card li + li { margin-top: .65rem; }
.notice { padding: 1rem 1.2rem; border-left: 5px solid var(--gold); background: #fff4d7; }
.site-footer { padding: 3rem 0 1.5rem; color: #dce6df; background: #102f25; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2, .footer-grid h3 { margin-top: 0; color: white; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: .45rem; }
.footer-grid a { color: #dce6df; }
.copyright { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #aebfb5; font: .82rem Arial, sans-serif; text-align: center; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 76px; right: 1rem; left: 1rem; display: none; padding: .75rem; border-radius: 15px; background: var(--forest); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav .nav-cta { margin-left: 0; }
  .hero { min-height: 560px; background-position: 68% center; }
  .hero::before { background: linear-gradient(90deg, rgba(18,43,33,.94), rgba(18,43,33,.62)); }
  .feature-grid, .book-grid, .story-callout, .author-layout, .custom-layout, .footer-grid { grid-template-columns: 1fr; }
  .book-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .custom-poster { position: static; width: min(520px,100%); margin: 0 auto; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span span { display: none; }
  .section { padding: 3.5rem 0; }
  .ribbon-book { width: 290px; grid-template-columns: 120px 1fr; }
  .ribbon-book img { width: 120px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-track { animation: none; }
  .button { transition: none; }
}
