/*
  zachthomas.net
  A switch console for a network person. Blue-black paper, green as the main accent, blue for links, amber only as a status light.
  Condensed type for labels and names, a serif for the things I actually wrote, and a real rack for the home lab.
*/
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.da03732a27e1.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.51205681a1ba.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.95bbd98f2b3c.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.fa10869cc45e.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.beb0c8d8bee8.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.a21e038a03f7.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("../fonts/jetbrains-mono-latin-600-normal.075ec35bc15b.woff2") format("woff2"); }

:root {
  --paper: #f2f6f3; --tint: #e3ece8; --card: #ffffff; --line: #c3d2cb; --rail: #9fb5ad;
  --ink: #0f2a33; --muted: #46606a; --link: #1b5fae; --focus: #1b5fae;
  --accent: #2eb887; --accent-ink: #11704f;
  --btn-bg: #0f2a33; --btn-ink: #f2f6f3;
  /* Faceplate: the rack units and the footer stay dark in both themes. */
  --plate: #060c10; --plate-unit: #10282f; --plate-line: #2b5662; --on-plate: #e9f2f0; --on-plate-muted: #a8c2c4;
  --led-green: #2eb887; --led-sky: #3a9fe0; --led-amber: #f0a92b; --led-gray: #8a9aa0;
  --led-green-ink: #12724f; --led-sky-ink: #1a6aa0; --led-amber-ink: #85560a;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: 1120px; --narrow: 720px; --gutter: 1.5rem;
}
:root[data-theme="dark"] {
  --paper: #091016; --tint: #0e1920; --card: #121f28; --line: #1f323d; --rail: #35505d;
  --ink: #e7eff2; --muted: #93a9b1; --link: #6cb8ff; --focus: #6cb8ff;
  --accent: #2fd08a; --accent-ink: #4fdc9e;
  --btn-bg: #2fd08a; --btn-ink: #04140d;
  --led-green-ink: #5fd6a8; --led-sky-ink: #7cc4f0; --led-amber-ink: #f0b54a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #091016; --tint: #0e1920; --card: #121f28; --line: #1f323d; --rail: #35505d;
    --ink: #e7eff2; --muted: #93a9b1; --link: #6cb8ff; --focus: #6cb8ff;
    --accent: #2fd08a; --accent-ink: #4fdc9e;
    --btn-bg: #2fd08a; --btn-ink: #04140d;
    --led-green-ink: #5fd6a8; --led-sky-ink: #7cc4f0; --led-amber-ink: #f0b54a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: none; }
:where(a, button):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.zt-footer { --focus: #2fd08a; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0 0 0.75rem; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.inner { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.inner.narrow { max-width: var(--narrow); }

/* Header and footer */
.zt-header { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.zt-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.zt-brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.zt-site-title { font: 700 1.625rem/1 var(--display); letter-spacing: 0.01em; }
.zt-ps { color: var(--accent-ink); }
.zt-mark { display: inline-flex; line-height: 0; }
.zt-mark svg { width: 40px; height: 40px; display: block; border-radius: 10px; }
.zt-header-end { display: flex; align-items: center; gap: 0.5rem 1rem; }
.zt-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-left: auto; font: 500 0.875rem var(--mono); text-transform: lowercase; }
.zt-nav a { color: var(--muted); text-decoration: none; padding: 0.75rem 0; display: inline-block; }
.zt-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.zt-theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.zt-theme-toggle:hover { border-color: var(--link); color: var(--link); }
.zt-theme-toggle svg { width: 20px; height: 20px; }
.zt-theme-toggle .zt-icon-sun { display: none; }
:root[data-theme="dark"] .zt-theme-toggle .zt-icon-sun { display: block; }
:root[data-theme="dark"] .zt-theme-toggle .zt-icon-moon { display: none; }
.zt-footer { background: var(--plate); color: var(--on-plate); padding: 2.5rem 0; }
.zt-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.zt-footer .zt-brand { color: var(--on-plate); }
.zt-footer .zt-nav a { color: var(--on-plate-muted); }
.zt-footer .zt-nav a:hover { color: #fff; }
.zt-footer .zt-copy { font-size: 0.875rem; color: var(--on-plate-muted); margin: 0; flex-basis: 100%; }
/* Buttons */
.zt-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.8rem 1.4rem; border: 2px solid var(--btn-bg); border-radius: 6px; background: var(--btn-bg); color: var(--btn-ink); font: 600 0.9375rem/1.2 var(--sans); text-decoration: none; }
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }

/* Status lights: the colour always means the same thing */
.zt-led { display: inline-flex; align-items: baseline; gap: 0.6rem; font: 500 0.9375rem/1.35 var(--sans); }
.zt-led::before { content: ""; flex: none; align-self: center; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--led, var(--led-green));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25), 0 0 7px color-mix(in srgb, var(--led, var(--led-green)) 60%, transparent); }
.zt-led--green { --led: var(--led-green); } .zt-led--sky { --led: var(--led-sky); } .zt-led--amber { --led: var(--led-amber); } .zt-led--gray { --led: var(--led-gray); }

/* Hero */
.zt-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 2.5rem 4rem; align-items: center; }
.zt-place { font: 500 1rem var(--sans); color: var(--accent-ink); margin: 0 0 0.75rem; }
.zt-hero h1 { font-size: clamp(4.5rem, 13vw, 9rem); line-height: 0.84; margin: 0; letter-spacing: -0.005em; }
.zt-title { font: 500 clamp(1.25rem, 2.8vw, 1.625rem)/1.3 var(--sans); margin: 1.25rem 0 0.75rem; }
.zt-lede { font: 400 clamp(1.1875rem, 2.2vw, 1.375rem)/1.55 var(--serif); max-width: 34rem; margin: 0; }
.zt-badges { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.zt-badges .zt-led { color: var(--muted); }
.zt-portrait { margin: 0; position: relative; justify-self: center; width: min(100%, 20rem); aspect-ratio: 1; }
.zt-portrait::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); transform: translate(-1.1rem, 1.1rem); }
.zt-portrait img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 6px var(--paper); }

/* The signal path: one rail, radio on the left, internet on the right */
.zt-path-wrap { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.zt-path-title { font: 600 clamp(1.5rem, 3vw, 1.875rem)/1.1 var(--display); margin: 0; }
.zt-path { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 1.5rem; position: relative; }
.zt-path::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--rail) 0%, var(--rail) 82%, transparent 100%); }
.zt-path::after { content: ""; position: absolute; top: 3px; left: 0; width: 56px; height: 8px; border-radius: 4px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--led-green)); box-shadow: 0 0 14px var(--led-green);
  animation: zt-send 3.4s cubic-bezier(.45, 0, .35, 1) .3s 1 both; }
@keyframes zt-send { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 56px); opacity: 0; } }
@keyframes zt-send-down { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 56px); opacity: 0; } }
.zt-stop { position: relative; min-width: 0; padding-bottom: 0.5rem; }
.zt-node { display: block; position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--led);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px color-mix(in srgb, var(--led) 50%, transparent), 0 0 12px color-mix(in srgb, var(--led) 50%, transparent);
  animation: zt-lit .6s ease-out var(--d, 0s) both; }
.zt-stop--green { --led: var(--led-green); --led-ink: var(--led-green-ink); }
.zt-stop--sky { --led: var(--led-sky); --led-ink: var(--led-sky-ink); }
.zt-stop--amber { --led: var(--led-amber); --led-ink: var(--led-amber-ink); }
.zt-stop:nth-child(1) { --d: .35s; } .zt-stop:nth-child(2) { --d: 1.15s; } .zt-stop:nth-child(3) { --d: 1.95s; } .zt-stop:nth-child(4) { --d: 2.75s; }
.zt-stop:nth-child(5) { --d: 3.1s; } .zt-stop:nth-child(6) { --d: 3.3s; }
/* Only work in progress keeps breathing, so the eye goes there. */
.zt-stop--sky .zt-node { animation: zt-lit .6s ease-out var(--d, 0s) both, zt-breathe 2.8s ease-in-out calc(var(--d, 0s) + .8s) infinite; }
@keyframes zt-lit { from { background: var(--rail); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rail); } }
@keyframes zt-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
.zt-stop h3 { font: 600 clamp(1.5rem, 2vw, 1.75rem)/1.05 var(--display); overflow-wrap: anywhere; margin: 1.25rem 0 0.4rem; }
.zt-stop-state { font: 600 0.9375rem var(--sans); color: var(--led-ink); margin: 0 0 0.6rem; }
.zt-when { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-top: 0.1rem; }
.zt-stop-body { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; margin: 0; max-width: 22rem; }

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .zt-portrait { justify-self: start; width: min(70%, 14rem); order: -1; }
}
@media (max-width: 1000px) {
  .zt-path { grid-auto-flow: row; gap: 0; }
  .zt-path::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--rail) 0%, var(--rail) 85%, transparent 100%); }
  .zt-path::after { top: 0; left: 3px; width: 8px; height: 56px; background: linear-gradient(180deg, transparent, var(--led-green)); animation-name: zt-send-down; }
  .zt-stop { padding: 0 0 2rem 2.5rem; }
  .zt-node { position: absolute; left: 0; top: 0.3rem; }
  .zt-stop h3 { margin-top: 0; }
  .zt-stop-body { max-width: 34rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zt-path::after { display: none; }
  .zt-node, .zt-stop--sky .zt-node { animation: none; }
}

/* Sections */
.zt-section { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.5rem, 4vw, 3rem); }
.zt-section--flush { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.zt-section--tint { background: var(--tint); border-block: 1px solid var(--line); padding-bottom: clamp(3.5rem, 8vw, 6rem); margin-top: clamp(2rem, 5vw, 3rem); }
.zt-intro { color: var(--muted); max-width: 42rem; }
.zt-more { margin: 1.75rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Story and timeline */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.zt-story .prose { font-size: 1.1875rem; max-width: 36rem; }
.zt-timeline { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--line); }
.zt-timeline li { position: relative; padding-bottom: 1.75rem; }
.zt-timeline li:last-child { padding-bottom: 0; }
.zt-timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 7px); top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.zt-year { font: 700 1.75rem/1 var(--display); color: var(--accent-ink); margin: 0 0 0.25rem; }
.zt-timeline h3 { font-size: 1.375rem; margin: 0 0 0.15rem; }
.zt-where { font: 500 0.9375rem var(--sans); color: var(--muted); margin: 0 0 0.25rem; }
.zt-note { font-size: 0.9375rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* The home lab, as a rack */
.rack-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.rack-text { position: sticky; top: 1.5rem; }
.zt-rack { list-style: none; margin: 0; padding: 14px 16px; background: var(--plate); border-radius: 8px; box-shadow: 0 0 0 2px var(--plate-line); }
.zt-unit { display: grid; grid-template-columns: 0.75rem minmax(8.5rem, 11rem) minmax(0, 1fr); gap: 0 1.1rem; align-items: center; padding: 0.7rem 1.25rem 0.7rem 2.1rem; margin: 0 0 6px; background-color: var(--plate-unit); border: 1px solid var(--plate-line); border-radius: 3px;
  background-image: radial-gradient(circle at 12px 50%, #4f7b87 0 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 12px) 50%, #4f7b87 0 2.5px, transparent 3.5px); }
.zt-unit:last-child { margin-bottom: 0; }
.zt-unit p { margin: 0; }
.zt-unit-light { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--led); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3), 0 0 9px color-mix(in srgb, var(--led) 70%, transparent); }
.zt-unit--green { --led: var(--led-green); } .zt-unit--sky { --led: var(--led-sky); } .zt-unit--amber { --led: var(--led-amber); }
.zt-unit--gray { --led: var(--led-gray); } .zt-unit--gray .zt-unit-light { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3); }
.zt-unit-name { font: 600 0.9375rem/1.25 var(--mono); color: var(--on-plate); overflow-wrap: anywhere; }
.zt-unit-role { font: 400 0.8125rem/1.35 var(--sans); color: var(--on-plate-muted); margin-top: 0.1rem !important; }
.zt-unit-note { font: 400 0.9375rem/1.45 var(--sans); color: var(--on-plate-muted); }
@media (max-width: 960px) { .rack-grid { grid-template-columns: 1fr; } .rack-text { position: static; } }
@media (max-width: 560px) {
  .zt-unit { grid-template-columns: 0.75rem minmax(0, 1fr); padding-left: 1.9rem; padding-right: 1rem; }
  .zt-unit-note { grid-column: 2; margin-top: 0.4rem !important; }
}

/* Notebook entries */
.zt-entries { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.zt-entries li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.zt-entries p { margin: 0; }
.zt-entry-date { font: 700 1.75rem/1 var(--display); color: var(--accent-ink); }
.zt-entry-date span { display: block; font: 500 0.875rem var(--sans); color: var(--muted); margin-top: 0.25rem; }
.zt-entries h3 { margin: 0 0 0.25rem; }
.zt-entries h3 a { color: var(--ink); text-decoration: none; }
.zt-entries h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 5px; }
.zt-entries li p:last-child { font: 400 1.0625rem/1.55 var(--serif); color: var(--muted); max-width: 38rem; }
@media (max-width: 560px) { .zt-entries li { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Labs: a ledger, one row per lab */
.zt-ledger { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.zt-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 11rem 9.5rem; gap: 0 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.zt-row p { margin: 0; }
.zt-row-state { padding-top: 0.45rem; }
.zt-row-state .zt-led { color: var(--ink); }
.zt-row-main h3 { margin: 0 0 0.3rem; }
.zt-row-main h3 a { color: var(--ink); text-decoration: none; }
.zt-row-main h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 5px; }
.zt-row-main p { color: var(--muted); font-size: 1rem; max-width: 40rem; }
.zt-row-tag { padding-top: 0.5rem; font: 500 0.9375rem var(--sans); color: var(--muted); }
.zt-row-link { padding-top: 0.5rem; font: 500 0.9375rem var(--sans); }
.zt-row-link span { color: var(--muted); font-weight: 400; }
.zt-row--empty { display: block; color: var(--muted); }
@media (max-width: 860px) {
  .zt-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "state tag" "main main" "link link"; gap: 0.25rem 1rem; }
  .zt-row-state { grid-area: state; padding: 0; } .zt-row-tag { grid-area: tag; padding: 0; text-align: right; }
  .zt-row-main { grid-area: main; margin-top: 0.5rem; } .zt-row-link { grid-area: link; padding-top: 0.5rem; }
}

/* Projects: open columns under a heavy rule, no boxes */
.zt-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 2.5rem; margin-top: 2rem; }
.zt-project { border-top: 4px solid var(--ink); padding-top: 1.25rem; display: flex; flex-direction: column; }
.zt-project > * { margin-bottom: 0.6rem; }
.zt-project p { color: var(--muted); font-size: 1rem; }
.zt-tag { font: 500 0.9375rem var(--sans); color: var(--muted); }
.zt-link { margin-top: auto; padding-top: 0.5rem; font: 500 0.9375rem var(--sans); }
.zt-link a { display: inline-block; padding: 0.4rem 0; }

/* Bands */
.zt-band { background: var(--tint); border-block: 1px solid var(--line); padding: 3.5rem 0; }
.band-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem 2rem; align-items: center; }
.band-grid h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.band-grid p { color: var(--muted); max-width: 36rem; margin: 0; }
.band-grid .zt-buttons { margin: 0; justify-content: flex-end; }
.zt-academy { border-left: 6px solid var(--accent); }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } .band-grid .zt-buttons { justify-content: flex-start; } }

/* Articles and markdown */
.zt-article { padding: 3rem 0 4rem; }
.zt-article h1 { margin-bottom: 1rem; }
.prose { overflow-wrap: break-word; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); margin-top: 2.25rem; } .prose h3 { margin-top: 1.75rem; }
.prose strong { font-weight: 600; }
.prose pre { background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; overflow-x: auto; font: 500 .875rem/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; margin: 1.5rem 0; padding: 1rem 1.5rem; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font: 400 1rem/1.5 var(--sans); }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose img { border-radius: 8px; }
.zt-post-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; }
.zt-post-list li { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.zt-post-list h2, .zt-post-list h3 { margin: .25rem 0 .5rem; font-size: 1.875rem; font-weight: 600; }
.zt-post-list h2 a, .zt-post-list h3 a { color: var(--ink); text-decoration: none; }
.zt-post-list h2 a:hover, .zt-post-list h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 5px; }
.zt-post-list li > p.muted { font-family: var(--serif); font-size: 1.0625rem; }
.zt-date { font: 500 .875rem var(--sans); color: var(--muted); margin: 0; }
.zt-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.zt-tags a { font: 500 .8125rem var(--sans); border: 1px solid var(--line); border-radius: 99px; padding: .125rem .7rem; text-decoration: none; color: var(--muted); }
.zt-tags a:hover { border-color: var(--link); color: var(--link); }

/* Contact form */
.zt-form label { display: block; font: 500 .9375rem var(--sans); color: var(--ink); margin-bottom: 0.35rem; }
.zt-form input, .zt-form textarea { width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rail); border-radius: 6px; }
.zt-form input:focus-visible, .zt-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.zt-form button { cursor: pointer; }
.zt-error { display: block; color: #b3261e; font-size: 0.875rem; margin-top: 0.25rem; }
:root[data-theme="dark"] .zt-error { color: #ff8a80; }
.zt-notice { padding: 1rem 1.25rem; border: 1px solid var(--led-green); border-radius: 8px; background: var(--tint); }
.zt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media print { .zt-header, .zt-footer, .zt-theme-toggle { display: none !important; } body { background: #fff; color: #000; } }

/* Wagtail output */
.rack-text p { color: var(--muted); max-width: 42rem; }
.zt-status-line { margin: 0 0 1rem; }
.zt-code-label { font: 500 0.8125rem var(--sans); color: var(--muted); margin: 1.5rem 0 0.25rem; }
.zt-code-label + pre { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.richtext-image { max-width: 100%; height: auto; border-radius: 8px; }
.richtext-image.left { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.richtext-image.right { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.richtext-image.full-width { display: block; width: 100%; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font: 400 0.875rem var(--sans); color: var(--muted); margin-top: 0.5rem; }
.prose table { display: table; }

/* Progress: a meter, a roadmap and a list of what is done */
.zt-meter { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 14px; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); color: var(--led-green); }
.zt-meter::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.zt-meter::-webkit-progress-value { background: var(--led-green); border-radius: 99px; }
.zt-meter::-moz-progress-bar { background: var(--led-green); border-radius: 99px; }
.zt-strip { background: var(--tint); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.strip-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.zt-strip-goal { margin: 0 0 0.6rem; font-weight: 500; }
.zt-strip-text { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; } }
.zt-progress h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-top: 3rem; }
.zt-progress h3 { font-size: 1.375rem; }
.zt-goal { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; margin-top: 1.5rem; padding: 2rem; background: var(--tint); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 0 8px 8px 0; }
.zt-goal h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.zt-goal-label { font: 500 0.9375rem var(--sans); color: var(--accent-ink); margin: 0 0 0.25rem; }
.zt-goal-text .rich-text, .zt-goal-text > p { max-width: 36rem; }
.zt-goal-target { font-weight: 600; margin: 0.5rem 0 0; }
.zt-percent { font: 700 clamp(3.5rem, 8vw, 5.5rem)/0.9 var(--display); margin: 0 0 0.75rem; }
.zt-percent span { font-size: 0.5em; color: var(--muted); margin-left: 0.1em; }
.zt-meter-text { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .zt-goal { grid-template-columns: 1fr; padding: 1.5rem; } }
.zt-now, .zt-steps { list-style: none; margin: 1rem 0 0; padding: 0; }
.zt-now li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.zt-now li:last-child { border-bottom: 1px solid var(--line); }
.zt-now h3 { margin: 0 0 0.15rem; }
.zt-now p, .zt-steps p { margin: 0; }
.zt-now li p { color: var(--muted); font-size: 0.9375rem; }
.zt-phase { margin: 2rem 0 0; padding-bottom: 0.4rem; border-bottom: 3px solid var(--ink); }
.zt-steps li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.zt-step-title { font-weight: 600; }
.zt-step-meta { color: var(--muted); font-size: 0.9375rem; }
.zt-steps .zt-led, .zt-now .zt-led { align-self: start; padding-top: 0.15rem; color: var(--ink); }
@media (max-width: 560px) { .zt-now li, .zt-steps li { grid-template-columns: 1fr; gap: 0.35rem; } }
@media print {
  .zt-progress .zt-goal, .zt-progress .zt-now, .zt-progress section[aria-labelledby="rhythm-title"], .zt-progress section[aria-labelledby="road-title"] { display: none; }
  .zt-progress .zt-accomplished { margin-top: 0; }
}

/* Console: a switch prompt, commands as section captions, and a command-list menu on phones */
.zt-prompt { font: 600 1.125rem/1 var(--mono); letter-spacing: -0.01em; }
.zt-prompt::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.4em; vertical-align: -0.2em; background: var(--accent); }
.zt-cmd { font: 500 0.875rem/1.4 var(--mono); color: var(--muted); margin: 0 0 0.6rem; }
.zt-section .zt-cmd, .zt-hero .zt-cmd { margin-bottom: 0.4rem; }
.btn { font-family: var(--mono); font-size: 0.875rem; }
.zt-menu { display: none; }
.zt-menu summary { list-style: none; cursor: pointer; font: 600 0.875rem var(--mono); padding: 0.65rem 0.9rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.zt-menu summary::-webkit-details-marker { display: none; }
.zt-menu summary::before { content: "[ "; color: var(--accent-ink); }
.zt-menu summary::after { content: " ]"; color: var(--accent-ink); }
.zt-menu[open] summary { border-color: var(--accent); }
.zt-menu ul { list-style: none; margin: 0; padding: 0.25rem 0; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 0.25rem); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgb(0 0 0 / .35); }
.zt-menu li + li { border-top: 1px solid var(--line); }
.zt-menu a { display: block; padding: 0.95rem 1.1rem; font: 500 0.9375rem var(--mono); color: var(--ink); text-decoration: none; }
.zt-menu a:hover { background: var(--tint); }
@media (max-width: 860px) {
  .zt-nav { display: none; }
  .zt-menu { display: block; }
  .zt-header .inner { flex-wrap: nowrap; gap: 0.5rem; }
  .zt-brand { min-width: 0; gap: 0.6rem; }
  .zt-prompt { font-size: 1rem; }
  .zt-header-end { margin-left: auto; flex: none; }
}
