@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-sans-400.woff") format("woff");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/dm-sans-600.woff") format("woff");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url("fonts/dm-sans-700.woff") format("woff");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600 900; font-display: swap;
  src: url("fonts/barlow-condensed-700.woff") format("woff");
}
:root {
  --paper: #ecefe5; --surface: #fff; --ink: #142019; --muted: #4e5d50;
  --line: #d9dfd3; --lime: #c2ed43; --accent: #426315;
  --night: #132019; --night-ink: #f6f6e9; --night-line: #38463b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .55rem 1.15rem; border: 1px solid transparent; border-radius: 5px; background: var(--lime); color: #172310; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.95); }
input:not([type=checkbox],[type=radio],[type=hidden]), textarea, select { max-width: 100%; padding: .68rem .85rem; border: 1px solid #9da998; border-radius: 4px; background: var(--surface); color: var(--ink); }
input:not([type=checkbox],[type=radio],[type=hidden]), select { min-height: 45px; }
textarea { min-height: 7rem; resize: vertical; }
label { color: var(--ink); }
:focus-visible { outline: 3px solid #467acf; outline-offset: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; padding: 12px 18px; background: var(--lime); color: #192610; }
.wrap { width: min(1200px, calc(100% - clamp(36px, 8vw, 120px))); margin-inline: auto; }
.block { padding-block: clamp(2.4rem, 4.5vw, 4.4rem); }
h1, h2, h3, h4 { margin: 0; overflow-wrap: anywhere; line-height: 1.06; }
h1, h2, .category-caption h3 { font-family: var(--body); font-weight: 700; }
h1 { font-size: clamp(2.85rem, 6.3vw, 5.9rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.95rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.23; }
p { margin: .8em 0 1em; }
strong { font-weight: 700; }
main {
  flex: 1 0 auto;
  width: min(1280px, calc(100% - clamp(24px, 5vw, 80px)));
  min-width: 0;
  margin: clamp(14px, 2vw, 32px) auto;
  background: var(--surface);
  border: 1px solid #cfd7c9;
  border-radius: 10px;
  box-shadow: 0 10px 38px -21px #2c45295c;
}
main.reading-panel { max-width: 1060px; }
main:has(.drawing-workspace), main:has(.reading), main:has(.identity-page) { max-width: 1020px; }
main > .home-hero, main > .listing-hero { border-radius: 9px 9px 0 0; }
main > .home-projects:last-child { border-radius: 0 0 9px 9px; }
.site-header, .site-footer { background: var(--night); color: var(--night-ink); }
.nav-toggle { align-items: center; gap: .55rem; padding: .35rem .7rem; min-height: 44px; color: var(--night-ink); background: transparent; border: 1px solid #65775d; font-size: .9rem; }
.burger { width: 17px; height: 12px; border-block: 1.5px solid currentColor; position: relative; }
.burger::after { content: ''; position: absolute; width: 100%; height: 1.5px; background: currentColor; top: 4px; }
.site-header { position: relative; z-index: 4; border-bottom: 1px solid var(--night-line); }
.header-inner { min-height: 66px; display: flex; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.brand { flex: none; display: inline-flex; align-items: center; }
.brand img { width: 141px; height: auto; display: block; }
.site-navigation, .main-nav, .head-actions { display: flex; align-items: center; }
.site-navigation { flex: 1; justify-content: space-between; gap: 1rem; }
.main-nav, .head-actions { gap: clamp(1rem, 2.2vw, 2.2rem); }
.main-nav a, .head-actions a { min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.main-nav a { padding-block: .6rem; position: relative; }
.main-nav a[aria-current]::after { position: absolute; content: ''; height: 2px; background: var(--lime); bottom: 2px; left: 0; right: 0; }
.head-actions a[aria-current], .footer-info a[aria-current] { color: var(--lime); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.main-nav a:hover, .account-link:hover { color: var(--lime); }
.head-actions .head-upload { background: var(--lime); color: #172310; display: inline-flex; gap: .4rem; align-items: center; padding: .53rem .95rem; border-radius: 5px; }
.head-actions .head-upload[aria-current] { color: #172310; text-decoration-color: currentColor; }
.head-upload span { font-size: 1.15rem; line-height: 1; }

.home-hero, .listing-hero { isolation: isolate; position: relative; overflow: hidden; background: #0e1712; color: var(--night-ink); }
.hero-art, .hero-art::after { position: absolute; inset: 0; z-index: -1; }
.hero-art :is(img, .scope-beam) { position: absolute; width: 80%; height: 100%; right: 0; object-fit: cover; object-position: right 49%; }
.hero-art .scope-beam { pointer-events: none; z-index: 2; }
.hero-art::after { content: ''; z-index: 1; background: linear-gradient(90deg,#0d1711 0%,#0d1711 17%,rgba(13,23,17,.93) 31%,rgba(13,23,17,.38) 54%,transparent 78%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(370px, 36vw, 520px); }
.hero-copy { padding-block: clamp(48px, 5vw, 78px); width: min(630px, 56%); }
.overline { display: flex; align-items: center; gap: .7rem; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; margin: 0 0 1rem; color: var(--lime); }
.signal { display: inline-block; width: 24px; height: 3px; background: var(--lime); }
.home-hero h1 { font-size: clamp(3.1rem, 5.75vw, 5.75rem); line-height: .97; letter-spacing: -.065em; margin-left: -.035em; }
.home-hero h1, .listing-hero h1, .article-header h1 { text-wrap: balance; }
.hero-intro { margin: 1.2rem 0 0; max-width: 34ch; color: #e1e6d8; font-size: clamp(.96rem,1.5vw,1.16rem); line-height: 1.4; }
.hero-search { display: flex; align-items: center; gap: .5rem; max-width: 470px; margin-top: clamp(1.6rem, 3vw, 2.9rem); border: 1px solid #deead0; padding: 4px; background: var(--surface); color: var(--ink); border-radius: 6px; }
.hero-search .lens { display: block; flex: 0 0 16px; height: 16px; border: 1.8px solid currentColor; border-radius: 50%; margin-left: .8rem; position: relative; color: #53684d; }
.lens::after { content: ''; position: absolute; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); right: -5px; bottom: -2px; }
.hero-search input[type=search] { border: none; padding: .4rem .3rem; flex: 1; min-width: 0; background: transparent; min-height: 42px; }
.hero-search button { min-height: 44px; border-radius: 4px; }
.hero-search:focus-within { outline: 3px solid var(--lime); outline-offset: 4px; }
.statline { color: var(--ink); border-block: 1px solid var(--line); background: var(--surface); }
.stat-items { display: grid; grid-template-columns: .9fr .7fr 1.2fr 1.35fr .85fr; padding-block: clamp(1.4rem,3vw,2.45rem); }
.stat-items div { min-width: 0; display: flex; flex-direction: column-reverse; justify-content: end; padding-inline: clamp(.65rem,2vw,1.8rem); gap: .4rem; border-left: 1px solid var(--line); }
.stat-items div:first-child { padding-left: 0; border-left: 0; }
.stat-items div:last-child { padding-right: 0; }
.stat-items dt { color: var(--muted); font: 600 .79rem/1.3 var(--body); overflow-wrap: anywhere; }
.stat-items dd { margin: 0; font: 700 clamp(1.75rem,3vw,3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.3rem, 2.5vw, 2.2rem); }
.text-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; padding-block: .3rem; border-bottom: 1px solid currentColor; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0 clamp(1rem,2vw,1.75rem); }
.category-card { grid-column: span 3; min-width: 0; display: grid; grid-template-columns: 5.25rem minmax(0,1fr); align-items: center; gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.category-photo { aspect-ratio: 1.58; border-radius: 5px; overflow: hidden; background: var(--night); }
.category-photo img { display: block; object-fit: cover; width: 100%; height: 100%; }
.category-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; gap: .15rem .65rem; }
.category-caption h3 { font-size: clamp(1.02rem,1.45vw,1.24rem); line-height: 1.16; letter-spacing: -.025em; }
.category-count { grid-column: 1; color: var(--muted); font-size: .82rem; }
.arrow { font: 600 1.1rem/1 var(--body); color: var(--accent); }
.category-caption .arrow { grid-area: 1 / 2 / span 2; }
.category-card:nth-child(-n+3) { grid-column: span 2; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 .95rem; margin-bottom: .5rem; }
.category-card:nth-child(-n+3) .category-photo { aspect-ratio: 2.2; border-radius: 9px; }
.category-card:nth-child(-n+3) .category-caption { padding: .9rem .1rem .3rem; }
.category-card:nth-child(-n+3) h3 { font-size: clamp(1.16rem,1.9vw,1.55rem); }
.category-card:nth-child(-n+3) .arrow { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #edf2e5; }
.category-card:is(:hover,:focus-visible) h3, .drawing-results a:is(:hover,:focus-visible) strong { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.category-card:nth-child(-n+3):is(:hover,:focus-visible) .arrow { background: var(--lime); }
.home-projects { background: var(--surface); }
.site-footer { margin-top: auto; border-top: 1px solid var(--night-line); }
.footer-inner, .footer-info { display: flex; align-items: center; flex-wrap: wrap; }
.footer-inner { justify-content: space-between; gap: .9rem 1.75rem; padding-block: 1.2rem; }
.footer-info { gap: .6rem 1.2rem; font-size: .85rem; }
.footer-info small { font-size: inherit; }
.site-footer a { font-weight: 600; text-underline-offset: .2em; }
.site-footer a:hover { color: #c5ed46; }
.breadcrumbs { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; color: #d9e5ce; margin: 0 0 1.1rem; font-size: .83rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.listing-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg,#132019 20%,rgba(19,32,25,.94) 42%,rgba(19,32,25,.27) 100%), var(--category-image); background-position: center, right center; background-size: cover, 60% auto; background-repeat: no-repeat; }
.listing-hero > .wrap { padding-block: clamp(2.8rem,6vw,6.1rem); }
.listing-hero h1 { max-width: min(770px, 76%); }
.byline { display: flex; gap: .65rem 1.55rem; align-items: center; flex-wrap: wrap; margin-top: 1.35rem; font-size: .91rem; color: #d5dfca; }
.byline > span { max-inline-size: 100%; overflow-wrap: anywhere; }
.byline strong, .byline a { color: var(--night-ink); }
.article-page { padding-top: clamp(1.4rem,3.1vw,2.9rem); }
.article-header, .article-workspace, .community-area { max-width: 968px; width: calc(100% - clamp(34px,6vw,88px)); }
.article-header .breadcrumbs { color: var(--muted); margin-bottom: clamp(1.35rem,2.5vw,2.1rem); }
.article-topic { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .78rem; letter-spacing: .095em; text-transform: uppercase; font-weight: 700; text-decoration: none; margin-bottom: .7rem; }
.article-topic::before { content: ''; width: 1.35rem; height: 3px; background: #8eb636; }
.article-topic:hover { text-decoration: underline; }
.article-header h1 { font-size: clamp(2.25rem,4.5vw,4.1rem); letter-spacing: -.055em; line-height: 1.04; }
.article-header .byline { color: var(--muted); margin: .8rem 0 1.45rem; }
.article-header .byline strong, .article-header .byline a { color: var(--ink); }
.article-header .community-metrics { padding-block: .8rem; border-block: 1px solid var(--line); line-height: 1.4; }
.article-header .community-rating-link { order: -1; text-decoration: none; }
.article-header .community-rating-link:is(:hover,:focus-visible) { text-decoration: underline; }
.article-header .community-stars > span { color: #577319; }
.article-workspace { padding-block: clamp(.9rem,2.2vw,1.55rem) 1.25rem; }
.article-body { min-width: 0; }
.article-body section + section { margin-top: 1.25rem; }
.drawing-description p { white-space: normal; overflow-wrap: anywhere; max-width: 72ch; line-height: 1.7; margin: .7rem 0; }
.article-body h2, .community-area h2 { font-size: clamp(1.55rem,2.8vw,2rem); margin-bottom: 1rem; }
.schematic-stage { margin: 0 0 1.3rem; border: 1px solid var(--line); border-radius: 9px; background-color: #fafbf7; background-image: radial-gradient(#dbe2d7 .8px, transparent .8px); background-size: 12px 12px; }
.schematic-stage a { display: grid; justify-items: center; align-content: center; position: relative; min-height: clamp(190px,31vw,365px); padding: 1rem 1rem 3rem; border-radius: inherit; color: var(--ink); text-decoration: none; }
.schematic-stage img { width: auto; max-width: 100%; max-height: clamp(165px,26vw,350px); height: auto; object-fit: contain; background: white; }
.schematic-stage .enlarge { position: absolute; display: inline-flex; gap: .4rem; align-items: center; right: .65rem; bottom: .55rem; padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: .78rem; font-weight: 600; }
.schematic-stage a:is(:hover,:focus-visible) .enlarge { border-color: var(--accent); }
.schematic-stage .enlarge span:first-child { font-size: 1rem; }
.return-topic { display: inline-grid; gap: .15rem; border-left: 3px solid #8fb339; padding: .55rem .9rem; margin-top: .9rem; color: var(--muted); font-size: .8rem; text-decoration: none; }
.return-topic > span { font-size: .98rem; font-weight: 700; color: var(--ink); }
.community-area { padding-bottom: clamp(2.8rem,5vw,5rem); }
.drawing-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.attachment-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.attachment-thumb { width: 48px; height: 43px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: grid; place-content: center; background: #fafbf7; }
.attachment-thumb img { width: 100%; height: 100%; object-fit: contain; }
.attachment-icon { position: relative; display: grid; place-items: center; width: 34px; height: 38px; margin-inline: auto; border: 1.8px solid #5d7445; color: #4a6133; border-radius: 3px 7px 3px 3px; font: 600 .61rem/1 var(--mono); }
.attachment-icon::after { content: ''; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; background: linear-gradient(45deg, #d3dfbf 45%, #5d7445 48%, white 62%); }
.attachment-info { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.attachment-info strong { font-size: .99rem; line-height: 1.22; }
.attachment-info small { font-size: .79rem; color: var(--muted); }
.attachment-info .original-name { font-size: .72rem; }
.download-link { gap: .35rem; min-height: 44px; padding: .42rem .88rem; border-radius: 5px; font-size: .88rem; }
.filters { display: flex; align-items: end; gap: clamp(.75rem,2vw,1.5rem); padding-bottom: clamp(1.25rem,2.6vw,2rem); border-bottom: 1px solid var(--line); }
.filters label { flex: 1; min-width: 0; display: grid; gap: .38rem; font-size: .9rem; font-weight: 600; }
.filters label:first-child { flex: 1.6; }
.filters input, .filters select { width: 100%; font-size: 1rem; font-weight: 400; }
.filters button { min-height: 47px; padding-inline: 1.6rem; }
.result-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin: clamp(1.6rem,3vw,2.35rem) 0 .8rem; }
.result-heading h2 { font-size: clamp(1.5rem,2.5vw,2rem); }
.result-heading a { font-size: .9rem; color: var(--accent); }
.drawing-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(1rem,3vw,2.4rem); list-style: none; padding: 0; margin: 0; }
.drawing-results li { min-width: 0; border-bottom: 1px solid var(--line); }
.drawing-results a { min-height: 5.5rem; height: 100%; display: flex; align-items: center; gap: .9rem; padding: .7rem .1rem; text-decoration: none; }
.topic-results a { min-height: 3.55rem; }
.drawing-results img { flex: none; width: 77px; height: 58px; object-fit: cover; border-radius: 5px; }
.drawing-results .arrow { margin-left: auto; padding: .2rem; }
.row-copy { display: grid; flex: 1; gap: .2rem; min-width: 0; }
.row-copy strong { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.row-copy small { color: var(--muted); font-size: .79rem; }
.empty-results { margin: 0; padding: .75rem 0 1.5rem; color: var(--muted); }
.pages { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.6rem; }
.pages a, .back { color: var(--accent); font-size: .92rem; font-weight: 600; }
.pages a { padding: .55rem .82rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.pages a:is(:hover,:focus-visible) { border-color: var(--accent); text-decoration: underline; }
.pages span { font-variant-numeric: tabular-nums; color: var(--muted); }
.list-area .pages span { margin-left: auto; }
.reading { max-width: 850px; }
.reading > h1 { margin: .15em 0 .55em; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .55rem; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .78rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ad { color: var(--muted); }
.ad > small { display: none; }
.ad:has(ins[data-ad-status="filled"]) { padding-block: 1rem; }
.ad:has(ins[data-ad-status="filled"]) > small { display: block; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

.service-page h1 { font-size: clamp(2.7rem,5vw,4.25rem); }
.service-page form { accent-color: var(--accent); }
@media (min-width:791px) and (max-width:1040px) {
  .has-admin-nav .header-inner { min-height: 61px; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
  .has-admin-nav .site-navigation { flex-basis: 100%; flex-wrap: wrap; padding-block: .55rem .9rem; gap: .6rem 1.2rem; border-top: 1px solid var(--night-line); }
  .has-admin-nav :is(.main-nav,.head-actions) { flex-wrap: wrap; gap: .55rem 1.05rem; }
}
@media(max-width:980px) {
  .header-inner { gap: 1.5rem; }

  .hero-copy { width: 60%; }
  .site-navigation, .head-actions, .main-nav { gap: 1rem; }
  .brand img { width: 119px; }
  .drawing-results img { width: 65px; }
}
@media(max-width:790px) {
  .header-inner { min-height: 61px; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
  .site-navigation { flex-basis: 100%; flex-wrap: wrap; gap: .6rem 1.2rem; padding-block: .55rem .9rem; border-top: 1px solid var(--night-line); }
  .site-navigation .main-nav, .site-navigation .head-actions { flex-wrap: wrap; gap: .55rem 1.05rem; }
  .hero-inner { min-height: 355px; }
  .hero-copy { width: 81%; padding-block: 3.25rem; }
  .hero-art :is(img, .scope-beam) { width: 100%; object-position: 68% center; }
  .hero-art::after { background: linear-gradient(90deg,#0d1711e8 5%,#0d1711ba 42%,#0d171144 80%); }
  .home-hero h1 { font-size: clamp(2.1rem,8.6vw,4.3rem); }
  .overline { font-size: .7rem; letter-spacing: .07em; }
  .stat-items { display: flex; gap: .75rem 1.2rem; flex-wrap: wrap; padding-block: 1rem; }
  .stat-items div { flex: 1 1 auto; padding: 0; border: 0; }
  .stat-items dt { font-size: .7rem; }
  .stat-items dd { font-size: 1.62rem; }
  .category-card { grid-template-columns: 3.8rem minmax(0,1fr); gap: .65rem; }
  .category-card:nth-child(-n+3) .category-photo { aspect-ratio: 1.65; }
  .footer-inner { align-items: flex-start; gap: 1.4rem; }

  .listing-hero::before { background-size: cover, cover; }
  .listing-hero h1 { max-width: 100%; }
  .drawing-results { grid-template-columns: minmax(0,1fr); }
  .filters { flex-wrap: wrap; }
  .filters label, .filters label:first-child { flex: 1 1 12rem; }
}
@media(max-width:600px) {
  .category-grid { display: block; }
  .category-card, .category-card:nth-child(-n+3) { display: grid; grid-template-columns: 4.65rem minmax(0,1fr); gap: .85rem; align-items: center; margin: 0; padding: .65rem 0; }
  .category-photo, .category-card:nth-child(-n+3) .category-photo { aspect-ratio: 1.55; border-radius: 5px; }
  .category-card:nth-child(-n+3) .category-caption { padding: 0; }
  .category-card:nth-child(-n+3) h3 { font-size: 1.05rem; }
  .category-card:nth-child(-n+3) .arrow { display: block; width: auto; height: auto; background: none; }
  .category-card:nth-child(-n+3):is(:hover,:focus-visible) .arrow { background: none; }
}
@media(max-width:460px) {
  .wrap { width: calc(100% - 34px); }
  .hero-inner { min-height: 315px; }
  .hero-copy { width: 100%; }
  .hero-search { margin-top: 1.7rem; }
  .hero-search button { padding: .4rem .7rem; }
  .hero-search button span { display: none; }
  .stat-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem 1rem; }
  .stat-items div:last-child { grid-column: span 2; }
  .section-title { align-items: baseline; gap: .8rem; }
  .section-title .text-link { font-size: .78rem; }
  .category-caption h3 { font-size: 1.03rem; }
  main { width: calc(100% - 12px); margin-block: 7px; }
  .attachment-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: .5rem; }
  .attachment-thumb { width: 34px; height: 34px; }
  .attachment-icon { width: 25px; height: 31px; }
  .download-link { padding-inline: .55rem; font-size: .8rem; }
  .footer-inner { flex-direction: column; }
  .drawing-results img { width: 64px; }

  .filters { display: grid; }
  .filters button { justify-self: start; }
}
@media(prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .55s ease-out both; }
  .category-photo img, .category-caption .arrow { transition: transform .25s ease; }
  .category-card:hover .category-photo img { transform: scale(1.035); }
  .category-card:hover .arrow { transform: translateX(2px); }
  @keyframes arrive { from { opacity: .2; transform: translateY(9px); } to { opacity: 1; transform: none; } }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Within the existing header stacking context, between its paint and its links. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("header-traces.svg") center top / 1120px 66px repeat;
  mask-image: linear-gradient(to bottom, #000 64px, rgb(0 0 0 / 25%) 130px);
}
@media (forced-colors: active), (prefers-reduced-motion: reduce) {
  .site-header::before { display: none; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes zolee-scroll-arrive {
    from { opacity: .84; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Keep the links themselves stationary, including their hit areas and focus rings. */
  .category-card.scroll-arrive:not(:focus-within) > :is(.category-photo, .category-caption),
  .workshop-card.scroll-arrive:not(:focus-within) :is(.workshop-cover, .workshop-card-body),
  .workshop-features > .scroll-arrive,
  .workshop-preview.scroll-arrive:not(:focus-within) :is(figure > a > img, figcaption) {
    animation: zolee-scroll-arrive .42s cubic-bezier(.22,.72,.24,1) var(--scroll-arrive-delay, 0ms) backwards;
  }

  @media (min-width: 48rem) {
    .category-card.scroll-arrive:nth-child(even),
    .workshop-card.scroll-arrive:nth-child(even) { --scroll-arrive-delay: 35ms; }
    .category-card.scroll-arrive:nth-child(3) { --scroll-arrive-delay: 65ms; }
  }
}

[data-motion="off"] :is(.scroll-arrive, .scroll-arrive *) { animation: none !important; }
