/* Layout: wide hero with photo, then alternating full-width bands on a 1120px grid.
   Dark-first, taken from the logo: ink background, KDP-gold accent. */
:root {
  --bg: #0f1216;
  --bg-alt: #161a20;
  --surface: #1c2129;
  --fg: #eef0f3;
  --muted: #a4abb7;
  --line: #2b313b;
  --gold: #e0ad4c;
  --gold-ink: #15110a;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9; --bg-alt: #eceef2; --surface: #ffffff; --fg: #14181e; --muted: #555d6b;
    --line: #d9dde4; --gold: #9a6a12; --gold-ink: #ffffff; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-alt: #eceef2; --surface: #ffffff; --fg: #14181e; --muted: #555d6b;
  --line: #d9dde4; --gold: #9a6a12; --gold-ink: #ffffff; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.eyebrow a { text-decoration: none; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.link { color: var(--gold); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-weight: 700; text-decoration: none; border: 2px solid var(--gold); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; row-gap: 8px; }
  .top .btn-sm { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; flex-wrap: wrap; gap: 0; }
  .nav a { padding: 6px 8px; font-size: 0.9rem; }
  .brand span { display: none; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) 48px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 35% 50%; border-radius: var(--radius); }
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: auto -12px -12px auto; width: 45%; height: 45%; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-media { order: -1; } .hero-media::after { display: none; } }

/* Stats */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Bands */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-alt { background: var(--bg-alt); }
.page-head { padding-block: clamp(48px, 7vw, 88px) 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
.round { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.row-head > div { display: flex; flex-direction: column; gap: 10px; }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--f-mono); color: var(--gold); padding-top: 2px; }
.steps p { color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--f-display); font-size: 3rem; line-height: 0.6; color: var(--gold); margin-bottom: 8px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.quote small { color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ev img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; }
.ev figcaption { display: flex; flex-direction: column; line-height: 1.3; }
.ev small { color: var(--muted); font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 860px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .events { grid-template-columns: 1fr; } }
.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topics li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.topics p { color: var(--muted); }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; }
.post-meta { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.post-card p { color: var(--muted); }
.post-card:hover h3 { color: var(--gold); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose a:not(.btn) { color: var(--gold); }
.prose img { margin-bottom: 8px; }

/* Contact */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ch { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.ch h3 { font-size: 0.85rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ch a { color: var(--gold); font-weight: 600; font-size: 1.1rem; }

/* CTA band */
.band-cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-in > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.cta-in p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 0.95rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; }
.foot-brand img { border-radius: 8px; flex: none; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-copy { grid-column: 1 / -1; font-size: 0.85rem; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form .btn { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.channels-col { grid-template-columns: 1fr; }
