/* arieldiaz.com v1 — "night studio" design system.
   Single stylesheet, generated nowhere: this IS the token sheet.
   Source of truth for values: BUILD-SPEC.md § Design tokens.
   Dark is the design target; light pairs via prefers-color-scheme. */

/* ---------- tokens ---------- */

:root {
  color-scheme: dark;

  /* night studio — dark (default design target) */
  --bg: #16110e;
  --surface: #1f1813;
  --text: #f3ece4;
  --muted: #a99c8f;
  --line: #342a23;
  --accent: #f2854c;
  --tweet-url: #7ab4e3;
  --chip: #2a2018;
  --featured: #241a12;
  --strong: #ffffff; /* titles sitting on photos/rows — boards' "--top" */
  --hero-fade: linear-gradient(180deg, rgba(22, 17, 14, 0) 55%, rgba(22, 17, 14, 0.62) 100%);

  /* brand anchors (DESIGN.md, sampled from the portrait) */
  --brand-ink: #0a0706;
  --brand-warm: #e4651e;
  --brand-cream: #fcefe1;

  /* type — one sans and one serif across the entire public site */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "EB Garamond", Garamond, Georgia, serif;
  --font-display: var(--font-sans);
  --font-text: var(--font-sans);

  /* type scale, mobile first (spec: mobile / desktop) */
  --size-masthead: 37px;      /* 88px desktop */
  --size-page-title: 30px;    /* 56px desktop */
  --size-article-title: 27px; /* 52px desktop */
  --size-stream-title: 15px;  /* 17px desktop */
  --size-body-ui: 15px;
  --size-body-reading: 16px;  /* 17px desktop */
  --leading-reading: 1.65;    /* 1.65–1.7 */
  --size-caps: 11px;          /* 12px desktop */

  /* shape */
  --radius-media: 12px;       /* 10–14px band; media + chips only */
  --radius-chip: 10px;
  --site-width: 1080px;

  /* official platform colors (spec §Design tokens) */
  --platform-youtube: #FF0000;
  --platform-x: var(--text);          /* ink/paper — flips with mode */
  --platform-instagram: #E1306C;
  --platform-substack: #FF6719;
  --platform-linkedin: #0A66C2;
  --platform-github: var(--text);     /* ink — flips with mode */
  --platform-email: var(--accent);
}

/* The sole history-page visual language. The detailed HumanwareOS timeline
   and generated route histories both consume change-history.css; these aliases
   keep it on the exact same site tokens and shared chrome as every other page. */
.history-page[data-scope-history] {
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-border: var(--line);
  --color-link: var(--text);
  --color-accent: var(--accent);
  --font-sans: var(--font-text);
}

.history-page .commit-ref {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.72rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    /* ground sampled from the lit side of the shirt in the portrait —
       near-white with only a trace of warmth, not cream */
    --bg: #fdfaf8;
    --surface: #ffffff;
    --text: #241a12;
    --muted: #7d6a5b;
    --line: #eae1da;
    --accent: #bd470c;
    --tweet-url: #28679a;
    --chip: #f6efe9;
    --featured: #f7f2ed;
    --strong: #241a12;
    --hero-fade: linear-gradient(180deg, rgba(253, 250, 248, 0) 58%, rgba(253, 250, 248, 0.72) 100%);
  }
}

/* Forced modes exist only for the public component catalogue. They repeat the
   semantic mappings—not component styles—so both modes remain auditable at
   the same time regardless of the visitor's OS preference. */
.style-mode-light {
  color-scheme: light;
  --bg: #fdfaf8;
  --surface: #ffffff;
  --text: #241a12;
  --muted: #7d6a5b;
  --line: #eae1da;
  --accent: #bd470c;
  --tweet-url: #28679a;
  --chip: #f6efe9;
  --featured: #f7f2ed;
  --strong: #241a12;
  --hero-fade: linear-gradient(180deg, rgba(253, 250, 248, 0) 58%, rgba(253, 250, 248, 0.72) 100%);
}

.style-mode-dark {
  color-scheme: dark;
  --bg: #16110e;
  --surface: #1f1813;
  --text: #f3ece4;
  --muted: #a99c8f;
  --line: #342a23;
  --accent: #f2854c;
  --tweet-url: #7ab4e3;
  --chip: #2a2018;
  --featured: #241a12;
  --strong: #ffffff;
  --hero-fade: linear-gradient(180deg, rgba(22, 17, 14, 0) 55%, rgba(22, 17, 14, 0.62) 100%);
}

@media (min-width: 720px) {
  :root {
    --size-masthead: 88px;
    --size-page-title: 56px;
    --size-article-title: 52px;
    --size-stream-title: 17px;
    --size-body-reading: 17px;
    --leading-reading: 1.7;
    --size-caps: 12px;
  }
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--size-body-ui);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* column layout so the footer anchors to the bottom of the viewport on short
   pages instead of floating under the last section */
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .sitefoot {
  margin-top: auto;
}

/* One link style for the whole site. Inherit-plus-hairline read as body text
   rather than as links, so links carry the accent and a visible underline. */
a {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Navigation and tiles are structure, not prose. They opt out of the link
   color here, in one rule, instead of each component redeclaring it. */
.toplinks a,
.menu-links a,
.brandrow,
.glyph,
.row,
.list-row,
.art-project,
.foot-heading a,
[data-footer-history] {
  color: var(--text);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-media);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

/* ---------- layout primitives ---------- */

/* width: 100% is load-bearing — body is a column flex container, and a flex
   item with auto side margins does not stretch to the cross size on its own */
.container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed visual pages use the same outer edge as the canonical site chrome. */
body main.wide {
  max-width: var(--site-width);
}

.measure {
  max-width: 660px; /* reading measure (spec §Essays) */
}

/* Public artifacts inherit the site system. These aliases let artifact-local
   diagrams and layouts use semantic review tokens without importing the
   private Ariel OS artifact shell or overriding public chrome. */
.public-artifact {
  --artifact-canvas: var(--bg);
  --artifact-surface: var(--bg);
  --artifact-surface-raised: var(--surface);
  --artifact-text: var(--text);
  --artifact-muted: var(--muted);
  --artifact-border: var(--line);
  --artifact-focus: var(--accent);
  --artifact-font: var(--font-text);
  color: var(--text);
  font-family: var(--font-text);
}

.public-artifact.page,
.public-artifact.artifact-page {
  width: min(100% - 40px, var(--site-width));
  margin-inline: auto;
  padding-block: 40px 72px;
}

.public-artifact h1,
.public-artifact h2,
.public-artifact h3 {
  font-family: var(--font-display);
}

/* ---------- type roles ---------- */

.masthead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-masthead);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-page-title);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--size-article-title);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.stream-title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--size-stream-title);
  line-height: 1.35;
  margin: 0;
}

.reading {
  font-size: var(--size-body-reading);
  line-height: var(--leading-reading);
}

.caps {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--size-caps);
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  color: var(--accent);
}

/* ---------- art index ---------- */

.art-header {
  padding-bottom: 34px;
}

.art-header .reading {
  margin: 16px 0 0;
}

.art-projects {
  border-top: 1px solid var(--line);
}

.art-project {
  display: grid;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.wood-pieces {
  display: grid;
  gap: 36px;
  margin-top: 32px;
  max-width: 660px;
}

.wood-figure {
  margin: 0;
}

.wood-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
}

.wood-figure figcaption {
  margin-top: 10px;
  font-size: var(--size-body-ui);
  color: var(--muted);
}

.art-project-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--chip);
}

.art-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(90deg, #00a3e0 0 16.6%, #e6007e 16.6% 33.3%, #ffed00 33.3% 50%, #1a1a1a 50% 66.6%, #fff 66.6% 83.3%, #b7f2d8 83.3% 100%);
}

.art-project-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.art-project-copy {
  align-self: center;
}

.art-project-copy p {
  margin: 12px 0 18px;
  max-width: 54ch;
}

.art-project-link {
  color: var(--accent);
}

@media (min-width: 760px) {
  .art-project {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    padding: 40px 0;
  }
}

.muted {
  color: var(--muted);
}

/* ---------- components ---------- */

/* flat ruled row — the system's structural unit (hairline rules, not boxes) */
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-height: 44px; /* tap target floor */
}

.row:last-child {
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-block;
  background: var(--chip);
  border-radius: var(--radius-chip);
  padding: 4px 10px;
}

/* featured stream item — tinted block inside the column, never breaking its edge */
.featured-block {
  background: var(--featured);
  border-radius: var(--radius-media);
  padding: 16px;
}

/* platform glyph slot — 44px official-color targets (spec §Home mobile) */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-chip);
  color: inherit;
  cursor: pointer;
}

/* ---------- interior chrome (pre-P2 top bar + footer) ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.topbar-name,
.topbar-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target floor */
}

.topbar-name {
  color: var(--text);
}

.topbar-nav {
  display: flex;
  gap: 22px;
}

/* One footer component: provenance first, identity lockup second. */
.sitefoot {
  width: 100%;
  max-width: var(--site-width);
  margin: 48px auto 0;
  padding: 0 20px 22px;
  color: var(--muted);
  font-family: var(--font-text);
}

.foot-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.foot-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.foot-heading > :first-child { color: var(--muted); font-weight: 400; }
.foot-heading > span { color: inherit; }
.foot-meta { display: flex; align-items: baseline; gap: 14px; width: 100%; }
.foot-meta a { margin-left: auto; color: var(--accent); text-decoration: none; }
.foot-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .78;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 18px;
  text-align: center;
}
.foot-sig { width: 104px; height: 46px; opacity: .9; }
.foot-line { margin: 0; color: var(--muted); font-size: 14px; }

/* Footer nav — the same handful of doors, reachable from the bottom of
   every page. */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--site-width);
  width: 100%;
  margin: 14px auto 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.foot-nav a:hover {
  color: var(--accent);
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 600px) {
  .sitefoot .foot-heading { align-items: center; }
  .foot-heading > span { min-width: 0; overflow-wrap: anywhere; text-align: right; }
  .sitefoot .foot-provenance,
  .sitefoot .foot-meta { flex-wrap: wrap; justify-content: center; text-align: center; }
  .foot-links { flex-direction: column; align-items: center; text-align: center; }
  .foot-nav,
  .foot-social { justify-content: center; }
  .foot-brand { gap: 8px; }
}

/* ---------- article page (spec §Essays) ---------- */

.article {
  padding-top: 28px;
}

.article-header {
  margin-bottom: 28px;
}

.article-title {
  margin-top: 10px;
  max-width: 820px;
}

.article-dek {
  margin: 14px 0 0;
}

.article-byline {
  margin: 18px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-byline a,
.article-header .kicker a {
  color: inherit;
}

/* mobile: rail stacks above the body as a single ruled block */
.article-rail {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.rail-item {
  display: grid;
  gap: 3px;
}

.rail-value {
  font-size: var(--size-body-ui);
}

@media (min-width: 960px) {
  .article-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 660px);
    gap: 56px;
  }

  .article-rail {
    border-bottom: 0;
    padding: 6px 0 0;
    position: sticky;
    top: 24px;
    align-self: start;
    margin-bottom: 0;
  }
}

.article-body > :first-child {
  margin-top: 0;
}

/* ---------- video reference page ---------- */

.video-page {
  padding-top: 28px;
}

.video-hero {
  max-width: 920px;
}

.video-dek {
  max-width: 720px;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.4;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.video-section > h2 {
  max-width: 820px;
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.video-thesis {
  margin-top: 56px;
}

.layer-diagram {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.layer {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) minmax(180px, 2fr);
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.layer span,
.layer small {
  color: var(--muted);
}

.layer strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.layer-human strong {
  color: var(--accent);
}

.load-chart {
  display: grid;
  gap: 18px;
  max-width: 850px;
  padding: 26px 0 8px;
}

.load-row {
  display: grid;
  grid-template-columns: 130px minmax(120px, 1fr);
  gap: 8px 18px;
  align-items: center;
}

.load-row b {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.load-track {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--chip);
}

.load-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.chart-note,
.transcript-note {
  color: var(--muted);
  font-size: 13px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  color: var(--accent);
}

.metric-strip span {
  color: var(--muted);
}

.snippet-list {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.snippet {
  display: grid;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.snippet-copy h3 {
  margin: 5px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}

.snippet-copy blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.transcript-section details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transcript-section summary {
  min-height: 44px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
}

.transcript {
  display: grid;
  gap: 12px;
  max-width: 760px;
  padding: 8px 0 30px;
  list-style: none;
}

.transcript li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  line-height: 1.55;
}

.transcript-time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.transcript-download {
  margin-top: 18px;
}

.video-source {
  padding: 12px 0 56px;
}

@media (min-width: 760px) {
  .snippet {
    grid-template-columns: minmax(280px, 42%) 1fr;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .layer {
    grid-template-columns: 32px 1fr;
  }

  .layer small {
    grid-column: 2;
  }

  .load-row {
    grid-template-columns: 1fr;
  }

  .load-row b {
    grid-column: 1;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.7em 0 0.6em;
}

.article-body h2 {
  font-size: 24px;
}

.article-body h3 {
  font-size: 19px;
}

.article-body h4 {
  font-size: 17px;
}

.article-body img {
  margin: 28px 0;
}

.article-body blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
  margin: 0 0 1.15em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body code {
  background: var(--chip);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  padding: 16px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.article-tags .chip {
  text-decoration: none;
}

.article-back {
  margin-top: 40px;
}

.article-back a {
  text-decoration: none;
}

/* ---------- index pages (essays / guides) ---------- */

.page-header {
  padding-top: 28px;
  margin-bottom: 36px;
}

.page-header .reading {
  margin: 14px 0 0;
}

.list-year {
  margin-bottom: 40px;
}

.year-heading {
  margin: 0 0 6px;
}

.list-row {
  text-decoration: none;
}

.list-date {
  flex: 0 0 118px;
}

@media (max-width: 480px) {
  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .list-date {
    flex-basis: auto;
  }
}

/* ---------- home (P2: boards 27.01 / 28.01–28.02) + menu (27.02) ---------- */

/* breakpoint 900px, per the round-28 boards */
@media (min-width: 900px) {
  .m-only {
    display: none !important;
  }
}

@media (max-width: 899.98px) {
  .d-only {
    display: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* signature + AD mark: masked SVGs so they take the accent tint */
.sig {
  display: block;
  background: var(--accent);
  -webkit-mask: url('/images/ariel-signature.svg') center / contain no-repeat;
  mask: url('/images/ariel-signature.svg') center / contain no-repeat;
}

.admark {
  display: block;
  width: 32px;
  height: 32px;
  background: var(--accent);
  -webkit-mask: url('/images/ariel-mark.svg') center / contain no-repeat;
  mask: url('/images/ariel-mark.svg') center / contain no-repeat;
}

.brandrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brandrow b {
  font-size: 15px;
  font-weight: 700;
  color: var(--strong);
}

/* circular menu button — burger in the hero, ✕ in the menu, same circle */
.circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 7, 6, 0.52);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.burger {
  display: grid;
  gap: 4px;
  width: 18px;
}

.burger i {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 140ms ease, opacity 140ms ease;
}

.home-menu-open[aria-expanded="true"] .burger {
  position: relative;
  display: block;
  height: 14px;
}

.home-menu-open[aria-expanded="true"] .burger i {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
}

.home-menu-open[aria-expanded="true"] .burger i:first-child {
  transform: rotate(45deg);
}

.home-menu-open[aria-expanded="true"] .burger i:nth-child(2) {
  opacity: 0;
}

.home-menu-open[aria-expanded="true"] .burger i:last-child {
  transform: rotate(-45deg);
}

/* the ✕ is the burger's own bars crossed: same 18px box, same 2px stroke, so
   the control does not jump or resize between open and closed */
.xmark {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.xmark i {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.xmark i:first-child {
  transform: rotate(45deg);
}

.xmark i:last-child {
  transform: rotate(-45deg);
}

/* --- mobile hero (27.01) --- */

.home-hero {
  position: relative;
  height: clamp(230px, 64vw, 430px);
  overflow: hidden;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 0;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-fade);
}

.home-hero .sig {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  width: 126px;
  height: 60px;
}

.home-hero .circle {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
}

.home-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(37px, 6.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--strong);
}

.home-intro {
  padding-top: 16px;
}

.home-kick {
  margin: 0;
  letter-spacing: 0.1em;
}

.home-mission {
  margin: 8px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.home-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.home-directory a:nth-child(-n + 4) {
  border-bottom: 1px solid var(--line);
}

.home-directory a:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.home-directory a span:last-child {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 500;
}

.home-directory a:hover,
.home-directory a:focus-visible {
  color: var(--accent);
}

.home-directory a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

/* email capture (Resend) — revealed by the envelope in the follow row */
.capture-wrap {
  padding-bottom: 4px;
}

.capture[hidden] {
  display: none;
}

.capture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}

.capture input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.capture button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.capture-msg {
  flex: 1 0 100%;
  margin: 0;
  min-height: 1.2em;
  font-size: 14px;
  color: var(--muted);
}

/* latest video module */
.home-latest {
  padding-top: 20px;
}

.home-stream,
.home-art {
  padding-top: 36px;
}

.home-art .h-row {
  margin-bottom: 14px;
}

.tweet-list {
  position: relative;
}

.tweet-list::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 15px;
  width: 1px;
  background: var(--line);
}

.tweet-loading {
  margin: 0;
  padding: 18px 0;
}

.tweet-list:empty {
  display: none;
}

.tweet-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: start;
  min-height: 92px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.tweet-row:first-of-type {
  border-top: 1px solid var(--line);
}

.tweet-row-no-preview {
  grid-template-columns: 32px minmax(0, 1fr);
}

.tweet-platform {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}

.tweet-avatar {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}

.tweet-platform .glyph-ic {
  width: 14px;
  height: 14px;
}

.tweet-copy {
  display: grid;
  gap: 7px;
}

.tweet-head,
.tweet-quote-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-family: var(--font-text);
  line-height: 1.2;
}

.tweet-author-name {
  font-size: 15px;
  font-weight: 700;
}

.tweet-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.tweet-handle {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tweet-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.tweet-mention {
  color: var(--accent);
}

.tweet-url {
  color: var(--tweet-url);
}

.tweet-quote {
  display: grid;
  gap: 3px;
  margin: 2px 0 1px 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.tweet-quote-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.tweet-quote-image {
  width: min(100%, 280px);
  height: auto;
  margin-top: 4px;
  border-radius: 8px;
}

.tweet-preview {
  width: 112px;
  height: auto;
  border-radius: 8px;
  background: var(--chip);
}

.tweet-row:hover .tweet-text {
  color: var(--accent);
}

.home-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 380px;
}

.home-art-tile {
  display: grid;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.home-art-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--chip);
}

.home-art-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.home-art-media > img:only-child {
  object-fit: cover;
}

.home-art-media-nys {
  background: #ddd0c7;
}

.home-art-media-bg {
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.14);
  opacity: 0.42;
}

.home-art-media-fg {
  object-fit: contain;
}

.home-art-tile strong {
  font-size: 15px;
  line-height: 1.25;
}

@media (min-width: 760px) {
  .home-art-grid {
    gap: 16px;
  }

  .home-art-tile strong {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .tweet-row {
    grid-template-columns: 32px minmax(0, 1fr) 80px;
    gap: 11px;
  }

  .tweet-row-no-preview {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .tweet-preview {
    width: 80px;
    height: auto;
  }
}

.latest-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--featured);
  text-decoration: none;
}

.latest-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.latest-body {
  display: grid;
  gap: 4px;
}

.latest-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--strong);
}

.latest-meta {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.videos-list {
  max-width: 820px;
}

.videos-card {
  grid-template-columns: minmax(180px, 240px) 1fr;
  padding: 14px;
}

.videos-summary {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .latest-card {
    grid-template-columns: 1fr;
  }
}

/* platform glyphs — official colors (spec §Design tokens) */
.glyph-ic {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.glyph-ic-sm {
  width: 18px;
  height: 18px;
}

.glyph-substack { color: var(--platform-substack); }
.glyph-youtube { color: var(--platform-youtube); }
.glyph-x { color: var(--platform-x); }
.glyph-instagram { color: var(--platform-instagram); }
.glyph-linkedin { color: var(--platform-linkedin); }
.glyph-github { color: var(--platform-github); }
.glyph-email { color: var(--platform-email); }

/* --- desktop topbar + hero grid (28.01/28.02) --- */

/* sticky header. The rule sits on this full-bleed wrapper, not on the inner
   header, so it runs edge to edge while the contents stay in the container. */
.sitehead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}

.menu {
  font-family: var(--font-sans);
}

/* mobile bar — every page but home, where the hero photo carries the burger */
.mobilebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 14px, not the container's 20px, so the burger lands on the same x as the
     hero burger and the fixed ✕ */
  padding-right: 14px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mobilebar .circle {
  background: var(--chip);
  color: var(--text);
}

.home-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  /* the 44px glyph buttons set the height; the padding only breathes */
  padding-top: 4px;
  padding-bottom: 4px;
}

.toplinks {
  display: flex;
  gap: 30px;
}

.toplinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-follow {
  position: relative;
}

.nav-follow summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-follow summary::-webkit-details-marker {
  display: none;
}

.nav-follow-panel {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 6;
  min-width: 160px;
  padding: 6px 0;
  background: var(--bg);
  border: 1px solid var(--line);
}

.nav-follow-panel a {
  display: block;
  min-height: 36px;
  padding: 6px 16px;
}

.menu-links .nav-follow-panel {
  position: static;
  min-width: 0;
  padding: 0 0 8px 16px;
  border: 0;
  background: transparent;
}

.toplinks a[aria-current="page"],
.menu-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.topfollow {
  display: flex;
  align-items: center;
}

/* ---------- public component catalogue ---------- */

.style-catalog-header { padding-bottom: 32px; }
.style-catalog-header .reading { margin: 14px 0 0; }
.style-template-map { margin-bottom: 36px; }
.style-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.style-template-grid .row { justify-content: space-between; text-decoration: none; }
.style-template-grid .row:nth-child(odd) { padding-right: 18px; }
.style-template-grid .row:nth-child(even) { padding-left: 18px; }
@media (max-width: 640px) {
  .style-template-grid { grid-template-columns: 1fr; }
  .style-template-grid .row:nth-child(n) { padding-right: 0; padding-left: 0; }
}
.style-modes { display: grid; gap: 18px; }
.style-mode {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--bg);
  color: var(--text);
}
.style-mode-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.style-group { padding: 28px 0; border-bottom: 1px solid var(--line); }
.style-group:last-child { border-bottom: 0; }
.style-group > :first-child { margin-top: 0; }
.style-group > :last-child { margin-bottom: 0; }
.style-group .masthead { font-size: clamp(44px, 7vw, 72px); margin: 10px 0 20px; }
.style-group .page-title { font-size: clamp(32px, 5vw, 46px); margin: 18px 0; }
.style-group h3 { margin: 18px 0; font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.015em; }
.style-group .stream-title { margin: 16px 0; }
.style-link-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.style-latest { margin-top: 16px; }
.style-article-sample { margin-top: 24px; }
.style-article-sample .rail-item { max-width: 320px; }
.style-tweet-list { margin-top: 24px; }
.style-art-grid { max-width: 320px; margin-top: 24px; }
.style-group .layer-diagram, .style-group .metric-strip, .style-group .load-chart { margin-top: 18px; }
.style-capture { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 520px; margin: 16px 0 28px; }
.style-capture label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; }
.style-capture input, .style-capture button { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-chip); font: inherit; }
.style-capture input { min-width: 0; padding: 0 12px; background: var(--surface); color: var(--text); }
.style-capture button { padding: 0 18px; background: var(--accent); color: var(--bg); cursor: pointer; }
.style-media { margin: 0; }
.style-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.style-media figcaption { margin-top: 8px; }
.style-footer-group { padding-bottom: 0; }
.style-demo-footer.sitefoot { width: 100%; margin: 20px 0 0; }
.style-exceptions { margin-top: 36px; padding: 28px 0; border-top: 1px solid var(--line); }
.style-exceptions .reading { margin: 12px 0; }

@media (min-width: 900px) {
  .style-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.home-heroD {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0 36px;
}

.home-name-d {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 6.4vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--strong);
}

.home-kick-d {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.home-mission-d {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 430px;
}

@media (min-width: 760px) {
  .home-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
  }

  .home-directory a {
    min-height: 84px;
    padding: 16px 20px;
    font-size: clamp(18px, 2vw, 23px);
  }

  .home-directory a:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .home-directory a:nth-child(n + 4) {
    border-bottom: 0;
  }

  .home-directory a:nth-child(odd) {
    border-right: 0;
  }

  .home-directory a:not(:nth-child(3n)) {
    border-right: 1px solid var(--line);
  }
}

.home-plate {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10.6;
}

.home-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 0;
}

.home-plate .sig {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 158px;
  height: 76px;
}

/* --- content grid: essays list + guides rail --- */

.home-grid {
  display: grid;
  gap: 36px;
  padding: 20px 0 8px;
}

@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 2fr 1fr;
    gap: 56px;
    padding-top: 8px;
  }
}

.h-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.h-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-items {
  border-bottom: 1px solid var(--line);
}

.home-it {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.home-it-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.home-it-t {
  display: block;
  color: var(--strong);
}

.home-it-m {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.hl-table {
  border-bottom: 1px solid var(--line);
}

.hl-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.hl-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.hl-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--strong);
}

/* --- compact mobile menu --- */

.menu {
  position: fixed;
  top: 62px;
  right: 12px;
  z-index: 40;
  width: min(75vw, 360px);
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(10, 7, 6, 0.22);
}

/* Glass where the platform supports it; the solid surface above is the
   fallback. Translucent surface + blur, tinted per mode. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .menu {
    background: rgba(31, 24, 19, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }

  @media (prefers-color-scheme: light) {
    .menu {
      background: rgba(255, 255, 255, 0.66);
    }
  }
}

.menu-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 18px 14px;
}

.menu-links {
  display: grid;
}

.menu-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--strong);
  text-decoration: none;
}

.menu-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 12px;
}

/* no published guides yet: single column, essays at a comfortable measure */
@media (min-width: 900px) {
  .home-grid.no-rail {
    grid-template-columns: minmax(0, 720px);
  }
}

/* ---------- About ---------- */
/* Two stories on one page: the deadpan account, then the literal one. The
   story reads at normal body size and weight — the joke is the content, not
   the type. Markers sit at the end of the line, so the sentence lands first. */

.about-story p {
  margin: 0 0 0.55em;
}

.about-page-header,
.about-story,
.about-closer,
.about-notes {
  margin-left: auto;
  margin-right: auto;
}

.about-story {
  margin-top: 2.1em;
}

.about-story sup,
.about-title sup {
  font-size: 0.62em;
  line-height: 0;
}

/* Markers and back-references are navigation, not prose: no underline at
   superscript size. Color comes from the global link rule. */
.about-story sup a,
.about-title sup a,
.note-back {
  color: var(--muted);
  text-decoration: none;
}

.about-story sup a:hover,
.about-title sup a:hover,
.note-back:hover {
  text-decoration: underline;
}

.about-title {
  margin-top: 1.4em;
}

.about-closer {
  margin-top: 1.4em;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-warm);
  border-radius: var(--radius-chip);
  background: var(--surface);
}

.about-tagline {
  margin: 0;
  font-style: italic;
}

.about-signoff {
  margin: 10px 0 0;
}

.about-notes {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}

.about-collaborate {
  margin: 2.6em auto 0;
  padding: 1.4em 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-collaborate h2,
.about-collaborate p {
  margin: 0;
}

.about-collaborate p {
  margin-top: .8em;
}

.about-notes h2 {
  margin: 0 0 1.1em;
}

.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 1em;
}

.note-back {
  font-size: 0.82em;
}

.note-legend {
  margin: 1.4em 0 0;
  color: var(--muted);
  font-size: 0.88em;
}

.about-provenance {
  margin: 2.2em 0 0;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88em;
}

/* ---------- Companies ---------- */

.company-group {
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-list {
  margin-top: 8px;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.company-row:hover .company-name {
  color: var(--accent);
}

.company-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  object-fit: contain;
}

.company-logo-picture {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
}

.company-logo-picture .company-logo {
  display: block;
}

.company-logo-svg {
  color: var(--text);
}

.company-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.company-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.company-links {
  margin: 1.2em 0 0;
  padding: 0;
  list-style: none;
}

.company-links li {
  padding: 3px 0;
}

.company-name {
  font-weight: 600;
}

.company-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-breadcrumb {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: var(--size-caps);
}

.company-breadcrumb a {
  color: inherit;
}

.company-summary {
  color: var(--muted);
}

.company-status {
  color: var(--muted);
  font-size: var(--size-caps);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-row > .company-status {
  align-self: center;
}

.company-status.status-public-beta,
.company-status.status-private-beta,
.company-status.status-active {
  color: var(--accent);
}

.company-meta {
  margin-top: 6px;
}

.company-body p {
  margin: 0 0 0.9em;
}

.company-back {
  margin-top: 1.8em;
}



/* ---------- Index ---------- */

.index-grid {
  display: grid;
  gap: 34px;
  margin-top: 26px;
}

.index-heading {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.01em;
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.index-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.index-list li.index-parent {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.index-parent > .index-item {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.index-children {
  padding-left: clamp(18px, 4vw, 34px);
}

.index-note {
  color: var(--muted);
  font-size: 0.9em;
}

.project-tag {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--chip);
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.index-planned {
  color: var(--muted);
}


/* Tag pages */
.tag-type {
  margin-left: auto;
  white-space: nowrap;
}

.tag-index li {
  justify-content: space-between;
}

.index-list li .company-status {
  margin-left: auto;
}

/* 404 — the missing page gets the same deadpan mythology as About. */
.not-found {
  display: grid;
  align-content: center;
  min-height: min(68vh, 620px);
  padding-block: clamp(72px, 12vw, 160px);
}

.not-found-code {
  margin: 0 0 -0.16em;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(7rem, 25vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.72;
  opacity: 0.16;
}

.not-found h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.not-found .reading {
  margin: 0.7rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.not-found-return {
  width: fit-content;
  font-weight: 700;
}
