/* Projects, docs, blog and search. Layered on site.css: the same ink, type, rules and buttons,
   with no scene and no scripts beyond search. Pages are generated by tools/content/build.mjs. */

body.content-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.content-page > main { flex: 1; }
[id] { scroll-margin-top: 88px; }

/* ---------- header: the home page's, solid from the start ---------- */
.page-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 7, 31, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(253, 246, 250, .07);
}
.page-header-row { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.page-header .brand img { height: 28px; }
.page-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; padding-right: 28px; border-right: 1px solid rgba(253, 246, 250, .22); }
.page-nav a {
  position: relative; display: inline-flex; align-items: center; gap: .7em; padding: .6em 0;
  font-family: var(--display); font-stretch: 125%; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .3s;
}
.page-nav a:hover, .page-nav a[aria-current] { color: var(--white); }
.page-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: .32em; bottom: 0; height: 1px; background: var(--peach); }
.page-nav svg { flex: none; }
.page-header .header-cta { background: var(--white); color: var(--ink); border-color: var(--white); }
.page-header .header-cta:hover { background: var(--peach); border-color: var(--peach); }

/* ---------- a window onto the painted coast, at the top of a section ---------- */
.page-window { position: relative; min-height: clamp(340px, 52vh, 560px); display: flex; align-items: flex-end; background: var(--ink-2) center 72% / cover no-repeat; }
.page-window-night { background-image: url("../assets/plates/night.webp"); }
.page-window-day { background-image: url("../assets/plates/day-full.webp"); background-position: center 64%; }
@media (max-aspect-ratio: 1/1) {
  .page-window-night { background-image: url("../assets/plates/night-mobile.webp"); background-position: center 60%; }
  .page-window-day { background-image: url("../assets/plates/day-mobile.webp"); background-position: center 58%; }
}
.page-window::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 30%, rgba(18, 7, 31, .55) 0%, rgba(18, 7, 31, .2) 55%, rgba(18, 7, 31, 0) 80%); }
.page-window::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none;
  background: linear-gradient(0deg, var(--ink) 0%, rgba(27, 10, 44, .7) 40%, rgba(27, 10, 44, 0) 100%); }
.page-window-inner { position: relative; z-index: 1; display: grid; gap: 1.1rem; justify-items: start; padding-top: 8rem; padding-bottom: 2.6rem; }
.page-window .display { text-shadow: 0 2px 40px rgba(18, 7, 31, .45); }
.page-lede { max-width: 34em; color: var(--white); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; text-shadow: 0 1px 24px rgba(18, 7, 31, .7); }
.page-window .actions { margin-top: .6rem; }

/* ---------- cards (the staff dashboard's, for projects) ---------- */
.card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.5rem 1.6rem 1.4rem; border: 1px solid var(--rule); background: rgba(253, 246, 250, .02); text-decoration: none;
  transition: border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--peach), var(--coral) 35%, rgba(221, 81, 155, .5) 70%, rgba(221, 81, 155, 0));
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
a.card:hover, a.card:focus-visible { border-color: rgba(253, 246, 250, .32); background: rgba(253, 246, 250, .045); }
a.card:hover::before, a.card:focus-visible::before { transform: scaleX(1); }
.card-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; }
.card-arrow { color: var(--muted); transition: color .3s, transform .3s var(--ease); }
a.card:hover .card-arrow { color: var(--peach); transform: translateX(3px); }
.card h2, .card h3 { font-family: var(--display); font-stretch: 112%; font-weight: 400; color: var(--white); letter-spacing: -.01em; line-height: 1.1; }
.card p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.card .host a { text-decoration: none; transition: color .25s; }
.card .host a:hover { color: var(--peach); }
.card .host { padding-top: .9rem; margin-top: auto; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: rgba(253, 246, 250, .5); }
@media (prefers-reduced-motion: reduce) { .card::before, .card-arrow { transition: none; } }

.projects-list { padding-top: 1rem; padding-bottom: 5rem; }
.project-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.project-cards li { display: flex; }
.project-card { min-height: 22rem; }
.project-card h2 { font-weight: 700; font-stretch: 125%; font-size: clamp(2.6rem, 4.4vw, 3.8rem); letter-spacing: -.035em; }
.project-card .project-tagline { color: var(--white); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.4; font-weight: 300; }
.project-card .tags { margin-top: .3rem; }

/* ---------- project landing pages ---------- */
.project section.ink > .wrap { padding-top: 4.5rem; padding-bottom: 1rem; }
.project section.ink:last-of-type > .wrap { padding-bottom: 5rem; }
.project .split-head { margin-bottom: 2.4rem; }
.install-chip {
  display: inline-flex; align-items: center; gap: 1em; max-width: 100%; overflow-x: auto;
  font-family: var(--mono); font-size: .86rem; color: var(--white);
  background: rgba(18, 7, 31, .78); border: 1px solid rgba(253, 246, 250, .2); padding: .75em 1.1em;
}
.install-chip::before { content: "$"; color: var(--peach); }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.problem p:not(.lead) { color: var(--muted); max-width: 32em; }
.problem p + p { margin-top: 1rem; }

.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.example figure { display: flex; flex-direction: column; min-width: 0; }
.example figcaption, .shot figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .9rem 0 0; }
.example-note { color: var(--muted); max-width: 46em; margin-top: 1.6rem; }
.example-note strong { color: var(--white); font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.features .card { min-height: 0; }
.features .card h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.features .card .host { font-size: .7rem; }
.features code, .steps code { font-family: var(--mono); font-size: .86em; color: var(--white); background: rgba(253, 246, 250, .06); padding: .08em .35em; }

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 24px; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.steps > li > .idx { padding-top: .35rem; }
.steps h3 { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--white); margin-bottom: .6rem; }
.steps p { color: var(--muted); max-width: 44em; }
.steps pre { margin-top: .9rem; }
.steps pre + p, .steps p + p { margin-top: .9rem; }
.callout { margin-top: 2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--rule); border-left: 2px solid var(--peach); color: var(--text); max-width: 52em; }
.callout strong { color: var(--white); font-weight: 500; }

.shots { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 1fr); gap: 18px; align-items: end; }
.shots-2 { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 18px; }
.shot { min-width: 0; }
.shot img { width: 100%; height: auto; border: 1px solid rgba(253, 246, 250, .14); background: var(--ink-deep); }
.project-hero-shots { margin-top: -1rem; position: relative; z-index: 2; }

.project-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); }
.project-cta p { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.2rem, 1.9vw, 1.6rem); color: var(--white); max-width: 30em; line-height: 1.25; }

/* the docs contents, on the landing page and the generated docs index */
.docs-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.4rem 3rem; }
.docs-index-group .overline { margin-bottom: .9rem; }
.docs-index ul { border-top: 1px solid var(--rule); }
.docs-index li a { display: grid; gap: .2rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .3s; }
.docs-index li a strong { font-weight: 500; color: var(--white); font-size: 1.02rem; }
.docs-index li a span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* one group (a project with no sections yet): the list itself takes the columns */
.docs-index-flat { grid-template-columns: minmax(0, 1fr); }
.docs-index-flat ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 3rem; border-top: 0; }
.docs-index-flat li { border-top: 1px solid var(--rule); }
.docs-index-flat li a { height: 100%; }
.docs-index li a:hover strong { color: var(--peach); }
.docs-synced { margin-top: 2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.docs-synced a, .docs-source a { color: var(--text); }

/* ---------- docs: nav, article, on this page ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr) 210px; gap: 0 clamp(28px, 4vw, 64px); align-items: start; padding-top: 2.4rem; padding-bottom: 5rem; }
.docs-nav { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding-bottom: 2rem; font-size: .92rem; scrollbar-width: thin; }
.docs-menu > summary { list-style: none; display: none; }
.docs-menu > summary::-webkit-details-marker { display: none; }
.docs-search input {
  width: 100%; font: inherit; font-size: .9rem; color: var(--white);
  background: rgba(253, 246, 250, .045); border: 1px solid rgba(253, 246, 250, .22); border-radius: 2px; padding: .6rem .8rem;
}
.docs-search input::placeholder { color: rgba(253, 246, 250, .42); }
.docs-search input:focus { outline: none; border-color: var(--peach); }
.docs-nav-home { margin: 1.2rem 0 .4rem; }
.docs-nav-home a { font-family: var(--display); font-stretch: 115%; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.docs-nav-home a:hover { color: var(--white); }
.docs-nav-root { margin-bottom: .4rem; }
.docs-nav a { text-decoration: none; }
.docs-nav-root a, .docs-nav li a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -1px; border-left: 1px solid var(--rule); color: var(--muted); line-height: 1.35; transition: color .25s, border-color .25s; }
.docs-nav-root a:hover, .docs-nav li a:hover { color: var(--white); }
.docs-nav a[aria-current] { color: var(--white); border-left-color: var(--peach); }
.docs-nav-group { margin: 1.2rem 0 .3rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 246, 250, .5); }
.docs-nav-group a { color: inherit; }
.docs-nav-section ul { padding-left: .6rem; }

.docs-article { min-width: 0; max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6em; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .5; }
.docs-title { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; color: var(--white); margin-bottom: 1.6rem; }
.docs-title code { font-family: var(--mono); font-size: .86em; letter-spacing: -.03em; }
.docs-lead { margin-bottom: 2.6rem; }
.docs-toc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding-top: 2.9rem; font-size: .84rem; scrollbar-width: thin; }
.docs-toc .overline { font-size: .6rem; margin-bottom: .8rem; }
.docs-toc a { display: block; padding: .26rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.docs-toc a:hover { color: var(--white); }
.docs-toc .toc-3 a { padding-left: .9rem; font-size: .8rem; }
.docs-foot { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); display: grid; gap: 1.6rem; }
.docs-source { font-size: .82rem; color: var(--muted); }
.docs-source code, .docs-synced code { font-family: var(--mono); font-size: .92em; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs-pager a { display: grid; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--rule); text-decoration: none; color: var(--white); transition: border-color .3s, background .3s; }
.docs-pager a span { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.docs-pager a:hover { border-color: rgba(253, 246, 250, .4); background: rgba(253, 246, 250, .04); }
.docs-pager .next { text-align: right; }

/* ---------- prose: rendered Markdown ---------- */
.prose { font-size: 1.02rem; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { position: relative; font-family: var(--display); font-stretch: 112%; color: var(--white); letter-spacing: -.01em; line-height: 1.2; }
.prose h2 { font-weight: 500; font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.prose h3 { font-weight: 500; font-size: 1.22rem; margin-top: 2em; }
.prose h4 { font-weight: 600; font-size: 1.02rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose .anchor { margin-left: .4em; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .2s; font-weight: 400; }
.prose :is(h2, h3, h4):hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(254, 190, 117, .5); text-underline-offset: .2em; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--peach); }
.prose strong { color: var(--white); font-weight: 550; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: .78em; width: .45em; height: 1px; background: var(--peach); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { font-family: var(--mono); font-size: .85em; color: var(--muted); }
.prose li + li { margin-top: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose code { font-family: var(--mono); font-size: .86em; color: var(--white); background: rgba(253, 246, 250, .07); padding: .1em .35em; border-radius: 2px; }
.prose pre, pre.code {
  position: relative; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.6; color: var(--text);
  background: var(--ink-deep); border: 1px solid rgba(253, 246, 250, .1); padding: 1.1rem 1.25rem; tab-size: 2; scrollbar-width: thin;
}
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose pre[data-lang], pre.code[data-lang] { padding-top: 1.9rem; }
.prose pre[data-lang]::before, pre.code[data-lang]::before {
  content: attr(data-lang); position: absolute; top: .55rem; right: .8rem;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 246, 250, .38);
}
pre.code { margin: 0; flex: 1; }
pre.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
pre.code .c { color: rgba(253, 246, 250, .45); }
pre.code .p { color: var(--peach); user-select: none; }
pre.code .o { color: rgba(253, 246, 250, .6); }
.prose blockquote { padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--peach); color: var(--white); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; border: 1px solid rgba(253, 246, 250, .12); }
.table-scroll { overflow-x: auto; scrollbar-width: thin; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom-color: rgba(253, 246, 250, .3); }
.prose td code { white-space: nowrap; }
.prose details { border: 1px solid var(--rule); padding: .8rem 1rem; }
.prose summary { cursor: pointer; color: var(--white); }

/* ---------- blog ---------- */
.posts { padding-top: 1.4rem; padding-bottom: 5rem; }
.post-list { border-top: 1px solid var(--rule); }
.post-list a { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.post-list time { grid-row: span 2; padding-top: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-list h2 { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--white); line-height: 1.15; letter-spacing: -.01em; transition: color .3s; }
.post-list p { color: var(--muted); max-width: 40em; }
.post-list a:hover h2 { color: var(--peach); }
.empty { max-width: 36em; padding: 2rem 0 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1.1rem; }
.empty a, .search-status a { color: var(--white); }
.page-feed { margin-top: .4rem; }

.post { max-width: calc(46rem + var(--gutter) * 2); padding-top: 3.5rem; padding-bottom: 5rem; }
.post-head { display: grid; gap: 1.2rem; padding-bottom: 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.post-head .crumbs { margin: 0; }
.post-date { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-foot { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
/* the privacy policy: the header's rule already sits above the first section */
.policy .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- search ---------- */
.search { padding-top: 3.5rem; padding-bottom: 5rem; max-width: calc(52rem + var(--gutter) * 2); }
.search .overline { margin-bottom: 1.2rem; }
.search-form { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; color: var(--white);
  background: rgba(253, 246, 250, .045); border: 1px solid rgba(253, 246, 250, .3); border-radius: 2px; padding: .85rem 1.1rem;
}
.search-row input::placeholder { color: rgba(253, 246, 250, .4); }
.search-row input:focus { outline: none; border-color: var(--peach); background: rgba(253, 246, 250, .07); }
.search-row input:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.search-filters { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-filters label { cursor: pointer; }
.search-filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.search-filters span {
  display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .55em .95em; border: 1px solid var(--rule); transition: color .25s, border-color .25s, background .25s;
}
.search-filters label:hover span { color: var(--white); border-color: rgba(253, 246, 250, .4); }
.search-filters input:checked + span { color: var(--ink); background: var(--white); border-color: var(--white); }
.search-filters input:focus-visible + span { outline: 2px solid var(--peach); outline-offset: 2px; }
.search-status { margin-top: 1.6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
.search-status:empty { display: none; }
.search-results { margin-top: 1rem; border-top: 1px solid var(--rule); }
.search-results:empty { border: 0; }
.search-results > li { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.result-meta { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.result-title { font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.result-title a { color: var(--white); text-decoration: none; }
.result-title a:hover { color: var(--peach); }
.result-excerpt { color: var(--muted); margin-top: .4rem; font-size: .95rem; }
.search-results mark { background: none; color: var(--white); box-shadow: inset 0 -.38em 0 rgba(221, 81, 155, .4); }
.result-subs { margin-top: .7rem; display: grid; gap: .35rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.result-subs a { color: var(--text); text-decoration: none; font-size: .9rem; }
.result-subs a:hover { color: var(--white); }
.result-subs span { display: block; color: var(--muted); font-size: .84rem; }

/* ---------- narrower ---------- */
@media (max-width: 1199px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 1023px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .docs-nav { position: static; max-height: none; overflow: visible; padding-bottom: 0; margin-bottom: 1.8rem; border: 1px solid var(--rule); }
  .docs-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; cursor: pointer; }
  .docs-menu > summary .overline { font-size: .6rem; white-space: nowrap; flex-wrap: nowrap; }
  .docs-menu-current { color: var(--white); font-size: .9rem; text-align: right; }
  .docs-menu-current::after { content: " ▾"; color: var(--muted); }
  .docs-menu[open] .docs-menu-current::after { content: " ▴"; }
  .docs-menu[open] { padding: 0 1rem 1rem; }
  .docs-menu[open] > summary { margin: 0 -1rem .6rem; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .page-header-row { gap: 14px; padding-block: 10px; }
  .page-header .brand img { height: 24px; }
  .page-header .header-cta { display: none; }
  .page-nav { gap: 18px; padding-right: 0; border-right: 0; }
  .page-nav a { font-size: .6rem; letter-spacing: .24em; }
  .page-nav-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-window { min-height: 0; }
  .page-window-inner { padding-top: 7rem; padding-bottom: 1.8rem; }
  .page-window .overline { font-size: .58rem; letter-spacing: .3em; gap: .7em; }
  .page-window .overline i { width: 1.4em; }
  /* the phone capture is already phone-sized: don't blow it up to the column */
  .shots .shot:nth-child(2) { width: min(100%, 300px); justify-self: center; }
  .problem, .example, .shots, .shots-2 { grid-template-columns: minmax(0, 1fr); }
  .project section.ink > .wrap { padding-top: 3rem; }
  .steps > li { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; }
  .project-card { min-height: 0; }
  .post-list a { grid-template-columns: minmax(0, 1fr); }
  .post-list time { grid-row: auto; padding: 0; }
  .post { padding-top: 2.2rem; }
  .search { padding-top: 2.2rem; }
  .search-row .btn { padding-inline: 1.1em; }
  .docs-pager { grid-template-columns: 1fr; }
  .prose pre, pre.code { font-size: .78rem; padding: .95rem 1rem; }
}

/* links and inline code in the hand-written landing copy */
@media (max-width: 480px) {
  .page-nav { gap: 12px; }
  .page-nav a { font-size: .56rem; letter-spacing: .14em; }
  .page-header .brand img { height: 22px; }
}

.project p a:not(.btn):not(.text-link) { color: var(--white); text-decoration: underline; text-decoration-color: rgba(254, 190, 117, .5); text-underline-offset: .2em; }
.project p a:not(.btn):not(.text-link):hover { text-decoration-color: var(--peach); }
.project :not(pre) > code { font-family: var(--mono); font-size: .86em; color: var(--white); background: rgba(253, 246, 250, .07); padding: .08em .35em; border-radius: 2px; }
