/* Personal studio: a little structure, a little play. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
a:hover { text-decoration: underline; }
button { font: inherit; }
button[hidden] { display: none; }
svg { display: block; flex: none; }
.icon { width: 1.15rem; height: 1.15rem; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.045em; }
h1, h2 { font-weight: 650; }
h3 { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
main:focus { outline: none; }
.wrap { width: min(1180px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 70; transform: translateY(-180%); padding: .65rem 1rem; background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip-link:focus { transform: none; }

.site-header { min-height: 100px; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 2rem; }
.wordmark { font-size: 1.75rem; font-weight: 800; letter-spacing: -.085em; line-height: 1; color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.wordmark span { color: var(--accent); margin-left: .04em; }
.wordmark:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1.9rem; margin-left: auto; align-items: center; }
.main-nav a { font-size: .86rem; font-weight: 600; display: flex; align-items: center; min-height: 44px; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.github-link { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .84rem; font-weight: 650; color: var(--ink); border-left: 1px solid var(--line); padding-left: 1.9rem; }
.eyebrow { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .075em; text-transform: uppercase; line-height: 1.6; color: var(--muted); }

/* A physical-feeling sculpture is the signature, with readable copy alongside. */
.intro { display: grid; grid-template-columns: 1.06fr 1fr; gap: 2.5rem; padding: 4.6rem 0 4.4rem; align-items: center; }
.intro-main { min-width: 0; }
.intro-title .eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.small-mark { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; }
h1 { font-size: clamp(3rem, 4.65vw, 4.2rem); line-height: 1.13; letter-spacing: -.055em; }
.hand-underline { display: inline-block; position: relative; white-space: nowrap; color: var(--accent); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.055em; }
.hand-underline::after { content: ''; position: absolute; left: 0; right: -.03em; bottom: -.03em; height: 1px; background: currentColor; opacity: .5; transform: rotate(-2deg); }
.intro-copy { margin-top: 1.75rem; max-width: 490px; }
.intro-copy p { font-size: .94rem; line-height: 1.85; }
.intro-copy strong { color: var(--ink); font-weight: 750; }
.text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; font-weight: 700; font-size: .83rem; color: var(--ink); }
.text-link .icon { width: 1rem; height: 1rem; transition: transform .25s ease; }
:root[data-motion='on'] .text-link:hover .icon { transform: translateY(3px); }
.intro-copy .text-link { margin-top: 1.1rem; }
.intro-art { margin: 0; min-width: 0; }
.intro-art .studio-art { width: 112%; margin-left: -6%; }
.intro-art figcaption { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: -.1rem; padding-inline: .8rem; font-family: var(--mono); font-size: .6rem; color: var(--muted); }

/* The workbench has its own surface, with one feature and two smaller studies. */
.projects { padding: 2.35rem; background: var(--notebook); border: 1px solid var(--line); border-radius: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading .eyebrow { margin-bottom: .65rem; }
.projects > .section-heading .eyebrow, .projects > .section-heading > p { color: var(--body); }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.section-heading > p { max-width: 230px; font-size: .8rem; text-align: right; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.project-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; transition: transform .3s cubic-bezier(.2,.75,.25,1), border-color .3s ease, box-shadow .3s ease; scroll-margin-top: 2rem; }
.project-card:hover { border-color: var(--accent); box-shadow: 0 12px 28px -18px #26322245; }
:root[data-motion='on'] .project-card:hover { transform: translateY(-4px); }
.project-card[data-project='codearbiter'] { grid-column: 1/-1; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 320px; }
.project-card[data-project='codearbiter'] .project-visual { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); border-bottom: 0; aspect-ratio: auto; min-height: 320px; }
.project-card[data-project='codearbiter'] .project-copy { grid-column: 1; grid-row: 1; padding: 2rem; }
.project-card[data-project='codearbiter'] h3 { font-size: 2.1rem; }
.project-card[data-project='codearbiter'] .project-copy > p { max-width: 410px; margin-top: .8rem; }
.project-visual { position: relative; display: block; overflow: hidden; background: #e6eadf; border-bottom: 1px solid var(--line); aspect-ratio: 1.85; }
.project-visual:hover { text-decoration: none; }
.arbiter-art, .sim-art { display: flex; flex-direction: column; height: 100%; padding: 1.3rem 1.5rem .8rem; position: relative; }
.art-caption { display: block; font-family: var(--mono); font-size: .55rem; font-weight: 500; letter-spacing: .08em; text-align: center; color: #536149; }
.gate-art { width: 100%; height: auto; min-height: 0; flex: 1; }
.art-grid { stroke: #cdd5c4; stroke-width: .65; opacity: .5; }
.art-track { stroke: #bbc7b1; }
.art-path { stroke: #697b55; }
.art-node { fill: #697b55; stroke: #e6eadf; stroke-width: 3; }
.art-gate { fill: #536944; }
.art-gate-cap { stroke: #70815e; }
.art-end { stroke: #9aa88d; fill: #e6eadf; stroke-width: 2; }
.art-stages { display: flex; justify-content: space-around; padding-inline: .7rem; color: #58674c; font-family: var(--mono); font-size: .6rem; }
[data-accent='blue'] .project-visual { background: #e2ebee; }
.sim-art { padding-bottom: .2rem; }
.sim-art > .art-caption { color: #4c6879; }
.sim-art > svg { flex: 1; min-height: 0; width: 100%; height: auto; }
.map-network { fill: #eff4f5; stroke: #b8ccd4; stroke-dasharray: 4 3; }
.map-label { fill: #547181; font-family: var(--mono); font-size: 8px; letter-spacing: .5px; }
.map-route, .map-arrow { stroke: #658fa4; }
.map-node { fill: #f8fbfb; stroke: #88a9b8; }
.map-service { font-family: var(--sans); fill: #385669; font-size: 9px; font-weight: 650; }
.map-junction { fill: #658fa4; stroke: #e2ebee; stroke-width: 2; }
[data-accent='clay'] .project-visual { background: #1c2837; }
.game-art { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s cubic-bezier(.2,.75,.25,1); }
:root[data-motion='on'] .project-card:hover .game-art { transform: scale(1.035); }
.game-label { position: absolute; bottom: 10px; left: 10px; background: #121c23e8; color: #edf1ed; border: 1px solid #ffffff30; border-radius: 3px; font-family: var(--mono); font-size: .5rem; letter-spacing: .065em; padding: 4px 7px; }
.generic-art { height: 100%; display: grid; align-content: center; justify-items: center; }
.generic-art > span:first-child { font-size: 4rem; line-height: 1.2; font-weight: 750; color: #536247; }
.project-copy { padding: 1.55rem 1.6rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.project-kicker { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--mono); font-size: .61rem; text-transform: uppercase; letter-spacing: .035em; color: var(--muted); margin-bottom: .9rem; }
.project-number { font-variant-numeric: tabular-nums; }
.project-copy h3 { font-size: 1.5rem; letter-spacing: -.045em; }
.project-copy > p { font-size: .9rem; line-height: 1.85; margin: .7rem 0 1.4rem; flex: 1; }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.project-open { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 750; min-height: 44px; color: var(--ink); }
.project-open .icon { width: .9rem; height: .9rem; transition: transform .25s ease; }
:root[data-motion='on'] .project-open:hover .icon { transform: translate(2px,-2px); }
.project-source { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; min-height: 44px; color: var(--muted); font-size: .67rem; }
.project-source .icon { width: 1rem; height: 1rem; }
.project-source:hover { color: var(--ink); }
.project-footnote { font-size: .77rem; color: var(--body); margin: 1.2rem 0 0; }
.project-footnote a { display: inline-flex; align-items: center; gap: .1rem; color: var(--ink); text-decoration: underline; font-weight: 650; min-height: 32px; }
.project-footnote .icon { width: .8rem; height: .8rem; }

/* A dark reading room breaks the page into a second, distinct chapter. */
.reading { margin-top: 4rem; padding: 2rem 2.6rem 1.2rem; background: var(--reading); color: var(--reading-muted); border-radius: 12px; }
.reading-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #e1e8dc26; padding-bottom: 1.15rem; }
.reading .eyebrow { color: #bfccb1; }
.reading-brand { font-family: var(--mono); font-weight: 500; font-size: .65rem; letter-spacing: .065em; color: var(--reading-ink); }
.reading-brand > span { color: #b4c59b; margin-left: .2rem; }
.reading-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; padding: 2.5rem 0; }
.reading h2 { color: var(--reading-ink); font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.14; }
.reading h2 > span { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.025em; }
.reading-copy > p { font-size: .88rem; line-height: 1.85; max-width: 390px; margin: 1.3rem 0 1.5rem; }
.reading-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .7rem 1.1rem; min-height: 44px; border-radius: 4px; background: #dbe4c8; color: #263021; font-size: .8rem; font-weight: 750; transition: background .25s ease, transform .25s ease; }
.button:hover { background: #edf3df; text-decoration: none; }
:root[data-motion='on'] .button:hover { transform: translateY(-2px); }
.subtle-link { font-size: .76rem; text-decoration: underline; color: var(--reading-ink); min-height: 44px; display: inline-flex; align-items: center; }
.reading-index { align-self: center; }
.reading-index > a { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e1e8dc26; }
.reading-index > a:first-child { padding-top: 0; }
.reading-index > a:last-child { border-bottom: 0; padding-bottom: 0; }
.reading-topic-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e1e8dc26; border-radius: 7px; color: #c2d1b2; transition: transform .3s ease, background .3s ease; }
.reading-topic-mark .topic-icon { width: 1.15rem; height: 1.15rem; }
.reading-index .topic-name { color: var(--reading-ink); font-size: .88rem; font-weight: 500; }
.reading-index > a > .icon { margin-left: auto; width: .95rem; height: .95rem; color: #bccab0; transition: transform .25s ease; }
.reading-index > a:hover { text-decoration: none; }
.reading-index > a:hover .topic-name { text-decoration: underline; text-underline-offset: .3em; }
:root[data-motion='on'] .reading-index > a:hover .reading-topic-mark { transform: rotate(-5deg); background: #e1e8dc12; }
:root[data-motion='on'] .reading-index > a:hover > .icon { transform: translate(2px,-2px); }
.reading-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #e1e8dc26; padding-top: .8rem; font-family: var(--mono); font-size: .6rem; color: #bcc9b5; }
.reading-bottom p span { padding: 0 .45rem; opacity: .6; }
.reading-bottom a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; }
.reading-bottom .icon { width: .85rem; height: .85rem; }
.reading :focus-visible { outline-color: #dbe4c8; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; padding: 5.4rem 1.3rem 5rem; align-items: center; }
.about .eyebrow { margin-bottom: 1rem; }
.about h2 { font-size: 2.35rem; line-height: 1.22; margin-bottom: 1.35rem; }
.about-copy > p:not(.eyebrow) { font-size: .9rem; line-height: 1.9; margin-bottom: 1rem; max-width: 520px; }
.about-copy .text-link { margin-top: .1rem; }
.notebook { background: #eee5d9; color: #61594f; border: 1px solid #d8c9b7; border-radius: 4px; padding: 1.6rem 1.8rem; margin-inline: .3rem; transform: rotate(1.2deg); box-shadow: 5px 6px 0 var(--paper),6px 7px 0 #b9b1a5; transition: transform .35s ease, box-shadow .35s ease; }
:root[data-motion='on'] .notebook:hover { transform: rotate(0); box-shadow: 4px 6px 0 var(--paper),5px 7px 0 #b9b1a5; }
.notebook-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #cbbca9; padding-bottom: .9rem; margin-bottom: 1.35rem; }
.notebook .eyebrow { color: #706353; margin: 0; }
.notebook-top .icon { color: #8b6e50; }
.notebook-date { font-family: var(--mono); font-size: .61rem; color: #706353; }
.notebook-drawing { max-width: 300px; padding-block: .9rem 1rem; color: #947557; }
.notebook-drawing svg { width: 100%; height: auto; }
.notebook h3 { font-size: 1.6rem; letter-spacing: -.04em; color: #3b3d32; }
.notebook h3 a { display: flex; align-items: center; gap: 1rem; }
.notebook > p:not(.notebook-date) { font-size: .83rem; line-height: 1.85; margin-top: .7rem; }
.notebook-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .7rem; font-size: .76rem; color: #3b3d32; font-weight: 700; }
:root[data-theme='dark'] .notebook { background: #302d26; border-color: #544a3c; color: #d0c5b7; box-shadow: 5px 6px 0 var(--paper),6px 7px 0 #615543; }
:root[data-theme='dark'] .notebook-top { border-color: #544a3c; }
:root[data-theme='dark'] .notebook .eyebrow, :root[data-theme='dark'] .notebook-date { color: #bfb09c; }
:root[data-theme='dark'] .notebook h3, :root[data-theme='dark'] .notebook-link { color: #ece3d5; }
:root[data-theme='dark'] .notebook-drawing, :root[data-theme='dark'] .notebook-top .icon { color: #bea282; }

.site-footer { padding: 2.1rem 0 1.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.8rem; }
.site-footer .wordmark { font-size: 1.75rem; }
.site-footer p { font-size: .73rem; color: var(--muted); margin-top: .35rem; }
.site-footer nav { display: flex; gap: 1.7rem; font-size: .77rem; font-weight: 600; }
.site-footer nav a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.site-footer nav .icon { width: .8rem; height: .8rem; }
.footer-meta { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .58rem; color: var(--muted); }
.footer-meta .motion-control { font-family: var(--sans); font-size: .68rem; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 72px); }
  .intro { gap: 1.3rem; padding-block: 3.5rem; }
  h1 { font-size: clamp(3rem, 4.85vw, 4rem); }
  .intro-copy p { font-size: .9rem; }
  .projects { padding: 1.7rem; }
  .project-card[data-project='codearbiter'] .project-copy { padding: 1.5rem; }
  .project-card[data-project='codearbiter'] h3 { font-size: 1.85rem; }
  .project-copy { padding: 1.35rem; }
  .reading { padding-inline: 2rem; }
  .reading-body { gap: 2rem; }
  .about { gap: 3rem; padding-inline: 0; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 88px; gap: 1rem; }
  .main-nav { gap: 1.3rem; }
  .github-link { padding-left: 1rem; }
  .github-link span { display: none; }
  .header-actions { gap: .5rem; }
  .intro { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 3.3rem; }
  .intro-main { max-width: 650px; }
  h1 { font-size: clamp(3.4rem, 7.2vw, 4.5rem); }
  .intro-copy { max-width: 570px; margin-top: 1.4rem; }
  .intro-copy p { font-size: .96rem; }
  .intro-art { justify-self: center; width: min(100%, 480px); }
  .intro-art .studio-art { width: 100%; margin-left: 0; }
  .section-heading > p { max-width: 180px; }
  .project-grid { gap: 1.1rem; }
  .project-card[data-project='codearbiter'] { grid-template-columns: 1fr 1fr; min-height: 300px; }
  .project-card[data-project='codearbiter'] .project-visual { min-height: 300px; }
  .project-card[data-project='codearbiter'] .project-copy { padding: 1.25rem; }
  .project-card[data-project='codearbiter'] h3 { font-size: 1.65rem; }
  .project-copy { padding: 1.2rem; }
  .project-copy h3 { font-size: 1.35rem; }
  .project-source span { display: none; }
  .project-copy > p { font-size: .86rem; }
  .art-caption { font-size: .48rem; }
  .art-stages { font-size: .52rem; }
  .arbiter-art, .sim-art { padding-inline: .8rem; }
  .reading { padding-inline: 1.7rem; margin-top: 3rem; }
  .reading h2 { font-size: 2.3rem; }
  .reading-index { min-width: 0; }
  .reading-index > a { gap: .7rem; }
  .reading-index .topic-name { font-size: .78rem; }
  .reading-topic-mark { width: 32px; height: 32px; flex: none; }
  .reading-actions { gap: .4rem 1rem; }
  .about { gap: 2rem; padding-block: 4rem; }
  .about h2 { font-size: 2rem; }
  .notebook { padding: 1.3rem; }
  .notebook h3 { font-size: 1.35rem; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 0; min-height: 0; padding: 1rem 0 .5rem; justify-content: space-between; }
  .wordmark { font-size: 1.6rem; }
  .header-actions { margin-left: auto; }
  .github-link { border-left: 0; padding: 0; min-width: 44px; justify-content: center; }
  .theme-toggle { width: 40px; height: 40px; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 1.9rem; padding-top: .3rem; }
  .main-nav a { font-size: .8rem; }
  .intro { padding: 2.7rem 0 2.3rem; gap: .8rem; }
  .intro-title .eyebrow { font-size: .53rem; letter-spacing: .04em; margin-bottom: 1.3rem; }
  h1 { font-size: clamp(2.75rem, 10.4vw, 3.7rem); line-height: 1.12; }
  .intro-copy { margin-top: 1.5rem; }
  .intro-copy p { font-size: .9rem; line-height: 1.85; }
  .intro-copy .text-link { margin-top: .8rem; }
  .intro-art { width: 100%; }
  .intro-art figcaption { font-size: .52rem; padding-inline: 0; margin-top: -.6rem; }
  .art-replay { font-size: .63rem; }
  .projects { padding: 1.2rem; margin-inline: -.35rem; border-radius: 9px; }
  .section-heading { gap: 1rem; align-items: start; margin-bottom: 1.25rem; }
  .section-heading h2 { font-size: 1.95rem; }
  .section-heading > p { font-size: .7rem; max-width: 120px; padding-top: 1.45rem; }
  .eyebrow { font-size: .56rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-card[data-project='codearbiter'] { display: flex; min-height: 0; }
  .project-card[data-project='codearbiter'] .project-visual { aspect-ratio: 1.7; min-height: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .project-card[data-project='codearbiter'] .project-copy { padding: 1.2rem; }
  .project-card[data-project='codearbiter'] h3 { font-size: 1.45rem; }
  .project-visual { aspect-ratio: 1.7; }
  .arbiter-art, .sim-art { padding: 1rem 1rem .65rem; }
  .sim-art { padding-bottom: .1rem; }
  .art-caption { font-size: .44rem; }
  .project-copy { padding: 1.2rem; }
  .project-copy h3 { font-size: 1.35rem; }
  .project-copy > p { font-size: .875rem; margin: .65rem 0 1rem; }
  .project-kicker { font-size: .57rem; }
  .project-open { font-size: .8rem; }
  .project-source span { display: inline; }
  .project-source { font-size: .64rem; }
  .project-footnote { font-size: .72rem; }
  .reading { padding: 1.4rem 1.3rem 1rem; margin-top: 2.4rem; border-radius: 9px; }
  .reading-top { align-items: start; flex-direction: column; gap: .5rem; padding-bottom: 1rem; }
  .reading-brand { font-size: .65rem; }
  .reading-body { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.7rem 0; }
  .reading h2 { font-size: 2.25rem; }
  .reading-copy > p { font-size: .85rem; margin: 1rem 0 1.25rem; }
  .reading-index .topic-name { font-size: .84rem; }
  .reading-index > a { padding: .8rem 0; }
  .reading-bottom { font-size: .52rem; gap: 0; }
  .reading-bottom p { padding: .5rem 0; }
  .about { grid-template-columns: 1fr; gap: 2.4rem; padding: 3.4rem 0; }
  .about h2 { font-size: 2rem; }
  .about-copy > p:not(.eyebrow) { font-size: .88rem; }
  .notebook { margin-inline: .25rem; padding: 1.5rem; }
  .notebook-top { margin-bottom: 1rem; }
  .notebook h3 { font-size: 1.5rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1.6rem; }
  .site-footer nav { gap: 1.5rem; }
  .footer-meta { font-size: .51rem; flex-wrap: wrap; gap: .2rem .8rem; }
  .footer-meta .motion-control { font-size: .61rem; }
  .site-footer p { font-size: .69rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
  .project-card, .reading, .notebook, .theme-toggle, .projects, .reading-topic-mark { border: 1px solid CanvasText; }
  .hand-underline::after { display: none; }
  .reading, .button, .notebook { background: Canvas; color: CanvasText; }
  .reading h2, .reading p, .reading a, .reading .eyebrow, .reading-topic-mark, .reading-index .topic-name, .notebook h3, .notebook-link { color: CanvasText; }
}
