/* nellamugisha.com, neobrutalist identity (27 October 2026).
   Tokens and rules: .claude/design/nellamugisha/redesign/brand-identity.md */

/* Self-hosted fonts (SIL OFL 1.1, licences in ../fonts/); latin-ext only for non-latin characters. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dm-sans-400-700-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dm-sans-400-700-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-600-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-600-latin.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 900; font-display: swap; src: url(../fonts/schibsted-grotesk-400-900-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/schibsted-grotesk-400-900-latin.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; }

/* Colours: light-dark() follows color-scheme (system, or the toggle via data-theme); older browsers stay light. */
:root {
  --paper: light-dark(#F3EDE0, #141316);
  --paper-2: light-dark(#EAE2D1, #1C1B20);
  --ground: light-dark(#FBFAF6, #08080A);
  --card: light-dark(#FBF8F2, #24222A);
  --ink: light-dark(#1A191D, #F3EDE0);
  --ink-2: light-dark(#4F4A50, #C9C1B3);
  --line: light-dark(#1A191D, #F3EDE0);
  --shadow: light-dark(#1A191D, #EE494A);
  --red: #EE494A;
  --red-ink: light-dark(#B42318, #FF7B74);
  --on-red: light-dark(#1A191D, #141316);
  --blush: light-dark(#F0B9B9, #4A2A2C);
  --grid: light-dark(rgba(238, 73, 74, .16), rgba(238, 73, 74, .12));
  --band: light-dark(#F7DCD4, #0C0B0D);
  --on-band: light-dark(#1A191D, #F3EDE0);
  --on-band-2: light-dark(#4F4A50, #CFC6B6);
  --band-line: light-dark(#1A191D, #F3EDE0);
  --ok: light-dark(#1E6B45, #6FCF97);
  --display: 'Schibsted Grotesk', 'Arial Black', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --b: 2px;
  --off: 5px;
  --r: 6px;
  --wrap: 1120px;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@supports not (color: light-dark(#000, #fff)) { :root { --paper: #F3EDE0; --paper-2: #EAE2D1; --ground: #FBFAF6; --card: #FBF8F2; --ink: #1A191D; --ink-2: #4F4A50; --line: #1A191D; --shadow: #1A191D; --red-ink: #B42318; --on-red: #1A191D; --blush: #F0B9B9; --grid: rgba(238, 73, 74, .16); --band: #F7DCD4; --on-band: #1A191D; --on-band-2: #4F4A50; --band-line: #1A191D; --ok: #1E6B45; } }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
@media (min-width: 821px) {
  body { font-size: 18px; }
}

a { color: var(--red-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 481px) {
  .wrap { padding: 0 24px; }
}
@media (min-width: 821px) {
  .wrap { padding: 0 40px; }
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--on-red); font-weight: 700;
  border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow); padding: 12px 16px;
}
.skip:focus { left: 16px; top: 16px; z-index: 20; }

/* ---- Type ---- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; margin: 0; text-wrap: balance;
}
h1 { font-weight: 900; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
p { margin: 0 0 16px; }

/* Eyebrow: mono label after a red dot. Replaces the 48px red rule. */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font: 600 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--line);
}

/* One highlighted phrase per heading: <span class="hl">…</span> */
.hl { position: relative; z-index: 0; display: inline-block; color: var(--on-red); padding: 0 .08em; }
.hl-keep { white-space: nowrap; }
.hl-keep .hl { white-space: normal; }
.hl::before {
  content: ""; position: absolute; inset: .1em -.06em .02em; z-index: -1;
  background: var(--red); border: var(--b) solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow); transform: rotate(-1deg);
}

/* Stamp: a mono label for dates and places. */
.stamp {
  display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  padding: 7px 10px; transform: rotate(-3deg);
}
/* On a Work row whose organisation is described, not named: an offer to share the name. */
.stamp-link { margin-top: 12px; text-decoration: none; transform: rotate(-2deg); }
.stamp-link::after { content: " →"; content: " →" / ""; }
.stamp-link:hover { background: var(--red); color: var(--on-red); }

/* ---- Buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border: var(--b) solid var(--line); border-radius: var(--r);
  font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--off) var(--off) 0 var(--shadow);
}
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s, box-shadow .15s; }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
  .btn:active { transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--shadow); }
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); border-bottom: var(--b) solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 6px; min-height: 72px;
}
.wordmark {
  font: 900 16px/1 var(--display); letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto;
  padding-block: 4px; /* at least a 24px target at every size (WCAG 2.2, 2.5.8) */
}
.wordmark::after { content: "."; color: var(--red); }
/* The smallest phones (320px) get a tighter header; from 361px it is as before. */
@media (min-width: 361px) {
  .site-header .wrap { gap: 10px; }
  .wordmark { font-size: 19px; }
  .lang a, .lang span { padding: 7px 10px; }
  .menu summary { padding: 9px 14px; }
}
@media (min-width: 421px) {
  .site-header .wrap { gap: 16px; }
  .wordmark { font-size: 22px; }
}

/* Grouped menu (NAV_GROUPS): one-page groups are links, larger ones dropdowns. */
.nav-wide { display: none; }
.nav-wide > ul, .menu ul { list-style: none; margin: 0; padding: 0; } /* not .nav-drop: it keeps its own padding */
.nav-wide > ul { display: flex; gap: 22px; }
.nav-wide a, .nav-group summary, .menu a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-top, .nav-group summary { display: block; padding: 6px 0; border-bottom: 3px solid transparent; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav-group[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.nav-top:hover, .nav-group summary:hover { border-bottom-color: var(--red); }
.nav-top[aria-current="page"], .nav-group.is-current summary { border-bottom-color: var(--line); }
.nav-group { position: relative; }
.nav-wide li:last-child .nav-drop { left: auto; right: -14px; }
.menu-label { margin: 14px 0 2px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }

.lang { display: flex; font: 600 13px/1 var(--mono); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 7px 7px; text-decoration: none; }
.lang a { color: var(--ink); }
.lang a:hover { background: var(--paper-2); }
.lang [aria-current] { background: var(--ink); color: var(--paper); }

/* Theme toggle: half her red disc; hidden without JavaScript (the system setting applies). */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--shadow);
}
.theme-toggle::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: linear-gradient(90deg, var(--red) 50%, transparent 50%);
}
.theme-toggle[aria-pressed="true"]::before { background: linear-gradient(270deg, var(--red) 50%, transparent 50%); }
.theme-toggle:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.no-js .theme-toggle { display: none; }

/* Phones: a disclosure menu, no JavaScript. */
.menu summary {
  list-style: none; cursor: pointer; font: 700 15px/1 var(--sans);
  padding: 9px 10px; border: var(--b) solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: 3px 3px 0 var(--shadow);
}
.menu summary::-webkit-details-marker { display: none; }
.menu a { display: block; padding: 12px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 30%, transparent); }
.menu li:last-child a { border-bottom: 0; }
.menu a[aria-current="page"] { color: var(--red-ink); font-weight: 700; }
.menu[open] nav {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); z-index: 5;
  background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow); padding: 4px 20px;
}
/* The header's markup is in screen order (wordmark, links, language, theme, menu), so keyboard focus
   follows what is on screen; no CSS order. From 1000px the links show and the menu button goes. */
@media (min-width: 900px) {
  .nav-wide { display: block; }
  .menu { display: none; }
}

/* ---- Page heads ---- */
.page-head {
  padding: 40px 0 44px;
  background-color: var(--card); border-bottom: var(--b) solid var(--line);
  margin-bottom: 48px;
}
.page-head h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.page-head .intro { font-size: 21px; color: var(--ink-2); max-width: 36em; margin: 0; }
@media (min-width: 821px) {
  .page-head { padding: 56px 0 48px; margin-bottom: 48px; }
}

/* Illustrated portrait. The JPG has a white ground, so it always sits on a white panel
   until the transparent master arrives (brand-identity.md, Illustration). */
.illustration {
  position: relative; margin: 0; justify-self: start; width: min(100%, 300px);
  background: #FFFFFF; border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: 10px 10px 0 var(--shadow);
}
.illustration img { display: block; width: 100%; height: auto; border-radius: calc(var(--r) - 2px); }
.illustration .stamp { position: absolute; left: 14px; bottom: 14px; }

.page-head-aside .wrap { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-head-aside .illustration { width: min(100%, 300px); }
@media (min-width: 821px) {
  .illustration { justify-self: center; width: min(100%, 420px); }
  .page-head-aside .wrap { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .page-head-aside .illustration { width: min(100%, 340px); }
}

/* About opens with her own line: set it as a quote. */
.page-head:has(+ .about-grid) .intro {
  font: 700 clamp(22px, 2.6vw, 30px)/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); max-width: 30em;
  border-left: 6px solid var(--red); padding-left: 20px;
}

/* ---- Home ---- */
.hero {
  padding: 24px 0 64px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
/* 8.3em holds "towards impact." on one line, so the highlight never breaks. */
.hero .wrap > div:first-child { container-type: inline-size; min-width: 0; }
/* The rotated highlight pokes past a 320px screen: clip, never scroll. */
.hero { overflow-x: clip; }
.hero h1 { font-size: clamp(34px, calc(100cqi / 8.3), 80px); margin-bottom: 12px; }
.hero h1 .hl { white-space: nowrap; }
.hero .alt { font: 600 clamp(18px, 2.2vw, 24px)/1.3 var(--display); color: var(--ink-2); margin-bottom: 28px; }
.hero .lede { font-size: 20px; max-width: 34em; }
@media (min-width: 821px) {
  .hero { padding: 56px 0 88px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}

.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: 10px 10px 0 var(--shadow);
}
.hero .portrait { max-width: 360px; }
@media (min-width: 821px) {
  .hero .portrait { max-width: none; }
}
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ink-2); text-align: center; padding: 24px; border-style: dashed;
}
.placeholder .initials { font: 900 96px/1 var(--display); color: var(--ink); }
.placeholder small { font: 600 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---- Cards ---- */
.worlds { padding: 80px 0; background: var(--paper-2); }
.cards { display: grid; grid-template-columns: 1fr; gap: 28px; }
.card {
  background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow); padding: 28px; min-width: 0;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; }
.card.dark { background: var(--band); color: var(--on-band); border-color: var(--line); }
.card.dark h3 { color: var(--on-band); }
.card.dark p { color: var(--on-band-2); }
.cards-2 { grid-template-columns: 1fr; }
@media (min-width: 821px) {
  .worlds { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Quote ---- */
.quote { padding: 72px 0; }
.quote blockquote { margin: 0; max-width: 30em; }
.quote blockquote p {
  font: 700 clamp(26px, 3.4vw, 40px)/1.2 var(--display); letter-spacing: -.015em;
}
.quote blockquote p::first-letter { color: var(--red); }
.quote .alt { font: 500 18px/1.4 var(--sans); color: var(--ink-2); }
@media (min-width: 821px) {
  .quote { padding: 96px 0; }
}

/* ---- One-page sections, kept for the fallback markup ---- */
.featured { background: var(--red); color: var(--on-red); padding: 64px 0; border-block: var(--b) solid var(--line); }
.featured .eyebrow { color: var(--on-red); }
.featured .eyebrow::before { background: var(--card); }
.featured h2 { color: var(--on-red); }
.facts { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; }
.facts dt { font: 600 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-size: 20px; }
.about { padding: 64px 0; }
.about .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about p { font-size: 19px; }
.langs { color: var(--ink-2); }
.contact { background: var(--band); color: var(--on-band); padding: 64px 0; }
.contact .eyebrow { color: var(--on-band); }
.contact h2 { color: var(--on-band); max-width: 18em; }
.contact p { color: var(--on-band-2); max-width: 36em; }
.contact .btn-ghost { --line: var(--band-line); --shadow: var(--red); }
.todo { outline: 2px dashed var(--red); outline-offset: 4px; }
@media (min-width: 821px) {
  .featured { padding: 80px 0; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .about { padding: 88px 0; }
  .about .wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .contact { padding: 88px 0; }
}

/* ---- Long text ---- */
.prose { max-width: 42em; }
.prose-block { padding: 24px 0 32px; max-width: 42em; }
.prose-block h2, .timeline h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.prose p, .prose-block p { font-size: 19px; }

/* ---- Timeline and entries: ledger rows ---- */
.timeline { padding: 24px 0 40px; }
.timeline ul { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 24px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent); }
.timeline li:first-child { padding-top: 4px; }
.timeline li:last-child { border-bottom: 0; }
.timeline h3 { font-size: 21px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-2); }
.meta { font: 500 14px/1.5 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.formats { margin-top: 40px; color: var(--ink-2); }

.entries { list-style: none; margin: 0; padding: 0; max-width: 48em; }
.entry { padding: 32px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent); }
.entry:first-child { padding-top: 8px; }
.entry:last-child { border-bottom: 0; }
.entry time { font: 600 13px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 10px; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.entry p { color: var(--ink-2); }
.more { font-weight: 700; }
.latest { padding: 72px 0; }
.quote:has(+ .latest) { padding-bottom: 24px; }
.quote + .latest { padding-top: 8px; }
.empty { padding: 8px 0 48px; max-width: 40em; }
.soon {
  color: var(--ink-2); padding: 16px 20px; max-width: 40em;
  border: var(--b) solid var(--line); border-radius: var(--r); background: var(--card);
}
.post { padding: 40px 0 72px; }
.post h1 { font-size: clamp(36px, 5vw, 60px); margin: 8px 0 12px; max-width: 18em; }
.post .eyebrow a { color: var(--ink); }
.post .prose { margin-top: 32px; }

/* ---- Shared call to action: the page's one tinted band (dark only in dark mode) ---- */
.cta {
  --line: var(--band-line);
  background: var(--band); color: var(--on-band);
  padding: 80px 0; margin-top: 48px;
}
.cta h2 { color: var(--on-band); max-width: 18em; font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; }
.cta p { color: var(--on-band-2); }
.cta .btn { --shadow: var(--red); }
.cta .btn-ghost { background: transparent; color: var(--on-band); }
@media (min-width: 821px) {
  .cta { padding: 88px 0; }
}

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 88px; }
.contact-form {
  display: grid; gap: 20px; max-width: 36em;
  background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow); padding: 20px;
}
@media (min-width: 821px) {
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 64px; }
  .contact-form { padding: 28px; }
}
.field label { display: block; font: 600 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: var(--b) solid var(--line); border-radius: var(--r); padding: 12px 14px;
  box-shadow: 3px 3px 0 var(--shadow);
}
/* Focus: the field lifts and its shadow turns red; no extra outline ring. */
.field :is(input, select, textarea):focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--red); transform: translate(-1px, -1px); }
.has-error :is(input, select, textarea):focus { border-color: var(--red-ink); box-shadow: 4px 4px 0 var(--red-ink); }
@media (prefers-reduced-motion: no-preference) { .field :is(input, select, textarea) { transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; } }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red-ink); }
.field-error { color: var(--red-ink); font-weight: 700; font-size: 15px; margin: 8px 0 0; }
.hint { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; }
.notice {
  background: var(--card); border: var(--b) solid var(--line); border-left: 8px solid var(--ok);
  border-radius: var(--r); padding: 14px 18px;
}
.notice-error { border-left-color: var(--red-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
h1, h2, h3, .eyebrow { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
/* hidden always hides, whatever display a class sets; main takes focus only from script. */
[hidden] { display: none !important; }
main:focus { outline: none; }
/* Read by screen readers, not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.about-portrait {
  width: 100%; height: auto; position: static; top: 96px; max-width: 360px;
  border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 10px 10px 0 var(--shadow);
}
.gallery { padding: 24px 0; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.gallery img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: var(--off) var(--off) 0 var(--shadow);
}
.gallery figure { margin: 0; }
.gallery figcaption { font: 500 13px/1.5 var(--mono); color: var(--ink-2); padding-top: 12px; }
@media (min-width: 821px) {
  .about-grid { grid-template-columns: 1.7fr 1fr; gap: 64px; }
  .about-portrait { position: sticky; max-width: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(0, 360px)); gap: 24px; }
  .gallery img { height: 360px; }
}

/* ---- Footer: brand left, headed link columns right, then the legal line ---- */
.site-footer { background: var(--paper-2); color: var(--ink); padding-top: 64px; font-size: 15px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red-ink); }
/* Footer buttons keep their own text colour (dark mode contrast). */
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--on-red); }
.footer-grid { display: grid; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; max-width: 26rem; }
.footer-brand p { margin: 0; }
.footer-mark { font: 900 24px/1 var(--display); letter-spacing: -.03em; }
.footer-mark::after { content: "."; color: var(--red); }
.footer-tagline { font: 800 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -.01em; color: var(--red-ink); }
.footer-lede { color: var(--ink-2); }
.footer-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.footer-h { font: 700 15px/1.3 var(--sans); margin: 0 0 18px; }
.footer-cols ul, .footer-legal-links { list-style: none; margin: 0; padding: 0; }
.footer-cols ul { display: grid; gap: 14px; }
.footer-cols a, .footer-legal-links a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover, .footer-cols a:focus-visible, .footer-legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { align-items: baseline; padding-bottom: 40px; }
.footer-legal { font: 500 13px/1.5 var(--mono); color: var(--ink-2); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
@media (min-width: 821px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 64px; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Work: ledger rows, a date column then the entry ---- */
.ledger { padding: 8px 0 48px; }
.ledger h2 { display: flex; align-items: baseline; gap: 14px; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: baseline; }
.ledger li > .meta { margin: 0; }
.ledger li h3 { margin-bottom: 6px; }
@media (min-width: 821px) {
  .ledger li { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 28px; }
  .ledger li > .meta { white-space: nowrap; }
}

/* ---- Blog and news lists: same ledger rows ---- */
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: baseline; }
.entry time { grid-row: auto; }
.entry h2 { margin-top: 0; }
.entry > :not(time) { grid-column: 1; }
.entry p { margin-bottom: 10px; }
@media (min-width: 821px) {
  .entry { grid-template-columns: 13rem minmax(0, 1fr); row-gap: normal; column-gap: 32px; }
  .entry time { grid-row: 1 / span 3; }
  .entry > :not(time) { grid-column: 2; }
}

.empty > p:first-child { font-size: 20px; }
.soon { list-style: none; margin: 8px 0 24px; padding: 0; counter-reset: soon; }
.soon li {
  counter-increment: soon; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px;
  padding: 14px 20px; color: var(--ink); font: 700 19px/1.35 var(--display);
  border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent);
}
.soon li:last-child { border-bottom: 0; }
.soon li::before { content: counter(soon, decimal-leading-zero); font: 600 13px/1.9 var(--mono); color: var(--ink-2); }

/* ---- Single post or news item ---- */
.post .wrap { max-width: 860px; }
.post .eyebrow::before { display: none; }
.post .eyebrow a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-block: 3px; } /* 24px target */
.post .meta { display: inline-block; margin: 4px 0 0; }
.post .prose { margin-top: 36px; padding-top: 32px; border-top: var(--b) solid var(--line); }
.post .prose > p:first-child { font-size: 22px; line-height: 1.5; color: var(--ink); }

/* ---- Contact ---- */
.contact-grid { align-items: start; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 160px; field-sizing: content; max-height: 60vh; }
.has-error label { color: var(--red-ink); }
.has-error :is(input, select, textarea):not(:focus) { box-shadow: 3px 3px 0 var(--red-ink); }
.notice { margin: 0 0 24px; font-weight: 500; }

/* ---- 404 ---- */
.monogram {
  justify-self: start; display: grid; place-items: center; width: 140px; aspect-ratio: 1;
  border-radius: 50%; background: var(--red); color: var(--on-red); border: 3px solid var(--line);
  box-shadow: 10px 10px 0 var(--shadow);
  font: 900 clamp(64px, 9vw, 96px)/1 var(--display); letter-spacing: -.04em;
}
@media (min-width: 821px) {
  .monogram { justify-self: center; width: min(100%, 240px); }
}
.page-404 { padding-bottom: 96px; }

/* ---- Poster sheet: the whole page is one framed sheet on the paper-2 ground. Inside it, regions are
   panels across the sheet, and a rule appears only where a panel changes colour. ---- */
.nm-sheet {
  max-width: calc(var(--wrap) + 96px); margin: 10px 10px 16px; background: var(--paper);
  border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--shadow); overflow: clip;
}
.nm-marquee, .cta, .site-footer { border-top: var(--b) solid var(--line); }
.nm-marquee { border-bottom: var(--b) solid var(--line); }
.cta { margin-top: 0; }
.site-footer .nm-wordmark-wrap { background: none; }
@media (min-width: 821px) {
  .nm-sheet { margin: 24px auto 40px; width: calc(100% - 48px); box-shadow: 12px 12px 0 var(--shadow); }
}
