/* ── KinHuddle writing ─────────────────────────────────────────────
   These pages are plain HTML, served straight from disk, deliberately.
   The app is a single-page React bundle behind a catch-all redirect, so a
   route inside it would serve one <title> and an empty body to anything that
   doesn't run JavaScript. That's the whole reason this section exists as
   files: a search engine, a link preview and a language model all get the
   finished page on the first request.

   Which also rules out importing the app's CSS custom properties — nothing
   here can depend on a bundle. The palette is repeated once, on purpose, and
   the brand colours are the only values that must stay in step with the app.
   ───────────────────────────────────────────────────────────────── */

:root {
  --navy: #16256E;
  --gold: #FBB01B;
  --ink: #1c2333;
  --muted: #5a6172;
  --line: #e3e7ef;
  --paper: #ffffff;
  --wash: #f6f8fc;
  --measure: 34rem;   /* ~68 characters — where prose stops being tiring */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf6;
    --muted: #a4adc2;
    --line: #26304a;
    --paper: #101728;
    --wash: #0a1020;
    --navy: #dbe4ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 400 1.05rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* ── Masthead ── */
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.top .wrap { display: flex; align-items: center; gap: 0.75rem; max-width: 58rem; }
.brand {
  font-weight: 800; color: var(--navy); text-decoration: none;
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.top nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: 0.9rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.cta { color: var(--navy); font-weight: 700; }

/* ── Article ── */
article, .page { background: var(--paper); }
.body { padding: 2.5rem 0 3rem; }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 0.6rem; color: var(--navy);
}
h2 {
  font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem; color: var(--navy);
}
h3 { font-size: 1.05rem; margin: 1.8rem 0 0.4rem; }

.meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 2rem; }
.standfirst { font-size: 1.16rem; color: var(--muted); margin: 0 0 2rem; line-height: 1.6; }

p, ul, ol { margin: 0 0 1.15rem; }
li { margin-bottom: 0.5rem; }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 700; }

a { color: var(--navy); text-underline-offset: 0.15em; }
@media (prefers-color-scheme: dark) { a { color: var(--gold); } }

blockquote {
  margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted); font-style: normal;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ── The one call to action, at the foot ── */
.cta-card {
  margin: 2.5rem 0 0; padding: 1.4rem 1.5rem;
  background: var(--wash); border: 1px solid var(--line); border-radius: 14px;
}
.cta-card h2 { margin-top: 0; font-size: 1.1rem; }
.cta-card p { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.btn {
  display: inline-block; background: var(--gold); color: #16256E;
  font-weight: 800; text-decoration: none;
  padding: 0.7rem 1.3rem; border-radius: 999px;
}

/* ── Index listing ── */
.posts { list-style: none; padding: 0; margin: 2rem 0 0; }
.posts li { border-top: 1px solid var(--line); padding: 1.4rem 0; margin: 0; }
.posts a { text-decoration: none; }
.posts h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.posts p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.posts time { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; }

/* ── Foot ── */
footer.site {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 2rem 0; color: var(--muted); font-size: 0.85rem;
}
footer.site .wrap { max-width: 58rem; }
footer.site a { color: var(--muted); }
