/* Self-hosted Schibsted Grotesk (variable 400-800). Latin is preloaded; latin-ext covers Māori macrons. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F3F3F0;
  --ink: #1C2731;
  --muted: #5A6570;
  --accent: #9B3A3A;
  --accent-ink: #FFFFFF;
  --rule: #D8D8D2;
  --field: #FFFFFF;
  --wash: #EEDFDB;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171C21;
    --ink: #ECE9E4;
    --muted: #9AA4AD;
    --accent: #D98B80;
    --accent-ink: #171C21;
    --rule: #2D353D;
    --field: #1E252B;
    --wash: #2A2022;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--wash); color: var(--ink); }

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/* Lockup ratios from kite-brand/BRIEF.md: emblem 1.65x text size, gap 0.45x */
.brand-mark { width: 1.65em; height: 1.65em; fill: var(--accent); flex: none; }
.header-cta { font-weight: 600; }

/* Hero: the one loud thing on the page */
.hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(4rem, 10vw, 7rem);
}
.hero h1 {
  margin: 0 0 2rem;
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.lede {
  max-width: 36rem;
  margin: 0 0 2.5rem;
  font-size: 1.25rem;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin: 0;
}

.mark {
  position: absolute;
  right: 2%;
  top: 50%;
  translate: 0 -50%;
  width: clamp(10rem, 20vw, 17rem);
  pointer-events: none;
}
.mark path { fill: var(--accent); }

@media (max-width: 52rem) {
  .mark { display: none; }
}

/* Pronunciation: people say "kite" like the toy; it's KEE-teh */
.say-hero { margin: 1.75rem 0 0; font-size: 1rem; color: var(--muted); }
.say-hero b { color: var(--ink); }
.say { color: var(--muted); font-size: 1.05rem; margin-right: 0.35rem; }
.play {
  padding: 0.15rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: none;
  color: var(--accent);
  font: 600 0.9rem/1.3 var(--font);
  cursor: pointer;
}
.play:hover { background: var(--wash); }

/* Name gloss: what "kite" means, set like a dictionary entry, inside About */
.gloss { margin-top: 3rem; }
.gloss h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.gloss p { margin: 0 0 1rem; max-width: 36rem; }
.gloss p:last-child { margin: 0; color: var(--muted); }
.gloss dfn {
  font-style: normal;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-right: 0.5rem;
}
.gloss-lang { font-size: 1rem; color: var(--muted); }
.gloss-senses {
  margin: 0 0 1.5rem;
  padding-left: 1.5em;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.45;
}
.gloss-senses li { padding-left: 0.25em; margin-bottom: 0.3rem; }
.gloss-senses li::marker { color: var(--accent); font-family: var(--font); font-weight: 700; font-variant-numeric: normal; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1.05rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button:disabled { opacity: 0.6; cursor: progress; }
.quiet-link { font-weight: 600; }

/* Sections: heading left, content right on wide screens */
.band {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 56rem) {
  .band { grid-template-columns: 18rem 1fr; gap: 3rem; }
}
.band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.band > div, .band > dl { max-width: 42rem; }
.band p { margin: 0 0 1rem; }
.intro { font-size: 1.3rem; line-height: 1.45; }

/* Steps: a real sequence, so they're numbered */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* Services */
.services {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
}
@media (min-width: 40rem) {
  .services { grid-template-columns: 1fr 1fr; }
  .lead-service { grid-column: 1 / -1; }
}
.services dt { font-weight: 700; margin-bottom: 0.3rem; }
.services dd { margin: 0; color: var(--muted); }
.lead-service dt { font-size: 1.4rem; letter-spacing: -0.01em; }
.lead-service dd { font-size: 1.15rem; }

/* Website offer: the one tinted band, so the cheapest way in stands out */
.offer { background: var(--wash); }
.offer .band, .offer + .band { border-top: 0; }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; }
.ticks li { margin-bottom: 0.4rem; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 0.6rem; }

/* FAQ: native <details>, so answers stay in the page for search engines and AI assistants */
.faq details { border-top: 1px solid var(--rule); padding-block: 1rem; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.faq p { margin: 0.6rem 0 0; color: var(--muted); }

/* About: portrait beside the bio, stacked on small screens */
.about { display: grid; gap: 1.75rem; align-items: start; }
.about img { width: 100%; max-width: 16rem; height: auto; border-radius: 4px; }
@media (min-width: 40rem) {
  .about { grid-template-columns: 14rem 1fr; }
}

/* Form */
.contact-form { margin-top: 2.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
.contact-form p { margin-bottom: 1.25rem; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Thanks page */
.thanks { padding-block: clamp(5rem, 15vw, 10rem); }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
