/* Ummi Labs — the lab register, at scale.
   Layout: one measure of 1200px. Entries read like plates in a catalogue:
   an index in the gutter, a large tinted plate, then the text. Bone ground,
   one ink, one blue for hover, green only for "live". Single light theme,
   by choice. */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F6F2;
  --bg-deep: #EFEDE7;
  --ink: #111110;
  --text: #2B2A27;
  --muted: #6A685F;
  --dim: #8F8C82;
  --rule: #DAD8CF;
  --rule-strong: #111110;
  --blue: #1F3BE0;
  --live: #1E7A3C;
  --footer-dim: #8A887F;
  --footer-rule: #2A2A27;
  --footer-hover: #9FB0FF;

  --wired: #E7EAF4;
  --jewelify: #EEE8DC;
  --soot: #E3E2DD;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 8px 12px;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 8px; }

/* Mono label role, reused everywhere a small caption appears. */
.eyebrow, .nav a, .count, .entry-id, .plate-cap, .person-role, .footer-label, .footer-bottom,
.spec dt, .meta dt {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ── Masthead ───────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.mark { width: 12px; height: 12px; background: var(--ink); }
.nav { display: flex; gap: 28px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 80px); align-items: end;
}
.hero-left, .hero-right { min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sep { width: 24px; height: 1px; background: var(--rule-strong); opacity: .5; }
.display {
  margin-top: 24px;
  font-size: clamp(72px, 11.5vw, 168px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.hero-right { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.lede {
  max-width: 24ch;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.spec > div { padding: 14px 16px 16px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.spec > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.spec > div:nth-child(even) { padding-left: 16px; }
.spec dt { font-size: 11px; }
.spec dd {
  margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: normal;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.count { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Register entries ───────────────────────────────────── */
.entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry-id { padding-top: 6px; font-variant-numeric: tabular-nums; }

.plate {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.plate img { width: 46%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.plate:hover img { transform: scale(1.04); }
a.plate:hover { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .plate img, a.plate:hover img { transition: none; transform: none; } }
.plate-wired { background: var(--wired); }
.plate-wired img { width: 48%; }
.plate-jewelify { background: var(--jewelify); }
.plate-jewelify img { width: 44%; }
.plate-soot { background: var(--soot); }
.plate-soot img { width: 46%; }
.plate-cap { position: absolute; font-size: 11px; }
.plate-cap-tl { top: 14px; left: 16px; }
.plate-cap-br { bottom: 14px; right: 16px; }

.entry-body { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.entry-name { font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.entry-desc { font-size: 18px; line-height: 1.55; max-width: 52ch; color: var(--text); }
.meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px;
  padding-top: 22px; border-top: 1px solid var(--rule); margin-top: 6px;
}
.meta dt { font-size: 11px; }
.meta dd {
  margin-top: 6px; font-size: 15px; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
}
.meta dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.meta dd a:hover { text-decoration-color: currentColor; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--live); }
.status-soon { color: var(--muted); }

/* ── Principals ─────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.person {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid var(--rule); min-width: 0;
}
.portrait {
  width: 128px; aspect-ratio: 1; object-fit: cover; object-position: center 20%;
  background: var(--bg-deep); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.person-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person-id { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.person-name { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.person-link { align-self: flex-start; margin-top: 4px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.person-link:hover { text-decoration-color: currentColor; }

/* ── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.statement {
  font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance;
}
.statement-sub { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 40ch; padding-top: 8px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bg); margin-top: clamp(32px, 6vw, 80px); }
.footer a { color: var(--bg); }
.footer a:hover { color: var(--footer-hover); }
.footer .dim { color: var(--footer-dim); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px);
}
.footer-display { font-size: clamp(56px, 9vw, 128px); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 15px; }
.footer-cols a, .footer-cols span { overflow-wrap: anywhere; }
.footer-label { font-size: 11px; color: var(--footer-dim); margin-bottom: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 28px; border-top: 1px solid var(--footer-rule);
  font-size: 11px; letter-spacing: 0.06em; color: var(--footer-dim);
}

/* ── 404 ─────────────────────────────────────────────────── */
.notfound { padding-block: clamp(96px, 14vw, 200px) clamp(64px, 8vw, 120px); }
.notfound h1 { font-size: clamp(48px, 9vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; color: var(--ink); }
.notfound p { margin-top: 24px; max-width: 40ch; font-size: 18px; color: var(--muted); }
.notfound .back {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-right { max-width: 560px; }
  .entry { grid-template-columns: 72px minmax(0, 1fr); }
  .plate, .entry-body { grid-column: 2; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead-row { height: 56px; }
  .brand span:last-child { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 11px; }
  .hero { padding-block: 44px 40px; }
  .hero-grid { gap: 28px; }
  .display { font-size: clamp(64px, 22vw, 110px); }
  .lede { font-size: 21px; max-width: 20ch; }
  .spec > div { padding: 12px 12px 14px 0; }
  .spec > div:nth-child(even) { padding-left: 12px; }
  .spec > div:nth-child(3) { border-right: 0; grid-column: 1 / -1; }
  .spec > div:nth-child(4) { grid-column: 1 / -1; padding-left: 0; }
  .spec dd { font-size: 15px; overflow-wrap: normal; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 28px; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 28px; }
  .entry-id { padding-top: 0; }
  .plate, .entry-body { grid-column: 1; }
  .plate { aspect-ratio: 16 / 10; }
  .plate img { width: 36%; }
  .plate-wired img { width: 34%; }
  .plate-jewelify img { width: 36%; }
  .plate-soot img { width: 36%; }
  .entry-name { font-size: 30px; }
  .entry-desc { font-size: 16px; }
  .meta { gap: 14px 16px; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .person { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding-bottom: 22px; }
  .portrait { width: 88px; }
  .statement { font-size: 26px; }
  .statement-sub { font-size: 16px; }
  .footer-display { font-size: clamp(48px, 16vw, 80px); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
