/* Kenamo base + components. Uses only tokens from tokens.css (see DESIGN.md). */
@import url("/tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stone); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 var(--s-4); }
.hidden { display: none !important; }

/* type */
.display, .h1, .h2, h1, h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.display { font-size: var(--t-display); line-height: 1.05; }
h1, .h1 { font-size: var(--t-h1); line-height: 1.1; }
h2, .h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 350; }
.lead { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--t-lead); line-height: 1.35; color: var(--stone); }
.small { font-size: var(--t-small); }
.caption { font-size: var(--t-caption); line-height: 1.4; color: var(--ash); }
.muted { color: var(--ash); }
.eyebrow { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }

/* layout */
.page { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--pad-x); }
.text-col { max-width: var(--w-text); }
.section { padding: var(--section-y) 0; }
.stack > * + * { margin-top: var(--s-4); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 28px; border-radius: var(--r-full); border: 0; font: 600 var(--t-body)/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-press); color: var(--accent-ink); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1px var(--stone); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--t-small); }
.btn-block { display: flex; width: 100%; }
button:disabled { opacity: .55; cursor: default; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .page { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--serif); font-size: var(--t-lead); font-weight: 400; letter-spacing: .02em; color: var(--stone); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--s-5); }
.nav-links a:not(.btn) { font-size: var(--t-small); text-decoration: none; color: var(--stone); }
@media (max-width: 899px) { .nav-links .hide-m { display: none; } }

/* hero (two columns on desktop) */
.hero { display: grid; gap: var(--s-6); padding: var(--s-5) 0 var(--section-y); align-items: center; }
.hero-photo { border-radius: var(--r-xl); overflow: hidden; background: var(--hairline); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.hero-copy .eyebrow { margin-bottom: var(--s-3); }
.hero-copy .lead { margin: var(--s-4) 0 var(--s-5); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
@media (max-width: 899px) {
  .hero { gap: var(--s-5); padding-top: var(--s-2); }
  .hero-photo img { aspect-ratio: 5 / 4; max-height: 34vh; }
  .hero-copy .muted { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; gap: var(--s-8); min-height: calc(100vh - 64px); padding-bottom: var(--s-7); } .hero-photo img { max-height: 76vh; } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--s-5); }
.card.raised { box-shadow: var(--shadow-1); }
.grid-3 { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.feature h3 { font: 600 var(--t-body)/1.3 var(--sans); margin: 0 0 var(--s-2); }
.feature p { color: var(--ash); font-size: var(--t-small); margin: 0; }
.feature .num { font-family: var(--serif); font-size: var(--t-h2); color: var(--accent); line-height: 1; margin-bottom: var(--s-4); display: block; }

/* character card */
.char { display: grid; gap: var(--s-5); align-items: center; text-decoration: none; color: inherit; }
.char img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .char { grid-template-columns: 360px 1fr; gap: var(--s-7); } }

/* quote band */
.quote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: var(--t-h2); line-height: 1.3; color: var(--ink); max-width: 760px; }

/* sticky CTA bar (mobile, appears when hero CTA scrolls away) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 10px 10px 20px; background: var(--surface-warm); border: 1px solid var(--hairline); border-radius: var(--r-full); box-shadow: var(--shadow-2); transform: translateY(140%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: var(--t-small); color: var(--stone); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* footer */
.footer { background: var(--night); color: var(--on-night); margin-top: var(--section-y); padding: var(--s-8) 0 var(--s-7); }
.footer a { color: var(--on-night); text-decoration: none; font-size: var(--t-small); }
.footer a:hover { text-decoration: underline; }
.footer .links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin: var(--s-5) 0; }
.footer .caption { color: var(--on-night-mute); }
.footer .wordmark { color: var(--on-night); }

/* legal / long text pages */
.legal { max-width: var(--w-text); padding-top: var(--s-6); padding-bottom: var(--s-4); }
.legal h1 { margin-bottom: var(--s-2); }
.legal h2 { font-size: var(--t-lead); margin: var(--s-6) 0 var(--s-2); }
.legal p, .legal li { font-size: var(--t-small); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal .card { margin: var(--s-4) 0; }
.legal .card h2 { margin-top: 0; }

/* pricing */
.price { font-family: var(--serif); font-weight: 300; font-size: var(--t-h1); line-height: 1; margin: var(--s-3) 0 var(--s-2); }
.price small { font-family: var(--sans); font-size: var(--t-small); color: var(--ash); }
.tag { display: inline-block; font-size: var(--t-caption); font-weight: 600; color: var(--stone); background: var(--hairline); border-radius: var(--r-full); padding: 4px 10px; }

/* round-2 fixes */
@media (min-width: 900px) { .hero.text-first { grid-template-columns: 1.25fr .75fr; } }
.feature .num { color: var(--mute); }
.legal .price { font-family: var(--serif); font-weight: 300; font-size: var(--t-h1); line-height: 1; margin: var(--s-3) 0 var(--s-3); }
.legal .price small { font-family: var(--sans); font-size: var(--t-small); color: var(--ash); }
.nav .btn-primary { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 1px var(--stone); }
.nav .btn-primary:hover { background: var(--stone); color: var(--accent-ink); }
/* round-3 fixes: double padding between hero and next section; tight heading stacks */
.hero { padding-bottom: 0; }
@media (min-width: 900px) { .hero { min-height: 0; padding-top: var(--s-7); padding-bottom: 0; } }
.text-col > * + *, .hero-copy > * + * { margin-top: var(--s-3); }
.char .lead { margin-bottom: var(--s-2); }
/* round-4 fixes: sections don't double their spacing; room for the sticky bar on mobile */
.section { padding: calc(var(--section-y) / 2) 0; }
main.page > .section:last-child { padding-bottom: var(--section-y); }
@media (max-width: 899px) { body:has(.sticky-cta) .footer { padding-bottom: 104px; } }

/* character-first hero (Elias page). Mobile: full-screen video + his line + one button (learned from Rizzora). Desktop: two columns. */
.hero-photo video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5; max-height: 76vh; background: var(--night); }
.voice { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--t-lead); line-height: 1.35; margin-top: var(--s-4); }
@media (min-width: 900px) { .hero-char .voice { display: none; } .nav.over { position: sticky; } }
@media (max-width: 899px) {
  .char-page .nav.over { position: fixed; left: 0; right: 0; background: transparent; }
  .char-page .nav.over .wordmark { color: var(--on-photo); }
  .char-page .nav.over .btn-primary { color: var(--on-photo); box-shadow: inset 0 0 0 1px var(--on-photo); }
  .char-page .nav.over.scrolled { background: var(--canvas); }
  .char-page .nav.over.scrolled .wordmark { color: var(--stone); }
  .char-page .nav.over.scrolled .btn-primary { color: var(--stone); box-shadow: inset 0 0 0 1px var(--stone); }
  .hero-char { position: relative; display: block; min-height: 100svh; margin: 0 calc(-1 * var(--pad-x)); padding: 0; }
  .hero-char .hero-photo { position: absolute; inset: 0; border-radius: 0; }
  .hero-char .hero-photo video { aspect-ratio: auto; max-height: none; height: 100%; }
  .hero-char .hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--photo-scrim); }
  .hero-char .hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad-x) max(var(--s-6), env(safe-area-inset-bottom)); color: var(--on-photo); }
  .hero-char .hero-copy .eyebrow, .hero-char .hero-copy .caption { color: var(--on-photo); opacity: .85; }
  .hero-char .hero-copy .display, .hero-char .voice { color: var(--on-photo); }
  .hero-char .hero-copy .lead, .hero-char .hero-copy .muted { display: none; }
  .hero-char .hero-copy > * + * { margin-top: var(--s-2); }
  .hero-char .hero-cta { margin-top: var(--s-5); }
}
