@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --page: #fcfcfc;
  --panel: #f2f3f4;
  --surface: #ffffff;
  --ink: #24262b;
  --body: #50545c;
  --muted: #686c73;
  --line: #d9dbde;
  --accent: #b33928;
  --focus: #b33928;
  --failure: #a72c26;
  --success: #25633f;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--body); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,p,dl { margin: 0; }
h1,h2,h3,h4,h5 { color: var(--ink); }
h1,h2 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
h2 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.035em; }
p { text-wrap: pretty; }
a { color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a,button,select,summary { touch-action: manipulation; }
a,button,select { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
button,select { font: inherit; cursor: pointer; }
.wrap { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.eyebrow,.work-type { font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: var(--muted); }
.accent,.wordmark span { color: var(--accent); }
.masthead { display: flex; align-items: center; gap: 42px; min-height: 98px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font: 500 45px/1 var(--serif); letter-spacing: -.06em; text-decoration: none; margin-right: auto; padding: 5px 8px 5px 0; }
.wordmark:hover { color: var(--accent); }
nav { display: flex; align-items: center; gap: 31px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 500; }
nav a:hover { text-decoration: underline; }
.theme-picker { border-left: 1px solid var(--line); padding-left: 26px; }
.theme-picker select { min-height: 44px; max-width: 138px; font-size: 12px; color: var(--body); background: var(--page); border: 1px solid transparent; border-radius: 0; padding: 7px 3px; }
.theme-picker select:hover { border-bottom-color: var(--accent); }
.hero { padding-top: 52px; }
.hero-kicker { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-kicker>p:last-child { font-size: 12px; color: var(--muted); }
h1 { font-size: clamp(78px, 12.1vw, 164px); line-height: 1.02; letter-spacing: -.045em; word-spacing: .045em; margin: 27px 0 38px -6px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; align-items: start; }
.role-title { color: var(--ink); font-size: 26px; line-height: 1.32; font-weight: 500; letter-spacing: -.035em; margin-bottom: 18px; }
.intro-text { max-width: 460px; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; min-height: 48px; background: var(--ink); color: var(--page); border: 1px solid var(--ink); padding: 12px 18px; text-decoration: none; font-size: 13px; line-height: 1.5; font-weight: 500; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 8px; font-size: 13px; font-weight: 500; text-decoration: underline; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link span,.button span { font-family: var(--sans); font-size: 17px; line-height: 1; }
.recent-note { border-top: 2px solid var(--accent); padding-top: 16px; }
.note-meta { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.note-meta .eyebrow { color: var(--accent); font-size: 10px; }
.note-meta time { color: var(--muted); font-size: 11px; }
.recent-note h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; max-width: 380px; margin-bottom: 14px; }
.recent-note>p { font-size: 13px; line-height: 1.8; max-width: 400px; }
.recent-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px; }
.recent-links a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 8px; font-size: 12px; text-decoration: underline; }
.focus-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; border-block: 1px solid var(--line); margin-top: 64px; }
.focus-strip>p { color: var(--muted); font-size: 11px; }
.focus-strip ul { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 0; margin: 0; list-style: none; color: var(--body); font-size: 12px; }
.section { padding-block: 88px; }
.section-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; align-items: end; margin-bottom: 48px; }
.section-number { margin-bottom: 20px; }
.section-context>p:first-child,.section-intro { font-size: 14px; line-height: 1.8; max-width: 420px; }
.status-note { color: var(--muted); font-size: 11px; margin-top: 13px; }
.featured-work { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; border-top: 1px solid var(--ink); padding-block: 35px 44px; }
.work-type { color: var(--accent); margin-bottom: 22px; }
.featured-copy h3 { font: 400 47px/1.08 var(--serif); letter-spacing: -.035em; margin-bottom: 23px; }
.featured-copy>p:not(.work-type) { font-size: 14px; line-height: 1.85; max-width: 430px; margin-bottom: 17px; }
.validation-note { border-left: 2px solid var(--line); padding-left: 17px; margin-top: 29px; max-width: 400px; }
.validation-note>span { display: block; color: var(--ink); font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.validation-note p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.change { padding-block: 0 24px; }
.change+.change { border-top: 1px solid var(--line); padding-top: 26px; }
.change-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 15px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.change h4 { font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.change p { font-size: 13px; line-height: 1.8; margin-bottom: 6px; }
.change .text-link { font-size: 12px; }
.earlier-fixes { border-block: 1px solid var(--line); }
.earlier-fixes summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 52px; color: var(--ink); font-size: 12px; font-weight: 500; list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.earlier-fixes summary::-webkit-details-marker { display: none; }
.earlier-fixes summary:hover { color: var(--accent); }
.details-icon { font-size: 21px; font-weight: 400; }
.earlier-fixes[open] .details-icon { transform: rotate(45deg); }
.earlier-list { padding-bottom: 8px; }
.earlier-list article { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 10px; }
.earlier-list h5 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.earlier-list p { font-size: 12px; line-height: 1.8; }
.earlier-list .text-link { font-size: 12px; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-top: 1px solid var(--line); padding-top: 35px; }
.work-pair article+article { border-left: 1px solid var(--line); padding-left: 38px; }
.work-pair h3 { font: 400 36px/1.13 var(--serif); letter-spacing: -.025em; margin-bottom: 17px; }
.work-pair p:not(.work-type) { font-size: 14px; line-height: 1.85; max-width: 465px; margin-bottom: 12px; }
.work-pair .work-type { margin-bottom: 19px; }
.section-link { margin-top: 34px; }
.projects-section { background: var(--panel); border-block: 1px solid var(--line); }
.lead-project { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; padding-block: 12px 60px; align-items: start; }
.project-copy { padding-top: 14px; }
.project-copy h3 { font: 400 43px/1.1 var(--serif); letter-spacing: -.03em; margin-bottom: 22px; }
.project-copy>p:not(.work-type) { font-size: 14px; line-height: 1.85; margin-bottom: 17px; max-width: 430px; }
.project-copy .work-type { color: var(--muted); font-size: 10px; }
.project-facts { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 27px; }
.project-facts>div { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding-block: 6px; font-size: 12px; }
.project-facts dt { color: var(--muted); }
.project-facts dd { color: var(--ink); margin: 0; }
.log-demo { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.demo-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.demo-header h4 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.demo-header>span { font-size: 10px; color: var(--muted); }
.demo-intro { color: var(--muted); font-size: 12px; margin-bottom: 23px; }
.pattern-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pattern-buttons button { min-height: 44px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--surface); padding: 9px 12px; font-size: 11px; line-height: 1.5; }
.pattern-buttons button:hover { border-color: var(--ink); }
.pattern-buttons button[aria-pressed=true] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font: 11px/1.6 var(--mono); }
th { color: var(--muted); font-weight: 400; }
th,td { padding: 11px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child,td:first-child { padding-left: 0; }
th:last-child,td:last-child { padding-right: 0; text-align: right; }
.failure { color: var(--failure); }
.success { color: var(--success); font-weight: 600; }
.analyst-note { padding-top: 23px; }
.analyst-note>span { font-size: 11px; font-weight: 600; color: var(--ink); }
.analyst-note p { margin-top: 6px; font-size: 12px; line-height: 1.8; }
.demo-caveat { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
.notebook-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 19px; }
.notebook-heading h3 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.notebook-heading>p { font-size: 11px; color: var(--muted); }
.notebooks { border-top: 1px solid var(--ink); }
.notebooks article { display: grid; grid-template-columns: 25px 1.05fr 1.45fr auto; gap: 28px; align-items: start; padding-block: 26px; border-bottom: 1px solid var(--line); }
.notebook-number { color: var(--muted); font: 11px/1.8 var(--mono); padding-top: 2px; }
.notebooks h4 { font-size: 15px; line-height: 1.5; font-weight: 500; letter-spacing: -.02em; }
.notebook-tools { font-size: 10px; color: var(--muted); margin-top: 7px; }
.notebooks article>p { font-size: 12px; line-height: 1.8; }
.notebooks .text-link { padding-top: 0; min-height: 44px; align-items: flex-start; white-space: nowrap; font-size: 11px; gap: 12px; }
.notebooks .text-link span { font-size: 16px; padding-top: 3px; }
.background { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; }
.background-intro>p:not(.eyebrow) { max-width: 370px; font-size: 14px; line-height: 1.85; margin-top: 26px; }
.background-intro .text-link { margin-top: 20px; }
.timeline article { padding-block: 27px; border-top: 1px solid var(--line); }
.timeline article:first-child { border-top-color: var(--ink); }
.timeline-date { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.timeline h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 6px; }
.timeline .company { font-size: 13px; color: var(--ink); }
.timeline article>p:last-child:not(.company) { font-size: 13px; line-height: 1.8; margin-top: 15px; }
.timeline .education { padding-bottom: 0; }
.contact { background: #24262b; color: #c7c9cf; padding-top: 75px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; padding-bottom: 70px; }
.contact .eyebrow { color: #aeb1b8; margin-bottom: 25px; }
.contact h2 { color: #fcfcfc; font-size: clamp(58px, 7vw, 89px); line-height: .98; letter-spacing: -.04em; }
.contact h2 span { color: #f69b88; }
.contact-copy { padding-top: 34px; }
.contact-copy>p { font-size: 15px; line-height: 1.85; max-width: 430px; margin-bottom: 24px; }
.contact .button { background: #fcfcfc; border-color: #fcfcfc; color: #24262b; }
.contact .button:hover { background: #f69b88; border-color: #f69b88; }
.contact .text-link,.contact footer a { color: #f0f0f2; }
.contact .text-link:hover,.contact footer a:hover { color: #f69b88; }
.github-link { display: flex; width: fit-content; margin-top: 10px; }
.contact a:focus-visible { outline-color: #f69b88; }
.contact footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; min-height: 85px; padding-block: 16px; border-top: 1px solid #505259; font-size: 11px; }
.contact footer a { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; }
.footer-note { color: #aeb1b8; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 20; background: var(--ink); color: var(--page); padding: 12px 20px; }
.skip:focus { top: 14px; }
.skip:hover { color: var(--page); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { padding-block: 24px; font-size: 13px; }
:root[data-theme=dark] {
  color-scheme: dark;
  --page: #191b1e; --panel: #202226; --surface: #25272c; --ink: #f0f0f2; --body: #c1c3c9; --muted: #a0a4ae; --line: #44474f;
  --accent: #f69b88; --focus: #f69b88; --failure: #ffa995; --success: #9bd8b3;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --page: #191b1e; --panel: #202226; --surface: #25272c; --ink: #f0f0f2; --body: #c1c3c9; --muted: #a0a4ae; --line: #44474f;
    --accent: #f69b88; --focus: #f69b88; --failure: #ffa995; --success: #9bd8b3;
  }
}
:root[data-theme=dark] .button:hover { color: var(--page); }
@media(prefers-color-scheme:dark) { :root:not([data-theme=light]) .button:hover { color: var(--page); } }
@media(min-width:1600px) {
  .hero { padding-top: 64px; }
  h1 { margin-top: 32px; margin-bottom: 44px; }
}
@media(max-width:1100px) {
  .wrap { width: calc(100% - 80px); }
  .hero-grid,.section-heading,.featured-work,.contact-grid,.background { gap: 60px; }
  .lead-project { gap: 45px; }
  .work-pair { gap: 45px; }
  .work-pair article+article { padding-left: 30px; }
  .notebooks article { grid-template-columns: 22px 1fr 1.2fr; gap: 12px 22px; }
  .notebooks .text-link { grid-column: 2; padding-top: 4px; }
  .notebooks article>p { grid-column: 3; grid-row: 1 / 3; }
  .log-demo { padding: 23px; }
}
@media(max-width:820px) {
  .wrap { width: calc(100% - 56px); }
  .masthead { min-height: 86px; gap: 23px; }
  nav { gap: 22px; }
  .theme-picker { padding-left: 18px; }
  .theme-picker select { font-size: 11px; max-width: 125px; }
  .hero { padding-top: 40px; }
  h1 { font-size: 14.1vw; margin-bottom: 35px; }
  .hero-grid,.section-heading,.featured-work,.contact-grid { gap: 38px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .role-title { font-size: 23px; }
  .intro-text { font-size: 14px; }
  .hero-actions { gap: 8px 20px; }
  .recent-note h2 { font-size: 30px; }
  .recent-note>p { font-size: 12px; }
  .focus-strip { margin-top: 45px; }
  .focus-strip ul { gap: 8px 22px; font-size: 11px; }
  .section { padding-block: 65px; }
  .section-heading { grid-template-columns: 1fr 1fr; }
  .section-context>p:first-child,.section-intro { font-size: 13px; }
  .featured-work { grid-template-columns: 1fr 1fr; }
  .featured-copy h3 { font-size: 38px; }
  .featured-copy>p:not(.work-type) { font-size: 13px; }
  .change h4 { font-size: 17px; }
  .work-pair { gap: 32px; }
  .work-pair article+article { padding-left: 25px; }
  .work-pair h3 { font-size: 31px; }
  .work-pair p:not(.work-type) { font-size: 13px; }
  .lead-project { grid-template-columns: 1fr; gap: 28px; padding-bottom: 42px; }
  .project-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 36px; }
  .project-copy .work-type,.project-copy h3 { grid-column: 1 / -1; }
  .project-copy>p:not(.work-type) { grid-column: 1; }
  .project-facts { grid-column: 2; grid-row: 3 / 5; align-self: start; margin-top: 0; }
  .log-demo { padding: 28px; }
  .demo-header h4 { font-size: 18px; }
  .demo-intro,.analyst-note p { font-size: 13px; }
  table { font-size: 12px; }
  .background { gap: 45px; grid-template-columns: .95fr 1.05fr; }
  .contact { padding-top: 60px; }
  .contact-grid { padding-bottom: 50px; }
  .contact-copy>p { font-size: 14px; }
  .footer-note { display: none; }
}
@media(max-width:620px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 40px); }
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 12px; min-height: 0; }
  .wordmark { font-size: 39px; }
  .theme-picker { grid-column: 2; grid-row: 1; border-left: 0; padding-left: 0; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 18px; margin-top: 8px; padding-bottom: 4px; }
  nav a { font-size: 12px; }
  .hero { padding-top: 28px; }
  .hero-kicker { align-items: flex-start; }
  .hero-kicker .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .hero-kicker>p:last-child { font-size: 10px; }
  h1 { font-size: clamp(62px, 15.5vw, 100px); letter-spacing: -.055em; margin: 22px 0 27px -2px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .role-title { font-size: 24px; line-height: 1.35; margin-bottom: 16px; }
  .role-title br { display: none; }
  .intro-text { max-width: 500px; font-size: 14px; line-height: 1.8; }
  .hero-actions { margin-top: 21px; gap: 10px 22px; }
  .hero-actions .text-link { font-size: 12px; }
  .button { gap: 24px; padding-inline: 15px; font-size: 12px; }
  .recent-note { padding-top: 14px; }
  .note-meta { margin-bottom: 16px; }
  .recent-note h2 { font-size: 31px; max-width: 390px; }
  .recent-note>p { font-size: 13px; max-width: 500px; }
  .recent-links { margin-top: 8px; }
  .focus-strip { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 29px; padding-block: 19px; }
  .focus-strip ul { gap: 8px 20px; font-size: 10px; }
  .section { padding-block: 48px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .section-number { margin-bottom: 15px; font-size: 10px; }
  h2 { font-size: 42px; }
  .section-context>p:first-child,.section-intro { font-size: 13px; max-width: 500px; }
  .status-note { font-size: 10px; margin-top: 9px; }
  .featured-work { grid-template-columns: 1fr; gap: 28px; padding-top: 25px; padding-bottom: 30px; }
  .work-type { font-size: 10px; margin-bottom: 17px; }
  .featured-copy h3 { font-size: 39px; margin-bottom: 18px; }
  .featured-copy h3 br { display: none; }
  .featured-copy>p:not(.work-type) { max-width: 500px; font-size: 14px; }
  .validation-note { margin-top: 22px; max-width: 500px; }
  .change { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 18px; }
  .change+.change { padding-top: 22px; }
  .change h4 { font-size: 19px; }
  .change-meta { margin-bottom: 12px; }
  .work-pair { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .work-pair article+article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .work-pair h3 { font-size: 34px; }
  .work-pair p:not(.work-type) { font-size: 14px; }
  .section-link { margin-top: 23px; font-size: 12px; }
  .lead-project { gap: 24px; padding-top: 3px; padding-bottom: 34px; }
  .project-copy { display: block; padding-top: 0; }
  .project-copy h3 { font-size: 37px; margin-bottom: 20px; }
  .project-copy>p:not(.work-type) { max-width: 500px; }
  .project-facts { margin-top: 23px; }
  .log-demo { padding: 22px 19px; }
  .demo-header h4 { font-size: 16px; }
  .demo-intro { font-size: 12px; margin-bottom: 18px; }
  .pattern-buttons { gap: 6px; }
  .pattern-buttons button { font-size: 10px; padding-inline: 10px; }
  table { font-size: 10px; }
  th,td { padding: 11px 7px; }
  .analyst-note p { font-size: 12px; }
  .notebook-heading { margin-bottom: 17px; }
  .notebook-heading h3 { font-size: 16px; }
  .notebooks article { grid-template-columns: 21px 1fr; gap: 12px 13px; padding-block: 22px; }
  .notebooks h4 { font-size: 16px; }
  .notebooks article>p { grid-column: 2; grid-row: auto; font-size: 12px; }
  .notebooks .text-link { grid-column: 2; min-height: 44px; padding-top: 4px; align-items: center; font-size: 12px; }
  .notebooks .text-link span { padding-top: 0; }
  .background { grid-template-columns: 1fr; gap: 32px; }
  .background-intro h2 br { display: none; }
  .background-intro>p:not(.eyebrow) { margin-top: 20px; max-width: 500px; }
  .background-intro .text-link { margin-top: 12px; }
  .timeline article { padding-block: 24px; }
  .timeline h3 { font-size: 21px; }
  .contact { padding-top: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 25px; padding-bottom: 35px; }
  .contact .eyebrow { font-size: 10px; margin-bottom: 22px; }
  .contact h2 { font-size: 65px; }
  .contact-copy { padding-top: 0; }
  .contact-copy>p { max-width: 500px; font-size: 14px; }
  .contact footer { font-size: 10px; gap: 12px; min-height: 76px; }
}
@media(max-width:360px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 14px; }
  nav a { font-size: 11px; }
  h1 { font-size: 16vw; }
  .hero-actions { gap: 8px 14px; }
  .hero-actions .text-link { font-size: 11px; }
  .focus-strip ul { gap: 8px 15px; }
  .log-demo { padding-inline: 15px; }
  .pattern-buttons button { padding-inline: 8px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media(forced-colors:active) { .button,.pattern-buttons button[aria-pressed=true] { border: 2px solid ButtonText; } }
@media print {
  :root,:root[data-theme=dark],:root:not([data-theme=light]) { color-scheme: light; --page: #fff; --panel: #fff; --surface: #fff; --ink: #222; --body: #444; --muted: #555; --line: #ccc; --accent: #9b2f22; --failure: #a72c26; --success: #25633f; }
  .wrap { width: 100%; }
  .masthead { min-height: 60px; }
  nav,.theme-picker,.hero-actions,.pattern-buttons,.section-link,.contact footer a { display: none; }
  .hero,.section { padding-block: 25px; }
  h1 { font-size: 78px; margin-block: 20px; }
  h2 { font-size: 35px; }
  .hero-grid,.section-heading,.featured-work,.lead-project,.background,.contact-grid { display: block; }
  .recent-note,.featured-work,.change-list,.log-demo,.timeline { margin-top: 25px; }
  .focus-strip { margin-top: 25px; }
  .section-heading { margin-bottom: 25px; }
  .section-context,.section-intro { margin-top: 16px; }
  .work-pair { gap: 30px; }
  .work-pair h3 { font-size: 28px; }
  .log-demo,.change,.work-pair article,.timeline article,.notebooks article { break-inside: avoid; }
  .project-copy { display: block; }
  .project-facts { margin-top: 20px; }
  .contact { background: #fff; color: var(--body); padding-top: 25px; border-top: 1px solid var(--line); }
  .contact h2,.contact .eyebrow,.contact .text-link,.contact footer,.contact footer a,.contact h2 span { color: var(--ink); }
  .contact h2 { font-size: 45px; }
  .contact-copy { padding-top: 20px; }
  .contact .button { color: #222; background: #fff; border-color: #999; }
  .contact-grid { padding-bottom: 25px; }
  .contact footer { border-top-color: #ccc; min-height: 50px; }
}
