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

/* Kidise kange: Familiar & clear. See docs/design.md for roles and provenance. */
:root {
  color-scheme: light;
  --paper: #f6eee1;
  --paper-raise: #ebe2d3;
  --ink: #151f2b;
  --muted: #465563;
  --faint: #526170;
  --hair: #6b7b86;
  --accent: #8a4825;
  --live: #246c48;
  --warn: #755300;
  --blocked: #9c392e;
  --action: #e7a46e;
  --action-ink: #1d2732;
  --action-border: #885035;
  --focus: #8a4825;
  --font-heading: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  --type-support: 1.125rem;
  --type-body: 1.25rem;
  --type-lead: clamp(1.3125rem, 2vw, 1.5rem);
  --type-page: clamp(3rem, 6.5vw, 5rem);
  --type-section: clamp(2.25rem, 4vw, 3.5rem);
  --type-subhead: clamp(1.75rem, 2.7vw, 2.25rem);
  --type-story: clamp(2rem, 3.4vw, 2.875rem);
  --type-figure: clamp(3.375rem, 5.8vw, 4.875rem);
  --layout-width: 80rem;
  --layout-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --layout-measure: 65ch;
  --space-section: clamp(4rem, 8vw, 6.25rem);
  --space-heading: clamp(1.5rem, 4vw, 2.5rem);
  --control-radius: 4px;
  --control-size: 2.75rem;
  --control-inset: 1rem;
  --scene-bg: #151f2b;
  --scene-ink: #f6eee1;
  --scene-muted: #bfcbd5;
  --scene-blue: #bdd9ff;
  --scene-copper: #e7a46e;
  --scene-focus: #f6d38c;
  --scene-line: #667b8d;
  --photo-credit-bg: #151f2be6;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151f2b;
  --paper-raise: #1e2c3b;
  --ink: #f6eee1;
  --muted: #bfcbd5;
  --faint: #b0c0cf;
  --hair: #667b8d;
  --accent: #e7a46e;
  --live: #9de0b7;
  --warn: #efc777;
  --blocked: #ffb7ad;
  --action: #e7a46e;
  --action-ink: #1d2732;
  --action-border: #e7a46e;
  --focus: #f6d38c;
}

[hidden] { display: none !important; }
html { scrollbar-color: var(--hair) var(--paper); }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); font-size: var(--type-body); line-height: 1.6; }
button { font: inherit; }
::selection { background: var(--action); color: var(--action-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--layout-width); margin: auto; padding: 24px var(--layout-gutter) 32px; }
.skip { position: absolute; left: 16px; top: -80px; padding: 12px; background: var(--paper); z-index: 2; }
.skip:focus { top: 8px; }
.topline, .toplinks { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.topline { padding: 8px 0 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-heading); font-size: 40px; font-weight: 900; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark::before { content: ''; width: 7px; height: 28px; background: var(--accent); }
h1, h2, h3, .hero-statement, .name { font-family: var(--font-heading); }
.toplinks a { display: inline-flex; align-items: center; min-height: var(--control-size); text-decoration: none; }
.toplinks a:hover, .toplinks a:focus-visible { text-decoration: underline; }
.primary-action, .theme-btn, .utility-button, .fbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: var(--control-size);
  padding: .4rem var(--control-inset);
  border: 1px solid var(--hair);
  border-radius: var(--control-radius);
  color: var(--ink);
  background: transparent;
  font-size: var(--type-support);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.primary-action { border-color: var(--action-border); background: var(--action); color: var(--action-ink); text-decoration: none; }
.primary-action:hover { color: var(--action-ink); text-decoration: underline; }
.theme-btn:hover, .utility-button:hover, .fbtn:not([aria-pressed='true']):hover { background: var(--paper-raise); }
.citation-status, .citation-fallback { font-size: var(--type-support); }
.citation-status:not(:empty), .citation-fallback { margin-top: 12px; }
.citation-fallback { display: block; }
.citation-fallback textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: var(--control-radius);
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.eyebrow, .section-no { color: var(--accent); font-size: 20px; font-weight: 600; }
h1 { font-size: var(--type-page); font-weight: 900; line-height: 1; margin: 20px 0 12px; }
strong, b { font-weight: 600; }
.section { scroll-margin-top: 24px; }
.section-heading { margin-bottom: var(--space-heading); }
.section-heading h2, .contact h2 { text-wrap: balance; }
.section-no { display: block; margin-bottom: 12px; }
h2 { font-size: var(--type-section); font-weight: 900; line-height: 1.04; }
h3 { font-size: var(--type-subhead); font-weight: 700; line-height: 1.15; }
#about { background: var(--paper-raise); border-radius: 24px; padding: 56px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about-grid p, .case-body p { margin-bottom: 18px; }
.margin-note { font-size: 18px; line-height: 1.5; color: var(--muted); }
.case { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding: 48px; margin-bottom: 24px; align-items: center; }
.case:nth-of-type(odd) { background: var(--paper-raise); border-radius: 24px; }
.case-title h3 { margin: 16px 0 24px; }
.case-title > a { font-weight: 600; }
.case-body p:last-child { margin-bottom: 0; }
.index-intro { max-width: var(--layout-measure); margin-bottom: 32px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.fbtn { font-weight: 400; }
.fbtn span { font-variant-numeric: tabular-nums; }
.fbtn[aria-pressed='true'] { background: var(--paper-raise); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.entry { border-bottom: 1px solid var(--hair); scroll-margin-top: 24px; }
.row { display: grid; grid-template-columns: 30px 225px minmax(0, 1fr) 9.5rem; align-items: baseline; gap: 18px; padding: 22px 16px; cursor: pointer; list-style: none; border-radius: var(--control-radius); }
.row::-webkit-details-marker { display: none; }
.row:hover, .entry[open] .row { background: var(--paper-raise); }
.no { font-size: 18px; color: var(--muted); }
.name { font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.name:after { content: ' +'; color: var(--accent); }
.entry[open] .name:after { content: ' −'; }
.desc { font-size: 20px; color: var(--muted); }
.status { font-size: 18px; text-align: right; color: var(--muted); }
.status-date { display: block; color: var(--muted); }
.st-active { color: var(--live); }
.st-design { color: var(--warn); }
.st-blocked { color: var(--blocked); }
.detail { max-width: 900px; padding: 12px 24px 28px 64px; }
.detail p { color: var(--muted); }
.detail .tech { font-size: 18px; margin-top: 16px; }
.permalink { display: inline-block; font-size: 18px; margin-top: 16px; font-weight: 600; }
.contact { background: var(--paper-raise); border-radius: 24px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding: 56px; margin: 80px 0 48px; }
.contact h2 { margin: 16px 0 24px; }
.contact a { display: inline-block; margin-top: 24px; font-size: 26px; font-weight: 600; }
.contact a[href^='https'] { font-size: 18px !important; }
.footer { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 18px; }
@media (max-width: 900px) {
  .wrap { padding: 24px; }
  .toplinks { gap: 20px; }
  .case { gap: 32px; padding: 32px; }
  .row { grid-template-columns: 24px 180px minmax(0, 1fr) 9rem; gap: 12px; }
  #about, .contact { padding: 36px; }
}
@media (max-width: 640px) {
  .wide-break { display: none; }
  .wrap { padding: 20px; }
  .topline { flex-direction: column; align-items: flex-start; gap: 24px; }
  .wordmark { font-size: 34px; }
  .toplinks { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px 18px; font-size: 18px; }
  #about { padding: 32px 24px; }
  .about-grid, .case, .contact { grid-template-columns: 1fr; gap: 24px; }
  .case { padding: 28px 24px; margin-bottom: 8px; }
  .row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 43%); gap: 6px 10px; padding: 18px 6px; }
  .desc { grid-column: 2 / 4; grid-row: 2; }
  .status { grid-column: 3; grid-row: 1; }
  .detail { padding: 12px 6px 24px 38px; }
  .contact { padding: 32px 24px; margin-top: 56px; }
  .footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.project-status-note { margin-top: 18px; }
.contact-note { margin-top: 20px; }
