@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --site-pink: #fae8ea;
  --site-paper: #fffaf7;
  --site-ink: #223447;
  --site-blue: #183f73;
  --site-muted: #536171;
  --site-line: #cfbdc3;
  --site-serif: "Instrument Serif", Georgia, serif;
  --site-sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--site-pink); color: var(--site-ink); font: 16px/1.65 var(--site-sans); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--site-blue); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid #2876b5;
  outline-offset: 4px;
}
.site-shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 18px; padding: 10px 18px; background: var(--site-blue); color: white; }
.skip-link:focus { top: 10px; }

/* These selectors are deliberately scoped: the Playground retains its own UI. */
.site-header { padding-top: 14px; color: var(--site-ink); }
.site-header .site-shell { border-bottom: 1px solid var(--site-line); }
.site-header .adventure { margin: 0 0 2px; color: var(--site-muted); font: italic 15px/1.5 var(--site-serif); letter-spacing: .015em; }
.site-header .mast-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 82px; padding-bottom: 12px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; text-decoration: none; min-width: 0; }
.site-brand .brand-emblem { display: block; width: 43px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.site-brand .brand-wordmark { display: block; width: clamp(180px, 22vw, 270px); height: auto; mix-blend-mode: multiply; }
.site-header nav { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 7px 22px; }
.site-header nav a { color: var(--site-ink); font-size: 13px; font-weight: 550; text-decoration: none; padding-block: 10px; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { color: var(--site-blue); text-decoration: underline; text-decoration-thickness: 2px; }
.site-header .nav-toggle { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--site-line); border-radius: 3px; background: transparent; color: var(--site-blue); font: 550 13px var(--site-sans); }

/* The homepage is an invitation and a directory, with no extra feature panels. */
.home-intro { padding: 36px 0 26px; max-width: 970px; }
.home-intro p { margin: 0 0 13px; font-size: clamp(17px, 1.65vw, 20px); line-height: 1.7; }
.home-intro p:last-child { margin-bottom: 0; color: var(--site-muted); font-size: 16px; }
.interest-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; text-align: left; }
.interest-table thead th { padding: 9px 18px; border-bottom: 1px solid var(--site-line); color: var(--site-muted); font-size: 12px; font-weight: 550; }
.interest-table tbody tr { border-bottom: 1px solid var(--site-line); transition: background-color .12s ease; }
.interest-table tbody tr:hover, .interest-table tbody tr:focus-within { background: #fffaf786; }
.interest-table tbody th { width: 29%; padding: 17px 18px; vertical-align: top; font-size: 15px; font-weight: 500; }
.interest-table td { padding: 0; vertical-align: top; }
.interest-table td a { display: block; padding: 17px 18px; color: var(--site-ink); text-decoration: none; }
.interest-table td a strong { color: var(--site-blue); font-weight: 650; }
.interest-table td a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.interest-table td a:focus-visible { outline-offset: -4px; }
.home-aside { margin: 22px 0 39px; font: italic 21px/1.5 var(--site-serif); color: var(--site-muted); }
.gadgetographers { padding: 0 0 37px; }
.gadgetographers > h2 { margin: 0 0 19px; font: 400 35px/1.15 var(--site-serif); letter-spacing: -.02em; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.people article { min-width: 0; }
.people h3 { margin: 0 0 6px; color: var(--site-blue); font: 600 16px/1.4 var(--site-sans); }
.people p { margin: 0; font-size: 14px; line-height: 1.75; }

.site-footer { display: block; margin-top: 38px; padding: 0; border: 0; color: var(--site-muted); font: 12px/1.6 var(--site-sans); }
.home .site-footer { margin-top: 0; }
.site-footer > .site-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 27px; padding: 21px 0 29px; border-top: 1px solid var(--site-line); }
.site-footer p { flex: initial; margin: 0; font-size: inherit; }
.site-footer a { color: var(--site-muted); min-height: 36px; display: inline-flex; align-items: center; font-size: inherit; text-decoration: underline; }
.site-footer .independence { position: relative; margin-left: auto; }
.site-footer .independence summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 4px; gap: 8px; }
.site-footer .independence summary::-webkit-details-marker { display: none; }
.site-footer .independence summary::after { content: "+"; font-size: 16px; text-decoration: none; }
.site-footer .independence[open] summary::after { content: "−"; }
.independence-popup { position: absolute; bottom: calc(100% + 10px); right: 0; z-index: 12; width: min(440px, calc(100vw - 36px)); max-height: calc(100vh - 110px); overflow: auto; padding: 19px 22px; border: 1px solid var(--site-line); border-radius: 4px; background: var(--site-paper); color: var(--site-ink); box-shadow: 0 9px 32px #2234471c; }
.site-footer .independence-popup p { font-size: 13px; line-height: 1.65; margin: 0 0 12px; }
.site-footer .independence-popup p:last-child { margin-bottom: 0; }

/* Reusable page structures; entries themselves live in page content/data files. */
.page-heading { padding: 35px 0 25px; margin-bottom: 28px; border-bottom: 1px solid var(--site-line); }
.eyebrow { margin: 0 0 8px; color: var(--site-blue); font: 600 11px/1.5 var(--site-sans); letter-spacing: .08em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font: 400 clamp(42px, 5vw, 64px)/1.08 var(--site-serif); letter-spacing: -.03em; }
.page-heading .lead { max-width: 780px; margin: 16px 0 0; color: var(--site-muted); font-size: 17px; }
.prose { max-width: 780px; }
.prose h2, .two-column h2, .reading-section h2, .tool-feature h2 { margin: 30px 0 12px; font: 400 33px/1.15 var(--site-serif); letter-spacing: -.015em; }
.prose h3 { margin: 22px 0 9px; font-size: 18px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li + li { margin-top: 7px; }
.prose pre { overflow-x: auto; padding: 18px; background: var(--site-paper); border: 1px solid var(--site-line); font-size: 13px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.two-column p { margin: 0 0 18px; }
.two-column img { display: block; width: 100%; }
.two-column h2:first-child { margin-top: 0; }
.reading-section { margin-top: 38px; padding-top: 5px; border-top: 1px solid var(--site-line); }
.expanded-name { color: var(--site-muted); font-size: 13px; }
.two-column .curve-illustration { width: min(100%, 390px); aspect-ratio: 1; object-fit: contain; margin: 24px auto; mix-blend-mode: multiply; }
.two-column .tool-emblem { width: min(240px, 75%); aspect-ratio: 1; object-fit: contain; margin: 0 0 23px; mix-blend-mode: multiply; }
.media-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 24px 0 34px; }
.media-grid figure { margin: 0; min-width: 0; }
.media-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--site-line); }
.media-grid figcaption { display: block; padding: 10px 0; color: var(--site-muted); font-size: 13px; }
.gallery-card { margin: 0; min-width: 0; border-bottom: 1px solid var(--site-line); padding-bottom: 15px; }
.gallery-card > a:first-child { display: block; padding: 18px; background: var(--site-paper); border: 1px solid #d6c7cb; }
.gallery-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.gallery-card h2, .gallery-card h3 { margin: 12px 0 5px; font: 400 27px/1.12 var(--site-serif); }
.gallery-card p { font-size: 13px; line-height: 1.6; margin: 7px 0; }
.gallery-card .eyebrow { margin-top: 12px; font-size: 10px; }
.gallery-card .download-link { display: inline-flex; align-items: center; min-height: 38px; font-size: 13px; font-weight: 650; }
.gallery-card .download-detail { margin-top: 0; color: var(--site-muted); font-size: 12px; }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; margin: 27px 0 20px; }
.gallery-tools > p { margin: 0; color: var(--site-muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters button { min-height: 42px; padding: 8px 16px; border: 1px solid var(--site-line); border-radius: 3px; background: transparent; color: var(--site-ink); font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--site-blue); border-color: var(--site-blue); color: white; }
.filters button:hover { border-color: var(--site-blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--site-blue); border-radius: 3px; background: var(--site-blue); color: white; font: 600 14px/1.5 var(--site-sans); text-decoration: none; }
.button:hover { background: #285285; }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 550; }
.workshop-movie { margin: 0; }
.workshop-movie video { display: block; width: min(100%, 360px); height: auto; max-height: 640px; margin-inline: auto; background: #1d2734; border: 1px solid #a9a0a4; }
.workshop-movie figcaption { margin: 9px auto 0; max-width: 360px; color: var(--site-muted); font-size: 13px; }
.workshop-movie figcaption span { display: block; font-size: 12px; }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 25px; margin: 27px 0; border: 1px solid var(--site-line); background: var(--site-paper); text-decoration: none; }
.resource-link strong { display: block; font: 400 28px/1.2 var(--site-serif); }
.resource-link span, .resource-link small { color: var(--site-muted); font-size: 13px; }
.resource-link:hover { border-color: var(--site-blue); }
.tool-feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--site-line); }
.tool-feature img { width: 200px; display: block; }
.tool-feature h2 { margin-top: 0; }
.tool-feature p { margin: 0 0 12px; }

@media (max-width: 1000px) {
  .site-shell { width: calc(100% - 48px); }
  .site-header nav { gap: 5px 15px; }
  .site-header nav a { font-size: 12px; }
  .site-brand .brand-wordmark { width: 210px; }
  .gallery-grid, .media-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .site-header .mast-row { flex-wrap: wrap; gap: 8px 20px; }
  .site-header .site-brand { margin-right: auto; }
  .site-header nav { flex-basis: 100%; justify-content: flex-start; padding: 0 0 8px; }
  .site-header .nav-toggle:not([hidden]) { display: inline-flex; }
  .site-header[data-nav-ready="true"]:not([data-nav-open="true"]) nav { display: none; }
  .site-header[data-nav-open="true"] nav { display: flex; }
  .site-header nav a { padding: 10px 6px; font-size: 13px; }
  .people { gap: 22px; }
  .interest-table tbody th { width: 30%; }
  .two-column { gap: 24px; }
}
@media (max-width: 700px) {
  .site-shell { width: calc(100% - 36px); }
  .site-header { padding-top: 10px; }
  .site-header .mast-row { min-height: 69px; padding-bottom: 9px; }
  .site-header .adventure { font-size: 14px; }
  .site-brand { gap: 7px; }
  .site-brand .brand-emblem { width: 33px; height: 37px; }
  .site-brand .brand-wordmark { width: clamp(156px, 44vw, 240px); }
  .home-intro { padding: 26px 0 23px; }
  .home-intro p { font-size: 17px; }
  .home-intro p:last-child { font-size: 15px; }
  .interest-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .interest-table tbody, .interest-table tbody tr, .interest-table tbody th, .interest-table td { display: block; width: 100%; }
  .interest-table tbody tr { padding: 13px 0 5px; }
  .interest-table tbody th { padding: 0 10px; font-size: 14px; color: var(--site-muted); }
  .interest-table td a { padding: 6px 10px 11px; }
  .home-aside { font-size: 21px; margin: 22px 0 30px; }
  .gadgetographers > h2 { font-size: 32px; }
  .people { grid-template-columns: 1fr; gap: 20px; }
  .people p { max-width: 65ch; }
  .gadgetographers { padding-bottom: 30px; }
  .site-footer > .site-shell { position: relative; column-gap: 20px; row-gap: 4px; padding: 17px 0 23px; }
  .site-footer .independence { position: static; margin-left: 0; }
  .site-footer > .site-shell > p { flex-basis: 100%; }
  .site-footer .independence-popup { right: auto; left: 0; width: 100%; }
  .page-heading { padding: 26px 0 22px; margin-bottom: 22px; }
  .page-heading .lead { font-size: 16px; }
  .prose { font-size: 15px; }
  .two-column { grid-template-columns: 1fr; gap: 25px; }
  .media-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .gallery-card > a:first-child { padding: 12px; }
  .gallery-card h2, .gallery-card h3 { font-size: 25px; }
  .resource-link { padding: 18px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .tool-feature { grid-template-columns: 130px minmax(0, 1fr); gap: 19px; align-items: start; }
  .tool-feature img { width: 130px; }
  .tool-feature h2 { font-size: 30px; }
  .tool-feature p { font-size: 14px; }
}
@media (max-width: 410px) {
  .site-shell { width: calc(100% - 28px); }
  .site-header .mast-row { gap: 8px 10px; }
  .site-brand .brand-wordmark { width: 157px; }
  .site-brand .brand-emblem { width: 28px; height: 32px; }
  .site-header .nav-toggle { padding-inline: 10px; font-size: 12px; }
  .site-header nav { display: grid; grid-template-columns: 1fr 1fr; }
  .site-header[data-nav-open="true"] nav { display: grid; }
  .site-header nav a { white-space: normal; }
  .media-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card > a:first-child { padding: 22px; }
  .tool-feature { grid-template-columns: 1fr; gap: 17px; }
  .tool-feature img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
