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

/* Fonts, self-hosted (SIL OFL 1.1, licences in fonts/). latin-ext loads only for characters outside latin. */
@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; }

:root {
  --paper: #F3EDE0;
  --paper-2: #EAE2D1;
  --card: #FBF8F2;
  --ink: #1A191D;
  --ink-2: #4F4A50;
  --line: #1A191D;
  --shadow: #1A191D;
  --red: #EE494A;
  --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;
  --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;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141316;
    --paper-2: #1C1B20;
    --card: #24222A;
    --ink: #F3EDE0;
    --ink-2: #C9C1B3;
    --line: #F3EDE0;
    --shadow: #EE494A;
    --red-ink: #FF7B74;
    --on-red: #141316;
    --blush: #4A2A2C;
    --grid: rgba(238, 73, 74, .12);
    --band: #0C0B0D;
    --on-band: #F3EDE0;
    --on-band-2: #CFC6B6;
    --band-line: #F3EDE0;
    --ok: #6FCF97;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141316;
  --paper-2: #1C1B20;
  --card: #24222A;
  --ink: #F3EDE0;
  --ink-2: #C9C1B3;
  --line: #F3EDE0;
  --shadow: #EE494A;
  --red-ink: #FF7B74;
  --on-red: #141316;
  --blush: #4A2A2C;
  --grid: rgba(238, 73, 74, .12);
  --band: #0C0B0D;
  --on-band: #F3EDE0;
  --on-band-2: #CFC6B6;
  --band-line: #F3EDE0;
  --ok: #6FCF97;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  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; }
}

.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; }
}

.nav-wide { display: none; }
.nav-wide ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 24px; }
.nav-wide a, .menu a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-wide a { display: block; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav-wide a:hover { border-bottom-color: var(--red); }
.nav-wide a[aria-current="page"] { border-bottom-color: var(--line); }

.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 of her red disc. Hidden without JavaScript, where 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: 1000px) {
  .nav-wide { display: block; }
  .menu { display: none; }
}

/* ---- Page heads ---- */
.page-head {
  padding: 32px 0 36px;
  border-bottom: var(--b) solid var(--line);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  margin-bottom: 36px;
}
.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; border-bottom: var(--b) solid var(--line);
  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; }
/* Sized to its own column (8.3× the font size 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's corners reach a few pixels 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: 64px 0; background: var(--paper-2); border-bottom: var(--b) solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card {
  background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow); padding: 24px; 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: 64px 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; border-top: var(--b) solid var(--line); }
.timeline li { padding: 20px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent); }
.timeline li:last-child { border-bottom: var(--b) solid var(--line); }
.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; border-top: var(--b) solid var(--line); max-width: 48em; }
.entry { padding: 28px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent); }
.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; }
.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) linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px; color: var(--on-band);
  padding: 64px 0; margin-top: 48px; border-top: var(--b) solid var(--band-line);
}
.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);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 2px; }
.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; }
.contact-form .btn { justify-self: start; }
.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; }
/* 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; }
.contact-aside h2 { font-size: 26px; margin-bottom: 16px; }
.contact-aside a { font-weight: 700; }

/* ---- 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 ---- */
.site-footer { background: var(--paper-2); color: var(--ink); border-top: var(--b) solid var(--line); padding-top: 48px; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red-ink); }
.footer-mark { font: 900 24px/1 var(--display); letter-spacing: -.03em; margin-bottom: 10px; }
.footer-mark::after { content: "."; color: var(--red); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal {
  flex-basis: 100%; margin: 8px 0 0; padding-top: 20px;
  border-top: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent);
  font: 500 13px/1.5 var(--mono); color: var(--ink-2);
}

/* ---- 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: 13rem minmax(0, 1fr); gap: 32px; }
}

/* ---- 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; }
.contact-aside {
  background: var(--paper-2); border: var(--b) solid var(--line); border-radius: var(--r); padding: 24px;
  position: static; top: 96px;
}
@media (min-width: 821px) {
  .contact-aside { position: sticky; }
}
.contact-aside p { margin-bottom: 10px; overflow-wrap: anywhere; }
.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; }
.has-error label { color: var(--red-ink); }
.has-error input, .has-error select, .has-error textarea { 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; }
