@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* jonbjornn.com, version 4.1
   Version 4 with the anti-clone pass (October 15, 2026): no italic accent lines, no section numbers,
   a left margin rail with a ruled margin line, charts that run off the right edge, and sea-fog paper. */

/* ---------- Tokens ---------- */
:root {
  --paper: #eef0eb;
  --shade: #e2e7e1;
  --panel: #f7f8f4;
  --ink: #1c3038;
  --muted: #56635f;
  --blue: #0e2e44;
  --link: #23597a;
  --line: #c5ccc6;
  --accent: #a9402b;
  --green: #2e6e5e;
  --rule: rgba(169, 64, 43, 0.36);
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', SFMono-Regular, Consolas, monospace;
  --rail: 13rem;
  --rail-gap: 3.5rem;
  /* How far the page edge sits past the .wrap container; charts use it to run off the right edge. */
  --bleed: max(48px, calc((100vw - 1180px) / 2));
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: 1.65rem; }
p + p { margin-top: 1rem; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 20; background: var(--blue); color: var(--paper); padding: 10px 20px; }
.skip-link:focus { top: 12px; }

/* ---------- Labels and small type ---------- */
.eyebrow, .tag, .folio, .back-link, .role-meta, .experience-year, .rail-link {
  font: 400 0.75rem/1.6 var(--mono); letter-spacing: 0.075em; text-transform: uppercase;
}
.eyebrow, .tag, .folio { color: var(--muted); }
.eyebrow { margin-bottom: 1rem; }
.mark { color: var(--accent); margin-right: 0.55em; }
.small, .caption, .demo-footnote { font-size: 0.8125rem; line-height: 1.65; }
.muted { color: var(--muted); }
.text-link, .case-link { font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; display: inline-block; }
.text-link:hover, .case-link:hover { border-color: var(--accent); }

/* ---------- Layout: the margin rail ----------
   Every block is a two-column grid: a narrow rail for labels and dates, and the main column.
   A thin ruled line runs down the gap between them, like the margin of a field notebook. */
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.railed {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--rail-gap);
  background: linear-gradient(var(--rule), var(--rule)) calc(var(--rail) + var(--rail-gap) / 2) 0 / 1px 100% no-repeat;
}
.railed > .rail { grid-column: 1; min-width: 0; }
.railed > .main { grid-column: 2; min-width: 0; }
.rail .eyebrow { margin-bottom: 0.6rem; }
.rail-title { font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.02em; }
.rail-note { margin-top: 0.85rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.rail-link { display: inline-block; margin-top: 1rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.rail-link:hover { border-color: var(--accent); }

/* ---------- Header and footer ---------- */
.site-header { align-items: center; padding-block: 27px 23px; border-bottom: 1px solid var(--ink); }
.brand { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { font: 500 0.75rem var(--mono); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); width: 29px; height: 29px; margin-right: 12px; vertical-align: 3px; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { font-size: 0.875rem; text-decoration: none; padding-block: 5px; }
.site-header nav a[aria-current='page'] { border-bottom: 1px solid var(--accent); color: var(--accent); }
.footer { padding-block: 28px 38px; font-size: 0.8125rem; color: var(--muted); align-items: center; }
.footer-name { font-family: var(--serif); font-size: 1rem; text-decoration: none; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 25px; }
.footer-links a { text-decoration: none; }
.footer .folio { font-size: 0.75rem; margin-right: auto; }

/* ---------- Home ---------- */
.hero-rail { padding-top: 0.55rem; }
.hero h1 { font-size: clamp(3.1rem, 5vw, 4.5rem); line-height: 1.06; }
.hero-intro { font-size: 1.05rem; line-height: 1.8; max-width: 27rem; margin-top: 28px; }
.hero-links { display: flex; gap: 25px; margin-top: 31px; }
.availability-note { max-width: 29rem; margin-top: 24px; font-size: 0.875rem; line-height: 1.75; color: var(--muted); }
.availability-note a { color: var(--link); white-space: nowrap; }

.intro-strip { padding-block: 28px; border-block: 1px solid var(--line); }
.intro-strip .eyebrow { margin: 0; }
.intro-strip .main p { max-width: 50rem; font-size: 0.95rem; }

.work-section > .railed { padding-block: 80px 70px; }
.work-chart {
  --chart-water: 37 112 156;
  --chart-line: 66 101 105;
  --chart-coast: 28 48 56;
  --chart-route: 169 64 43;
  position: relative;
  aspect-ratio: 12 / 5;
  margin-right: calc(-1 * var(--bleed));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--blue) 5%, var(--paper));
}
.work-chart.is-ready { background: none; }
.work-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vessels { position: absolute; inset: 0; }
.vessel { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; translate: -50% -50%; color: var(--ink); text-decoration: none; }
.vessel-body { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--heading, 0deg)); }
.vessel-hull { position: absolute; left: -10px; top: -6.5px; width: 20px; height: 13px; background: currentColor; clip-path: polygon(100% 50%, 0 0, 26% 50%, 0 100%); }
.vessel-wake { position: absolute; left: 13px; top: -0.5px; width: 34px; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); opacity: 0.6; }
.vessel-label { position: absolute; left: 50%; top: -12px; translate: calc(-50% + var(--lx, 0px)) -100%; white-space: nowrap; font: 500 0.75rem/1.35 var(--mono); letter-spacing: 0.02em; padding: 2px 6px; background: color-mix(in srgb, var(--paper) 82%, transparent); }
.vessel[data-label='below'] .vessel-label { top: auto; bottom: -12px; translate: calc(-50% + var(--lx, 0px)) 100%; }
.vessel-kind { display: block; height: 0; overflow: hidden; color: var(--muted); font-weight: 400; transition: height 0.2s; }
.vessel::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; transition: opacity 0.2s; }
.vessel.is-active { color: var(--accent); }
.vessel.is-active::after { opacity: 1; }
.vessel.is-active .vessel-kind { height: 1.35em; }
.chart-caption { position: absolute; right: calc(var(--bleed) + 0px); bottom: 12px; display: flex; gap: 18px; font: 0.68rem var(--mono); letter-spacing: 0.025em; color: var(--muted); }
.chart-caption span + span::before { content: '/'; margin-right: 18px; color: #9aa59f; }
@media (prefers-reduced-motion: no-preference) {
  .vessel-body { animation: drift var(--drift-time, 9s) ease-in-out infinite alternate; }
}
@media (max-width: 1180px) { .work-chart { aspect-ratio: 2 / 1; } }
@media (max-width: 1000px) { .work-chart { aspect-ratio: 16 / 9; } }
@media (max-width: 900px) and (min-width: 701px) { .work-key { grid-template-columns: 1fr; gap: 24px; } .work-key-item > p:last-child { max-width: 34rem; } }
@keyframes drift {
  from { transform: rotate(var(--heading, 0deg)) translateX(-7px); }
  to { transform: rotate(var(--heading, 0deg)) translateX(9px); }
}

.work-key { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.work-key-item { position: relative; padding-top: 16px; border-top: 1px solid var(--line); transition: border-color 0.2s; }
.work-key-item.is-active { border-top-color: var(--accent); }
.work-key-item .tag { display: flex; align-items: center; gap: 10px; letter-spacing: 0.05em; }
.key-hull { flex: none; width: 15px; height: 10px; background: var(--ink); clip-path: polygon(100% 50%, 0 0, 26% 50%, 0 100%); transition: background 0.2s; }
.work-key-item.is-active .key-hull { background: var(--accent); }
.work-key-item h3 { font-size: 1.6rem; line-height: 1.18; margin-top: 10px; }
.work-key-item h3 a { text-decoration: none; }
.work-key-item h3 a::after { content: ''; position: absolute; inset: 0; }
.work-key-item.is-active h3 a { color: var(--accent); }
.work-key-item > p:last-child { margin-top: 10px; font-size: 0.925rem; line-height: 1.65; }

.notes-section { padding-block: 62px; border-top: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.note-entry .tag { display: block; margin-bottom: 12px; }
.note-entry h3 { font-size: 1.6rem; line-height: 1.24; }
.note-entry h3 a { text-decoration: none; }
.note-entry p { font-size: 0.9375rem; line-height: 1.7; margin-top: 12px; max-width: 26rem; }

.playground-section { padding-bottom: 72px; }
.playground-panel { background: var(--blue); color: var(--paper); padding: 34px 36px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px 40px; align-items: end; }
.playground-panel h2 { font-size: 2.6rem; }
.playground-panel p { font-size: 0.95rem; color: #d0d9d5; max-width: 26rem; }
.specimen-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font: 0.75rem var(--mono); color: #b8c6c4; }
.playground-panel .text-link { justify-self: start; margin-top: 22px; color: var(--paper); border-color: var(--paper); }

.about-section { padding-block: 62px; border-top: 1px solid var(--line); }
.about-location { margin-top: 18px; font: 0.75rem/1.9 var(--mono); color: var(--muted); }
.about-copy { max-width: 44rem; }
.about-copy p { font-size: 0.975rem; }
.about-copy .text-link { margin-top: 24px; }

.contact-section { padding-block: 38px; border-block: 1px solid var(--ink); }
.contact-body { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact-copy { flex: 1; max-width: 42rem; }
.contact-copy p { font-size: 0.9375rem; color: var(--muted); }
.contact-actions { flex-shrink: 0; text-align: right; }
.contact-email { font-size: 1rem; }
.copy-button { background: transparent; border: 0; color: inherit; padding: 9px 5px; text-decoration: underline; text-underline-offset: 4px; font-size: 0.875rem; cursor: pointer; }
.copy-status { display: block; min-height: 1.6em; font-size: 0.75rem; color: var(--muted); }

/* ---------- Case studies ---------- */
.case-hero { padding-block: 52px 44px; }
.back-link { display: inline-block; color: var(--link); text-decoration: none; margin-bottom: 22px; font-size: 0.75rem; }
.case-hero h1 { font-size: clamp(2.9rem, 5vw, 4.5rem); line-height: 1.06; }
.case-lede { font-size: 1.125rem; line-height: 1.7; max-width: 44rem; margin-top: 24px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; font: 0.75rem/1.7 var(--mono); color: var(--muted); }
/* Real screens: each figure is its own railed row, with the caption in the rail. Spacing is padding,
   not margin, so the ruled margin line runs unbroken past the figures. */
.screen + .screen { padding-top: 48px; }
.screen-image { box-shadow: 0 0 0 1px var(--line); background: var(--panel); }
.screen-source { padding-block: 20px 24px; }
.screen-source .main { font-size: 0.8125rem; line-height: 1.65; color: var(--muted); }
.case-content { padding-block: 64px 40px; }
.case-sidebar { font-size: 0.875rem; }
.case-sidebar dl { margin: 0; }
.case-sidebar dt { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 20px; }
.case-sidebar dt:first-child { margin-top: 0; }
.case-sidebar dd { margin: 6px 0 0; color: var(--muted); }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 0.75rem/1.8 var(--mono); color: var(--muted); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 2rem; margin: 40px 0 18px; line-height: 1.22; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 8px; }
.prose p { line-height: 1.85; }
.prose blockquote { margin: 34px 0; padding: 20px 0 20px 25px; border-left: 2px solid var(--accent); font: italic 1.6rem/1.5 var(--serif); color: var(--link); }
.decision { position: relative; margin-top: 26px; padding-left: 26px; }
.decision::before { content: ''; position: absolute; left: 0; top: 12px; width: 13px; height: 2px; background: var(--accent); }
.evidence-note { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 18px; color: var(--muted); font-size: 0.8125rem; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-block: 32px; }
.principle-grid > div { border-top: 2px solid var(--link); padding-top: 15px; }
.principle-grid h3 { margin-top: 10px; }
.principle-grid p { font-size: 0.875rem; }
.case-end { border-top: 1px solid var(--ink); padding-block: 36px 48px; }
.case-end .eyebrow { margin: 0; }
.case-end-body { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.case-end h2 { font-size: 1.7rem; }
.outcome-section { padding-bottom: 8px; }
.outcome-band { background: var(--blue); color: var(--paper); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.outcome-band strong { font: 400 2.7rem var(--mono); }
.outcome-band p { margin-top: 12px; font-size: 0.875rem; line-height: 1.6; color: #c6d2d2; }

/* ---------- Experience ---------- */
.experience-row { padding-block: 32px; border-top: 1px solid var(--line); }
.experience-row .main { max-width: 50rem; }
.experience-row h2 { font-size: 1.85rem; margin-bottom: 10px; }
.experience-row h3 { font: 500 1rem/1.6 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.role-meta { color: var(--muted); margin-bottom: 14px; }
.experience-year { padding-top: 8px; color: var(--muted); }
.experience-education { padding-block: 34px 40px; border-top: 1px solid var(--line); }
.education-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.education-grid h3 { font-size: 1.5rem; margin: 0 0 6px; }
.education-grid h3 + p + h3 { margin-top: 20px; }
.education-grid .button { margin-top: 22px; }

/* ---------- Notes ---------- */
.index-hero { padding-block: 56px 44px; border-bottom: 1px solid var(--ink); }
.index-hero .main > p { max-width: 40rem; margin-top: 22px; font-size: 1.05rem; }
.journal-row { padding-block: 32px; border-bottom: 1px solid var(--line); }
.journal-row .rail { padding-top: 6px; }
.journal-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 40px; align-items: start; }
.journal-body h2 { font-size: 2rem; line-height: 1.2; }
.journal-body h2 a { text-decoration: none; }
.journal-body p { grid-column: 1; margin-top: 14px; max-width: 40rem; font-size: 0.95rem; }
.journal-body > a { grid-column: 2; grid-row: 1; padding-top: 8px; font-size: 0.875rem; }
.notes-index .journal-row:last-child { border-bottom: 0; padding-bottom: 56px; }
.essay { padding-block: 46px 30px; }
.essay-rail .eyebrow { margin-bottom: 18px; }
.essay-byline { font: 0.75rem/1.8 var(--mono); color: var(--muted); }
.essay-byline span, .essay-byline time { display: block; }
.essay h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.12; }
.essay .case-lede { font-family: var(--serif); font-size: 1.4rem; padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.essay-related { display: flex; flex-wrap: wrap; gap: 17px; margin-block: 35px 0; border-top: 1px solid var(--line); padding-top: 25px; font-size: 0.875rem; }
.essay-related .tag { width: 100%; }

/* ---------- Playground ---------- */
.experiment-panel { padding-block: 44px 60px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.experiment-panel .rail-title { margin-bottom: 0; }
.workbench { padding-block: 40px 50px; }
.workbench-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.workbench h3 { font-size: 1.45rem; margin-bottom: 12px; }
.workbench p { font-size: 0.9rem; line-height: 1.8; }
.workbench .tag { margin-bottom: 12px; display: block; }

/* ---------- Illustrations: the playground's two small studies, with fictional data ---------- */
.calendar-demo, .standardizer-demo { background: var(--panel); border: 1px solid var(--line); padding: 25px; }
.demo-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.demo-name { font-weight: 500; font-size: 1rem; }
.square-icon { margin-right: 8px; color: var(--link); }
.demo-label { font: 0.75rem/1.5 var(--mono); color: var(--muted); }
.cal-sub { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-block: 20px; font-size: 0.875rem; }
.cal-conflict { font: 0.75rem/1.5 var(--mono); color: var(--accent); border: 1px solid #d9b7a7; padding: 4px 8px; background: #f9ece3; text-align: center; }
.cal-conflict.clear { color: var(--green); border-color: #a7c2b5; background: #e5eee7; }
.cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); min-height: 215px; }
.cal-day { padding: 11px 8px; border-right: 1px solid var(--line); min-width: 0; }
.cal-day:last-child { border-right: 0; }
.cal-day > span { display: flex; justify-content: space-between; font: 0.75rem/1.5 var(--mono); color: var(--muted); gap: 4px; }
.cal-day b { font-weight: 500; }
.conflict-day { background: #f4e7da; }
.send { font-size: 0.875rem; line-height: 1.4; padding: 9px 8px; margin-top: 15px; border-left: 2px solid var(--link); background: #dde7e8; overflow-wrap: anywhere; }
.send small { display: block; font-size: 0.75rem; margin-top: 6px; color: #4d6165; }
.gold-send { background: #ede3c6; border-color: #a07933; }
.green-send { background: #deeadf; border-color: var(--green); }
.demo-feedback { margin-top: 17px; display: flex; align-items: center; gap: 9px; font-size: 0.875rem; color: #874329; min-height: 29px; }
.warning-icon { font: 500 0.875rem var(--mono); border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.demo-feedback.resolved { color: var(--green); }
.demo-actions { margin-top: 16px; display: flex; align-items: center; gap: 20px; }
.demo-actions > span { font-size: 0.8125rem; color: var(--muted); }
.demo-instructions { margin-block: 20px; font-size: 0.9375rem; }
.mapping-head, .review-example { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mapping-head { padding-block: 12px; font: 0.75rem var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.review-example { align-items: center; padding-block: 20px; }
.review-example select { width: 100%; min-width: 0; border: 1px solid var(--muted); border-radius: 0; background: #fbfcfa; color: var(--ink); padding: 10px; font-size: 1rem; }
.review-reason { max-width: 46rem; font-size: 0.9rem; color: var(--muted); }
.review-status { margin: 20px 0; font: 0.75rem/1.7 var(--mono); color: var(--accent); }
.review-status.approved { color: var(--green); }
.demo-footnote { margin-top: 23px; color: var(--muted); }
.caption { margin-top: 14px; color: var(--muted); max-width: 52rem; }

/* ---------- Buttons ---------- */
.small-button, .button { border: 1px solid var(--blue); background: var(--blue); color: var(--paper); padding: 11px 16px; font-size: 0.875rem; line-height: 1.5; text-decoration: none; display: inline-block; border-radius: 0; }
.small-button:hover, .button:hover { background: var(--link); color: white; }
.button.outline { color: var(--ink); background: transparent; border-color: var(--muted); }
.button.outline:hover { background: var(--shade); }
.button-row { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }

/* ---------- Medium screens ---------- */
@media (max-width: 1000px) {
  :root { --rail: 10rem; --rail-gap: 2.5rem; --bleed: 32px; }
  .wrap { width: calc(100% - 64px); }
  .hero h1 { font-size: 3.5rem; }
  .work-key { gap: 24px; }
  .work-key-item h3 { font-size: 1.4rem; }
  .notes-grid { gap: 30px; }
  .playground-panel { grid-template-columns: 1fr; }
  .case-hero h1 { font-size: 3.6rem; }
  .principle-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Phones: the rail folds into a label above each block ---------- */
@media (max-width: 700px) {
  :root { --bleed: 20px; }
  .wrap { width: calc(100% - 40px); }
  .railed { display: block; background: none; }
  .railed > .rail { margin-bottom: 18px; }
  .rail .eyebrow { margin-bottom: 0.35rem; }
  .rail-title { font-size: 2rem; }
  .site-header { display: flex; flex-wrap: wrap; gap: 15px; padding-block: 21px 17px; }
  .site-header > .rail { margin: 0; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 22px; }
  .brand { font-size: 1.45rem; }
  .brand-mark { width: 25px; height: 25px; margin-right: 8px; }
  .hero-rail { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 0; }
  .hero-rail .eyebrow { margin: 0; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero-intro { margin-top: 20px; }
  .hero-links { margin-top: 22px; }
  .intro-strip { padding-block: 22px; }
  .intro-strip > .rail { margin-bottom: 8px; }
  .work-section > .railed { padding-block: 46px 40px; }
  .work-chart { aspect-ratio: 1 / 1.02; margin-inline: -20px; }
  .chart-caption { right: 20px; }
  .vessel-label { font-size: 0.7rem; }
  .work-key { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .notes-section, .about-section { padding-block: 42px; }
  .notes-grid { grid-template-columns: 1fr; gap: 28px; }
  .playground-section { padding-bottom: 46px; }
  .playground-panel { padding: 27px; }
  .playground-panel h2 { font-size: 2.3rem; }
  .contact-section { padding-block: 30px; }
  .contact-body { display: block; }
  .contact-actions { text-align: left; margin-top: 22px; }
  .footer { padding-bottom: 25px; }
  .footer .folio { width: 100%; margin: 0; }
  .case-hero { padding-block: 26px 30px; }
  .back-link { margin-bottom: 14px; }
  .case-hero h1 { font-size: 2.8rem; }
  .case-lede { font-size: 1.025rem; }
  .case-meta { gap: 8px 20px; }
  .case-content { padding-top: 30px; }
  .screen + .screen { padding-top: 36px; }
  .screen .rail-link { margin-top: 0.6rem; }
  .case-sidebar { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .case-sidebar dl { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
  .case-sidebar dt, .case-sidebar dd { margin: 0; }
  .case-sidebar dt { padding-top: 3px; }
  .prose h2 { font-size: 1.7rem; }
  .prose blockquote { font-size: 1.4rem; }
  .case-end { padding-block: 28px 35px; }
  .case-end > .rail { margin-bottom: 6px; }
  .case-end-body { display: block; }
  .case-end-body > a { margin-top: 22px; }
  .outcome-band { padding: 26px; gap: 20px; }
  .outcome-band strong { font-size: 2.1rem; }
  .outcome-band p { font-size: 0.8125rem; }
  .experience-row { padding-block: 26px; }
  .experience-row > .rail { margin-bottom: 8px; padding-top: 0; }
  .education-grid { grid-template-columns: 1fr; gap: 30px; }
  .education-grid .button { margin-right: 8px; }
  .essay { padding-top: 26px; }
  .essay h1 { font-size: 2.5rem; }
  .essay-byline span, .essay-byline time { display: inline; }
  .essay-byline span::before { content: ' / '; }
  .index-hero { padding-block: 32px 30px; }
  .journal-row { padding-block: 26px; }
  .journal-row > .rail { margin-bottom: 10px; padding-top: 0; }
  .journal-body { display: block; }
  .journal-body h2 { font-size: 1.8rem; }
  .journal-body > a { display: inline-block; margin-top: 12px; padding-top: 0; }
  .workbench-grid { grid-template-columns: 1fr; gap: 25px; }
  .workbench-grid > div { border-top: 1px solid var(--line); padding-top: 22px; }
  .calendar-demo, .standardizer-demo { padding: 17px; }
  .demo-top { align-items: start; flex-wrap: wrap; gap: 6px; }
  .demo-name { font-size: 0.9375rem; }
  .cal-sub { flex-direction: column; align-items: start; gap: 10px; }
  .cal-grid { grid-template-columns: 1fr; min-height: 0; }
  .cal-day { display: grid; grid-template-columns: 55px 1fr; gap: 9px; min-height: 49px; align-items: start; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .cal-day:last-child { border-bottom: 0; }
  .cal-day > span { justify-content: start; gap: 7px; padding-top: 6px; }
  .send { margin: 0; }
  .send small { display: inline; margin: 0 0 0 6px; }
  .cal-day > .send + .send { grid-column: 2; }
  .demo-feedback { align-items: start; }
  .demo-actions { flex-wrap: wrap; gap: 10px; }
  .demo-actions > span { display: none; }
  .mapping-head { gap: 10px; }
  .review-example { gap: 10px; font-size: 0.875rem; }
  .review-example select { font-size: 1rem; padding: 9px 5px; }
  .button-row .button { width: 100%; text-align: center; }
  .standardizer-demo .button-row .copy-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body { background: white; color: black; font-size: 10pt; }
  .site-header nav, .skip-link, .button, .copy-button, .case-end, .footer, .back-link, .work-chart { display: none !important; }
  .railed { background: none; }
  .wrap { width: 100%; max-width: none; }
  .case-hero { padding: 20px 0; }
  .case-hero h1 { font-size: 30pt; }
  .experience-row { break-inside: avoid; padding-block: 15px; }
  .experience-row h2 { font-size: 18pt; }
  .case-meta { margin-top: 15px; padding-top: 10px; }
  .experience-education { padding-top: 20px; }
  .site-header { padding: 0 0 12px; }
  .case-lede { font-size: 12pt; }
}
