/* ============================================================
   IT ENDS WITH ME — Angel Thuleka Gaba
   Obsidian minimal. Plus Jakarta Sans + JetBrains Mono.
   Single accent: kintsugi gold. No external requests.
   To restyle, edit the tokens in :root.
   ============================================================ */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-hover: #18181c;
  --line: rgba(255, 255, 255, 0.08);
  --line-top: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --gold: #c9a24b;
  --gold-soft: rgba(201, 162, 75, 0.14);
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shell: 72rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* browser surfaces carry the design too */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border: 2px solid var(--bg); border-radius: 5px; }
a { text-underline-offset: 0.18em; }

.shell { width: min(var(--shell), calc(100% - 1.75rem)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem; font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* ---------- header: sticky glass ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; }
.wordmark { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark .accent { color: var(--gold); }
.nav-desktop { display: none; margin-left: auto; }
.nav-desktop a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.55rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav-desktop a:hover { color: var(--ink); }
.header-cta { margin-left: auto; }
.nav-desktop + .header-cta { margin-left: 0.4rem; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; border-radius: 8px;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-mobile { display: none; border-top: 1px solid var(--line); padding: 0.4rem 0 0.8rem; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 0.98rem; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.65rem 1.4rem;
  background: var(--gold); color: var(--bg);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; border: 0; border-radius: 10px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #d9b55c; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: none; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.18); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- mono badge (labels only) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,162,75,0.35); background: var(--gold-soft);
  padding: 0.4rem 0.75rem; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.2rem 0 3rem; text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -14rem; width: 46rem; height: 32rem;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(201,162,75,0.16), rgba(201,162,75,0.05) 45%, transparent 72%);
  filter: blur(2px);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.4rem); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.035em; margin: 1.1rem 0 0; max-width: 15ch; margin-inline: auto;
}
.hero h1 .accent { color: var(--gold); font-weight: 700; }
.hero .lede { color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.18rem); max-width: 46ch; margin: 1.1rem auto 0; }
.hero .btn-row { justify-content: center; margin-top: 1.8rem; }
.hero .price-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.45rem 1rem;
}
.hero .price-chip b { color: var(--ink); font-weight: 700; }
.hero .scarcity { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 1rem 0 0; }

/* ---------- bento grid ---------- */
.bento { display: grid; gap: 0.9rem; padding: 0 0 2.5rem; grid-template-columns: 1fr; }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--line-top);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tile:hover { background: var(--surface-hover); }
.tile h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0.2rem 0 0.1rem; }
.tile p { margin: 0; color: var(--muted); }
.tile p strong { color: var(--ink); font-weight: 600; }
.tile .cover-art { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tile .cover-art img { width: 100%; height: auto; }
.tile .caption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile-author { overflow: hidden; padding: 0; }
.tile-author .photo { border-bottom: 1px solid var(--line); }
.tile-author .photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.tile-author .inner { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.tile-link { align-self: flex-start; color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tile-link:hover { text-decoration: underline; }
.rule-list { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.rule-list li { position: relative; padding-left: 1.1rem; color: var(--muted); }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--gold); }
.isbn { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0; }

/* quote tile with author photo */
.tile-quote { align-items: stretch; }
.tile-quote .photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.tile-quote .photo img { width: 100%; height: auto; }
.tile-quote blockquote { margin: 0; font-size: 1.06rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.tile-quote figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* launch tile */
.tile-launch .launch-rows { display: grid; gap: 0.45rem; margin: 0; }
.launch-rows .lr { display: flex; gap: 0.8rem; align-items: baseline; }
.launch-rows dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 5.5rem; }
.launch-rows dd { margin: 0; color: var(--ink); font-weight: 500; font-size: 0.95rem; }

/* ---------- section shells ---------- */
.section { padding: 2.6rem 0; }
.section-head { display: flex; flex-direction: column; gap: 0.8rem; max-width: 42rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }

/* ---------- order panel ---------- */
.order-panel { background: var(--surface); border: 1px solid var(--line); border-top-color: var(--line-top); border-radius: var(--radius); padding: 1.5rem 1.25rem; margin-top: 1.8rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.7rem; color: var(--muted); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -0.05rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em;
}
.steps strong { color: var(--ink); font-weight: 600; }
.steps a, .order-panel a { color: var(--gold); }
.bank-box { border: 1px dashed rgba(201,162,75,0.4); background: rgba(201,162,75,0.05); border-radius: 10px; padding: 0.6rem 1.1rem; margin-top: 1.4rem; }
.bank-box summary { list-style: none; display: flex; align-items: center; min-height: 44px; cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.bank-box summary::-webkit-details-marker { display: none; }
.bank-box summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; }
.bank-box[open] summary::after { content: "–"; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.1rem; margin: 0.8rem 0 0; font-size: 0.98rem; }
.bank-box dt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; align-self: center; }
.bank-box dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.bank-note { color: var(--muted); font-size: 0.86rem; margin: 0.9rem 0 0.4rem; line-height: 1.55; }
.delivery-cards { display: grid; gap: 0.7rem; margin: 1.5rem 0 0; }
.dc { border: 1px solid var(--line); border-top-color: var(--line-top); border-radius: 10px; padding: 1rem 1.1rem; background: var(--bg); }
.dc h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.dc p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.dc .fee { color: var(--gold); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-top: 0.5rem; }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 1rem; min-height: 56px; cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--gold); font-family: var(--mono); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 1.05rem; max-width: 44rem; }
.faq-item a { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.4rem 0; }
.footer-top { display: grid; gap: 1.4rem; }
.footer-brand .wordmark { font-size: 1.2rem; }
.footer-brand p { color: var(--muted); margin: 0.55rem 0 0; font-size: 0.92rem; }
.footer-scripture { font-style: italic; color: var(--muted); margin-top: 0.9rem; font-size: 0.95rem; }
.footer-links { display: grid; gap: 0.15rem; align-content: start; }
.footer-links a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
/* legal links spread far apart across the full width */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.4rem; }
.footer-legal a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--gold); }
.footer-credit { color: var(--muted); font-size: 0.82rem; margin: 1.2rem 0 0; }
.footer-credit a { color: var(--muted); }
.footer-credit a:hover { color: var(--ink); }

/* ---------- reading page ---------- */
.prose { max-width: 40rem; }
.prose .epigraph { font-style: italic; color: var(--muted); font-size: 1.06rem; text-align: center; margin: 0 0 2.4rem; line-height: 1.6; }
.prose .epigraph span { display: block; font-style: normal; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.55rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.6rem 0 0.4rem; color: var(--ink); }
.prose p { margin: 0 0 1.15rem; font-size: 1.12rem; line-height: 1.75; color: color-mix(in srgb, var(--ink) 92%, var(--muted)); }
.prose p.dropcap::first-letter {
  font-weight: 700; font-size: 3.2em; line-height: 0.82;
  float: left; padding: 0.08em 0.12em 0 0; color: var(--gold);
}
.prose .xh { font-style: italic; }
.seam { height: 1px; border: 0; margin: 2.6rem 0; background: linear-gradient(90deg, transparent, rgba(201,162,75,0.5), transparent); }
.read-end { border: 1px solid var(--line); border-top-color: var(--line-top); background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.25rem; margin: 2.8rem 0 0; }
.read-end p { margin: 0 0 1.1rem; }
.read-sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.read-sign img { width: 4.2rem; height: 4.2rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.read-sign .who b { display: block; color: var(--ink); }
.read-sign .who span { color: var(--muted); font-size: 0.88rem; }
.prose a { color: var(--gold); }

/* ---------- legal pages ---------- */
.legal { max-width: 44rem; padding: 2.2rem 0 1rem; }
.legal h1 { font-size: clamp(2.1rem, 6vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.4rem; }
.legal .updated { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 2.2rem; }
.legal h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.2rem 0 0.5rem; color: var(--ink); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2rem; margin: 0.6rem 0; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--gold); }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 1.1rem; padding: 3rem 0; }
.notfound h1 { font-size: clamp(2.2rem, 6.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.notfound p { color: var(--muted); max-width: 32rem; margin: 0 auto; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .delivery-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .nav-desktop { display: flex; }
  .bento { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .tile-book { grid-column: span 4; flex-direction: row; align-items: stretch; }
  .tile-book .text-side { flex: 1.1; display: flex; flex-direction: column; gap: 0.7rem; }
  .tile-book .cover-art { flex: 0.95; max-width: 16rem; }
  .tile-quote { grid-column: span 2; }
  .tile-author { grid-column: span 4; flex-direction: row; }
  .tile-author .photo { flex: 0 0 42%; border-bottom: 0; border-right: 1px solid var(--line); }
  .tile-author .photo img { aspect-ratio: auto; height: 100%; }
  .tile-author .inner { flex: 1; padding: 1.8rem; }
  .tile-launch { grid-column: span 2; }
  .section { padding: 3.4rem 0; }
  .hero { padding: 5.5rem 0 4rem; }
  .order-panel { padding: 2rem 1.8rem; }
}
/* utilities kept for the older pages */
.text-muted { color: var(--muted); }
.serif { font-family: var(--sans); }
