@font-face {
  font-family: "Space Grotesk";
  src: url("/media/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #000;
  --ink: #f5f3f8;
  --muted: #aaa7b2;
  --line: #2a2631;
  --surface: #121016;
  --brand: #cbb5ff;
  --display: "Space Grotesk", system-ui, sans-serif;
  font-family: system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.55; }
a { color: var(--brand); text-underline-offset: .24em; }
a:hover { color: var(--ink); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 4; padding: .65rem 1rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }
#main:focus { outline: none; }

.bar { border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.45rem; gap: 1.5rem; }
.bar a { text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .7rem; color: var(--ink); font: 700 1.22rem/1.1 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); place-content: center; gap: 3px; width: 1.55rem; height: 1.55rem; transform: rotate(45deg); }
.brand-mark i { background: var(--brand); border-radius: 50%; }
.brand-mark i:nth-child(2) { opacity: .5; }
.brand-mark i:nth-child(3) { opacity: .72; }
.bar nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.5rem); font-size: .9rem; white-space: nowrap; }
.bar nav a { color: var(--muted); padding-block: .75rem; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
.bar nav a[aria-current="page"] { text-decoration: underline; }
.bar nav .nav-github { color: var(--ink); border: 1px solid var(--line); border-radius: .42rem; padding: .4rem .85rem; }
.bar nav .nav-github:hover { border-color: #6c5b84; background: var(--surface); }

.action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .58rem 1.02rem; border: 1px solid transparent; border-radius: .42rem; text-align: center; font-size: .9rem; font-weight: 650; line-height: 1.24; text-decoration: none; cursor: pointer; }
.filled { background: var(--brand); color: #160e24; }
.filled:hover { background: #e2d4ff; color: #160e24; }
.outline { color: var(--ink); background: var(--surface); border-color: var(--line); }
.outline:hover { background: #231b32; color: var(--ink); border-color: #796299; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 28.7rem; padding-block: 2.85rem 2.4rem; }
.hero-content { position: relative; z-index: 1; width: 52%; }
.hero-visual { position: absolute; z-index: -1; inset: 1rem -1.2rem .1rem 43%; background: radial-gradient(ellipse at 53% 50%, #16102656, transparent 61%); mask-image: linear-gradient(to right, transparent 0%, #000 18%); pointer-events: none; }
.hero-visual canvas { display: block; width: 100%; height: 100%; }
.hero-label { display: flex; align-items: center; gap: .55rem; color: #d8cbe8; font-size: .87rem; font-weight: 550; margin-bottom: 1.3rem; }
.hero-beacon { width: .44rem; height: .44rem; background: var(--brand); box-shadow: 0 0 12px #bc9cff9e; border-radius: 50%; }
.hero h1 { font-size: clamp(3rem, 6.25vw, 5.6rem); line-height: .99; letter-spacing: -.078em; }
.hero-projects, .hero-summary { display: grid; }
.hero-projects > a, .hero-summary > span { grid-area: 1 / 1; align-self: end; text-wrap: balance; }
.hero-summary > span { align-self: start; text-wrap: pretty; }
.hero-projects > [hidden], .hero-summary > [hidden] { display: block !important; visibility: hidden; }
.hero-project { display: block; color: var(--brand); text-decoration: none; }
.hero-project:first-child { max-width: 10ch; }
.hero-project:hover { color: #e1d2ff; }
.hero-project:not([hidden]) { animation: project-in .43s cubic-bezier(.22, .72, .23, 1) both; }
@keyframes project-in {
  from { opacity: 0; transform: translateY(.17em); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-summary { margin-block: 1.25rem 1.55rem; max-width: 29rem; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-controls { display: flex; align-items: center; margin-top: 1.1rem; gap: .7rem; }
.hero-selectors { display: flex; align-items: center; gap: clamp(.7rem, 2.1vw, 1.3rem); }
.hero-selector, .hero-pause { background: none; border: 0; color: var(--muted); padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-selector { height: 2rem; border-bottom: 2px solid transparent; line-height: 1.2; font-family: inherit; font-size: .88rem; font-weight: 550; }
.hero-selector[aria-pressed="true"] { color: var(--ink); border-color: var(--brand); }
.hero-selector:hover { color: var(--brand); }
.hero-pause { width: 1.9rem; height: 1.75rem; }
.hero-pause:hover { color: var(--ink); }
.hero-pause span { width: .48rem; height: .58rem; border-inline: 2px solid currentColor; }
.hero-pause.is-paused span { border: .3rem solid transparent; border-right: 0; border-left: .48rem solid currentColor; height: 0; }

.site-stats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 0 3.35rem; padding: 0; border: 1px solid var(--line); border-radius: .65rem; background: #0c0a10; }
.site-stats > div { min-width: 0; display: flex; flex-direction: column-reverse; justify-content: center; padding: 1.15rem 1.5rem; }
.site-stats > div + div { border-inline-start: 1px solid var(--line); }
.site-stats dt { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.site-stats dd { margin: 0; color: var(--ink); font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--display); letter-spacing: -.05em; }

.project-browser { scroll-margin-top: 1.7rem; padding-bottom: 3.7rem; }
.browser-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.browser-heading h2, .info-heading :is(h1, h2) { font-size: clamp(2rem, 4.8vw, 3.75rem); font-weight: 600; letter-spacing: -.064em; }
.browser-heading p, .info-heading p { color: var(--muted); margin-top: .35rem; }
.search { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.search input { min-width: 0; width: 16rem; border: 1px solid var(--line); border-radius: .4rem; padding: .55rem .7rem; background: var(--surface); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search button { border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); color: var(--brand); padding: .55rem .55rem; font-size: .86rem; font-weight: 650; cursor: pointer; }
.search button:hover { background: #231b32; color: var(--ink); }
.browser-search { position: relative; width: min(100%, 22rem); border: 1px solid var(--line); border-radius: .48rem; background: var(--surface); padding: .3rem; }
.browser-search:focus-within { border-color: #a88fce; }
.browser-search input { flex: 1; width: auto; border: 0; padding-left: 2.15rem; background: transparent; outline: none; font-size: .92rem; }
.browser-search button { padding-block: .35rem; }
.search-icon { position: absolute; left: .95rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.39rem; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: .31rem; height: 1.5px; background: var(--muted); transform: rotate(45deg); bottom: -.11rem; right: -.245rem; }
.browser-result { color: var(--muted); margin-top: .9rem; }
.browser-result:empty { margin: 0; }

.project-shelf { --accent: #cbb5ff; margin-top: 1.8rem; }
.category-math { --accent: #f3cd87; }
.category-games { --accent: #8bdfd4; }
.category-ai { --accent: #ecaedf; }
.category-data { --accent: #97bfff; }
.category-civic { --accent: #9cdec5; }
.category-culture { --accent: #ffb599; }
.category-science { --accent: #b5d89e; }
.category-robotics { --accent: #aebdff; }
.shelf-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-bottom: .6rem; }
.shelf-title, .shelf-actions, .shelf-controls { display: flex; align-items: center; gap: .55rem; }
.shelf-title > span:first-child { width: .42rem; height: .96rem; flex: 0 0 auto; border-radius: .11rem; background: var(--accent); }
.shelf-title h3 { color: var(--ink); font-size: clamp(1.15rem, 2.3vw, 1.5rem); font-weight: 600; letter-spacing: -.035em; }
.shelf-count { color: var(--muted); font: 500 .82rem/1 var(--display); padding: .24rem .35rem; border: 1px solid var(--line); border-radius: .3rem; }
.shelf-all { color: var(--muted); font-size: .86rem; white-space: nowrap; text-decoration: none; }
.shelf-all:hover { text-decoration: underline; }
.shelf-controls { gap: .27rem; margin-left: .23rem; }
.shelf-controls button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: .36rem; color: var(--ink); background: var(--surface); cursor: pointer; }
.shelf-controls button:hover:not(:disabled) { border-color: var(--accent); }
.shelf-controls button:disabled { opacity: .35; cursor: default; }
.shelf-controls span, .extra-shelves summary::after, .chevron { display: block; width: .42rem; height: .42rem; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.shelf-controls button:first-child span { transform: rotate(-135deg); }

.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.25rem) / 4); gap: .75rem; list-style: none; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 0 .55rem; margin: -3px 0 0; scroll-snap-type: x proximity; scrollbar-color: #484052 transparent; scrollbar-width: thin; }
.project-card { min-width: 0; scroll-snap-align: start; }
.project-card-link { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: #0e0c13; color: var(--ink); text-decoration: none; transition: border-color .16s, background-color .16s; }
.project-card-link:focus-visible { outline-offset: -2px; }
.project-card-link:hover { border-color: color-mix(in srgb, var(--accent) 63%, #1a1525); background: #191322; }
.project-card-copy { padding: .75rem .85rem .85rem; }
.project-card-copy > p { margin-bottom: .32rem; color: var(--accent); font-size: .78rem; font-weight: 550; }
.project-card-copy h4 { font-size: 1.06rem; line-height: 1.27; font-weight: 590; letter-spacing: -.025em; }

.extra-shelves { margin-top: 1.7rem; }
.extra-shelves.is-searching { margin-top: 0; }
.extra-shelves.is-searching > summary { display: none; }
.extra-shelves summary { display: flex; align-items: center; gap: .55rem; padding: .75rem .95rem; background: #0d0b12; border: 1px solid var(--line); border-radius: .44rem; list-style: none; font-weight: 650; cursor: pointer; }
.extra-shelves summary::-webkit-details-marker { display: none; }
.extra-shelves summary::after { content: ""; margin-left: auto; transform: translateY(-.12rem) rotate(135deg); }
.extra-shelves[open] summary::after { transform: translateY(.12rem) rotate(-45deg); }
.extra-shelves summary:hover { border-color: #796299; }
.extra-count { color: var(--muted); font-weight: 500; font-size: .84rem; }
.browser-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; padding-top: 1.15rem; font-size: .92rem; }

.problem-entry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
  gap: 1.25rem 3rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 3.3rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #0d0a13;
  scroll-margin-top: 1rem;
}
.problem-entry .info-heading h2 { max-width: 12ch; }
.problem-entry-form { min-width: 0; }
.problem-entry-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.problem-entry-form textarea { display: block; width: 100%; min-height: 5.5rem; resize: vertical; padding: .65rem .75rem; border: 1px solid #494051; border-radius: .38rem; background: #070609; color: var(--ink); font: inherit; }
.problem-entry-form textarea::placeholder { color: var(--muted); }
.problem-entry-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.problem-entry-actions .action:disabled { opacity: .55; cursor: default; }
.problem-entry-actions .action:disabled:hover { background: var(--surface); border-color: var(--line); }
.problem-entry-alternate { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .5rem; align-items: center; font-size: .88rem; }
.problem-entry-alternate button { background: none; border: 0; padding: .25rem 0; color: var(--brand); text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.problem-entry-alternate button:disabled { opacity: .55; cursor: default; }

.info-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 1.5rem 3rem; border-top: 1px solid var(--line); padding-block: 3rem 3.35rem; scroll-margin-top: 1rem; }
.info-heading :is(h1, h2) { font-size: clamp(1.85rem, 4vw, 3.2rem); }
.info-heading h2 a { color: inherit; text-decoration: none; }
.info-heading h2 a:hover { text-decoration: underline; }
.info-heading p { max-width: 25rem; }
.info-body { min-width: 0; }
.info-body p { color: var(--muted); }
.info-body > p + p { margin-top: .75rem; }
.info-steps { display: grid; gap: 1.15rem; padding-left: 1.65rem; margin: 0; }
.info-steps li { padding-left: .25rem; }
.info-steps li::marker { font-family: var(--display); color: var(--brand); font-weight: 650; }
.info-steps h3 { font-size: 1.2rem; margin-bottom: .24rem; letter-spacing: -.025em; }
.info-links { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; margin-top: .9rem; }
.mcp-config { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; padding: .65rem .75rem; margin-top: .7rem; }
.mcp-config .mcp-label { color: var(--muted); font-size: .84rem; grid-column: 1; }
.mcp-config pre, .mcp-config > code { grid-column: 1; margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: transparent; color: #e4d7ff; }
.mcp-config button { grid-column: 2; grid-row: 1 / 3; background: #1c1626; }
.mcp-config + p { margin-top: .85rem; }

.index { padding-block: 3.25rem 4rem; }
.index-top { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.index h1 { font-size: clamp(2.55rem, 6vw, 4.75rem); font-weight: 600; letter-spacing: -.055em; }
.index-top p { margin-top: .4rem; color: var(--muted); }
.category-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 1.4rem 0 0; border-bottom: 1px solid var(--line); }
.category-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; padding: .45rem .03rem .57rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.category-nav a:hover { color: var(--ink); }
.category-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 650; }
.problem-list { padding: 0; margin: 0; list-style: none; }
.problem-row { display: grid; align-items: start; grid-template-columns: minmax(8.95rem, 17%) minmax(0, 1fr) .55rem; gap: .65rem 1rem; border-bottom: 1px solid var(--line); padding: 1.1rem .65rem; color: var(--ink); text-decoration: none; }
.problem-row:hover { background: var(--surface); }
.problem-row:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.row-topic { color: var(--brand); font-size: .88rem; padding-top: .18rem; }
.row-content { display: grid; gap: .15rem; }
.row-content strong { font-family: var(--display); font-size: 1.16rem; font-weight: 620; letter-spacing: -.021em; }
.row-content > span { color: var(--muted); line-height: 1.45; }
.chevron { align-self: center; color: var(--brand); }
.search-result, .empty { color: var(--muted); padding: 1rem .65rem; }

.detail { padding-block: 2.45rem 4.75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; color: var(--muted); font-size: .88rem; }
.breadcrumb a { padding-block: .35rem; }
.detail-heading { margin: 2.25rem 0 2.2rem; max-width: 57rem; }
.track { margin-bottom: .55rem; color: var(--brand); font-weight: 650; }
.detail h1 { font-size: clamp(2.5rem, 6.25vw, 5.25rem); line-height: 1.01; font-weight: 650; letter-spacing: -.064em; overflow-wrap: anywhere; }
.lede { color: var(--muted); max-width: 43rem; margin-top: .95rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.48; }
#problem-share-url:not([hidden]) { display: block; width: 100%; margin-top: 1rem; }
.detail-actions, .work-providers { display: flex; flex-wrap: wrap; align-items: start; gap: .65rem; margin-top: 1rem; }
.work-options { max-width: 28rem; margin-top: .8rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.work-options h2 { font-size: 1.25rem; }
.work-options p { margin-top: .35rem; color: var(--muted); }
.work-provider { display: grid; justify-items: center; gap: .35rem; }
.web-fallback { padding: .35rem 0; font-size: .9rem; }
.work-options [data-copy] { margin-top: 1rem; }
#problem-brief { width: 100%; margin-top: 1rem; font: inherit; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); gap: 2rem clamp(1.65rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.brief { display: grid; gap: 1.8rem; max-width: 44rem; }
.brief h2, .contribution h2 { font-size: 1.34rem; letter-spacing: -.035em; font-weight: 650; margin-bottom: .42rem; }
.brief p, .contribution p { color: var(--muted); }
.sources { margin: .3rem 0 0; padding-inline-start: 1.2rem; }
.sources li + li { margin-top: .35rem; }
.contribution, .endpoint { background: var(--surface); padding: 1.25rem; border: 1px solid var(--line); border-radius: .55rem; }
.contribution { align-self: start; }
.contribution .kind { color: var(--brand); font-size: .85rem; margin-bottom: .4rem; font-weight: 650; }
.text-link { display: inline-block; margin-top: .85rem; font-size: .9rem; }
.project-links { display: grid; justify-items: start; }
.ledger { margin: .75rem 0; overflow-x: auto; }
.ledger table { border-collapse: collapse; width: 100%; text-align: left; }
.ledger td, .ledger th { padding: .5rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ledger td:nth-child(n+3), .ledger th:nth-child(n+3) { text-align: right; }
.endpoint { max-width: 44rem; margin-bottom: 2rem; }
.endpoint label { display: block; font-weight: 650; margin-bottom: .4rem; }
.endpoint > div { display: flex; gap: .5rem; }
.endpoint input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); padding: .45rem .6rem; color: var(--ink); font-size: .92rem; }
.endpoint .action { flex: 0 0 auto; }
.endpoint p { font-size: .88rem; margin-top: .4rem; color: var(--muted); }
pre { overflow: auto; padding: .85rem; background: var(--surface); margin-bottom: .6rem; }
code { font-size: .9em; }
pre code { font-size: .89rem; }
.tool-list { margin-top: .6rem; }
.tool-list div { border-top: 1px solid var(--line); padding: .65rem 0; }
.tool-list dt { font-weight: 640; }
.tool-list dd { margin: 0; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; border-top: 1px solid var(--line); padding-block: 1.15rem 2rem; color: var(--muted); font-size: .88rem; }
.footer span { margin-right: auto; }
.not-found { padding-block: 4rem; }

@media (min-width: 741px) {
  .shelf-track:has(> .project-card:nth-child(3):last-child),
  .shelf-track:has(> .project-card:nth-child(2):last-child) { grid-auto-columns: calc((100% - 1.5rem) / 3); }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
  .shelf-track { grid-auto-columns: calc((100% - 1.5rem) / 3); }
}

@media (741px <= width <= 1000px) {
  .hero-summary { max-width: min(44vw, 29rem); }
  .hero-visual { left: 46%; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 2.25rem); }
  .bar-inner { min-height: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .36rem; padding-top: .72rem; padding-bottom: .2rem; }
  .bar nav { flex-wrap: wrap; }
  .hero { min-height: 0; padding-block: 2.5rem .65rem; }
  .hero-content { width: 100%; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 9vw, 4.65rem); }
  .hero-visual { position: relative; inset: auto; grid-row: 2; height: clamp(9rem, 35vw, 15rem); mask-image: none; }
  .site-stats { margin-bottom: 3rem; }
  .site-stats > div { padding: .85rem .75rem; }
  .shelf-track { grid-auto-columns: calc((100% - 1.5rem) / 2.5); }
  .detail-grid { grid-template-columns: 1fr; }
  .contribution { max-width: 30rem; }
}

@media (max-width: 580px) {
  .wordmark { width: fit-content; font-size: 1.16rem; }
  .bar nav { gap: .1rem clamp(.55rem, 3.2vw, 1.25rem); width: 100%; font-size: clamp(.77rem, 2.7vw, .88rem); }
  .bar nav a { padding-block: .55rem; }
  .bar nav .nav-github { padding: .27rem .49rem; }
  .hero { min-height: 0; padding-block: 2.05rem .65rem; }
  .hero-label { margin-bottom: 1.02rem; }
  .hero-visual { height: clamp(9rem, 42vw, 13rem); }
  .hero-summary { margin-block: 1.08rem 1.25rem; font-size: 1rem; }
  .site-stats { grid-template-columns: repeat(2, 1fr); }
  .site-stats > div:nth-child(3) { border-inline-start: 0; }
  .site-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .browser-heading { display: grid; }
  .browser-search { width: 100%; }
  .shelf-track { grid-auto-columns: minmax(10.3rem, 54%); }
  .shelf-title, .shelf-actions { gap: .43rem; }
  .shelf-actions { flex-shrink: 0; }
  .project-browser { padding-bottom: 2.6rem; }
  .problem-entry { grid-template-columns: 1fr; gap: .85rem; margin-bottom: 2.6rem; }
  .problem-entry .info-heading h2 { max-width: none; }
  .info-section { grid-template-columns: 1fr; padding-block: 2rem 2.25rem; gap: .8rem; }
  .info-steps { gap: .8rem; }
  .mcp-config .action { font-size: .8rem; padding-inline: .55rem; }
  .index { padding-block: 1.9rem 3rem; }
  .index-top { display: grid; gap: .75rem; }
  .search input { width: 100%; }
  .category-nav { gap: .05rem .85rem; margin-top: .85rem; }
  .problem-row { padding: .85rem .35rem .85rem 0; grid-template-columns: minmax(0, 1fr) .45rem; gap: .1rem .55rem; }
  .row-topic { grid-column: 1; }
  .row-content { grid-column: 1; grid-row: 2; }
  .chevron { grid-column: 2; grid-row: 2; }
  .detail { padding-block: 1.45rem 3rem; }
  .detail-heading { margin-block: 1.4rem 1.6rem; }
  .endpoint > div { flex-wrap: wrap; }
}

@media (pointer: coarse) {
  .hero-selector, .hero-pause, .shelf-controls button { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.project-art {
  --art-accent: var(--accent, #b9a6ff);
  --art-line: color-mix(in srgb, var(--art-accent) 30%, #18181d);
  --art-fill: color-mix(in srgb, var(--art-accent) 11%, #0d0c10);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  height: 108px;
  isolation: isolate;
  overflow: hidden;
  background-color: #0c0c0f;
  background-image: radial-gradient(ellipse at 50% 100%, var(--art-fill), transparent 75%);
  color: var(--art-accent);
  user-select: none;
}

.project-art > span { min-width: 0; }
.project-art > b { font: 1.15rem/1 ui-monospace, monospace; }
.project-art i { display: block; }
.project-art .art-window {
  width: min(78%, 180px);
  overflow: hidden;
  border: 1px solid var(--art-line);
  border-radius: 5px;
  background: #14131a;
  box-shadow: 0 8px 18px #0008;
}
.project-art .art-toolbar { height: 13px; display: flex; align-items: center; gap: 3px; padding: 0 6px; }
.project-art .art-toolbar i { width: 3px; height: 3px; border-radius: 50%; background: var(--art-accent); opacity: .5; }
.project-art .art-editor-body { display: grid; grid-template-columns: 2fr 1fr; min-width: 0; }
.project-art .art-editor-body img { display: block; width: 100%; height: 68px; object-fit: cover; object-position: center 51%; }
.project-art .art-layers { padding: 7px 6px; color: #e0d7fb; font-size: 8px; line-height: 1; }
.project-art .art-layers i { height: 7px; margin-top: 4px; background: var(--art-fill); border-radius: 2px; }
.project-art .art-layers i:nth-child(2) { background: var(--art-line); }
.project-art .art-layers i::before { content: ""; display: block; height: 100%; width: 8px; border-radius: 2px; background: var(--art-accent); opacity: .55; }
.project-art.art-budget .art-window { padding: 9px 11px; }
.project-art .art-budget-heading { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #e0d7fb; font-size: 8px; }
.project-art .art-budget-heading i { width: 16px; height: 5px; border-radius: 4px; background: var(--art-line); }
.project-art .art-budget-body { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.project-art .art-donut {
  width: 44px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--art-accent) 0 48%, #8d6dc1 48% 72%, #645881 72% 91%, #313044 91%);
  mask-image: radial-gradient(circle, transparent 49%, black 51%);
}
.project-art .art-ledger { flex: 1; max-width: 70px; }
.project-art .art-ledger i { height: 7px; margin: 3px 0; border-radius: 2px; background: var(--art-fill); }
.project-art .art-ledger i:nth-child(2) { width: 80%; }
.project-art .art-ledger i:nth-child(3) { width: 54%; }

.project-art .art-sheet {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  width: 50px;
  height: 64px;
  padding: 9px 8px;
  border: 1px solid var(--art-line);
  border-radius: 4px;
  background: var(--art-fill);
  box-shadow: 0 7px 12px #0006;
}
.project-art .art-sheet i { height: 3px; background: var(--art-line); border-radius: 2px; }
.project-art .art-sheet i:nth-child(1) { width: 68%; }
.project-art .art-sheet i:nth-child(3) { width: 82%; }
.project-art .art-sheet i:nth-child(4) { width: 52%; }
.project-art.art-compare { gap: 0; }
.project-art.art-compare .art-before { transform: translate(7px, 3px) rotate(-10deg); }
.project-art.art-compare .art-after { transform: translate(-1px, -2px) rotate(8deg); }
.project-art.art-compare .art-before i:nth-child(3) { background-color: #a4617e; }
.project-art.art-compare .art-after i:nth-child(2) { background-color: #8ccab2; }
.project-art.art-compare .art-after i:nth-child(4) { background-color: var(--art-accent); }

.project-art.art-formula {
  background-image: radial-gradient(ellipse, #c6a34c19, transparent 65%), radial-gradient(#c6a34c45 1px, transparent 1px);
  background-size: auto, 9px 9px;
}
.project-art .art-equation {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 14px 8px;
  border-block: 1px solid var(--art-line);
  background: #100d0ad9;
  font: 27px/1.1 ui-serif, Georgia, serif;
  letter-spacing: -.04em;
}
.project-art .art-equation strong { color: #ece2c9; font-size: 23px; }
.project-art .art-cells { display: grid; grid-template-columns: repeat(5, 8px); gap: 2px; }
.project-art .art-cells i { width: 8px; height: 8px; border-radius: 1px; background: var(--art-fill); }
.project-art .art-cells .art-on { background: var(--art-line); }
.project-art .art-cells .art-hot { background: var(--art-accent); }
.project-art.art-matrix .art-cells { padding: 6px; border-inline: 1px solid var(--art-line); }
.project-art.art-matrix .art-cells .art-on { background: color-mix(in srgb, var(--art-accent) 68%, #151319); }
.project-art .art-matrix-result { padding-left: 12px; border-left: 1px dashed var(--art-line); }
.project-art .art-matrix-result b { margin-right: 10px; font: 23px/1.2 ui-serif, Georgia, serif; }
.project-art .art-matrix-result i { display: inline-block; width: 6px; height: 6px; margin: 2px; border-radius: 50%; background: var(--art-line); }

.project-art .art-plot {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 55px;
  width: min(73%, 158px);
  padding: 0 7px 4px;
  border-bottom: 1px solid var(--art-line);
  background: repeating-linear-gradient(0deg, transparent 0 12px, var(--art-fill) 12px 13px);
}
.project-art .art-plot i { height: 34%; border-radius: 1px 1px 0 0; background: var(--art-accent); opacity: .72; }
.project-art .art-plot i:nth-child(2n) { height: 51%; }
.project-art .art-plot i:nth-child(3n) { height: 68%; }
.project-art .art-plot i:nth-child(4n) { height: 77%; }
.project-art .art-plot i:nth-child(5n) { height: 94%; }
.project-art.art-frames .art-plot i { height: 19%; }
.project-art.art-frames .art-plot i:nth-child(4n) { height: 92%; opacity: 1; }
.project-art.art-frames .art-plot i:nth-child(5n) { height: 38%; }
.project-art.art-energy .art-plot i { height: 36%; }
.project-art.art-energy .art-plot i:nth-child(-n+3) { height: 22%; }
.project-art.art-energy .art-plot i:nth-child(7n) { height: 82%; }
.project-art.art-energy .art-plot i:nth-child(n+8) { height: 60%; }

.project-art .art-nodes,
.project-art .art-clauses { display: grid; grid-template-columns: repeat(2, 6px); gap: 8px; }
.project-art .art-clauses i { height: 6px; border: 1px solid var(--art-line); border-radius: 1px; }
.project-art .art-clauses i:nth-child(3n) { background: var(--art-accent); }
.project-art .art-nodes {
  position: relative;
  grid-template-columns: repeat(3, 6px);
  gap: 9px 14px;
  padding: 10px 8px;
  background: radial-gradient(ellipse, var(--art-fill), transparent);
}
.project-art .art-nodes i {
  position: relative;
  z-index: 1;
  height: 6px;
  border: 1px solid var(--art-accent);
  border-radius: 50%;
  background: var(--art-fill);
}
.project-art .art-nodes::before {
  content: "";
  position: absolute;
  inset: 12px 12px;
  border: 1px solid var(--art-line);
  transform: skew(-20deg);
  background: linear-gradient(23deg, transparent 48%, var(--art-line) 49% 51%, transparent 52%);
}
.project-art .art-circuit-output { width: 26px; height: 16px; border: 1px solid var(--art-line); border-radius: 2px; box-shadow: -9px 0 0 -7px var(--art-accent); }
.project-art .art-geometry { position: relative; width: 76px; height: 56px; transform: rotate(-18deg); }
.project-art .art-geometry i { position: absolute; inset: 3px 9px; border: 1px solid var(--art-line); border-radius: 50%; }
.project-art .art-geometry i:nth-child(2) { transform: scaleX(.68); }
.project-art .art-geometry i:nth-child(3) { transform: scaleX(.32); }
.project-art .art-geometry i:nth-child(4) { transform: scaleY(.6); }
.project-art .art-geometry i:nth-child(5) { transform: scaleY(.19); }

.project-art.art-forecast {
  justify-content: center;
  background-image: linear-gradient(165deg, transparent 49%, var(--art-fill)), repeating-linear-gradient(90deg, transparent 0 17px, #1d262680 17px 18px);
}
.project-art .art-release-track { display: flex; align-items: center; justify-content: space-around; width: 82px; height: 1px; background: var(--art-line); }
.project-art .art-release-track i { width: 7px; height: 7px; background: #0d1415; border: 1px solid var(--art-line); border-radius: 50%; }
.project-art .art-release-track i:last-child { background: var(--art-accent); box-shadow: 0 0 12px var(--art-accent); border-color: transparent; }
.project-art .art-release-label { padding: 4px 6px; border: 1px dashed var(--art-line); border-radius: 3px; font: 10px/1 ui-monospace, monospace; }
.project-art .art-frame { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; padding: 8px 9px; border: 1px solid var(--art-line); border-radius: 4px; background: var(--art-fill); }
.project-art .art-frame i { aspect-ratio: 1; background: var(--art-line); border-radius: 1px; }
.project-art .art-frame:last-child i { border-radius: 50%; }
.project-art .art-frame:last-child i:nth-child(3) { background: var(--art-accent); }
.project-art.art-puzzles .art-cells:first-child .art-hot { background: var(--art-line); }
.project-art.art-puzzles .art-cells:last-child .art-hot { background: color-mix(in srgb, var(--art-accent), #ffffff 12%); }
.project-art .art-answer-stack { width: 48px; display: grid; gap: 4px; }
.project-art .art-answer-stack i { width: 100%; height: 6px; border: 1px solid var(--art-line); border-radius: 3px; }
.project-art .art-answer-stack:first-child i:nth-child(2),
.project-art .art-answer-stack:last-child i:nth-child(4) { background: var(--art-accent); }

.project-art.art-join .art-sheet { height: 48px; }
.project-art.art-transit,
.project-art.art-route { background-image: repeating-linear-gradient(31deg, transparent 0 18px, var(--art-fill) 18px 19px), repeating-linear-gradient(120deg, transparent 0 14px, var(--art-fill) 14px 15px); }
.project-art .art-transit-line { position: relative; display: flex; align-items: center; justify-content: space-between; width: min(64%, 132px); height: 2px; background: var(--art-line); transform: rotate(-13deg); }
.project-art .art-transit-line i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--art-line); background: var(--art-fill); }
.project-art .art-transit-line i:nth-child(3) { background: var(--art-accent); border-color: transparent; box-shadow: 0 0 0 3px var(--art-line); }
.project-art.art-route .art-transit-line { transform: rotate(16deg); background: repeating-linear-gradient(90deg, var(--art-line) 0 7px, transparent 7px 11px); }
.project-art.art-route .art-transit-line i:nth-child(3) { transform: translateY(-8px); }

.project-art.art-manuscript,
.project-art.art-newspaper { gap: 2px; }
.project-art.art-manuscript .art-before { border-radius: 5px 0 0 5px; transform: skewY(7deg); }
.project-art.art-manuscript .art-after { border-radius: 0 5px 5px 0; transform: skewY(-7deg); }
.project-art.art-manuscript .art-after i:nth-child(2) { background: var(--art-accent); }
.project-art.art-newspaper .art-sheet { height: 49px; border-radius: 1px; transform: rotate(11deg); }
.project-art.art-newspaper .art-sheet:nth-child(2) { transform: translate(-11px, 3px) rotate(-5deg); }
.project-art.art-newspaper .art-sheet:nth-child(2) i:nth-child(3) { background: var(--art-accent); }
.project-art.art-heat .art-cells { grid-template-columns: repeat(5, 17px); transform: rotate(-14deg); }
.project-art.art-heat .art-cells i { width: 17px; height: 10px; }
.project-art.art-heat .art-cells .art-on { background: #a7504a; }
.project-art.art-heat .art-cells .art-hot { background: #dc8c62; }
.project-art.art-galaxies {
  background-image: radial-gradient(circle at 22% 64%, #cbcbd1 0 1px, transparent 1.5px), radial-gradient(circle at 85% 31%, #a6a6ae 0 1px, transparent 1.5px), radial-gradient(circle at 38% 18%, #a6a6ae 0 1px, transparent 1.5px), radial-gradient(ellipse at 50% 100%, var(--art-fill), transparent 75%);
}
.project-art .art-galaxy { width: 65px; height: 26px; border-radius: 50%; transform: rotate(-27deg); background: radial-gradient(ellipse, #eae0f5 1%, var(--art-accent) 12%, transparent 70%); }
.project-art .art-galaxy:last-child { margin-left: -32px; transform: translateY(5px) rotate(30deg); }

.project-art.art-halo {
  background: radial-gradient(ellipse at center, #795e812e, transparent 72%), #111017;
}
.project-art .art-halo {
  display: grid;
  place-items: center;
  width: 85px;
  height: 64px;
  border: 1px dashed #886e86;
  border-radius: 50%;
  transform: rotate(-19deg);
  background: radial-gradient(ellipse, #9b83ba44, #422f4d19 65%, transparent);
}
.project-art .art-halo i {
  width: 69px;
  height: 21px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffecd4, #e0aaa8 14%, #90678d77 40%, transparent 73%);
}
