
@font-face {
  font-family: 'Azeret Mono';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/azeret-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Azeret Mono';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/azeret-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/martian-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/martian-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark light;
  --ground: #1C1C1F;
  --surface: #2C2C30;
  --ink: #EBEBEB;
  --secondary: #A1A1A6;
  --hairline: #34343A;
  --accent: var(--ink);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --terminal: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #F5F5F3;
    --surface: #FFFFFF;
    --ink: #161618;
    --secondary: #5C5C61;
    --hairline: #DCDCD8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

main { flex: 1; width: 100%; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--secondary); }
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  background: currentColor;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 2.5h6v6M9.5 2.5l-7 7' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; padding: 8px 12px; background: var(--surface); z-index: 2; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }


.bar { border-bottom: 1px solid var(--hairline); }
.bar-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.home { display: flex; color: var(--ink); }
.home svg { width: 56px; height: auto; overflow: visible; }

nav ul { list-style: none; margin: 0; padding: 0; }
.links { display: flex; align-items: center; gap: 36px; font: 14px/1.4 var(--mono); }
.links a, .menu a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.quiet { color: var(--secondary); }
.quiet:hover { color: var(--ink); }

.menu { display: none; }


.label { margin: 0; font: 400 14px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--secondary); }

.hero { padding: 80px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 16px + 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.lede { margin: 0; max-width: 38em; font-size: 20px; line-height: 1.5; color: var(--secondary); }

.block { padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }

.projects { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 16px; }
.projects li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 80px;
  gap: 24px;
  align-items: baseline;
  padding: 20px 28px;
}
.projects li + li { border-top: 1px solid var(--hairline); }
.name { font: 16px/1.5 var(--mono); overflow-wrap: anywhere; }
.name a { text-decoration: none; }
.line { color: var(--secondary); line-height: 1.5; }
.repo { font: 14px/1.5 var(--mono); text-align: right; text-decoration: none; color: var(--secondary); }
.repo:hover { color: var(--ink); }

.notes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.notes li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.notes a { font-size: 20px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.notes time { font: 14px/1.4 var(--mono); color: var(--secondary); white-space: nowrap; }
.notes.with-intro li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 0; }
.notes .intro { grid-column: 1 / -1; margin: 0; max-width: 38em; color: var(--secondary); line-height: 1.5; }

.empty { margin: 0; color: var(--secondary); }
.more { margin: 0; font: 14px/1.4 var(--mono); color: var(--secondary); }
.more a { text-decoration: none; }


.hire[popover] {
  width: min(480px, calc(100vw - 32px));
  margin: auto;
  padding: 32px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 64px rgb(0 0 0 / 0.4);
}
.hire::backdrop { background: rgb(0 0 0 / 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hire-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.hire-close {
  margin: -12px;
  padding: 12px;
  border: 0;
  background: none;
  font: 14px/1.4 var(--mono);
  color: var(--secondary);
  cursor: pointer;
}
.hire-close:hover { color: var(--ink); }
.hire-pitch, .hire-done { margin: 0; font-size: 20px; line-height: 1.5; }
.hire-pitch { margin-bottom: 32px; }
.hire-done:focus { outline: none; }
.hire-form { display: flex; flex-direction: column; gap: 8px; }
.hire-page .hire-form { max-width: 480px; margin-top: 16px; }
.hire-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hire-row input { width: 100%; }
.hire-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}
.hire-form button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--ground);
  font: 14px/1.4 var(--mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
}
.hire-form button:hover { background: var(--secondary); }
.hire-form button:disabled { opacity: 0.6; cursor: progress; }
.hire-status { margin: 0; }
.hire-status:empty { display: none; }
.hire-note { margin: 24px 0 0; font-size: 14px; color: var(--secondary); }
.hire-decoy { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .hire[popover] { padding: 24px; }
  .hire-form button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hire[popover], .hire::backdrop {
    opacity: 0;
    transition: opacity 160ms ease-out, overlay 160ms allow-discrete, display 160ms allow-discrete;
  }
  .hire:popover-open, .hire:popover-open::backdrop { opacity: 1; }
  @starting-style {
    .hire:popover-open, .hire:popover-open::backdrop { opacity: 0; }
  }
}


.note { padding: 80px 0 64px; font-family: var(--terminal); }
.note h1 { font-family: var(--sans); }
.note header, .prose > :not(pre, table), .note .more { max-width: 70ch; }
.note header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.note h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.note .more { margin-top: 48px; }

.prose h2, .prose h3 { line-height: 1.3; letter-spacing: -0.01em; }
.prose h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 4px; }
.prose code { font: inherit; }
.prose :not(pre) > code { padding: 0 4px; background: var(--surface); border-radius: 4px; }
.prose pre { padding: 16px 20px; background: var(--surface); border-radius: 12px; overflow-x: auto; font: 14px/1.5 var(--terminal); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--hairline); color: var(--secondary); }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--hairline); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }


.session-toggle {
  position: fixed;
  z-index: 20;
  right: var(--gutter);
  bottom: 24px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  font: 14px/1.4 var(--mono);
  letter-spacing: 0.06em;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.session-toggle::-webkit-details-marker { display: none; }
.session-toggle:hover { color: var(--secondary); }
.session[open] .session-toggle { background: var(--ink); color: var(--ground); }
body:has(.session) .foot-inner { padding-bottom: 104px; }

.session-pane {
  position: fixed;
  z-index: 20;
  right: var(--gutter);
  bottom: 84px;
  width: min(640px, calc(100vw - 2 * var(--gutter)));
  height: min(80vh, calc(100vh - 184px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.session-head { padding: 12px 20px; border-bottom: 1px solid var(--hairline); }
.session-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 24px;
  font: 14px/1.5 var(--terminal);
}
.session-body:focus-visible { outline-offset: -2px; }
.session pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

.t { display: grid; grid-template-columns: 2ch minmax(0, 1fr); margin-top: 12px; }
.t:first-child { margin-top: 0; }
.t-mark { color: var(--secondary); }
.t-say .t-mark { color: var(--ink); }
.t-out, .t-meta { margin-top: 4px; color: var(--secondary); }
.t-prompt { margin: 24px -20px 0; padding: 12px 20px; background: var(--ground); border-block: 1px solid var(--hairline); }
.t-prompt:first-child { margin-top: -16px; border-top: 0; }
.t-prompt pre { font-weight: 600; }
.t-cmd, .session code { padding: 0 4px; border-radius: 4px; background: var(--ground); }
.t-prompt .t-cmd, .t-prompt code { background: var(--surface); }
.session code { font: inherit; }
.session strong, .t-name { font-weight: 600; }
.t-bad { color: var(--ink); font-weight: 600; }
.t-item { display: block; padding-left: 2ch; text-indent: -2ch; }
.t details summary { cursor: pointer; padding: 4px 0; }
.t details summary:hover { color: var(--ink); }


.prose > .walk { max-width: none; }
.walk {
  container-type: inline-size;
  margin: 40px 0 48px;
  font: 16px/1.6 var(--terminal);
}
@media screen {
  .walk {
    color-scheme: dark;
    --ground: #4B0082;
    --surface: #5B188B;
    --ink: #F2EEFA;
    --secondary: #BC9FD1;
    --hairline: #6B30A6;
    --accent: var(--ink);
    padding: 32px;
    border-radius: 16px;
    background: var(--ground);
    color: var(--ink);
  }
}
@media screen and (max-width: 720px) {
  .walk { padding: 20px; }
}
.walk ol, .walk ul { list-style: none; margin: 0; padding: 0; }
.prose .walk li + li { margin-top: 0; }
.walk p { margin: 0; }
.walk .label { letter-spacing: 0.06em; }
.walk .w-title { color: var(--ink); margin-bottom: 8px; }

.w-pick { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 24px; padding: 0; border: 0; }
.w-pick label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 14px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--secondary);
  cursor: pointer;
  text-underline-offset: 6px;
}
.w-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.w-pick label:hover { color: var(--ink); }
.w-pick label:has(:checked) { color: var(--ink); text-decoration: underline; }
.w-pick label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.w-text { display: flex; flex-direction: column; gap: 40px; }
.w-sum { max-width: 70ch; margin-bottom: 24px !important; }
.w-part + .w-part { margin-top: 16px; }
.w-part > .label { margin-bottom: 4px; }

.w-script li {
  display: grid;
  grid-template-columns: 3ch 15ch minmax(0, 1fr);
  padding: 4px 0;
}
.w-n { color: var(--secondary); font-variant-numeric: tabular-nums; }
.w-who { font: 14px/1.6 var(--mono); letter-spacing: 0.06em; padding-top: 1px; }
.w-text-say { max-width: 60ch; }
.w-text-say code { padding: 0 4px; background: var(--surface); border-radius: 4px; }
.w-with { display: block; color: var(--secondary); font-size: 14px; }
.w-nm { font: 14px/1.6 var(--mono); letter-spacing: 0.06em; }

.w-trace-all { margin-top: 24px; }
.w-trace-all summary { cursor: pointer; color: var(--secondary); padding: 10px 0; }
.w-trace-all summary:hover { color: var(--ink); }
.prose .w-trace-all pre { margin: 8px 0 0; font-size: 14px; color: var(--secondary); }

.w-cast { display: flex; flex-direction: column; gap: 16px; }
.w-cast-zone > .label { margin-bottom: 4px; }
.w-cast li {
  display: grid;
  grid-template-columns: 15ch 6ch minmax(0, 1fr);
  gap: 0 2ch;
  font-size: 14px;
  line-height: 28px;
}
.w-cast-lines { text-align: right; color: var(--secondary); font-variant-numeric: tabular-nums; }
.w-cast-role { color: var(--secondary); line-height: 1.5; padding: 4px 0; }

.walk figcaption { margin-top: 32px; }

@container (min-width: 1000px) {
  .w-text { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 64px; align-items: start; }
  .w-cast { position: sticky; top: 24px; }
  .w-cast li { grid-template-columns: 15ch 6ch 44ch; }
}

@container (max-width: 520px) {
  .w-script li { grid-template-columns: 3ch minmax(0, 1fr); }
  .w-text-say { grid-column: 2; }
  .w-cast li { grid-template-columns: minmax(0, 1fr) auto; }
  .w-cast-role { grid-column: 1 / -1; padding: 0 0 8px; }
}

.walk:has(.w-pick [value="0"]:checked) .w-walk:not([data-w="0"]) { display: none; }
.walk:has(.w-pick [value="1"]:checked) .w-walk:not([data-w="1"]) { display: none; }
.walk:has(.w-pick [value="2"]:checked) .w-walk:not([data-w="2"]) { display: none; }
.walk:has(.w-pick [value="3"]:checked) .w-walk:not([data-w="3"]) { display: none; }
.walk:has(.w-pick [value="4"]:checked) .w-walk:not([data-w="4"]) { display: none; }
.walk:has(.w-pick [value="5"]:checked) .w-walk:not([data-w="5"]) { display: none; }

.walk [hidden] { display: none !important; }
.walk { --label: 21ch; --row: 28px; }
@container (max-width: 560px) { .w-stage { display: none !important; } }
@container (min-width: 561px) { .walk.has-js .w-text { display: none; } }

.w-stage { display: flex; flex-direction: column; gap: 16px; }
.w-side { display: contents; }
.w-now { order: 1; }
.w-score { order: 2; }
.w-trace { order: 3; }
.walk button, .w-pkgbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.w-now { display: flex; flex-direction: column; gap: 4px; }
.w-ctl { display: flex; align-items: center; gap: 16px; }
.w-ctl button { min-height: 44px; padding: 0 4px; font: 14px/1.4 var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.w-ctl button:hover:not(:disabled) { color: var(--secondary); }
.w-ctl button:disabled { color: var(--secondary); cursor: default; }
.w-range { flex: 1; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--ink); }
.w-say { min-height: 4.8em; max-width: 70ch; }
.w-say code { padding: 0 4px; background: var(--surface); border-radius: 4px; }
.w-act { font: 14px/1.6 var(--mono); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 4px; margin-right: 1ch; }

.w-score { position: relative; display: flex; flex-direction: column; gap: 16px; }
.w-key { display: flex; align-items: center; gap: 8px; }
.w-key-n { color: var(--ink); font-weight: 700; }
.w-key-d { margin-left: 16px; }
.w-key-d::before, .m-with::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.w-phases, .w-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); }
.w-phases::before { content: ""; }
.w-marks, .w-phase-grid {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  align-items: center;
}
.w-phases { font: 14px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--secondary); margin-bottom: -12px; }
.w-phase-grid > span { grid-column: var(--c) / span var(--span); white-space: nowrap; overflow: hidden; padding-left: 2px; }
.w-zone { position: relative; display: flex; flex-direction: column; }
.w-zone-name { margin-bottom: 4px !important; }
.w-row { min-height: var(--row); align-items: center; font-size: 14px; line-height: var(--row); }
.walk .w-pkgbtn { display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: var(--row); align-items: center; padding-right: 16px; text-align: left; line-height: inherit; }
.w-pkgbtn:hover .w-name { text-decoration: underline; text-underline-offset: 4px; }
.w-lines { color: var(--secondary); font-variant-numeric: tabular-nums; }
.w-marks { height: var(--row); }
.m { grid-row: 1; grid-column: var(--c); text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.w-band { position: absolute; background: var(--surface); border-radius: 6px; }

.is-step .m { color: var(--secondary); }
.is-step .m.now { color: var(--ink); font-weight: 700; }
.is-step .w-row.lead .m.now { color: var(--ground); }
.is-step .m.later { opacity: 0; }
.w-claim {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--ink);
}
.is-step .w-name { color: var(--secondary); }
.is-step .w-row.on .w-name { color: var(--ink); }
.is-step .w-row.lead .w-name { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.is-pkg .w-row { color: var(--secondary); }
.is-pkg .w-row.chosen { color: var(--ink); }
.is-pkg .w-row.chosen .m-main { font-weight: 700; }
.is-pkg .w-row.chosen .w-name { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.is-pkg .w-row.chosen .w-lines { color: var(--ink); }

.prose .w-trace { margin: 0; padding: 0; background: none; font: 14px/1.5 var(--terminal); color: var(--secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.w-trace:empty { display: none; }
.w-trace span { display: block; padding-left: 2ch; text-indent: -2ch; }

@media (prefers-reduced-motion: no-preference) {
  .m { transition: color 150ms ease-out, opacity 150ms ease-out; }
  .w-band { transition: left 180ms ease-out; }
  .w-claim { transition: left 180ms ease-out, top 180ms ease-out; }
  .no-anim, .no-anim * { transition: none !important; }
}

@container (min-width: 1000px) {
  .w-stage { display: grid; grid-template-columns: minmax(0, 1fr) 42ch; gap: 48px; align-items: start; }
  .w-score { grid-column: 1; grid-row: 1; }
  .w-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
}

@media print {
  .w-stage { display: none !important; }
  .walk.has-js .w-text { display: flex; }
}


.foot { border-top: 1px solid var(--hairline); }
.foot-inner { padding-top: 36px; padding-bottom: 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.lockup { width: 120px; height: auto; overflow: visible; color: var(--ink); }
.lockup .slogan { fill: var(--secondary); }
.elsewhere {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font: 14px/1.5 var(--mono);
}
.elsewhere a { text-decoration: none; }
.phone-only { display: none; }


@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .bar-inner { height: 72px; }
  .home svg { width: 48px; }
  .links { display: none; }

  .menu { display: block; position: relative; }
  .menu summary {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    cursor: pointer;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ul {
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 1;
    min-width: 200px;
    padding: 8px 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    font: 14px/1.4 var(--mono);
  }
  .menu a { display: flex; align-items: center; min-height: 44px; padding: 0 20px; }

  .hero { padding: 40px 0 32px; gap: 16px; }
  .lede { font-size: 16px; }
  .block { padding-bottom: 32px; gap: 12px; }

  .projects li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 20px; }
  .repo { text-align: left; }

  .notes li { flex-direction: column; gap: 0; padding: 0 0 12px; }
  .notes a { display: block; padding: 12px 0 4px; font-size: 16px; }
  .notes.with-intro li { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 16px; }
  .notes .intro { margin-top: 8px; }

  .note { padding: 40px 0 32px; }

  .name a, .repo, .more a, .elsewhere a { display: inline-block; padding: 12px 0; line-height: 20px; }

  .foot-inner { padding-top: 12px; padding-bottom: 16px; }
  .lockup { display: none; }
  .elsewhere { align-items: flex-start; gap: 0; }
  .phone-only { display: list-item; }
}


@media print {
  @page { size: A4; margin: 20mm; }
  :root {
    --ground: #FFFFFF;
    --surface: #F5F5F3;
    --ink: #161618;
    --secondary: #5C5C61;
    --hairline: #DCDCD8;
    --gutter: 0;
  }
  .bar, .foot, .skip, .more, .session { display: none; }
  .note, .hero { padding-top: 0; }
}
