/* Updraft Mechanical Co. — hvac-updraft-houston
   rorbu-red workshop / field-service operator quarterly logbook
   Bricolage Grotesque (display+ui) · Newsreader (body) · Geist Mono (readouts)
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #f4ebda;
  --paper-2: #ead9b9;
  --bone: #f8f1e1;
  --ink: #1b1714;
  --ink-2: #3a3431;
  --ink-3: #6b6055;
  --rule: #c8b893;
  --rorbu: #a0291c;
  --rorbu-2: #7d1f15;
  --ember: #d4521c;
  --ember-2: #b14012;
  --arc: #ffc60b;
  --arc-2: #d6a000;
  --moss: #4f5b3b;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 0.78rem;
  --t-sm: 0.92rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.18rem, 0.95rem + 0.6vw, 1.34rem);
  --t-lg: clamp(1.4rem, 1.1rem + 1vw, 1.78rem);
  --t-xl: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);
  --t-3xl: clamp(3rem, 2rem + 5vw, 5.4rem);
  --t-4xl: clamp(3.6rem, 2rem + 7.5vw, 7.4rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  --radius: 2px;
  --rule-w: 1px;

  --canvas: min(1320px, 100% - 2.4rem);
  --measure: 64ch;

  --shadow: 0 1px 0 rgba(27, 23, 20, 0.06), 0 12px 24px -16px rgba(27, 23, 20, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-base);
  font-variation-settings: "opsz" 16;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--rorbu); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Type ---------- */
.h-display, h1, h2, h3, h4, .eyebrow, nav, .pill {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--t-3xl); line-height: 0.96; margin: 0 0 var(--s-5); font-variation-settings: "wdth" 95, "wght" 700; }
h2 { font-size: var(--t-2xl); line-height: 1.02; margin: var(--s-7) 0 var(--s-4); }
h3 { font-size: var(--t-lg); line-height: 1.15; margin: var(--s-6) 0 var(--s-3); }
h4 { font-size: var(--t-md); line-height: 1.2; margin: var(--s-5) 0 var(--s-2); }
p { margin: 0 0 var(--s-4); max-inline-size: 70ch; }
.lede { font-size: var(--t-md); line-height: 1.45; color: var(--ink-2); }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
small, .small { font-size: var(--t-sm); color: var(--ink-2); }
.mono { font-family: var(--mono); font-variation-settings: "wght" 500; font-size: 0.93em; }
strong, b { font-weight: 600; }

/* External link affordance */
main a[href^="http"]::after { content: " ↗"; color: var(--ember); font-family: var(--mono); }
main a:focus-visible {
  outline: 2px solid var(--rorbu);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Layout primitives ---------- */
.canvas { width: var(--canvas); margin-inline: auto; }
.section { padding-block: var(--s-8); }
.section-tight { padding-block: var(--s-7); }
.row { display: grid; gap: var(--s-6); }
@media (min-width: 880px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); }
  .row.flip { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); }
}
.measure { max-inline-size: var(--measure); }
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  inset: var(--s-2) auto auto var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-150%);
  z-index: 100;
  border-radius: var(--radius);
}
.skip:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .canvas {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-3);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--rorbu);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius);
  flex: 0 0 auto;
  letter-spacing: -0.04em;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 92, "wght" 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  font-family: var(--display);
  font-size: 0.97rem;
  font-variation-settings: "wght" 500;
  text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--rorbu); border-bottom-color: var(--rorbu); }
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--rorbu);
  color: var(--ink);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-4);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.cta:hover { background: var(--rorbu); color: var(--paper); transform: translateY(-1px); }
.cta.secondary {
  background: transparent;
  color: var(--ink);
}
.cta.secondary:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--s-8) var(--s-7);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rorbu);
  background: color-mix(in srgb, var(--rorbu) 10%, transparent);
  padding: var(--s-1) var(--s-3);
  border: 1px solid color-mix(in srgb, var(--rorbu) 22%, transparent);
  border-radius: 999px;
}
.kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rorbu);
}
.headline {
  font-family: var(--display);
  font-size: var(--t-4xl);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-5);
  font-variation-settings: "wdth" 90, "wght" 700;
}
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--rorbu);
}
.hero-image {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) { .cards.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  transform: translateY(-2px);
  border-color: var(--rorbu);
  box-shadow: var(--shadow);
}
.card .num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); }

/* ---------- Field-record (the motif) ---------- */
.record {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.record-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}
.record-pair figure { margin: 0; }
.record-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.record-pair figcaption {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  padding: var(--s-1) var(--s-2);
  position: relative;
  margin-top: -28px;
  width: max-content;
  margin-inline: var(--s-2);
}
.record-meta {
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  border-top: 1px dashed var(--rule);
}
.record-meta b { color: var(--ink); font-weight: 500; }

/* Sign-off card */
.signoff {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  font-family: var(--mono);
  font-size: var(--t-sm);
}
.signoff .stamp {
  width: 56px; height: 56px;
  border: 1.5px solid var(--rorbu);
  color: var(--rorbu);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  transform: rotate(-6deg);
  letter-spacing: -0.04em;
}

/* ---------- Bracket / route ---------- */
.bracket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  align-items: stretch;
}
.bracket-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.bracket-col h4 {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 var(--s-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s-2);
}
.bracket-item {
  background: var(--paper);
  border-left: 3px solid var(--rorbu);
  padding: var(--s-3);
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.3;
  font-variation-settings: "wght" 500;
}
.bracket-item span { display: block; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--s-5) 0;
}
.stat .num {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-variation-settings: "wdth" 90, "wght" 700;
  color: var(--rorbu);
  line-height: 1;
  display: block;
}
.stat .label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: var(--s-2);
  display: block;
}

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 4px solid var(--ember);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  margin-block: var(--s-6);
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 30;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: var(--s-3);
}

/* ---------- Tables ---------- */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: var(--t-sm);
  margin-block: var(--s-5);
}
table.spec th, table.spec td {
  text-align: left;
  padding: var(--s-3);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.spec th {
  font-family: var(--display);
  font-weight: 600;
  background: var(--bone);
  border-bottom: 1px solid var(--ink);
}
table.spec tr:nth-child(even) td { background: color-mix(in srgb, var(--bone) 50%, transparent); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--rule);
  padding: var(--s-1) var(--s-3);
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink-2);
}
.pill.warn { background: var(--arc); color: var(--ink); border-color: var(--arc-2); }
.pill.live { background: var(--rorbu); color: var(--paper); border-color: var(--rorbu-2); }
.pill.ember { background: var(--ember); color: var(--paper); border-color: var(--ember-2); }

/* ---------- Forms ---------- */
form.intake {
  display: grid;
  gap: var(--s-4);
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: var(--s-6);
  border-radius: var(--radius);
}
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s-3);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: var(--t-base);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rorbu);
  background: var(--bone);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input[type="checkbox"], .field input[type="radio"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-3);
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.field input[type="checkbox"]:checked, .field input[type="radio"]:checked {
  background: var(--rorbu);
  border-color: var(--rorbu);
}
.field input[type="checkbox"]:checked::after,
.field input[type="radio"]:checked::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--paper);
}
.field-row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.help { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }

button.submit {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  justify-self: start;
}
button.submit:hover { background: var(--rorbu); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  padding-block: var(--s-8) var(--s-6);
  margin-top: var(--s-9);
}
.site-footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.site-footer a:hover { color: var(--arc); border-bottom-color: var(--arc); }
.site-footer .footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  margin: 0 0 var(--s-3);
  font-variation-settings: "wght" 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer .address {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-style: normal;
  line-height: 1.6;
}
.site-footer .colophon {
  margin-top: var(--s-7);
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  padding-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

/* ---------- Article + sidebar layout ---------- */
.article {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1080px) {
  .article {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--s-7);
  }
}
.article > .body { max-inline-size: 68ch; }
.aside {
  position: sticky;
  top: 5rem;
  align-self: start;
  border-left: 1px solid var(--rule);
  padding-left: var(--s-5);
}
.aside h4 {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-3);
  color: var(--ink-3);
}
.aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }

/* ---------- References ---------- */
.refs {
  background: var(--bone);
  border-top: 1px solid var(--ink);
  padding: var(--s-6);
  border-radius: var(--radius);
  margin-top: var(--s-7);
}
.refs h3 {
  font-family: var(--mono);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
}
.refs ol { padding-left: 1.4em; display: grid; gap: var(--s-2); }
.refs li { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.refs a { color: var(--rorbu); }

/* ---------- Page header ---------- */
.page-head {
  border-bottom: 1px solid var(--ink);
  padding-block: var(--s-7) var(--s-6);
  margin-bottom: var(--s-7);
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.page-head .crumbs a { color: var(--ink-3); }
.page-head h1 { margin: 0; }
.page-head .lede { margin-top: var(--s-4); max-inline-size: 56ch; }

/* ---------- Marginalia for article body ---------- */
.callout {
  border: 1px solid var(--rule);
  background: var(--bone);
  border-left: 4px solid var(--ember);
  padding: var(--s-4) var(--s-5);
  margin-block: var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.callout strong { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--t-xs); color: var(--ember-2); margin-bottom: var(--s-2); }

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-5);
}
.section-head h2 { margin: 0; }
.section-head .meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* ---------- Hero variants ---------- */
.cover {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,23,20,0) 0%, rgba(27,23,20,0.55) 80%, rgba(27,23,20,0.78) 100%);
}
.cover .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-5);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Diagram (inline SVG) ---------- */
.diagram {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bone);
  padding: var(--s-5);
  border-radius: var(--radius);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .reveal.d-1 { animation-delay: 0.05s; }
  .reveal.d-2 { animation-delay: 0.15s; }
  .reveal.d-3 { animation-delay: 0.25s; }
  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
  .ticker .row-line {
    animation: ticker 36s linear infinite;
  }
  @keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--arc);
  border-top: 1px solid var(--rorbu);
  border-bottom: 1px solid var(--rorbu);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--t-sm);
  padding: var(--s-3) 0;
}
.ticker .row-line {
  display: inline-flex;
  gap: var(--s-7);
  padding-left: var(--s-7);
}
.ticker .row-line span { display: inline-flex; align-items: center; gap: var(--s-2); }
.ticker .row-line .sep { color: var(--rorbu); }

/* ---------- Utilities ---------- */
.flex { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.plain { font-family: var(--display); font-variation-settings: "wdth" 100, "wght" 500; }

/* ---------- Logbook list ---------- */
.logbook {
  border-top: 1px solid var(--rule);
}
.logbook-row {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 130px minmax(0, 1fr);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.logbook-row .date {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.logbook-row h4 { margin: 0; font-size: var(--t-md); }
.logbook-row p { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- Container queries ---------- */
.cards { container-type: inline-size; }

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--s-8) var(--s-5);
}
.notfound .glyph {
  font-family: var(--mono);
  font-size: clamp(6rem, 18vw, 14rem);
  color: var(--rorbu);
  line-height: 1;
}

/* ---------- Print fallback ---------- */
@media print {
  .site-header, .site-footer, .ticker { display: none; }
}
