/* Landing site styles. Colors, spacing, radii, and type sizes come from css/tokens.css; only new values are defined here. */

:root {
  /* Landing-only tokens. Shared colors, including the leather, brass, lining, and parchment values, live in css/tokens.css. */
  --font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-80: calc(.8rem + 3px); --text-sm: calc(.9rem + 3px); --text-100: calc(1rem + 3px);
  --text-lg: calc(1.15rem + 3px);
  --text-xl: calc(clamp(1.45rem, 1.15rem + 1.2vw, 1.95rem) + 2pt);
  --text-hero: calc(min(clamp(2.8rem, 1.7rem + 4.4vw, 5rem), 13vw) + 2pt);
  --wrap: 70rem;
  --target: 48px;
  --flap-h: 84px;
  --icon-brand: 44px; --icon-md: 20px; --icon-glyph: 19px; --diamond: 9px;
  --rule: 2px;
  --section-pad: 3.25rem; --hero-pad: 3.5rem;
  --text-h3: calc(1.25rem + 2pt + 4px); --text-brand: calc(1.75rem + 2pt);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--space-24); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--text-100)/1.5 var(--font-sans);
  min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
h1 { font-family: var(--font-display); }
p { margin: 0 0 var(--space-14); }
a { color: var(--planned); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-input); }
.band :focus-visible, .skip:focus-visible { outline-color: var(--lining-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--space-16), env(safe-area-inset-left, 0px)); }

/* Skip link: off-screen until focused, outside every landmark. */
.skip {
  position: absolute; left: var(--space-12); top: -4rem; z-index: 20;
  background: var(--tutorial); color: var(--on-tutorial-btn);
  padding: var(--space-10) var(--space-16); border-radius: var(--radius-control); font-weight: 600;
}
.skip:focus { top: var(--space-8); }

/* Satchel flap: a leather strip with a curved bottom edge, clipped to the curve so the clasp can hang below it. The stitch, brand, theme patch, and clasp are all placed from this one frame. */
.flap { position: relative; z-index: 10; --gut: max(var(--space-16), env(safe-area-inset-left, 0px)); --clasp-w: 44px; }
.flapframe {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) min(calc(100% - 2 * var(--gut)), calc(var(--wrap) - 2 * var(--gut))) minmax(0, 1fr);
  grid-template-rows: var(--flap-h);
}
.flapleather {
  position: absolute; inset: 0; z-index: 1; grid-area: 1 / 1 / 2 / -1; overflow: hidden; background: var(--leather);
  border-radius: 0 0 64px 64px / 0 0 22px 22px; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35);
}
/* The texture matches the app: 800px wide at its natural size, anchored bottom left, and it only grows when the window is wider. */
.flapleather img { position: absolute; left: 0; bottom: 0; width: max(100%, 800px); height: auto; max-width: none; }

.flapstitch { grid-area: 1 / 1 / 2 / -1; }

/* Brand and theme patch are centered in the flap. The wordmark drops 2px because the q's descender makes it look high. */
.flap .brand { grid-column: 2; grid-row: 1; justify-self: start; align-self: center; position: relative; z-index: 3; color: var(--stamp); }
.flap .brand span { position: relative; top: 2px; color: var(--wordmark-stamp); text-shadow: 0 1px 0 rgba(255, 235, 190, .35); -webkit-text-stroke: 2px var(--stamp); paint-order: stroke fill; transition: color .2s ease; }
.flap .brand:hover span { color: color-mix(in srgb, var(--wordmark-stamp) 85%, white); }
.themebtn {
  grid-column: 2; grid-row: 1; justify-self: end; align-self: center; position: relative; z-index: 3;
  width: 44px; height: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--stamp); border: 1px solid rgba(30, 16, 6, .55); border-radius: 9px; cursor: pointer;
  background-color: var(--leather);
  background-image: url("assets/header-800.jpg"); background-image: image-set(url("assets/header-800.webp") type("image/webp"), url("assets/header-800.jpg") type("image/jpeg"));
  background-size: 190px auto; background-position: -36px -14px;
}
.themebtn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--thread); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' %3E%3Crect x='4' y='4' width='36' height='36' rx='6' pathLength='100' fill='none' stroke='black' stroke-width='1.4' stroke-dasharray='2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62'/%3E%3C/svg%3E") center / 100% 100% no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' %3E%3Crect x='4' y='4' width='36' height='36' rx='6' pathLength='100' fill='none' stroke='black' stroke-width='1.4' stroke-dasharray='2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62 2.7 1.6 2.36 1.44 2.87 1.52 2.53 1.77 2.36 1.44 2.79 1.62'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.themebtn svg { width: var(--icon-glyph); height: var(--icon-glyph); flex: none; }
.themebtn { transition: filter .2s ease; }
.themebtn:hover { filter: brightness(1.12); }

/* Clasp: the menu button at every width. The strap tile scales with --clasp-w. */
.clasp {
  display: none; position: absolute; z-index: 4; left: 50%; top: calc(var(--flap-h) - var(--clasp-w) * 46 / 44 - var(--clasp-pad-t));
  width: calc(var(--clasp-w) + var(--clasp-pad-x) * 2); height: calc(var(--clasp-w) * 90 / 44 + var(--clasp-pad-t) + var(--clasp-pad-b));
  transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer;
}
.js .clasp { display: block; }
/* The button is padded around the strap so Safari, which clips a button's contents to its box, leaves room for the shadow and the lift. */
.clasp { -webkit-tap-highlight-color: transparent; }
.clasp { --clasp-pad-x: 12px; --clasp-pad-t: 8px; --clasp-pad-b: 14px; }
.claspart {
  position: absolute; inset: var(--clasp-pad-t) var(--clasp-pad-x) var(--clasp-pad-b); transition: transform .2s linear; box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
  border-radius: calc(var(--clasp-w) * .11) calc(var(--clasp-w) * .11) calc(var(--clasp-w) * .48) calc(var(--clasp-w) * .48);
}
/* Hovering lifts the strap 3px, and pressing keeps it lifted until the menu closes. The peek hint is the same lift, then back. */
.clasp[aria-expanded="true"] .claspart { transform: translateY(-3px); }
@media (hover: hover) { .clasp:hover .claspart { transform: translateY(-3px); } }
.clasp.peek .claspart { animation: lift .8s linear; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .claspart { transition: none; } .clasp.peek .claspart { animation: none; } }
.knob { transition: filter .2s ease; }
@media (hover: hover) { .clasp:hover .knob { filter: brightness(1.2); } }
.strap {
  position: absolute; inset: 0; background-color: var(--strap);
  background-image: url("assets/strap.jpg"); background-image: image-set(url("assets/strap.webp") type("image/webp"), url("assets/strap.jpg") type("image/jpeg"));
  background-size: calc(var(--clasp-w) * 4) calc(var(--clasp-w) * 4); background-repeat: repeat;
  clip-path: inset(0 round calc(var(--clasp-w) * .11) calc(var(--clasp-w) * .11) calc(var(--clasp-w) * .48) calc(var(--clasp-w) * .48));
}
.claspart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flap :focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; box-shadow: 0 0 0 2px var(--lining); }

/* Lining: revealed behind the flap when the clasp is opened. Without JavaScript it stays open. */
.topnav {
  grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 0; margin-top: -22px;
  padding: calc(22px + var(--clasp-w) + var(--space-14)) 0 var(--space-20); background: var(--lining); color: var(--lining-ink);
}
/* The tan panel reaches 300px up behind the flap. With JavaScript it carries the color and starts 22px up. */
.topnav::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -300px; bottom: 0; background: var(--lining); border-radius: 0 0 64px 64px / 0 0 22px 22px; box-shadow: inset 0 -4px 6px -3px rgba(0, 0, 0, .3); }
.js .topnav { background: none; }
.js .topnav::before { bottom: 22px; transition: bottom .35s ease; }
.js .topnav.open::before { bottom: 0; }
html:not(.js) .topnav { padding-top: calc(22px + var(--space-14)); }
/* With JavaScript the lining grows from 0 to --navh (set in satchel.js) and the list slides with its edge. */
.js .topnav {
  display: block; position: absolute; top: 100%; left: 0; right: 0; height: 0; margin-top: 0; padding: 0; visibility: hidden; clip-path: inset(-400px 0 0 0);
  transition: height .35s ease, margin-top .35s ease, visibility 0s linear .35s;
}
.js .topnav > ul {
  position: absolute; left: 0; right: 0; bottom: 22px; transition: bottom .35s ease;
  padding: calc(22px + var(--clasp-w) + var(--space-14)) var(--gut) var(--space-20);
}
.js .topnav.open > ul { bottom: 0; }
.js .topnav.open { height: var(--navh, auto); margin-top: -22px; visibility: visible; transition: height .35s ease, margin-top .35s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .js .topnav, .js .topnav.open, .js .topnav::before, .js .topnav > ul { transition: none; } }
.topnav ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-20);
}
.topnav a {
  display: flex; align-items: center; gap: var(--space-8); min-height: 44px; padding: 0 var(--space-12);
  color: var(--lining-ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--lining-ink) 55%, transparent);
}
.topnav a:hover { background: color-mix(in srgb, white 25%, transparent); }
.topnav a[aria-current="page"] { color: var(--lining-current); font-weight: 600; }
.topnav a[aria-current="page"]::before { content: ""; width: var(--diamond); height: var(--diamond); flex: none; background: var(--burn); border-radius: 2px; transform: rotate(45deg); }
@media (width >= 56.25rem) {
  .topnav ul { display: flex; justify-content: center; gap: var(--space-20); }
  .topnav li { flex: 0 0 auto; }
}
@media (width < 56.25rem) { main { padding-top: var(--space-24); } }

@media (width < 56.25rem) { .flap .brand, .themebtn { top: -4px; } }
@media (width >= 56.25rem) { .flap .brand, .themebtn { top: -4px; } }

/* Footer band: the same tan as the menu lining. */
.band {
  background: var(--lining);
  color: var(--lining-ink);
  box-shadow: inset 0 4px 6px -3px rgba(0, 0, 0, .3);
}
.band a { color: var(--lining-ink); }
.band .wrap { padding-block: var(--space-10); }
.brand { display: inline-flex; align-items: center; gap: var(--space-10); text-decoration: none; font: 400 var(--text-brand)/1 var(--font-display); min-height: var(--control-height); min-width: 0; }
.brand svg { width: var(--icon-brand); height: var(--icon-brand); flex: none; }
.flap .brand svg { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }


/* Footer: support and source, then the copyright, all centered. */
.footband { margin-top: var(--space-30); }
.band .footrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: var(--space-12); padding-block: var(--space-22);
}
.footrow .footlinks { order: -1; }
.footlinks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4) var(--space-20); }
.footlinks > a:not(.supportlink) { display: inline-flex; align-items: center; min-height: var(--control-height); }
.legal { margin: 0; font-size: var(--text-sm); }
.supportlink {
  display: inline-flex; align-items: center; gap: var(--space-10); min-height: var(--target); padding: 0 var(--space-20);
  border: var(--rule) solid var(--lining-ink); border-radius: var(--radius-card);
  font-weight: 600; text-decoration: none;
}
.supportlink:hover { background: color-mix(in srgb, var(--lining-ink) 12%, transparent); }
.supportlink svg { width: var(--icon-md); height: var(--icon-md); flex: none; }

/* Buttons. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--target); padding: 0 var(--space-24); border-radius: var(--radius-card);
  font: 600 var(--text-100)/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: var(--rule) solid transparent;
}
.btn.door {
  background: var(--tutorial); color: var(--on-tutorial-btn); border-color: var(--tutorial-edge);
}
.btn.door:hover { background: var(--tutorial-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.btn.small { min-height: var(--control-height); padding: 0 var(--space-16); font-size: var(--text-sm); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: box-shadow .2s, transform .2s, background .2s; }
  .btn.door:hover { transform: translateY(-1px); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-22); }
.cta-pair { display: contents; }
/* Narrow: the first two buttons share a centered line and the third sits centered below. */
@media (width < 36rem) {
  .cta-row { flex-direction: column; align-items: center; }
  .cta-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-12); }
}

/* Kicker: small label above a heading, led by the milestone diamond from the icon. */
.kicker {
  display: flex; align-items: center; gap: var(--space-10);
  margin: 0 0 var(--space-8); font: 600 calc(var(--text-80) - 2px)/1.2 var(--font-sans);
  letter-spacing: .12em; text-transform: uppercase; color: var(--badge-active);
}
.kicker::before {
  content: ""; width: var(--diamond); height: var(--diamond); flex: none; background: var(--burn);
  border-radius: 2px; transform: rotate(45deg);
}

/* Hero (home) and page heads (every other page). */
.hero { padding-block: var(--space-30) var(--hero-pad); }
.hero h1 { font-size: var(--text-hero); letter-spacing: -.01em; }
.pagehead { padding-block: var(--space-30) var(--space-8); }
.pagehead h1 { font-size: var(--text-hero); letter-spacing: -.01em; }
.pagehead p:not(.kicker) { font-size: var(--text-lg); margin-top: var(--space-12); }
.lede { font-size: var(--text-xl); font-family: var(--font-serif); line-height: 1.3; margin-top: var(--space-14); }
.hero-grid { display: grid; gap: var(--space-30); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (width >= 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

/* Sections. */
.section { padding-block: var(--section-pad) 1rem; }
.section > .wrap > header { margin-bottom: var(--space-24); }
.section h2 { font-size: var(--text-xl); }
.section h3 { font-size: var(--text-h3); margin-bottom: var(--space-10); }
.section::before {
  content: ""; display: block; max-width: var(--wrap); height: var(--rule); margin: 0 auto var(--space-30);
  background: linear-gradient(90deg, transparent, var(--brass) 18%, var(--brass) 82%, transparent);
}
.pagehead + .section { padding-top: var(--space-22); }
.pagehead + .section::before { display: none; }
main .wrap { container-type: inline-size; }
.grid { --gap: var(--space-18); --n: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; }
.grid.two, .grid.ways { --n: 1; }
/* One column of cards, for text that reads top to bottom (the patch notes). */
.grid.stack { --n: 1; max-width: 44rem; margin-inline: auto; }
.patchdate { margin: calc(-1 * var(--space-6)) 0 var(--space-12); color: var(--muted); font-size: var(--text-sm); }
/* A grid gets n columns when its container fits n cards at the card minimum plus gaps (1.125rem).
   Minimums: 17.5rem .grid, 24rem .grid.two, 15rem .grid.ways; container queries cannot read custom properties. */
@container (width >= calc(2 * 17.5rem + 1.125rem)) { .grid { --n: 2; } }
@container (width >= calc(3 * 17.5rem + 2 * 1.125rem)) { .grid { --n: 3; } }
@container (width >= calc(2 * 24rem + 1.125rem)) { .grid.two { --n: 2; } }
@container (width >= calc(2 * 15rem + 1.125rem)) { .grid.ways { --n: 2; } }
@container (width >= calc(3 * 15rem + 2 * 1.125rem)) { .grid.ways { --n: 3; } }
@container (width >= calc(4 * 15rem + 3 * 1.125rem)) { .grid.ways { --n: 4; } }
.posting ul, .perks { margin: 0; padding-left: var(--space-18); }
.posting li, .perks li { margin-bottom: var(--space-8); }
.posting li:last-child { margin-bottom: 0; }
.posting ul + p { margin-top: var(--space-12); }
.posting p:last-child { margin-bottom: 0; }
.stack-gap { margin-top: var(--space-22); }

.way { border-top: 5px solid var(--bar-pending); }
.way.pwa { border-top-color: var(--bar-done); }
.way.claude { border-top-color: var(--bar-active); }
.way.muse { border-top-color: var(--brand-muse); }
.way.trello { border-top-color: var(--brand-trello); }
.way.todoist { border-top-color: var(--brand-todoist); }
.way .actions { margin-top: var(--space-16); }
/* A fold-out inside a card is a lighter band that runs edge to edge, with its content on the same color. */
.way details {
  margin: var(--space-14) calc(-1 * var(--space-20)) 0;
  background: color-mix(in srgb, var(--card) 55%, white);
}
.way details[open] { padding-bottom: var(--space-16); }
.way summary { display: flex; border: 0; border-radius: 0; background: none; padding: 0 var(--space-20); }
.way summary:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.way summary:focus-visible { outline-offset: -3px; }
.way details > ul { margin: var(--space-4) var(--space-20) 0 var(--space-20); padding-left: var(--space-18); }
.postlink { display: inline-block; margin-top: var(--space-12); font-weight: 600; }


.chip {
  display: inline-block; margin: 0 var(--space-4) var(--space-8) 0; padding: var(--space-2) var(--space-10);
  border-radius: var(--radius-pill); font-size: var(--text-80); font-weight: 600;
  background: var(--badge-neutral-bg); color: var(--badge-neutral);
}
.chip.pending { background: var(--badge-pending-bg); color: var(--badge-pending); }
.chip.done { background: var(--badge-done-bg); color: var(--badge-done); }
.chip.active { background: var(--badge-active-bg); color: var(--badge-active); }
.chip.info { background: var(--badge-info-bg); color: var(--badge-info); }

.perks { list-style: none; padding: 0; columns: 18rem 3; column-gap: var(--space-30); }
.perks li { padding-left: var(--space-18); position: relative; margin: 0 0 var(--space-12); break-inside: avoid; }
.perks li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px;
  background: var(--brass); border-radius: 1px; transform: rotate(45deg);
}
.subhead { margin-top: var(--space-30); }

/* Prompts. */
details { margin: var(--space-14) 0 var(--space-20); }
summary {
  display: inline-flex; align-items: center; gap: var(--space-10); cursor: pointer; list-style: none;
  min-height: var(--target); padding: 0 var(--space-20); border: var(--rule) solid var(--ink); border-radius: var(--radius-card);
  background: var(--surface); font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: ""; width: 8px; height: 8px; flex: none; border-right: var(--rule) solid currentColor; border-bottom: var(--rule) solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
details[open] > summary::before { transform: translateY(-3px) rotate(45deg); }
summary:hover { background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
details > p:last-child { margin-bottom: 0; }
pre {
  margin: var(--space-10) 0 var(--space-12); padding: var(--space-14);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  font: var(--text-80)/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
code { font-family: var(--font-mono); font-size: .92em; }
.copystatus { margin-left: var(--space-10); font-size: var(--text-sm); color: var(--muted); }
.section .posting h2 { font-size: var(--text-h3); margin-bottom: var(--space-10); }

/* Split: prose with a screenshot beside it from 56rem. */
.split { display: grid; gap: var(--space-24); grid-template-columns: minmax(0, 1fr); align-items: start; }
.prose > :last-child { margin-bottom: 0; }
.prose > h3 { margin: var(--space-24) 0 var(--space-10); }
.prose > h2.lede { margin: 0 0 var(--space-18); font-weight: 400; }
.prose > .quotehead { width: fit-content; max-width: 100%; margin: 0 0 var(--space-18); }
.quotehead > h2.lede { margin: 0; }
.quotehead > .byline { margin: var(--space-8) 0 0; color: var(--muted); text-align: right; }
@media (width >= 56rem) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .shot.side { position: sticky; top: var(--space-24); }
}

/* Screenshot placeholders. Replace .shotframe with an <img> that has real alt text. */
.shot { margin: 0; }
.shotframe {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
  aspect-ratio: 16 / 10; width: 100%; padding: var(--space-16); text-align: center;
  border: var(--rule) dashed var(--brass); border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--brass) 14%, transparent) 14px 15px),
    color-mix(in srgb, var(--surface) 70%, var(--chip-work));
  color: var(--muted);
}
.shot.wide .shotframe { aspect-ratio: 21 / 9; }
/* A real screenshot: the parchment box shows until the image loads, then the image fades in. */
.shotbox {
  position: relative; width: 100%; aspect-ratio: var(--ar); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 70%, var(--chip-work));
}
.shotbox img { display: block; width: 100%; height: 100%; }
.js .shotbox img { opacity: 0; }
.js .shotbox.shown img { opacity: 1; transition: opacity .5s ease; }
/* The ink is painted on a canvas over the image, which takes over when the ink is done. */
.inkcanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: auto; }
.js .shotbox.inking img, .js .shotbox.inked img { opacity: 1; transition: none; }
.shot.side .shotbox { max-width: 22rem; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .js .shotbox.shown img { transition: none; } }
.shotlabel { font: 600 calc(var(--text-80) - 2px)/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.shotname { font: 400 calc(1.1rem + 2pt)/1.3 var(--font-serif); color: var(--ink); }
.posting .shot { margin-top: var(--space-16); }

/* Enlarged screenshots: satchel.js adds a button over each box and one shared dialog with a leather frame. */
.zoombtn { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.zoombtn:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.zoombtn::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--leather) 0%, transparent);
  transition: background .2s ease;
}
.zoombtn:hover::after, .zoombtn:focus-visible::after { background: color-mix(in srgb, var(--leather) 12%, transparent); }
html:has(dialog.lightbox[open]) { overflow: hidden; }
dialog.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--space-16);
  border: 0; background: transparent; overflow: hidden; align-items: center; justify-content: center;
}
dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: rgba(20, 12, 6, .78); backdrop-filter: blur(3px); }
.lbframe {
  position: relative; max-width: min(100%, 78rem); max-height: 100%; display: flex;
  padding: clamp(8px, 1.4vw, 14px); border-radius: calc(var(--radius-card) + 6px);
  background: linear-gradient(145deg, var(--leather), var(--strap));
  box-shadow: 0 0 0 1px var(--thread), inset 0 0 0 1px color-mix(in srgb, var(--brass) 70%, transparent), 0 24px 60px rgba(0, 0, 0, .55);
  animation: lbin .22s ease-out;
}
.lbframe::before {
  content: ""; position: absolute; inset: 5px; border: 1px dashed color-mix(in srgb, var(--brass) 55%, transparent);
  border-radius: calc(var(--radius-card) + 3px); pointer-events: none;
}
.lbmat { position: relative; display: flex; min-height: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.lbmat img { display: block; max-width: 100%; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); width: auto; height: auto; object-fit: contain; }
.lbname {
  position: absolute; left: 26px; bottom: 26px; margin: 0; max-width: calc(100% - 52px);
  display: flex; flex-direction: column; gap: 4px; padding: 12px 26px 14px; border: 1px solid var(--brass);
  border-radius: 6px; background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 0 0 3px color-mix(in srgb, var(--surface) 94%, transparent), inset 0 0 0 4px color-mix(in srgb, var(--brass) 45%, transparent);
}
.lbname small { font: 600 calc(var(--text-80) - 1px)/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lbname strong { font: 400 clamp(2rem, 4.2vw, 3.2rem)/1.1 var(--font-serif); }
.lbclose {
  position: absolute; top: -14px; right: -14px; z-index: 3; width: 2.5rem; height: 2.5rem; padding: 0; display: grid; place-items: center;
  border: 2px solid var(--brass); border-radius: 50%; background: var(--strap); color: var(--surface); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); transition: transform .15s ease, background .15s ease;
}
.lbclose:hover { background: var(--leather); transform: scale(1.08); }
.lbclose:focus-visible { outline: 3px solid var(--surface); outline-offset: 2px; }
.lbclose svg { width: 1.1rem; height: 1.1rem; }
@keyframes lbin { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lbframe { animation: none; } .zoombtn::after, .lbclose { transition: none; } }
@media (width < 36rem) { .lbclose { top: -10px; right: -6px; } .lbname { padding: 9px 18px 11px; } }

/* The launch splash, played inline in the hero: not an overlay, no scroll lock, the same shadow as the cards. */
.heroquote { margin: 0; }
.splash.inline { position: relative; inset: auto; z-index: auto; touch-action: auto; overscroll-behavior: auto; }
html:has(.splash.inline:not([hidden])) { overflow: visible; }
.splash.inline .splashpanel { width: min(100%, 26rem); margin-inline: auto; }
html:not(.js) .splash.inline .splashtitle, html:not(.js) .splash.inline .splashaffirm { --wipe: 1; }

/* Pinned cards sit a little off true (offsets are set by satchel.js). */
.grid[data-rows="side"] > .posting, .grid[data-rows="side"] > .pinned { transform: translateY(calc(var(--ry, 0) * 10px)); }
.grid[data-rows="stacked"] > .posting, .grid[data-rows="stacked"] > .pinned { transform: translate(calc(var(--rx, 0) * 5px), calc(var(--ry, 0) * 10px)); }
/* With JavaScript each card sits in a wrapper, and a canvas reaching 40px past it carries the edge and shadows (satchel.js).
   Without JavaScript the filter in leather.css draws them. */
.grid.baked { align-items: start; }
/* The canvas may reach past the window's edge on a phone; clipping it there keeps the page from scrolling sideways. */
main { overflow-x: clip; }
.pinned { position: relative; isolation: isolate; }
.pinback { position: absolute; left: -40px; top: -40px; z-index: -1; pointer-events: none; }

/* Hero splash: a blurred rounded box behind the SVG stands in for its drop-shadow, which Safari clips, and still shows through the torn notches. */
.splash.inline .splashsvg { filter: none; }
.splash.inline .splashshadow::before { content: ""; position: absolute; inset: 0; border-radius: 21.7%; background: rgba(0, 0, 0, .3); transform: translateY(8px); filter: blur(14px); }
.splash.inline .splashshadow { position: absolute; inset: 0; }
