/* ==========================================================================
   TAMENSAH Consulting: site stylesheet
   Identity: "Working Drawing" (TC-OD-30, identity package v0.10).
   Tokens mirror 02-tokens/tokens.json v0.10.0. Change values there first.
   Every public page uses this file except qr.html, which keeps /css/main.css
   pending a founder decision on product ownership (REDESIGN-002).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL 1.1) -------------------------------- */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/overpass-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: "Overpass";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/overpass-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 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-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;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* Colour: Working Drawing */
  --c-ink: #16181D;        /* text, mark, primary buttons */
  --c-paper: #F4F1EA;      /* screen ground */
  --c-graphite: #5E626B;   /* secondary text, field borders. 5.4:1 on Paper */
  --c-marker: #F2C230;     /* one highlight per screen. Fill only; text only on Ink */
  --c-stone: #E4DFD3;      /* panels */
  --c-rule: #C9C3B5;       /* decorative hairlines only (1.6:1) */
  --c-mist: #9A9EA6;       /* secondary text on Ink only. 6.6:1 on Ink */
  --c-white: #FFFFFF;
  --c-error: #B42318;      /* 5.8:1 on Paper */
  --c-success: #2F6B3A;    /* 5.7:1 on Paper */

  /* Semantic roles */
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --fg-muted: var(--c-graphite);
  --panel: var(--c-stone);
  --hairline: var(--c-rule);
  --focus: var(--c-ink);
  --focus-offset: var(--c-paper);

  /* Type */
  --font-sans: "Overpass", "Noto Sans", Arial, sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);   /* 40 to 64 */
  --fs-h1: clamp(2rem, 1.55rem + 1.8vw, 2.5rem);        /* 32 to 40 */
  --fs-h2: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);  /* 22 to 26 */
  --fs-h3: 1.25rem;                                     /* 20 */
  --fs-body: 1.0625rem;                                 /* 17 */
  --fs-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-small: 0.875rem;                                 /* 14 */
  --fs-mono: 0.75rem;                                   /* 12 */
  --lh-display: 1.0;
  --lh-h1: 1.05;
  --lh-h2: 1.15;
  --lh-body: 1.55;
  --tr-display: -0.035em;
  --tr-h1: -0.02em;
  --tr-mono: 0.1em;

  /* Space (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 8vw, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;
  --container: 1200px;

  /* Shape */
  --radius: 4px;
  --border-field: 1.5px;
  --measured-line: 3px;
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;   /* long email addresses and URLs in narrow columns */
}
[hidden] { display: none !important; }
.error-summary, .form-status, .field input, .field select, .field textarea { scroll-margin-top: 104px; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
::selection { background: var(--c-marker); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-offset);
  border-radius: 2px;
}
.on-ink :focus-visible, .site-footer :focus-visible { --focus: var(--c-paper); --focus-offset: var(--c-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-ink); color: var(--c-paper); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); --focus: var(--c-ink); }

/* ---------- Layout -------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--hairline); }
.section--panel { background: var(--panel); border-top: 0 !important; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--sticky > :first-child { position: sticky; top: 112px; }
}
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.measure { max-width: var(--measure); }

/* ---------- Type ---------------------------------------------------------- */
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); font-weight: 600; }
.h1, h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: 600; }
.h2, h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.01em; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg); max-width: 60ch; }
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2, .prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }

/* DM Mono: identifiers only (references, numbers, dates). Never body copy. */
.mono, .eyebrow, .ref {
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--tr-mono);
  text-transform: uppercase; font-weight: 400; line-height: 1.4;
}
.eyebrow { display: flex; align-items: center; gap: var(--s-3); color: var(--fg-muted); margin-bottom: var(--s-5); }
.ref { color: var(--fg-muted); }

/* Measured line: 3 px rule with end ticks (identity device) */
.measured {
  position: relative; display: block; height: 12px; width: 96px; flex: none;
  background: linear-gradient(currentColor, currentColor) 0 50% / 100% var(--measured-line) no-repeat;
  color: var(--fg);
}
.measured::before, .measured::after { content: ""; position: absolute; top: 0.5px; width: 2px; height: 11px; background: currentColor; }
.measured::before { left: 0; }
.measured::after { right: 0; }
.measured--sm { width: 64px; }

/* Marker highlight: one per screen. Fill behind Ink text. */
.marker { background: linear-gradient(transparent 58%, var(--c-marker) 58%, var(--c-marker) 92%, transparent 92%); padding-inline: 0.06em; }

/* ---------- Buttons and links -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px 10px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: var(--border-field) solid var(--c-ink); transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--c-ink); color: var(--c-paper); }
.btn--primary:hover { background: #2A2D35; }
.btn--secondary { background: transparent; color: var(--c-ink); }
.btn--secondary:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--marker { background: var(--c-marker); color: var(--c-ink); border-color: var(--c-marker); }
.btn--marker:hover { background: #F6D25E; }
.on-ink .btn--secondary { color: var(--c-paper); border-color: var(--c-paper); }
.on-ink .btn--secondary:hover { background: var(--c-paper); color: var(--c-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.arrow-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { border-bottom-width: 3px; }

/* ---------- Header and navigation ---------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--hairline); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; padding-block: var(--s-3); }
.brand img { width: 188px; height: auto; }   /* >= 180 px screen minimum (tokens: logo.min-width-screen) */
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--c-ink); border: var(--border-field) solid var(--c-ink);
  border-radius: var(--radius); font: 600 0.9375rem var(--font-sans); cursor: pointer;
}
.nav-toggle__icon { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { border-bottom-color: transparent; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--hairline); padding: var(--s-4) var(--gutter) var(--s-6); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.site-nav a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.site-nav li:not(.nav-cta) a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-nav .nav-cta { margin-top: var(--s-4); }
.site-nav .nav-cta a { display: inline-flex; padding: 12px 20px 10px; }
/* Without JavaScript the menu is always visible and wraps */
.no-js .nav-toggle { display: none; }
.no-js .site-header__bar { flex-wrap: wrap; }
.no-js .site-nav { display: block; width: 100%; padding-bottom: var(--s-3); }
.no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.no-js .site-nav .nav-cta { margin: 0; }
@media (min-width: 960px) {
  .no-js .site-nav { width: auto; padding: 0; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s-6); }
  .site-nav a { padding: 8px 0; }
  .site-nav .nav-cta { margin: 0 0 0 var(--s-3); }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); align-items: end; } }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: var(--s-5); }
.hero .btn-row { margin-top: var(--s-6); }

/* Principal card (hero aside and about) */
.principal-card { border-top: var(--measured-line) solid var(--c-ink); padding-top: var(--s-4); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.principal-card img { width: 96px; height: 116px; object-fit: cover; object-position: 50% 15%; background: var(--panel); }
.principal-card p + p { margin-top: var(--s-2); }

/* Page header for inner pages */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: var(--s-5); }

/* ---------- Numbered items (services, steps) ------------------------------ */
.numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .numbered--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); } }
@media (min-width: 1024px) { .numbered--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); } }
.numbered > li { border-top: 1px solid var(--c-ink); padding: var(--s-4) 0 var(--s-6); }
.numbered .ref { display: block; margin-bottom: var(--s-3); color: var(--fg); }
.numbered h3 { margin-bottom: var(--s-2); }
.numbered p { color: var(--fg-muted); }
.numbered .arrow-link { display: inline-block; margin-top: var(--s-4); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 960px) { .section-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: end; } }
.section-head p { max-width: 58ch; }

/* ---------- Service family detail ---------------------------------------- */
.family { padding-block: var(--s-8); border-top: 1px solid var(--c-ink); }
.family:first-of-type { border-top: 0; padding-top: 0; }
.family__body { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .family__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.family h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-3); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-top: 1px solid var(--hairline); }
.list-plain li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---------- Definition table (work, experience) --------------------------- */
.record { list-style: none; margin: 0; padding: 0; }
.record > li { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) 0; border-top: 1px solid var(--hairline); }
.record > li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 840px) { .record > li { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 220px); } }
@media (min-width: 600px) { .record--2col > li { grid-template-columns: 140px minmax(0, 1fr) !important; } }
.record h3 { margin-bottom: var(--s-1); }
.record .tags { color: var(--fg-muted); font-size: var(--fs-small); }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  padding: 3px 8px 2px; border: 1px solid var(--c-graphite); color: var(--c-graphite); border-radius: 2px; white-space: nowrap;
}

/* ---------- Ink band (communication register) ----------------------------- */
.on-ink { background: var(--c-ink); color: var(--c-paper); --fg: var(--c-paper); --fg-muted: var(--c-mist); --hairline: #3A3D45; }
.on-ink .measured { color: var(--c-paper); }
.cta-band .grid { align-items: end; }
.cta-band h2 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); max-width: 18ch; }
.pathways { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pathway { border-top: 1px solid var(--hairline); padding-top: var(--s-4); }
.pathway p { color: var(--fg-muted); margin-top: var(--s-2); }

/* ---------- Callout ------------------------------------------------------- */
.callout { border-left: var(--measured-line) solid var(--c-ink); padding: var(--s-2) 0 var(--s-2) var(--s-5); }
.note { background: var(--panel); padding: var(--s-5); border-radius: var(--radius); }

/* ---------- Portrait figure ---------------------------------------------- */
.portrait { background: var(--panel); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { padding-top: var(--s-3); font-size: var(--fs-small); color: var(--fg-muted); background: var(--bg); }

/* ---------- Forms --------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); max-width: 720px; }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: var(--fs-small); color: var(--fg-muted); }
.req { color: var(--fg-muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px 10px; font: 400 1rem/1.4 var(--font-sans); color: var(--c-ink);
  background: var(--c-white); border: var(--border-field) solid var(--c-graphite); border-radius: var(--radius);
}
.textarea { min-height: 160px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--c-ink); }
[aria-invalid="true"] { border-color: var(--c-error) !important; }
.field-error { color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: var(--s-3); align-items: flex-start; padding: 10px 0; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--s-4) var(--s-5); border-radius: var(--radius); border-left: var(--measured-line) solid currentColor; }
.form-status:empty { display: none; }
.form-status--error { color: var(--c-error); background: #F8E7E3; }
.form-status--success { color: var(--c-success); background: #E5EEE3; }
.form-status--info { color: var(--c-ink); background: var(--panel); }
.form-status p { color: var(--c-ink); margin-top: var(--s-2); }
.error-summary { border: 2px solid var(--c-error); padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: #FBF0EE; }
.error-summary h2 { font-size: 1.0625rem; color: var(--c-error); margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--c-error); font-weight: 600; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: var(--c-paper); padding-block: var(--s-8) var(--s-6); }
.site-footer a { color: var(--c-paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); } }
.footer-brand img { width: 200px; }
.footer-brand p { color: var(--c-mist); margin-top: var(--s-4); max-width: 36ch; font-size: var(--fs-small); }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--tr-mono); text-transform: uppercase; font-weight: 400; color: var(--c-mist); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-col p { font-size: var(--fs-small); color: var(--c-mist); }
.footer-col p + p { margin-top: var(--s-2); }
.footer-base { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid #3A3D45; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-small); color: var(--c-mist); }

/* ---------- Motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Print --------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* No-JavaScript form result messages, shown via URL fragment after a server redirect */
.target-msg { display: none; margin-bottom: var(--s-5); }
.target-msg:target { display: block; }

/* ---------- Link-styled button (footer) ----------------------------------- */
.link-button { background: none; border: 0; padding: 0; margin-left: var(--s-4); font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.site-footer .link-button { color: var(--c-paper); }

/* ---------- Article (writing) --------------------------------------------- */
.breadcrumb { font-size: var(--fs-small); color: var(--fg-muted); margin-bottom: var(--s-5); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-rule); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); color: var(--fg-muted); }
.article-head h1 { max-width: 24ch; }
.article-body { max-width: var(--measure); }
.article-body > * + * { margin-top: var(--s-4); }
.article-body h2 { margin-top: var(--s-7); }
.article-body h3 { margin-top: var(--s-6); }
.article-body hr { border: 0; border-top: 1px solid var(--hairline); margin-block: var(--s-6); }
.article-body hr + h2 { margin-top: 0; }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li + li { margin-top: var(--s-2); }
.article-body blockquote { border-left: var(--measured-line) solid var(--c-ink); padding-left: var(--s-5); }
.article-body a { text-decoration-thickness: 1px; }
.article-figure { margin-block: var(--s-7); }
.article-figure img { width: 100%; border: 1px solid var(--hairline); background: var(--c-paper); }
.article-figure figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--fg-muted); }
.article-aside { max-width: var(--measure); margin-top: var(--s-7); display: grid; gap: var(--s-5); }
.share { border-top: 1px solid var(--hairline); padding-top: var(--s-4); }
.share ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.share a, .share button { font: 600 var(--fs-small) var(--font-sans); color: var(--c-ink); }
.share button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.author img { width: 64px; height: 77px; object-fit: cover; object-position: 50% 15%; background: var(--panel); }

/* Writing index */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { border-top: 1px solid var(--hairline); padding: var(--s-5) 0; display: grid; gap: var(--s-2) var(--s-6); }
.post-list > li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 840px) { .post-list > li { grid-template-columns: 180px minmax(0, 1fr); } }
.post-list h2 { font-size: var(--fs-h3); line-height: 1.3; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { color: var(--fg-muted); margin-top: var(--s-2); max-width: 64ch; }

/* ---------- Questionnaire forms (briefing, evaluation) -------------------- */
.form--wide { max-width: 760px; }
.form-section { border-top: 1px solid var(--c-ink); padding-top: var(--s-5); display: grid; gap: var(--s-5); }
.form-section > h2 { font-size: var(--fs-h3); }
.qnum { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--tr-mono); color: var(--fg-muted); margin-right: var(--s-2); }
.choices { display: grid; gap: 0 var(--s-5); }
@media (min-width: 600px) { .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scale { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.scale .choice { padding: 0; }
.scale label { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: var(--border-field) solid var(--c-graphite); border-radius: var(--radius); background: var(--c-white); font-weight: 600; cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale input:checked + label { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.scale input:focus-visible + label { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.scale input[aria-invalid="true"] + label { border-color: var(--c-error); }
.scale-ends { display: flex; justify-content: space-between; max-width: 296px; font-size: var(--fs-small); color: var(--fg-muted); }
.range-row { display: flex; align-items: center; gap: var(--s-4); }
.range-row input[type="range"] { flex: 1; max-width: 320px; accent-color: var(--c-ink); min-height: 44px; }
.range-row output { font-family: var(--font-mono); font-size: 1rem; min-width: 2ch; }
.form-column { max-width: 760px; }
.form-column > .form-status, .form-column > .error-summary { margin-bottom: var(--s-5); }
.form-column > .form-status:empty { margin: 0; }
