/* High Contrast Bold — a wayfinding sign system for antjanus.com
   Two primaries only: ink and signal yellow. Every surface is either
   fully light or fully dark; nothing sits at mid-grey. */

:root {
  /* primitives */
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffd400;
  --slate: #364f6a;
  --grey-900: #141414;
  --grey-800: #1f1f1f;
  --grey-300: #cfcfcf;
  --grey-700: #3a3a3a;
  --grey-100: #f2f2f2;

  /* semantic (light / "day") */
  --ground: var(--white);
  --ink: var(--black);
  --muted: var(--grey-700);
  --line: var(--black);
  --surface: var(--grey-100);
  --sign: var(--yellow);
  --on-sign: var(--black);
  --band: var(--black);
  --on-band: var(--white);
  --band-accent: var(--yellow);
  --hero: var(--yellow);
  --on-hero: var(--black);
  --info: var(--slate);
  --on-info: var(--white);
  --code-bg: var(--black);
  --code-ink: var(--white);

  --f-display: "Archivo", "Arial Black", Impact, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-cap: 0.875rem;
  --fs-small: 1rem;
  --fs-body: 1.125rem;
  --fs-lede: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 6vw, 7.5rem);
  --fs-mega: clamp(3rem, 0.8rem + 7.4vw, 8.5rem);

  --rule: 4px;
  --rule-thick: 10px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1440px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--black);
    --ink: var(--white);
    --muted: var(--grey-300);
    --line: var(--white);
    --surface: var(--grey-900);
    --band: var(--yellow);
    --on-band: var(--black);
    --band-accent: var(--black);
    --hero: var(--black);
    --on-hero: var(--yellow);
    --code-bg: var(--grey-900);
  }
}
:root[data-theme="dark"] {
  --ground: var(--black);
  --ink: var(--white);
  --muted: var(--grey-300);
  --line: var(--white);
  --surface: var(--grey-900);
  --band: var(--yellow);
  --on-band: var(--black);
  --band-accent: var(--black);
  --hero: var(--black);
  --on-hero: var(--yellow);
  --code-bg: var(--grey-900);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--f-mono); }

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 10px var(--yellow);
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--black); padding: 0.75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

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

/* ---------- labels ---------- */
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* route bullet: the letter code every collection carries */
.code {
  display: inline-grid; place-items: center;
  min-width: 2.75rem; height: 2.75rem; padding: 0 0.4rem;
  background: var(--ink); color: var(--ground);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.05rem;
  border-radius: var(--radius); letter-spacing: 0;
  flex-shrink: 0;
}
.code.lg { min-width: 4rem; height: 4rem; font-size: 1.5rem; }
.code.sign { background: var(--yellow); color: var(--black); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: var(--rule) solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand svg { width: 3rem; height: 3rem; flex-shrink: 0; }
.brand-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-mono); font-stretch: 100%; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; margin-top: 0.3rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 0.85rem;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.0625rem;
  text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { background: var(--yellow); color: var(--black); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.nav a[aria-current="page"]::after { content: "●"; font-size: 0.6rem; color: var(--yellow); }

.tools { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 3px solid var(--line); border-radius: var(--radius);
  background: var(--ground); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }

.search { display: flex; }
.search input {
  width: 9.5rem; height: 2.75rem; padding: 0 0.75rem;
  border: 3px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--ground); color: var(--ink); font: inherit; font-size: 1rem;
}
.search input::placeholder { color: var(--muted); }
.search button {
  height: 2.75rem; padding: 0 0.8rem; border: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink); color: var(--ground); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.search button:hover { background: var(--yellow); color: var(--black); }

@media (max-width: 1180px) { .search { display: none; } }
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: var(--rule) solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.75rem; min-height: 3.5rem; border-bottom: 2px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .tools { margin-left: auto; }
  .brand-word small { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.6rem 1.35rem;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.125rem;
  text-decoration: none; border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--ground); cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}
.btn:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.btn:active { transform: translateY(2px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.btn.yellow { background: var(--yellow); color: var(--black); border-color: var(--black); }
.btn.yellow:hover { background: var(--black); color: var(--yellow); }
.arrow { font-family: var(--f-body); font-weight: 700; }

.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.text-link:hover { background: var(--yellow); color: var(--black); }

/* ---------- section band: the gate sign ---------- */
.band {
  background: var(--band); color: var(--on-band);
  margin-top: clamp(3rem, 6vw, 6rem);
}
.band-inner { display: flex; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.band .code { background: var(--band-accent); color: var(--band); }
.band h2 { font-size: var(--fs-h2); }
.band .band-sub { font-size: var(--fs-body); margin: 0.2rem 0 0; }
.band .band-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1rem; border: 3px solid currentColor; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%; text-decoration: none;
}
.band .band-link:hover { background: var(--on-band); color: var(--band); }
.section-body { padding-top: 2rem; }

/* ---------- hazard stripe ---------- */
.hazard {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--black) 18px 36px);
  border-top: 3px solid var(--black); border-bottom: 3px solid var(--black);
}

/* ---------- home hero ---------- */
.hero { background: var(--hero); color: var(--on-hero); border-bottom: var(--rule-thick) solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--gutter); align-items: stretch; padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 4.5rem); }
.hero h1 { font-size: var(--fs-mega); font-stretch: 100%; line-height: 0.92; letter-spacing: -0.04em; }
.hero .lede { font-size: var(--fs-lede); max-width: 36ch; margin-top: 1.75rem; font-weight: 400; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.hero .btn.ghost { color: var(--on-hero); }
.hero .tertiary { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; padding: 0.75rem 0.25rem; }
.hero .tertiary:hover { text-decoration-thickness: 4px; }

.duotone {
  position: relative; background: var(--yellow); overflow: hidden;
  border: var(--rule) solid var(--black); border-radius: var(--radius);
}
.duotone img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(1.05);
  mix-blend-mode: multiply;
}
.duotone .plate {
  position: absolute; left: 0; bottom: 0;
  background: var(--black); color: var(--yellow);
  padding: 0.55rem 0.9rem; font-family: var(--f-mono); font-weight: 700; font-size: var(--fs-cap);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero .duotone { min-height: 28rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule) solid currentColor; margin-top: 2.5rem; }
.stat { padding: 1rem 1rem 0 0; }
.stat + .stat { border-left: var(--rule) solid currentColor; padding-left: 1rem; }
.stat b { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(1.6rem, 0.9rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
@media (max-width: 520px) { .stat b { font-stretch: 100%; } .stat span { letter-spacing: 0.04em; } }
.stat span { display: block; margin-top: 0.4rem; font-family: var(--f-mono); font-weight: 700; font-size: var(--fs-cap); letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .duotone { min-height: 20rem; max-height: 26rem; }
}

/* ---------- page title (interior pages) ---------- */
.page-head { border-bottom: var(--rule-thick) solid var(--line); padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-head .eyebrow { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.035em; }
.page-head .lede { font-size: var(--fs-lede); max-width: 44ch; margin: 1.5rem 0 0; }
.page-head.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; }
.page-head.split .duotone { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .page-head.split { grid-template-columns: 1fr; } }

/* ---------- departure board list ---------- */
.board { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--line); }
.board li { border-bottom: 2px solid var(--line); }
.board a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center;
  padding: 1.1rem 0.75rem; text-decoration: none;
  transition: background-color 120ms ease;
}
.board a:hover { background: var(--yellow); color: var(--black); }
.board a:hover .code { background: var(--black); color: var(--yellow); }
.board a:hover .muted { color: var(--black); }
.board h3 { font-size: var(--fs-h3); font-stretch: 105%; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.board p { margin: 0.35rem 0 0; color: var(--muted); max-width: 70ch; }
.board time { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.board .go { font-size: 1.75rem; font-weight: 700; line-height: 1; }
@media (max-width: 700px) {
  .board a { grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 0.9rem; padding: 1rem 0.25rem; }
  .board time { grid-column: 2; grid-row: 2; }
  .board .go { display: none; }
  .board .code { grid-row: span 2; align-self: start; }
}

/* ---------- sign cards (image + title) ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  border: var(--rule) solid var(--line); border-radius: var(--radius);
  background: var(--ground); text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); }
.card .duotone { border: 0; border-bottom: var(--rule) solid var(--line); border-radius: 0; aspect-ratio: 16 / 9; }
.card .fallback-code {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 4rem; color: var(--black);
}
.card .duotone img { position: relative; }
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { font-size: var(--fs-h3); font-stretch: 105%; font-weight: 800; line-height: 1.12; }
.card p { margin: 0; color: var(--muted); }
.card .meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.card .foot { margin-top: auto; padding-top: 0.5rem; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; }

/* plain sign tile */
.tile {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.5rem; border-radius: var(--radius); text-decoration: none;
  background: var(--yellow); color: var(--black); border: var(--rule) solid var(--black);
  min-height: 15rem;
  transition: transform 150ms ease;
}
.tile:hover { background: var(--black); color: var(--yellow); border-color: var(--yellow); }
.tile:hover .code { background: var(--yellow); color: var(--black); }
.tile .code { background: var(--black); color: var(--yellow); align-self: flex-start; }
.tile h3 { font-size: 1.6rem; line-height: 1.08; }
.tile p { margin: 0; }
.tile .foot { margin-top: auto; font-family: var(--f-mono); font-weight: 700; font-size: var(--fs-cap); letter-spacing: 0.08em; text-transform: uppercase; }
.tile.dark { background: var(--black); color: var(--white); border-color: var(--line); }
.tile.dark .code { background: var(--yellow); color: var(--black); }
.tile.dark:hover { background: var(--yellow); color: var(--black); }
.tile.info { background: var(--info); color: var(--on-info); border-color: var(--line); }
.tile.info .code { background: var(--white); color: var(--slate); }
.tile.info:hover { background: var(--yellow); color: var(--black); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0.1rem 0.6rem;
  border: 2px solid currentColor; border-radius: 4px;
  font-family: var(--f-mono); font-size: 0.875rem; font-weight: 700; text-decoration: none;
}
a.chip:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.badge {
  display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 0.55rem;
  font-family: var(--f-mono); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--ground); border-radius: 4px;
}
.badge.y { background: var(--yellow); color: var(--black); }
.badge.outline { background: transparent; color: inherit; border: 2px solid currentColor; }

/* ---------- home: bottom row ---------- */
.panel { border: var(--rule) solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 2px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: 0.5rem 0.25rem; text-decoration: none; font-weight: 700; }
.link-list a:hover { background: var(--yellow); color: var(--black); }
.link-list small { font-family: var(--f-mono); font-size: 0.875rem; font-weight: 400; }
.cta-panel { background: var(--black); color: var(--white); border: var(--rule) solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.cta-panel .hazard { border-radius: 2px 2px 0 0; }
.cta-panel .inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.cta-panel h3 { color: var(--yellow); font-size: 2rem; }
.cta-panel .btn { align-self: flex-start; margin-top: auto; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(4rem, 8vw, 8rem); background: var(--black); color: var(--white); }
.footer-mega { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 1rem + 10vw, 12rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--yellow); padding-top: 3rem; overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3rem 0; border-bottom: 3px solid var(--white); }
.footer-grid h2 { font-size: 1.05rem; font-family: var(--f-mono); font-stretch: 100%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-flex; min-height: 2.5rem; align-items: center; text-decoration: none; font-weight: 700; }
.footer-grid li a:hover, .footer-grid li a:focus-visible { background: var(--yellow); color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 2rem; font-family: var(--f-mono); font-size: 0.9375rem; }
.site-footer :focus-visible { outline-color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* newsletter form */
.news-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.news-form label { flex-basis: 100%; }
.news-form input[type="email"] {
  flex: 1 1 12rem; min-height: 3.25rem; padding: 0 0.9rem;
  border: 3px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font: inherit;
}
.news-form input::placeholder { color: inherit; opacity: 0.75; }
.news-form .status { flex-basis: 100%; margin: 0; font-weight: 700; min-height: 1.6em; }
.news-form .status.ok::before { content: "✓ "; }
.news-form .status.err::before { content: "! "; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- jump nav (projects/writing) ---------- */
.jump { position: sticky; top: 4.75rem; z-index: 40; background: var(--ground); border-bottom: 3px solid var(--line); }
.jump-inner { display: flex; gap: 0.5rem; overflow-x: auto; padding-top: 0.6rem; padding-bottom: 0.6rem; align-items: center; scrollbar-width: thin; }
.jump-inner .label { flex-shrink: 0; margin-right: 0.5rem; }
.jump a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem;
  border: 3px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; white-space: nowrap;
}
.jump a:hover, .jump a.active { background: var(--yellow); color: var(--black); border-color: var(--black); }

/* ---------- projects ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .duotone { border: 0; border-right: var(--rule) solid var(--line); border-radius: 0; min-height: 22rem; }
.feature-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.feature-body h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--line); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mini-stats div { background: var(--ground); padding: 0.75rem; min-width: 0; }
.mini-stats .label { letter-spacing: 0.04em; overflow-wrap: anywhere; }
.mini-stats b { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 2.25rem; line-height: 1; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .duotone { border-right: 0; border-bottom: var(--rule) solid var(--line); min-height: 14rem; } }

.oss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-top: var(--rule) solid var(--line); padding: 2rem 0; gap: var(--gutter); align-items: center; }
.oss:nth-child(even) .duotone { order: 2; }
.oss .duotone { aspect-ratio: 16 / 10; }
.oss h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); margin: 0.5rem 0 0.75rem; }
.oss .stars { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem; }
@media (max-width: 800px) { .oss { grid-template-columns: 1fr; } .oss:nth-child(even) .duotone { order: 0; } }

.table-wrap { overflow-x: auto; border: var(--rule) solid var(--line); border-radius: var(--radius); }
table.sign-table { width: 100%; border-collapse: collapse; min-width: 40rem; }
.sign-table th { text-align: left; background: var(--ink); color: var(--ground); font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.75rem 1rem; }
.sign-table td { padding: 1rem; border-top: 2px solid var(--line); vertical-align: top; }
.sign-table td.num { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem; text-align: right; white-space: nowrap; }
.sign-table th.num { text-align: right; }
.sign-table a { font-weight: 800; font-family: var(--f-display); font-stretch: 105%; font-size: 1.2rem; text-decoration: none; }
.sign-table a:hover { background: var(--yellow); color: var(--black); }

/* ---------- about ---------- */
.big-quote { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 32ch; }
.career-bar { display: flex; border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.career-bar span { flex: var(--w) 1 0; padding: 0.75rem 0.6rem; border-right: 3px solid var(--line); font-weight: 700; font-size: 1rem; line-height: 1.25; min-width: 0; }
.career-bar span:last-child { border-right: 0; }
.career-bar span small { display: block; font-family: var(--f-mono); font-size: 0.875rem; font-weight: 400; }
.career-bar span.now { background: var(--yellow); color: var(--black); }
@media (max-width: 900px) { .career-bar { flex-direction: column; } .career-bar span { border-right: 0; border-bottom: 3px solid var(--line); } .career-bar span:last-child { border-bottom: 0; } }

details.expander > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.expander > summary::-webkit-details-marker { display: none; }
details.expander[open] > summary .when-closed, details.expander:not([open]) > summary .when-open { display: none; }

.timeline { list-style: none; margin: 2rem 0 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--gutter); padding: 1.75rem 0; border-top: var(--rule) solid var(--line); }
.timeline .period { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.timeline h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.timeline ul { padding-left: 1.25rem; }
.timeline ul li { margin-bottom: 0.5rem; }
@media (max-width: 700px) { .timeline > li { grid-template-columns: 1fr; gap: 0.5rem; } }

.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; padding: 1.25rem 0; border-top: 3px solid currentColor; font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: clamp(1.35rem, 1rem + 1.3vw, 2.25rem); line-height: 1.15; }
.principles li::before { content: counter(p); display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--yellow); color: var(--black); border-radius: var(--radius); font-stretch: 125%; font-weight: 900; font-size: 1.75rem; }
.dark-block { background: var(--black); color: var(--white); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
:root[data-theme="dark"] .dark-block { border-top: var(--rule) solid var(--white); border-bottom: var(--rule) solid var(--white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark-block { border-top: var(--rule) solid var(--white); border-bottom: var(--rule) solid var(--white); } }
.dark-block h2 { color: var(--yellow); font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.dark-block .text-link:hover { color: var(--black); }
.dark-block :focus-visible { outline-color: var(--white); }

.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--white); border: 3px solid var(--white); border-radius: var(--radius); overflow: hidden; }
.cap-grid > div { background: var(--black); padding: 1.5rem; }
.cap-grid h3 { color: var(--yellow); font-size: 1.6rem; margin-bottom: 0.5rem; }
.cap-grid .chips { margin-top: 1rem; }
@media (max-width: 800px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 8px; width: 100%; z-index: 60; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--yellow); border-right: 3px solid var(--black); }
.progress-pct { position: fixed; right: 0.75rem; top: 0.75rem; z-index: 61; background: var(--black); color: var(--yellow); font-family: var(--f-mono); font-weight: 700; font-size: 0.875rem; padding: 0.25rem 0.5rem; border-radius: 4px; opacity: 0; transition: opacity 150ms; }
.progress-pct.show { opacity: 1; }

.article-hero { background: var(--hero); color: var(--on-hero); border-bottom: var(--rule-thick) solid var(--line); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gutter); padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.crumbs a { font-weight: 700; }
.article-hero h1 { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6.5rem); line-height: 0.95; letter-spacing: -0.035em; }
.article-hero .lede { font-size: var(--fs-lede); margin: 1.5rem 0 0; max-width: 40ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1rem; }
.article-meta a { text-decoration: underline; text-decoration-thickness: 2px; }
.article-hero .duotone { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .article-hero-grid { grid-template-columns: 1fr; } .article-hero .duotone { aspect-ratio: 16 / 9; } }

.article-layout { display: grid; grid-template-columns: 16rem minmax(0, 46rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-top: 3rem; }
.toc { position: sticky; top: 6.5rem; align-self: start; max-height: calc(100vh - 8rem); overflow: auto; }
.toc h2 { font-family: var(--f-mono); font-stretch: 100%; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ink); color: var(--ground); padding: 0.5rem 0.75rem; border-radius: 4px 4px 0 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border: 3px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc li + li { border-top: 2px solid var(--line); }
.toc a { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.25rem; padding: 0.6rem 0.75rem; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.875rem; padding-top: 0.1rem; }
.toc a:hover { background: var(--surface); }
.toc a[aria-current="true"] { background: var(--yellow); color: var(--black); }
.toc-mobile { display: none; margin-bottom: 2rem; border: 3px solid var(--line); border-radius: var(--radius); }
.toc-mobile summary { cursor: pointer; padding: 0.9rem 1rem; font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; min-height: 3rem; }
.toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.5rem; }
.toc-mobile li { padding: 0.35rem 0; }
.toc-mobile a { font-weight: 700; }
.aside-col { align-self: start; position: sticky; top: 6.5rem; }
@media (max-width: 1250px) {
  .article-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .aside-col { display: none; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}

.prose { font-size: 1.25rem; line-height: 1.65; }
.prose > * { max-width: 40rem; }
.prose h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); margin: 3.5rem 0 1.25rem; padding-top: 1rem; border-top: var(--rule-thick) solid var(--line); scroll-margin-top: 6rem; }
.prose h2 .n { display: block; font-family: var(--f-mono); font-stretch: 100%; font-size: 1rem; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 0.5rem; }
.prose p { margin: 0 0 1.25em; }
.prose a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; text-decoration-color: var(--yellow); }
.prose a:hover { background: var(--yellow); color: var(--black); }
:root:not([data-theme="dark"]) .prose a { text-decoration-color: currentColor; }
.prose ol, .prose ul { padding-left: 1.5rem; margin: 0 0 1.5em; }
.prose li { margin-bottom: 0.45em; }
.prose ol li::marker { font-family: var(--f-display); font-weight: 900; }
.prose :not(pre) > code { background: var(--surface); border: 2px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.9em; }
.prose em { font-style: italic; }

.callout { margin: 2rem 0; border: var(--rule) solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; overflow: hidden; }
.callout .tag { display: grid; place-items: start center; padding: 1rem 0.8rem; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem; line-height: 1; }
.callout .text { padding: 1rem 1.25rem; font-size: 1.125rem; }
.callout .text p:last-child { margin-bottom: 0; }
.callout .text strong:first-child { display: block; font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.35rem; }
.callout.why .tag { background: var(--yellow); color: var(--black); border-right: var(--rule) solid var(--line); }
.callout.question { background: var(--ink); color: var(--ground); }
.callout.question .tag { background: var(--ground); color: var(--ink); border-right: var(--rule) solid var(--line); }
.callout.question a { color: inherit; }
.callout.note .tag { background: var(--info); color: var(--on-info); border-right: var(--rule) solid var(--line); }
.callout.skill { background: var(--yellow); color: var(--black); border-color: var(--black); }
.callout.skill .tag { background: var(--black); color: var(--yellow); }
.callout.skill a { text-decoration-color: var(--black); }
.callout.skill a:hover { background: var(--black); color: var(--yellow); }
.callout.skill :not(pre) > code { background: var(--white); border-color: var(--black); color: var(--black); }

.code-block { margin: 2rem 0; max-width: 46rem !important; border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--code-bg); color: var(--code-ink); }
.code-head { display: flex; justify-content: space-between; align-items: center; background: var(--yellow); color: var(--black); border-bottom: var(--rule) solid var(--black); padding: 0 0 0 1rem; }
.code-head .label { color: var(--black); }
.copy-btn { min-height: 2.75rem; padding: 0 1rem; background: var(--black); color: var(--yellow); border: 0; font-family: var(--f-mono); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; cursor: pointer; }
.copy-btn:hover { background: var(--white); color: var(--black); }
.copy-btn.done { background: var(--white); color: var(--black); }
.code-block pre { margin: 0; padding: 1.25rem; overflow-x: auto; font-size: 1rem; line-height: 1.6; tab-size: 2; }
.code-block .c { color: #ffe766; font-style: italic; }
.code-block .k { color: #ffd400; font-weight: 700; }
.code-block .s { color: #b8e0ff; }

.article-end { max-width: 46rem; margin-top: 3rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.series-note { display: flex; gap: 1rem; align-items: center; border: 3px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 2rem; }

.news-block { background: var(--yellow); color: var(--black); border: var(--rule) solid var(--black); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.news-block h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); margin-bottom: 0.75rem; }
.news-block .btn { background: var(--black); color: var(--yellow); border-color: var(--black); }
.news-block .btn:hover { background: var(--white); color: var(--black); }
.news-block input[type="email"] { background: var(--white); color: var(--black); border-color: var(--black); }
.news-block :focus-visible { box-shadow: 0 0 0 10px var(--white); }

.story-notice { border: var(--rule) solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; overflow: hidden; }
.story-notice .tag { background: var(--yellow); color: var(--black); padding: 1rem; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.1rem; border-right: var(--rule) solid var(--line); display: grid; place-items: center; }
.story-notice p { margin: 0; padding: 1rem 1.25rem; }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--line); border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.three-ways > div { background: var(--ground); padding: 1.5rem; }
.three-ways h3 { font-size: 1.75rem; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.three-ways p { margin: 0; }
@media (max-width: 800px) { .three-ways { grid-template-columns: 1fr; } }

.filters { display: grid; gap: 1rem; margin-top: 2.5rem; }
.pattern-search { display: flex; border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pattern-search label { display: grid; place-items: center; padding: 0 1rem; background: var(--ink); color: var(--ground); }
.pattern-search input { flex: 1; min-width: 0; min-height: 3.75rem; padding: 0 1rem; border: 0; background: var(--ground); color: var(--ink); font: inherit; font-size: 1.125rem; }
.pattern-search input::placeholder { color: var(--muted); }
.pattern-search input:focus-visible { outline-offset: -6px; box-shadow: none; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { min-height: 2.75rem; padding: 0 1rem; border: 3px solid var(--line); border-radius: var(--radius); background: var(--ground); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.pill:hover { background: var(--surface); }
.pill[aria-pressed="true"] { background: var(--yellow); color: var(--black); border-color: var(--black); }
.pill[aria-pressed="true"]::before { content: "✓ "; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; border-top: 3px solid var(--line); padding-top: 1rem; }
.result-row output { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: 1.5rem; }
.result-row select { min-height: 2.75rem; padding: 0 0.75rem; border: 3px solid var(--line); border-radius: var(--radius); background: var(--ground); color: var(--ink); font: inherit; font-weight: 700; }
.clear-btn { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; cursor: pointer; min-height: 2.75rem; padding: 0 0.5rem; }
.clear-btn:hover { background: var(--yellow); color: var(--black); }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--gutter); margin-top: 2rem; }
.p-card { position: relative; display: flex; flex-direction: column; border: var(--rule) solid var(--line); border-radius: var(--radius); background: var(--ground); transition: transform 150ms ease, box-shadow 150ms ease; }
.p-card:hover, .p-card:focus-within { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); }
.p-thumb { height: 10rem; display: grid; place-items: center; border-bottom: var(--rule) solid var(--line); background: var(--yellow); color: var(--black); position: relative; overflow: hidden; }
.p-thumb .num { position: absolute; top: 0.6rem; left: 0.75rem; font-family: var(--f-mono); font-weight: 700; font-size: 0.875rem; }
.p-thumb svg { width: 70%; height: 70%; }
.p-card[data-cat="Layout"] .p-thumb { background: var(--black); color: var(--yellow); }
.p-card[data-cat="Interaction"] .p-thumb { background: var(--white); color: var(--black); }
.p-card[data-cat="Forms"] .p-thumb { background: var(--slate); color: var(--white); }
.p-card[data-cat="Color"] .p-thumb { background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px); }
.p-card[data-cat="Color"] .p-thumb svg { background: var(--white); border: 3px solid var(--black); border-radius: 6px; padding: 6px; width: 50%; }
:root[data-theme="dark"] .p-card[data-cat="Layout"] .p-thumb { border-bottom-color: var(--white); }
.p-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.p-body .top { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.p-body h2 { font-size: 1.5rem; font-stretch: 105%; font-weight: 800; line-height: 1.12; }
.p-body h2 a { text-decoration: none; }
.p-body h2 a::after { content: ""; position: absolute; inset: 0; }
.p-body p { margin: 0; color: var(--muted); }
.p-body .good { color: var(--ink); font-size: 1rem; }
.p-body .chips { margin-top: auto; padding-top: 0.5rem; }
.empty { display: none; text-align: left; padding: 3rem 0; border-top: var(--rule) solid var(--line); }
.empty.show { display: block; }
.empty h2 { font-size: var(--fs-h2); margin-bottom: 0.75rem; }

/* pattern detail */
.detail { max-width: 68rem; }
.use-cases { columns: 2; column-gap: 2rem; padding-left: 1.25rem; margin: 1rem 0 0; }
.use-cases li { margin-bottom: 0.4rem; break-inside: avoid; }
@media (max-width: 600px) { .use-cases { columns: 1; } }
.panes { border: var(--rule) solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; background: var(--ink); color: var(--ground); gap: 0.5rem; padding: 0.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tabs button { min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--ground); border-radius: 4px; background: transparent; color: var(--ground); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button:hover { background: var(--surface); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.pane-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pane-actions button { min-height: 2.75rem; padding: 0 0.9rem; border: 2px solid var(--yellow); border-radius: 4px; background: transparent; color: var(--yellow); font: inherit; font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .pane-actions button { color: var(--black); border-color: var(--black); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pane-actions button { color: var(--black); border-color: var(--black); } }
.pane-actions button:hover, .pane-actions button.done { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.pane-bar :focus-visible { outline-color: var(--yellow); box-shadow: none; }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; overflow-x: auto; font-size: 1rem; line-height: 1.6; background: var(--code-bg); color: var(--code-ink); padding: 1.25rem; border-radius: 4px; }
.pane .note { border-left: var(--rule-thick) solid var(--yellow); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 1.25rem; }
.prompt-text { max-width: 44rem; font-size: 1.125rem; }

/* the stage — the pattern itself, rendered with the pattern tokens */
.stage { --radius-s: 10px; background: var(--surface); border: 3px solid var(--line); border-radius: 4px; padding: clamp(1rem, 3vw, 2rem); }
.stage .cap { font-size: 1rem; margin: 0 0 0.75rem; font-weight: 700; }
.stage .cap.mt-2 { margin-top: 2rem; }
.hss-strip { display: grid; gap: 3px; background: var(--line); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.hss-strip { container-type: inline-size; }
@media (min-width: 30rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--ground); color: var(--ink); padding: 1rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; text-align: left; border: 0; font: inherit; }
.hss-tile .k { font-family: var(--f-mono); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; overflow-wrap: anywhere; }
.hss-tile .v { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hss-tile .v.none { color: var(--muted); }
.hss-tile .u { color: var(--muted); font-size: 1rem; }
button.hss-tile { cursor: pointer; min-height: 5.5rem; }
button.hss-tile:hover { background: var(--surface); }
button.hss-tile[aria-pressed="true"] { background: var(--yellow); color: var(--black); }
button.hss-tile[aria-pressed="true"] .u { color: var(--black); }
button.hss-tile:focus-visible { outline-offset: -7px; box-shadow: none; }
.dl-list { list-style: none; margin: 1rem 0 0; padding: 0; border: 3px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-top: 2px solid var(--line); flex-wrap: wrap; }
.dl-list li:first-child { border-top: 0; }
.dl-list li[hidden] { display: none; }
.status-line { margin: 0.75rem 0 0; font-weight: 700; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.h-sub { font-size: 1.75rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.75rem; }
.stack > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .p-card:hover, .p-card:focus-within { transform: none; }
}
