/* Layout: left-aligned registry-extract feel. One narrow reading column, a ruled
   ledger for lists, and a mono "particulars" plate carrying the company's registry data. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f3f6f6;
  --surface: #ffffff;
  --ink: #10262b;
  --muted: #536a6e;
  --line: #d3dddc;
  --accent: #0b5c6b;
  --brass: #a9792c;
  --plate: #10262b;
  --plate-ink: #e8f0ef;
  --plate-muted: #9db3b5;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b181b; --surface: #112327; --ink: #e6eeed; --muted: #9bb0b2; --line: #24393d;
    --accent: #74c4d0; --brass: #d3a557; --plate: #162d32; --plate-ink: #e6eeed; --plate-muted: #9bb0b2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b181b; --surface: #112327; --ink: #e6eeed; --muted: #9bb0b2; --line: #24393d;
  --accent: #74c4d0; --brass: #d3a557; --plate: #162d32; --plate-ink: #e6eeed; --plate-muted: #9bb0b2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

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

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .mark-dot { fill: var(--brass); }
.brand-name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 54ch; }
.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.prose { display: grid; gap: 1.1em; max-width: var(--measure); }
.prose h2 { margin-top: 0.9em; font-size: 1.45rem; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4em; }

/* Sections */
main { display: grid; }
.section { padding-block: clamp(44px, 7vw, 84px); border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); max-width: var(--measure); }
.section-head:last-child { margin-bottom: 0; }
.page-head { display: grid; gap: 18px; }
.page-head h1, .prose h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.15; }

/* Hero */
.hero .wrap { display: grid; }
.hero h1 { max-width: 26ch; }
.hero { padding-block: clamp(56px, 9vw, 120px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 500; }

/* Particulars plate */
.plate { background: var(--plate); color: var(--plate-ink); padding: clamp(20px, 3vw, 30px); min-width: 0; }
.plate .label { color: var(--plate-muted); display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--plate-muted) 40%, transparent); }
.plate dl { margin: 0; display: grid; }
.plate .row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid color-mix(in srgb, var(--plate-muted) 22%, transparent); font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; }
.plate .row:last-child { border-bottom: 0; padding-bottom: 0; }
.plate dt { color: var(--plate-muted); }
.plate dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.plate a { color: inherit; }

.plate-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); --plate-muted: var(--muted); }
.plate-light .row { font-family: var(--body); font-size: 0.95rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.plate-light dt { color: var(--ink); font-weight: 500; }
.plate-light dd { color: var(--muted); }

/* Activities */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 48px) clamp(28px, 5vw, 72px); }
.activity { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.activity p { color: var(--muted); }

/* Ledger */
.ledger { display: grid; border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr) 8.5em; gap: 10px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger-row h3 a { color: var(--ink); text-decoration: none; }
.ledger-row h3 a:hover { color: var(--accent); text-decoration: underline; }
.ledger-row .kind { display: block; margin-top: 6px; }
.ledger-row p { color: var(--muted); min-width: 0; }
.ledger-row .since { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 0.95rem; max-width: var(--measure); margin-top: 22px; }

/* Transaction + timeline */
.deal { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px 32px; padding-block: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.deal .year { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.deal div { display: grid; gap: 8px; max-width: var(--measure); }
.deal p { color: var(--muted); }
.timeline { display: grid; border-top: 1px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 32px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 0.3em; font-variant-numeric: tabular-nums; }
.timeline strong { font-weight: 600; }
.timeline span.role { color: var(--muted); display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Footer */
.site-foot { border-top: 1px solid var(--ink); font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 48px; padding-block: 34px 44px; }
.site-foot p { max-width: 60ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: start; justify-content: flex-end; }
.site-foot a { color: var(--ink); }

@media (max-width: 780px) {
  .split, .grid-2, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ledger-row .since { text-align: left; }
  .deal, .timeline li { grid-template-columns: minmax(0, 1fr); }
  .site-foot nav { justify-content: flex-start; }
  .plate .row { grid-template-columns: 8em minmax(0, 1fr); }
}
