@font-face { font-family: 'Fieldnotes Serif'; src: url('/assets/fonts/reading-serif.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --ed-ground: #f7f6f2;
  --ed-sheet: #fbfaf7;
  --ed-ink: #1b1b1d;
  --ed-muted: #535257;
  --ed-quiet: #68676b;
  --ed-line: #d6d4ce;
  --ed-line-dark: #aaa8a1;
  --ed-red: #a84339;
  --ed-paper: var(--ed-ground);
  --ed-display: 'Fieldnotes Serif', 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --ed-body: Figtree, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --ed-mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ed-ground: #191a1e;
  --ed-sheet: #202126;
  --ed-ink: #eeece8;
  --ed-muted: #c0bdba;
  --ed-quiet: #a6a39f;
  --ed-line: #3c3a3a;
  --ed-line-dark: #6a6460;
  --ed-red: #e28b7d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ed-ground: #191a1e;
    --ed-sheet: #202126;
    --ed-ink: #eeece8;
    --ed-muted: #c0bdba;
    --ed-quiet: #a6a39f;
    --ed-line: #3c3a3a;
    --ed-line-dark: #6a6460;
    --ed-red: #e28b7d;
  }
}
:root:root {
  --bg: var(--ed-ground);
  --surface: var(--ed-sheet);
  --surface-soft: #efeee9;
  --ink: var(--ed-ink);
  --muted: var(--ed-muted);
  --quiet: var(--ed-quiet);
  --line: var(--ed-line);
  --line-strong: var(--ed-line-dark);
  --blue: #414147;
  --blue-hover: #242428;
  --blue-wash: #eeece7;
  --focus: var(--ed-red);
  --action: #242428;
  --action-hover: #3c3a39;
  --action-pressed: #141416;
  --action-edge: #242428;
  --on-blue: #fff;
  --code: #eeece7;
  --font: var(--ed-body);
  --mono: var(--ed-mono);
}
:root[data-theme=dark] {
  --surface-soft: #29282a;
  --blue-wash: #302a28;
  --blue: #e28b7d;
  --blue-hover: #f3b1a4;
  --focus: #ee9b8c;
  --line-strong: #625e5b;
  --action: #eadfd7;
  --action-hover: #fff5ed;
  --action-pressed: #d3c6bc;
  --action-edge: #eadfd7;
  --on-blue: #191a1e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --surface-soft: #29282a;
    --blue-wash: #302a28;
    --blue: #e28b7d;
    --blue-hover: #f3b1a4;
    --focus: #ee9b8c;
    --line-strong: #625e5b;
    --action: #eadfd7;
    --action-hover: #fff5ed;
    --action-pressed: #d3c6bc;
    --action-edge: #eadfd7;
    --on-blue: #191a1e;
  }
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; accent-color: var(--ed-red); scrollbar-color: var(--ed-line-dark) var(--ed-ground); }
body.page { background: var(--ed-ground); color: var(--ed-ink); font-family: var(--ed-body); }
body.page :is(h1, h2, h3, h4) { letter-spacing: 0; }
::selection { color: #fff; background: var(--ed-red); }
.page :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.page :is(a, button) { -webkit-tap-highlight-color: transparent; }
.page .skip-link { z-index: 1000; top: -90px; border-radius: 2px; background: var(--ed-ink); color: var(--ed-sheet); }
.page .skip-link:focus { top: 12px; }
.page .site-header { position: sticky; z-index: 50; background: var(--ed-ground); border-bottom: 1px solid var(--ed-line); box-shadow: none; backdrop-filter: none; }
.page .site-header-inner { min-height: 72px; }
.page .brand-mark { width: 35px; height: 35px; border-radius: 0; color: var(--ed-ground); background: var(--ed-ink); }
.page .brand-mark > svg { width: 28px; height: 28px; }
.page .site-brand { color: var(--ed-ink); font-family: var(--ed-body); font-size: 16px; font-weight: 720; }
.page .site-nav { gap: clamp(15px, 2.2vw, 29px); }
.page .site-nav a { color: var(--ed-muted); font-size: 13px; font-weight: 600; }
.page .site-nav a[aria-current=page]::after { height: 2px; border-radius: 0; background: var(--ed-red); }
.page .header-actions { gap: 8px; }
.page :is(.search-trigger, .theme-toggle, .mobile-menu summary) { min-width: 42px; min-height: 42px; border: 1px solid var(--ed-line); border-radius: 2px; background: var(--ed-ground); color: var(--ed-ink); }
.page .search-trigger { padding-inline: 11px; font-size: 12px; }
.page :is(.search-trigger, .theme-toggle, .mobile-menu summary):hover { border-color: var(--ed-ink); background: var(--ed-sheet); color: var(--ed-ink); }
.page .mobile-menu nav { width: 225px; padding: 7px; border: 1px solid var(--ed-line-dark); border-radius: 2px; background: var(--ed-sheet); box-shadow: 0 16px 38px rgb(24 23 21 / .14); }
.page .mobile-menu nav a { min-height: 44px; color: var(--ed-ink); font-size: 14px; }
.page .mobile-menu nav a:hover { background: var(--ed-ground); }
.page .site-footer { margin-top: 0; border: 0; background: #222225; color: #f4f2ed; }
.page .site-footer :is(a, p, .footer-brand, .footer-description, .footer-bottom, .footer-links a, .footer-bottom a) { color: #e5e3de; }
.page .site-footer a:hover { color: #e9a095; }
.page .site-footer :focus-visible { outline-color: #f0a598; }
.page .site-footer .footer-inner { padding-block: 42px; }

/* A printed reference sheet introduces the subject, then gives way to a calm index. */
.experience-home { width: 100%; color: var(--ed-ink); }
.experience-home a { color: inherit; }
.experience-home :is(a, button):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  isolation: isolate;
  width: 100vw;
  min-height: min(694px, calc(100svh - 72px));
  margin-inline: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)));
  padding: 30px max(36px, calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
  overflow: clip;
  background: var(--ed-ground);
}
.cover::before { position: absolute; z-index: -1; inset: 0 0 auto; height: 1px; content: ''; background: var(--ed-line-dark); }
.cover-rule { position: absolute; top: 18px; right: max(36px, calc((100vw - var(--wrap)) / 2 + var(--gutter))); left: max(36px, calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; justify-content: space-between; gap: 20px; color: var(--ed-quiet); font: 10px var(--ed-mono); }
.cover-copy { align-self: center; max-width: 660px; padding-block: 68px 76px; }
.cover-copy { min-width: 0; }
.cover h1 { max-width: 9em; color: var(--ed-ink); font-family: var(--ed-display); font-size: 92px; font-weight: 700; line-height: 1.1; text-wrap: balance; }
.cover-copy > p { max-width: 29em; margin-top: 22px; color: var(--ed-muted); font-size: 19px; line-height: 1.9; text-wrap: pretty; }
.cover-action { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; margin-top: 26px; padding: 0 2px; border-bottom: 1px solid var(--ed-ink); color: var(--ed-ink) !important; font-size: 13px; font-weight: 650; transition: color 180ms ease, border-color 180ms ease; }
.cover-action svg { width: 17px; height: 17px; }
.cover-action:hover { border-color: var(--ed-red); color: var(--ed-red) !important; }
.cover-art { display: grid; grid-template-rows: auto minmax(250px, 1fr) auto; align-self: center; min-width: 0; width: 100%; max-width: 570px; justify-self: end; padding: 15px 0 17px; border-block: 1px solid var(--ed-ink); }
.cover-register { display: flex; justify-content: space-between; gap: 20px; color: var(--ed-red); font: 11px var(--ed-mono); }
.cover-art :is(canvas, .cover-fallback) { grid-area: 2 / 1; display: block; width: 100%; height: clamp(250px, 30vw, 375px); }
.cover-art canvas { opacity: 0; transition: opacity 260ms ease; }
.cover[data-art=ready] .cover-fallback { display: none; }
.cover[data-art=ready] .cover-art canvas { opacity: 1; }
.cover-art figcaption { padding-top: 11px; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font-size: 11px; }
.cover-margin { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-block: 12px 14px; border-top: 1px solid var(--ed-line-dark); color: var(--ed-muted); font-size: 11px; }
.home-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 35px; border-block: 1px solid var(--ed-line); }
.home-index a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-inline: clamp(10px, 2vw, 20px); color: var(--ed-muted); font-size: 13px; font-weight: 600; }
.home-index a + a { border-inline-start: 1px solid var(--ed-line); }
.home-index a:hover { background: var(--ed-sheet); color: var(--ed-red); }
.home-index svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ed-red); }

.experience-home .experience-topics { padding: 75px 0 57px; margin: 0; border: 0; scroll-margin-top: 84px; }
.experience-home .experience-topics-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.experience-home .experience-topics-heading h2, .experience-home .library-heading h2, .experience-home .task-studio-head h2 { margin: 0; color: var(--ed-ink); font-family: var(--ed-display); font-size: 40px; font-weight: 700; line-height: 1.28; }
.experience-home .experience-topics-heading > a { color: var(--ed-red); font-size: 12px; }
.experience-home .experience-topics ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-block: 1px solid var(--ed-line-dark); }
.experience-home .experience-topics li { min-width: 0; border: 0; }
.experience-home .experience-topics li + li { border-inline-start: 1px solid var(--ed-line); }
.experience-home .experience-topics li > .topic-tile { display: grid; grid-template-rows: auto 1fr auto; min-height: 218px; height: 100%; padding: 15px 13px 17px; background: transparent; color: var(--ed-ink); }
.experience-home .experience-topics li > .topic-tile:hover { background: var(--ed-sheet); }
.topic-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ed-ink); font-size: 13px; font-weight: 650; }
.topic-arrow { width: 15px; height: 15px; flex: 0 0 15px; color: var(--ed-red); }
.topic-drawing { display: block; width: 100%; max-height: 100px; height: auto; margin-block: 8px; color: var(--ed-ink); }
.topic-tile-bottom strong { display: block; color: var(--ed-ink); font-size: 12px; font-weight: 600; line-height: 1.55; }
.topic-tile-bottom > span { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; color: var(--ed-muted); font-size: 10px; line-height: 1.5; }
.topic-tile-bottom i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ed-red); align-self: center; }

.reading-feature { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 55px; min-height: 355px; margin: 12px 0 0; padding: clamp(30px, 5.3vw, 62px) clamp(25px, 5vw, 58px); border-block: 1px solid var(--ed-line-dark); border-radius: 0; background: #252426; color: #f8f6f2; }
.feature-copy { max-width: 560px; }
.reading-feature h2 { max-width: 11em; margin-top: 0; color: #fffdfa; font-family: var(--ed-display); font-size: 57px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.feature-summary { max-width: 34em; margin-top: 15px; color: #dad6d0; font-size: 14px; line-height: 1.8; }
.feature-read-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 13px; color: #fffdfa !important; font-size: 13px; font-weight: 650; }
.feature-read-link:hover { color: #efaa9e !important; }
.feature-read-link svg { width: 17px; height: 17px; transition: transform 170ms ease; }
.feature-read-link:hover svg { transform: translateX(3px); }
.feature-proof { display: grid; gap: 0; margin: 0; }
.feature-proof div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: 14px; padding-block: 15px; border-top: 1px solid #686361; }
.feature-proof dt { color: #eba398; font: 11px var(--ed-mono); }
.feature-proof dd { margin: 0; color: #f2f0ec; font-size: 13px; }

.github-weekly { margin-block: 69px; padding-block: 42px; scroll-margin-top: 84px; border-block: 1px solid var(--ed-line-dark); border-radius: 0; background: transparent; }
.github-weekly-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 22px; margin-bottom: 20px; }
.github-weekly h2 { color: var(--ed-ink); font-family: var(--ed-display); font-size: 39px; font-weight: 700; line-height: 1.3; }
.github-weekly-header h2 + p { margin-top: 6px; color: var(--ed-muted); font-size: 13px; }
.github-weekly-period { color: var(--ed-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.github-weekly-period time { white-space: nowrap; }
.github-weekly-list { margin: 0; padding: 0; list-style: none; }
.github-weekly-list > li { display: grid; grid-template-columns: 35px minmax(145px, .73fr) minmax(0, 1.6fr) auto; align-items: start; gap: 7px 16px; margin: 0; padding: 15px 8px; border-top: 1px solid var(--ed-line); }
.github-weekly-rank { padding-top: 2px; color: var(--ed-red); font: 11px var(--ed-mono); font-variant-numeric: tabular-nums; }
.github-weekly-list h3 { margin: 0; overflow-wrap: anywhere; font: 600 13px/1.55 var(--ed-mono); }
.github-weekly-list h3 a { display: inline-flex; align-items: center; min-height: 30px; color: var(--ed-ink); text-decoration: underline; text-decoration-color: var(--ed-line-dark); text-underline-offset: 3px; }
.github-weekly-list h3 a:hover { color: var(--ed-red); }
.github-weekly-stars { grid-column: 4; grid-row: 1; white-space: nowrap; color: var(--ed-muted); font-size: 11px; }
.github-weekly-stars strong { color: var(--ed-red); font-size: 12px; font-variant-numeric: tabular-nums; }
.github-weekly-description { grid-column: 3; grid-row: 1; max-width: 56ch; color: var(--ed-muted); font-size: 13px; line-height: 1.7; }
.github-weekly-source { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ed-line); color: var(--ed-quiet); font-size: 11px; }
.github-weekly-source a { color: var(--ed-red); text-decoration: underline; text-underline-offset: 3px; }

.experience-home .experience-library { padding: 24px 0 64px; margin: 0; border: 0; scroll-margin-top: 84px; }
.experience-home .library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--ed-line-dark); }
.experience-home .library-heading h2 { color: var(--ed-ink); }
.experience-home .library-heading p { margin-top: 7px; color: var(--ed-muted); font-size: 13px; }
.experience-home .rss-link { min-height: 42px; color: var(--ed-red); font-size: 12px; font-weight: 600; }
.experience-home .library-tools { gap: 18px; margin-top: 18px; }
.experience-home .filter-bar { gap: 3px; padding-bottom: 9px; border-color: var(--ed-line); }
.experience-home .filter-bar button { min-height: 42px; padding-inline: 10px; border: 0; border-radius: 0; color: var(--ed-muted); background: transparent; font-size: 12px; }
.experience-home .filter-bar button[aria-pressed=true] { background: var(--ed-ink); color: var(--ed-ground); }
.experience-home .view-tools button { min-width: 42px; min-height: 42px; border: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.experience-home .library-grid { gap: 0; border-top: 1px solid var(--ed-line); }
.experience-home .library-card { padding: 17px 10px; border: 0; border-bottom: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.experience-home .library-card:hover { background: var(--ed-sheet); }
.experience-home .library-card h3 { color: var(--ed-ink); font: 600 17px/1.5 var(--ed-body); }
.experience-home .library-card h3 a:hover { color: var(--ed-red); }
.experience-home .category-label { color: var(--ed-red); font-size: 11px; }
.experience-home .card-summary { max-width: 63ch; color: var(--ed-muted); font-size: 13px; line-height: 1.75; }
.experience-home .card-meta { gap: 8px; color: var(--ed-quiet); font-size: 10px; }
.experience-home .experience-library[data-view=grid] .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.experience-home .experience-library[data-view=grid] .library-card { padding: 17px 7px; border: 0; border-bottom: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.experience-home .experience-library[data-view=grid] .library-card:hover { background: var(--ed-sheet); }
.experience-home .more-row { padding-top: 21px; }
.experience-home .more-row .btn { min-height: 44px; border: 1px solid var(--ed-line); border-radius: 0; background: transparent; }

.experience-home .task-studio { margin-block: 21px 50px; overflow: hidden; border: 0; border-block: 1px solid var(--ed-line-dark); border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 84px; }
.experience-home .task-studio-head { padding: 28px 0 15px; }
.experience-home .task-studio-head h2 { font-size: 39px; }
.experience-home .task-studio-count { color: var(--ed-quiet); font-size: 11px; }
.studio-intro { padding: 0 0 18px; color: var(--ed-muted); font-size: 13px; }
.experience-home .task-tabs { border-block: 1px solid var(--ed-line); }
.experience-home .task-tabs[role=tablist]::after { height: 2px; background: var(--ed-red); }
.experience-home .task-tab { min-height: 52px; font-size: 12px; }
.experience-home .task-tab[aria-selected=true] { background: transparent; color: var(--ed-red) !important; }
.experience-home .task-panels { padding: 23px 0 20px; }
.experience-home .task-panel-intro h3 { color: var(--ed-ink); font: 650 21px/1.5 var(--ed-body); }
.experience-home .task-panel-intro p { max-width: 62ch; color: var(--ed-muted); font-size: 13px; }
.experience-home .task-chip-link, .experience-home .task-article-link { color: var(--ed-red) !important; }
.experience-home .task-chip { border-radius: 2px; background: var(--ed-sheet); }
.experience-home .task-prompt { border-radius: 2px; background: var(--ed-sheet); color: var(--ed-ink); font-size: 12px; }
.experience-home .task-copy { min-height: 44px; border-radius: 2px; color: var(--ed-red); }
.experience-home .task-review summary { min-height: 46px; font-size: 12px; }
.experience-home .experience-rss-note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 24px 0; margin-bottom: 50px; border: 0; border-block: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.experience-home .experience-rss-note h2 { color: var(--ed-ink); font: 700 21px/1.4 var(--ed-display); }
.experience-home .experience-rss-note p { color: var(--ed-muted); font-size: 12px; }
.experience-home .experience-rss-note .experience-secondary-link { color: var(--ed-red) !important; }
.experience-home .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 17px; margin-bottom: 19px; }
.experience-home .section-heading h2 { font: 650 18px/1.4 var(--ed-body); }
.experience-home .section-heading p { color: var(--ed-muted); font-size: 12px; }

.page .breadcrumb { padding-top: 25px; color: var(--ed-muted); font-size: 11px; }
.page .breadcrumb a { min-height: 38px; }
.page-post .article-shell { grid-template-columns: minmax(0, 760px) 224px; gap: 54px; padding-block: 22px 65px; }
.page-post .post-header { padding: 23px 0 21px; border-top: 1px solid var(--ed-line-dark); }
.page-post .post-header .category-label { color: var(--ed-red); font-size: 12px; }
.page-post .post-header h1 { margin-block: 14px 17px; color: var(--ed-ink); font: 700 43px/1.35 var(--ed-display); text-wrap: balance; }
.page-post .post-meta { gap: 12px 20px; color: var(--ed-quiet); font-size: 11px; }
.page-post .post-summary-lede { margin-top: 20px; padding: 16px 0 16px 18px; border-left: 2px solid var(--ed-red); border-radius: 0; background: transparent; color: var(--ed-muted); font-size: 15px; line-height: 1.85; }
.article-map { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 17px; color: var(--ed-muted); font-size: 11px; }
.article-map-label { color: var(--ed-red); font-weight: 600; }
.article-map ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.article-map li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.article-map li > a { display: flex; align-items: center; min-height: 44px; color: var(--ed-ink); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.article-map li > a:hover { color: var(--ed-red); text-decoration: underline; text-underline-offset: 3px; }
.article-map li > span { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid var(--ed-line-dark); border-radius: 50%; color: var(--ed-red); font: 9px var(--ed-mono); }
.page-post .reader-toolbar { min-height: 58px; margin-bottom: 27px; padding-block: 7px; border-color: var(--ed-line); color: var(--ed-muted); font-size: 11px; }
.page-post .reader-controls { gap: 7px; }
.page-post .reader-controls :is([data-focus-reading], .font-controls button, .share-button) { min-height: 42px; border-radius: 0; color: var(--ed-ink); }
.page-post .reader-controls [data-focus-reading][aria-pressed=true] { border-color: var(--ed-ink); background: var(--ed-ink); color: var(--ed-ground); }
.page-post .prose { max-width: min(69ch, 100%); color: var(--ed-ink); font-family: var(--ed-body); font-size: var(--article-size); line-height: 1.9; letter-spacing: 0; }
.page-post .prose > p { margin-top: 1.35em; }
.page-post .prose > p:first-child { margin-top: 0; }
.page-post .prose h2 { margin-top: 2.4em; padding-bottom: .4em; border-bottom: 1px solid var(--ed-line); color: var(--ed-ink); font: 700 1.42em/1.45 var(--ed-display); }
.page-post .prose h3 { margin-top: 1.85em; color: var(--ed-ink); font: 700 1.16em/1.5 var(--ed-display); }
.page-post .prose :is(p, li) > a:not(.heading-link) { color: var(--ed-red); text-decoration-color: var(--ed-line-dark); text-underline-offset: 3px; }
.page-post .prose blockquote { border-left: 2px solid var(--ed-red); border-radius: 0; background: var(--ed-sheet); color: var(--ed-muted); }
.page-post .prose :not(pre) > code { border: 1px solid var(--ed-line); border-radius: 2px; background: var(--ed-sheet); color: var(--ed-ink); }
.page-post .prose figure.code, .page-post .table-wrap { border: 1px solid var(--ed-line); border-radius: 0; background: var(--ed-sheet); box-shadow: none; }
.page-post .prose figure.code figcaption, .page-post .prose th { background: #e9e7e1; color: var(--ed-ink); }
.page-post .prose :is(th, td) { border-color: var(--ed-line); line-height: 1.7; }
.page-post .prose td { background: var(--ed-sheet); }
.page-post .copy-btn { min-height: 36px; border: 1px solid var(--ed-line-dark); border-radius: 0; color: var(--ed-red); }
.page-post .toc { padding: 16px 14px; border: 0; border-top: 1px solid var(--ed-line-dark); border-radius: 0; background: transparent; }
.page-post .toc-title, .page-post .toc h2 { color: var(--ed-ink); font: 700 15px/1.5 var(--ed-display); }
.page-post .toc-item a { padding-block: 6px; color: var(--ed-muted); font-size: 12px; }
.page-post .toc-item a.is-active { border-left-color: var(--ed-red); background: var(--ed-sheet); color: var(--ed-ink); }
.page-post .toc-mobile { border-radius: 0; border-color: var(--ed-line); background: var(--ed-sheet); }
.page-post .post-footer { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--ed-line); }
.page-post .post-end { color: var(--ed-muted); font: 700 16px/1.6 var(--ed-display); }
.page .tag { min-height: 31px; border: 1px solid var(--ed-line-dark); border-radius: 2px; background: transparent; color: var(--ed-muted); }
.page .tag:hover, .page .post-pager > a:hover { border-color: var(--ed-red); color: var(--ed-red); }
.page-post .post-pager > a { padding: 16px; border: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.page-post .post-pager strong { color: var(--ed-ink); font: 700 15px/1.55 var(--ed-display); }
.page-post .related { margin-top: 35px; }
.page-post .related h2 { font: 700 25px/1.5 var(--ed-display); }
.page .progress { background: var(--ed-line); }
.page .progress-bar { background: var(--ed-red); }
.page .back-top { border-color: var(--ed-line); background: var(--ed-sheet); color: var(--ed-ink); }
.page .toast { border: 1px solid var(--ed-line-dark); border-radius: 2px; background: var(--ed-ink); color: var(--ed-ground); }

.page .category-art-wrap { color: var(--ed-red); background: #efeee9; }
.page .category-art-wrap[data-topic=dsh] { background: #e8ecee; }
.page .category-art-wrap[data-topic=review] { background: #ece8e2; }
.page .category-art-wrap[data-topic=pitfalls] { background: #eee6e2; }
.page .category-art-wrap[data-topic=method] { background: #e8ebe5; }
.page .category-art-wrap .topic-drawing { width: 85%; height: 85%; object-fit: contain; }
.page .collection-header { gap: 45px; padding-block: 34px; }
.page .collection-header h1, .page .simple-header h1, .page .about-header h1, .page .not-found h1 { color: var(--ed-ink); font: 700 44px/1.36 var(--ed-display); }
.page .collection-header p, .page .simple-header p { color: var(--ed-muted); font-size: 14px; line-height: 1.85; }
.page .collection-icon { border: 1px solid var(--ed-line); border-radius: 0; background: var(--ed-sheet); color: var(--ed-red); }
.page .collection-count { color: var(--ed-quiet); font: 11px var(--ed-mono); }
.page .collection-art { border: 1px solid var(--ed-line); border-radius: 0; }
.page .post-item { gap: 24px; padding-block: 23px; border-color: var(--ed-line); }
.page .post-item-art { width: 196px; border: 1px solid var(--ed-line); border-radius: 0; }
.page .post-item-title { color: var(--ed-ink); font: 700 21px/1.55 var(--ed-display); }
.page .post-item-title a:hover { color: var(--ed-red); }
.page .post-item-summary { color: var(--ed-muted); font-size: 13px; line-height: 1.8; }
.page .post-item-meta { color: var(--ed-quiet); font-size: 10px; }
.page .category-label { color: var(--ed-red); }
.page .simple-header { padding-block: 40px 29px; }
.page .archive-shell { padding-top: 29px; gap: 45px; }
.page .archive-year h2 { font: 700 27px/1.45 var(--ed-display); }
.page .archive-row { min-height: 64px; border-color: var(--ed-line); }
.page .archive-row > a { font-size: 14px; }
.page .archive-topics { align-self: start; padding: 19px; border: 1px solid var(--ed-line); border-radius: 0; background: var(--ed-sheet); }
.page .archive-topics h2 { margin-bottom: 16px; font: 700 18px/1.4 var(--ed-display); }
.page .about-shell { max-width: 780px; padding-top: 38px; }
.page .about-header { padding-top: 22px; border-top: 1px solid var(--ed-line-dark); }
.page .about-logo { border-radius: 0; background: var(--ed-ink); color: var(--ed-ground); }
.page .about-header p { color: var(--ed-muted); font-size: 15px; }
.page .about-section h2 { font-family: var(--ed-display); }
.page .about-section { line-height: 1.85; }
.page .about-rss { border: 1px solid var(--ed-line); border-radius: 0; background: var(--ed-sheet); }
.page .not-found-code { margin-bottom: 20px; color: var(--ed-red); font: 700 100px/1 var(--ed-display); }

.page .search-dialog { border: 1px solid var(--ed-line-dark); border-radius: 0; background: var(--ed-sheet); color: var(--ed-ink); box-shadow: 0 25px 80px rgb(21 21 23 / .22); }
.page .search-dialog::backdrop { background: rgb(17 17 20 / .55); }
.page .search-panel { padding: 24px; }
.page .search-panel-head h2 { color: var(--ed-ink); font: 700 22px/1.4 var(--ed-display); }
.page .search-panel-head .icon-button { min-width: 44px; min-height: 44px; border: 1px solid var(--ed-line); border-radius: 0; background: transparent; }
.page .search-input-wrap { min-height: 50px; border-radius: 0; border-color: var(--ed-line-dark); background: var(--ed-ground); }
.page .search-input-wrap:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.page .search-input-wrap input { font-size: 16px; color: var(--ed-ink); }
.page .search-input-wrap input::placeholder { color: var(--ed-muted); }
.page .search-presets button { min-height: 38px; padding: 6px 10px; border: 1px solid var(--ed-line); border-radius: 0; background: transparent; color: var(--ed-muted); font-size: 11px; }
.page .search-presets button:hover { border-color: var(--ed-red); color: var(--ed-red); }
.page .search-status, .page .search-result-meta, .page .search-result-excerpt { color: var(--ed-muted); }
.page .search-result { border-color: transparent; border-radius: 0; }
.page .search-result:hover { border-color: var(--ed-line); background: var(--ed-ground); }
.page .search-result-title { color: var(--ed-ink); font-size: 15px; font-weight: 650; }
.page .search-result mark { color: var(--ed-red); background: var(--ed-ground); }
.page .search-page > .search-panel { border-color: var(--ed-line); border-radius: 0; background: var(--ed-sheet); }

.page .experience-home :is(.experience-topics, .reading-feature, .github-weekly, .experience-library, .task-studio, .experience-rss-note) { scroll-margin-top: 86px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cover-copy { animation: cover-typeset 680ms cubic-bezier(.2,.8,.2,1) both; }
  .cover-art { animation: cover-impose 820ms cubic-bezier(.2,.8,.2,1) both; }
  .cover-action svg, .feature-read-link svg, .home-index svg { transition: transform 180ms ease; }
  .cover-action:hover svg, .feature-read-link:hover svg, .home-index a:hover svg { transform: translateY(2px); }
  .experience-home .topic-tile, .experience-home .library-card { transition: color 160ms ease, background-color 160ms ease; }
  .experience-home .topic-tile:hover { color: var(--ed-red); }
  .experience-home .library-card:hover { background: var(--ed-sheet); }
  @keyframes cover-typeset { from { opacity: .45; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes cover-impose { from { clip-path: inset(0 0 0 18%); } to { clip-path: inset(0); } }
}
@media (max-width: 1000px) {
  .page-home .cover { grid-template-columns: minmax(0, 1.05fr) minmax(290px, .95fr); }
  .cover h1 { font-size: 72px; }
  .experience-home .experience-topics-heading h2, .experience-home .library-heading h2, .experience-home .task-studio-head h2 { font-size: 32px; }
  .reading-feature h2 { font-size: 47px; }
  .github-weekly h2 { font-size: 32px; }
  .page-post .post-header h1 { font-size: 37px; }
  .page .collection-header h1, .page .simple-header h1, .page .about-header h1, .page .not-found h1 { font-size: 37px; }
  .cover-art canvas { height: 300px; }
  .experience-home .experience-topics ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .experience-home .experience-topics li:nth-child(4) { border-top: 1px solid var(--ed-line); border-inline-start: 0; }
  .experience-home .experience-topics li:nth-child(5) { border-top: 1px solid var(--ed-line); }
  .page-post .article-shell { grid-template-columns: minmax(0, 1fr) 210px; gap: 35px; }
  .page .post-item-art { width: 175px; }
}
@media (max-width: 900px) {
  .page-post .article-shell { grid-template-columns: minmax(0, 1fr); max-width: 780px; gap: 0; }
  .page-post .post-aside { display: none; }
  .page-post .toc-mobile { display: block; }
  .page .collection-header { gap: 25px; }
  .page .collection-header h1 { font-size: 32px; }
  .page .archive-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  :root:root { --gutter: 24px; }
  .page-home .cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: auto; padding-top: 55px; }
  .cover-copy { padding: 35px 0 25px; }
  .cover h1 { font-size: 52px; }
  .cover-copy > p { max-width: 35em; font-size: 16px; }
  .cover-art { width: min(100%, 510px); max-width: none; justify-self: center; margin-block: 7px 24px; }
  .cover-art canvas { height: clamp(245px, 43vw, 315px); }
  .cover-fallback { height: clamp(245px, 43vw, 315px); }
  .home-index { margin-top: 0; }
  .home-index a { min-height: 51px; padding-inline: 9px; font-size: 12px; }
  .experience-home .experience-topics { padding-block: 56px 47px; }
  .experience-home .experience-topics li > .topic-tile { min-height: 195px; padding: 15px 11px; }
  .topic-drawing { max-height: 88px; }
  .topic-tile-bottom strong { font-size: 12px; }
  .reading-feature { grid-template-columns: 1fr; gap: 23px; min-height: auto; padding: 30px 25px; }
  .reading-feature h2 { font-size: 40px; }
  .feature-summary { font-size: 14px; }
  .feature-proof div { padding-block: 12px; }
  .github-weekly { margin-block: 49px; padding-block: 35px; }
  .github-weekly-list > li { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 3px; }
  .github-weekly-list h3 { grid-column: 2; grid-row: 1; }
  .github-weekly-stars { grid-column: 3; grid-row: 1; }
  .github-weekly-description { grid-column: 2 / -1; grid-row: 2; font-size: 13px; }
  .experience-home .experience-library[data-view=grid] .library-grid { grid-template-columns: 1fr; }
  .experience-home .task-studio-head { padding-block: 24px 14px; }
  .experience-home .task-panels { padding-block: 20px; }
  .experience-home .task-prompt { font-size: 12px; }
  .page-post .post-header h1 { font-size: 34px; }
  .page .collection-header h1, .page .simple-header h1, .page .about-header h1, .page .not-found h1 { font-size: 34px; }
  .page .collection-header { grid-template-columns: 1fr; }
  .page .collection-art { max-height: 250px; }
}
@media (max-width: 480px) {
  :root:root { --gutter: 18px; }
  .page .site-header-inner { min-height: 62px; gap: 8px; }
  .page .site-brand { gap: 7px; font-size: 15px; }
  .page .brand-mark { width: 31px; height: 32px; }
  .page .header-actions { gap: 1px; }
  .page .search-trigger { min-width: 40px; min-height: 42px; padding: 8px; border: 0; background: transparent; }
  .page .theme-toggle, .page .mobile-menu summary { min-width: 40px; min-height: 42px; border: 0; background: transparent; }
  .cover { padding-top: 46px; }
  .cover-rule { font-size: 9px; }
  .cover-copy { padding: 30px 0 20px; }
  .cover h1 { font-size: 47px; }
  .experience-home .experience-topics-heading h2, .experience-home .library-heading h2, .experience-home .task-studio-head h2 { font-size: 29px; }
  .github-weekly h2 { font-size: 27px; }
  .page-post .post-header h1 { font-size: 30px; }
  .cover-copy > p { max-width: 24em; font-size: 15px; line-height: 1.8; }
  .cover-art { margin-top: 5px; }
  .cover-art canvas { height: 252px; }
  .cover-fallback { height: 252px; }
  .cover-margin { display: grid; gap: 3px; font-size: 10px; }
  .home-index { grid-template-columns: 1fr; }
  .home-index a { min-height: 44px; padding-inline: 4px; }
  .home-index a + a { border-inline-start: 0; border-top: 1px solid var(--ed-line); }
  .experience-home .experience-topics { padding-top: 44px; }
  .experience-home .experience-topics-heading { align-items: end; }
  .experience-home .experience-topics-heading h2, .experience-home .library-heading h2, .experience-home .task-studio-head h2 { font-size: 29px; }
  .experience-home .experience-topics-heading > a { font-size: 11px; }
  .experience-home .experience-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-home .experience-topics li:nth-child(3), .experience-home .experience-topics li:nth-child(5) { border-top: 1px solid var(--ed-line); }
  .experience-home .experience-topics li:nth-child(3) { border-inline-start: 0; }
  .experience-home .experience-topics li:nth-child(5) { grid-column: 1 / -1; }
  .experience-home .experience-topics li:nth-child(5) > .topic-tile { min-height: 140px; }
  .experience-home .library-heading { align-items: start; }
  .experience-home .rss-link { min-height: 40px; font-size: 11px; }
  .experience-home .library-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .experience-home .filter-bar { max-width: 100%; overscroll-behavior-x: contain; }
  .experience-home .filter-bar button { padding-inline: 8px; font-size: 11px; }
  .github-weekly-header { align-items: start; }
  .github-weekly-period { flex-basis: 100%; }
  .github-weekly-description { font-size: 13px; }
  .experience-home .task-studio-head { align-items: start; }
  .experience-home .task-tab { min-height: 52px; gap: 3px; padding-inline: 3px; font-size: 11px; }
  .experience-home .task-tab .icon { width: 14px; height: 14px; }
  .experience-home .task-panel-intro h3 { font-size: 20px; }
  .experience-home .experience-rss-note { grid-template-columns: 1fr; gap: 9px; }
  .experience-home .experience-rss-note h2 { font-size: 19px; }
  .page .post-item { align-items: start; gap: 13px; }
  .page .post-item-art { width: 100px; border-radius: 0; }
  .page .post-item-title { font-size: 17px; }
  .page .post-item-summary { font-size: 12px; }
  .article-map ol { grid-template-columns: 1fr; gap: 0; }
  .page-post .reader-toolbar { align-items: start; }
  .page-post .reader-controls { flex-wrap: wrap; justify-content: end; }
}
@media (max-width: 360px) {
  :root:root { --gutter: 15px; }
  .page .site-brand { font-size: 13px; }
  .page .brand-mark { width: 28px; height: 29px; }
  .cover h1 { font-size: 46px; }
  .github-weekly-list > li { grid-template-columns: 22px minmax(0, 1fr); }
  .github-weekly-stars { grid-column: 2; grid-row: 2; }
  .github-weekly-description { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .cover-art, .reading-feature { border-block: 1px solid CanvasText; }
  .cover-action { border-color: ButtonText; }
  .feature-proof div, .github-weekly-list > li, .home-index { border-color: CanvasText; }
}
