:root {
  /* Palette ("Verdigris"). Every colour on the site derives from this block, so a re-skin is one edit.
     brain.js reads the *-rgb triplets at start-up. */
  --bg: #070f0d;            --bg-rgb: 7, 15, 13;
  --surface: #0e1a17;       --surface-rgb: 14, 26, 23;
  --ink: #ecf3ef;           --ink-rgb: 236, 243, 239;      /* text and the resting network */
  --muted: #93a69e;
  --accent: #6fe8c0;        --accent-rgb: 111, 232, 192;   /* agents, lit paths, labels, the one CTA */
  --accent-ink: #05110d;
  --accent-2: #f4b860;      --accent-2-rgb: 244, 184, 96;  /* warm counter-glow only */
  --warn: #ff6b6b;          --warn-rgb: 255, 107, 107;     /* reserved for the intruder and the field it hits */

  /* glass and lines: three tiers of white, never a colour */
  --faint: rgba(var(--ink-rgb), 0.12);
  --hairline: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hi: rgba(255, 255, 255, 0.16);
  --glow-1: rgba(var(--accent-rgb), 0.14);
  --glow-2: rgba(var(--accent-2-rgb), 0.11);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --display: "Geist", var(--sans);      /* the brand only */

  --gutter: clamp(20px, 6vw, 96px);
  --content: 1200px;
  --nav-h: 60px;
  --nav-gap: 12px;          /* the pill floats this far from the top edge */
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- background: flat dark, two slow glows, a dot grid that fades out towards the edges ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: var(--bg); overflow: hidden; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 22% 18%, var(--glow-1), transparent 70%),
    radial-gradient(35% 30% at 78% 72%, var(--glow-2), transparent 70%);
  animation: drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 100%);
}
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .bg::before { animation: none; } }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.glass:hover { border-color: var(--glass-border-hi); background: var(--glass-hi); }
@media (max-width: 767px) {
  .glass { -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .nav { background: rgba(var(--surface-rgb), 0.94); }
}

/* small uppercase labels: eyebrows and step numbers */
.eyebrow {
  margin: 0 0 14px; color: var(--accent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- nav: a floating glass pill ---------- */
.nav {
  position: fixed; top: var(--nav-gap); left: var(--nav-gap); right: var(--nav-gap); z-index: 10;
  max-width: var(--content); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wordmark {
  font-family: var(--display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1;
}
/* homepage: the wordmark only appears once the big brand has scrolled out (JS adds the classes; no JS, it simply shows) */
.nav-js .wordmark { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .25s, transform .25s; }
.nav-js.mark-on .wordmark { opacity: 1; transform: none; pointer-events: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9375rem; padding: 10px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); }   /* "page" on the index, "true" (section) on a post */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border-radius: 10px;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.nav .btn-small { border-radius: 999px; }
.btn-ghost {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { filter: none; border-color: var(--glass-border-hi); background: var(--glass-hi); }
.text-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  padding: 12px 0; transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- hero: the brand across the top, the headline in the left column, the network to the right ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--nav-h) + var(--nav-gap) + 48px) var(--gutter) 64px;
  isolation: isolate;
}
#brain {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  display: block;
}
/* Desktop: the network's left side dissolves before it reaches the copy column,
   so nothing bright sits behind the letters. */
@media (min-width: 980px) {
  #brain {
    -webkit-mask-image: linear-gradient(to right, transparent 34%, #000 58%);
    mask-image: linear-gradient(to right, transparent 34%, #000 58%);
  }
}
.hero-head { position: relative; }
.brand {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 12vw, 11rem); line-height: 0.9; letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.tagline { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 56px; }
.hero-copy { max-width: min(36rem, 40vw); }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 30em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Stacked layout: brand, network, then the copy. JS sets --art-h to the network's height plus its margins. */
@media (max-width: 979px) {
  .hero { padding-bottom: 56px; }
  .tagline { margin-bottom: 0; }
  .hero-copy { max-width: 34rem; margin-top: var(--art-h, 48vh); }
  h1 { margin-bottom: 16px; }
  .lede { margin-bottom: 24px; }
}
@media (max-width: 599px) {
  .nav { gap: 16px; padding-left: 18px; }
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  h1 { font-size: clamp(2rem, 9.5vw, 2.5rem); }
  .lede { font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding: 112px var(--gutter); max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { max-width: 38rem; margin-bottom: 48px; }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 16px; text-wrap: balance;
}
.section-head p, .contact > p { color: var(--muted); margin: 0; }
.section-head .eyebrow, .contact .eyebrow { color: var(--accent); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 0 0 8px; }

/* ---------- what we offer: argument left, chart right; the four practices as cards beneath ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head chart";
  column-gap: clamp(40px, 4.5vw, 64px);
  align-items: start;
}
.offer-head { grid-area: head; max-width: 34rem; }
.offer-head p { margin: 24px 0 0; }
.offer-head .offer-lead { color: var(--muted); margin: 0; }
.offer-lead-in { color: var(--muted); }
.offer-chart { grid-area: chart; align-self: center; margin: 0; }
.offer-chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.practices {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.practices li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; align-items: start;
  padding: 24px;
}
.practices .glyph { width: 40px; height: 40px; margin: 0; }
.practices h3 { font-size: 1rem; margin: 0 0 6px; }
.practices p { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 34em; }

/* chart: hairline axes in the page's 1px-rule language; no ticks because the values are illustrative */
.chart text { font-family: var(--sans); font-size: 15px; fill: var(--muted); }
.chart .c-note { font-size: 15px; fill: var(--muted); }
.chart .c-axis { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-base { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.chart .c-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .c-vibe { stroke: var(--muted); }
.chart .c-ours { stroke: var(--accent); }
.chart .c-end circle { fill: var(--muted); }
.chart .c-end-ours circle { fill: var(--accent); }
.chart .c-end text { font-weight: 500; }
.chart .c-end-vibe text { fill: var(--muted); }   /* each label wears its line's colour */
.chart .c-end-ours text { fill: var(--accent); }
.chart.is-armed .c-end { opacity: 0; }   /* JS fades the labels in as the line ends are reached (no CSS transition: the draw drives it) */

@media (max-width: 899px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chart"; }
  .offer-chart { margin: 40px 0 0; }
  .offer-head { max-width: 38rem; }
}
@media (max-width: 699px) {
  .practices { grid-template-columns: 1fr; margin-top: 40px; }
}
@media (max-width: 599px) {
  /* the viewBox is 600 wide and the phone renders it at ~330px, so the type is set in
     viewBox units to land at about 12px on screen */
  .chart text, .chart .c-note { font-size: 21px; }
  .chart .c-line { stroke-width: 3; }
  .chart .c-axis, .chart .c-base { stroke-width: 1.6; }
  .chart .c-base { stroke-dasharray: 3 8; }
  .offer-chart { margin: 32px 0 0; }
}

.glyph { width: 56px; height: 56px; margin-bottom: 16px; overflow: visible; }
.g-line path { fill: none; stroke: rgba(var(--ink-rgb), 0.3); stroke-width: 1; }
.g-dot circle { fill: rgba(var(--ink-rgb), 0.75); }
.g-accent { fill: var(--accent); }
.g-trail { stroke: var(--accent); stroke-width: 1.5; opacity: .6; }
.g-ring { fill: none; stroke: rgba(var(--ink-rgb), 0.65); stroke-width: 1.3; stroke-dasharray: 1.6 2.6; }
.g-warn { fill: var(--warn); opacity: .85; }

/* ---------- how it works: three cards joined by a hairline ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding: 24px; }
.steps li::before {
  content: "0" counter(step); display: block;
  color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 18px;
}
.steps li + li::after {   /* the connector runs across the gap at the number's height */
  content: ""; position: absolute; top: 32px; right: 100%; width: 24px; height: 1px; background: var(--glass-border-hi);
}
.steps p { color: var(--muted); margin: 0; max-width: 34em; }

.contact { padding-bottom: 136px; }
.contact > p { margin-bottom: 40px; max-width: 32rem; }

/* ---------- enquiry form: one glass panel; the fields inside are fill-only (glass never nests) ---------- */
.enquiry { max-width: 36rem; padding: 32px; display: grid; gap: 28px; }
.enquiry:hover { border-color: var(--glass-border); background: var(--glass); }   /* a form is not a card: no hover lift */
.hp { display: none; }   /* honeypot: display:none keeps it out of the accessibility tree too */
.enquiry .suggest { margin: 0; color: var(--muted); font-size: 0.875rem; }
.enquiry .suggest:empty { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--glass-border-hi); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--warn); box-shadow: none; }
.enquiry .err { margin: 0; min-height: 0; color: var(--warn); font-size: 0.875rem; }
.enquiry .err:empty { display: none; }
.enquiry .err button, .enquiry .suggest button {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.enquiry .form-status { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.enquiry .form-status.ok { color: var(--ink); }
.enquiry .form-status.bad { color: var(--warn); }
.enquiry .form-privacy { margin: 0; color: var(--muted); font-size: 0.8125rem; max-width: 34rem; }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto;
  padding: 24px var(--gutter) 40px; color: var(--muted); font-size: 0.875rem;
  border-top: 1px solid var(--hairline);
}
.footer-mark { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.footer a, .enquiry .form-privacy a {
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.footer a:hover, .enquiry .form-privacy a:hover { color: var(--ink); text-decoration-color: var(--accent); }

@media (max-width: 859px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li + li::after { display: none; }
  .enquiry { padding: 24px 20px; }
}

/* ---------- writing: post lists (homepage teaser + blog index), one card per post ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-list a { display: block; padding: 24px; text-decoration: none; color: inherit; }
.post-meta { display: flex; justify-content: space-between; gap: 16px; margin: 0; color: var(--muted); font-size: 0.875rem; }
.post-title {
  font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em;
  margin: 12px 0 10px; text-wrap: balance;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.post-list a:hover .post-title { text-decoration-color: var(--accent); }
.post-empty { margin: 0; padding: 24px; color: var(--muted); max-width: 24rem; }
.post-empty::before {   /* the empty state wears the same label as a post's date line */
  content: "Coming soon"; display: block; margin-bottom: 8px;
  color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.post-list .post-summary { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 34em; }

/* homepage: the three latest, side by side in the steps' rhythm */
.writing .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.writing-more { margin: 40px 0 0; }
@media (max-width: 859px) {
  .writing .post-list { grid-template-columns: 1fr; }
}

/* ---------- blog pages: one centred reading column under the pill ---------- */
.page { padding: calc(var(--nav-h) + var(--nav-gap) + 36px) var(--gutter) 112px; }
.blog-index, .post { max-width: 42rem; margin: 0 auto; }
.blog-index h1, .post h1 { font-size: clamp(2.125rem, 3.6vw, 3.25rem); margin: 0 0 20px; }

.blog-index .section-head { margin-bottom: 40px; }
.blog-index .post-list a { padding: 28px; }
.blog-index .post-meta { justify-content: flex-start; gap: 20px; }   /* same form as the post head, one click deeper */
.blog-index .post-title { font-size: 1.75rem; }

.post-back { margin: 0 0 28px; font-size: 0.9375rem; }
.post-back a {
  display: inline-block; padding: 6px 0; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.post-back a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.post-head .post-meta { justify-content: flex-start; gap: 20px; margin: 0 0 20px; }
.post-head .post-summary { font-family: var(--serif); font-weight: 300; font-size: 1.375rem; line-height: 1.4; color: var(--muted); margin: 0; }

.post-body { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--hairline); font-size: 1.125rem; line-height: 1.65; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.4em; overflow-wrap: break-word; }
.post-body h2 { font-family: var(--serif); font-weight: 300; font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.015em; margin: 2em 0 0.6em; }
.post-body h3 { font-size: 1.125rem; margin: 1.8em 0 0.5em; }
.post-body a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body strong { font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 0 0 0.5em; padding-left: 0.25em; }
.post-body li::marker { color: var(--muted); }
.post-body blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.375rem; line-height: 1.4;
}
.post-body blockquote p { margin: 0; }
.post-body blockquote p + p { margin-top: 0.8em; }
.post-body code { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; background: var(--glass-hi); border-radius: 6px; padding: 0.1em 0.35em; }
.post-body pre {
  margin: 1.6em 0; padding: 18px 20px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 10px;
  overflow-x: auto; font-size: 0.9375rem; line-height: 1.55;
}
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body figure { margin: 2em 0; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.post-body figcaption { margin-top: 10px; color: var(--muted); font-size: 0.875rem; }
.post-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5em 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: 0.9375rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.post-body th { font-weight: 600; }

.post-foot { margin-top: 64px; }
.post-cta { border-top: 1px solid var(--hairline); padding-top: 40px; }
.post-cta h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.post-cta p { color: var(--muted); margin: 0 0 28px; max-width: 32rem; }
.post-more { margin: 40px 0 0; }

/* ---------- 404 ---------- */
.notfound { padding: 8vh 0 4vh; }
.notfound-code { margin: 0 0 16px; color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; }
.notfound .post-summary { font-family: var(--serif); font-weight: 300; font-size: 1.375rem; line-height: 1.4; color: var(--muted); margin: 0 0 40px; max-width: 32rem; }

@media (max-width: 599px) {
  .page { padding-bottom: 80px; }
  .blog-index h1, .post h1 { font-size: 2.125rem; }
  .blog-index .post-list a { padding: 22px 20px; }
  .blog-index .post-title { font-size: 1.5rem; }
  .post-head .post-summary { font-size: 1.25rem; }
  .post-body { font-size: 1.0625rem; line-height: 1.6; margin-top: 36px; padding-top: 32px; }
  .post-body h2 { font-size: 1.625rem; }
  .post-body blockquote { font-size: 1.25rem; padding-left: 18px; }
  /* phone: long lines wrap (leading whitespace is kept by pre-wrap); the box still scrolls for anything unbreakable */
  .post-body pre { padding: 14px 16px; font-size: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .post-foot { margin-top: 48px; }
}
