/* the plain pages (Archive, Shop): the gallery's night and its serif, no WebGL */
:root {
  --bg: #07070d; --fg: #f4ede1; --dim: rgba(244, 237, 225, .62); --line: rgba(244, 237, 225, .16); --card: #121022;
  --serif: "Instrument Serif", "Times New Roman", serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: max(18px, env(safe-area-inset-left));
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--serif); -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding: max(16px, env(safe-area-inset-top)) var(--pad) 0; }
.mark { text-decoration: none; }
.mark b { display: block; font: italic 400 30px/0.95 var(--serif); letter-spacing: -.01em; }
.mark span { display: block; font: italic 400 15px/1.2 var(--serif); color: var(--dim); margin-top: 4px; }
/* each link a 44 px target (Nov 24: 28 x 40 on a phone), the extra in padding so the words sit where they did */
.nav { display: flex; align-items: center; gap: 2px; font-size: 17px; margin-left: -8px; }
.nav a { color: var(--dim); text-decoration: none; min-height: 44px; min-width: 44px; padding: 0 8px; justify-content: center; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav .igi { width: 44px; padding: 0; }
.nav .igi svg { width: 17px; height: 17px; }
main { flex: 1; padding: 34px var(--pad) 48px; width: 100%; max-width: 1240px; margin: 0 auto; }
h1 { font: 400 clamp(40px, 7vw, 64px)/1 var(--serif); }
.lede { font: italic 400 18px/1.35 var(--serif); color: var(--dim); margin-top: 10px; max-width: 34em; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chips button, .tabs button { flex: none; min-height: 38px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); font-size: 16px; color: var(--dim); white-space: nowrap; }
.chips button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: transparent; }
.chips button:focus-visible, .tabs button:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.foot { border-top: 1px solid var(--line); padding: 20px var(--pad) max(22px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--dim); }
.foot .also b { font-weight: 400; color: var(--fg); margin-right: 8px; }
.foot .also a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 4px; }
.foot .soon { font-style: italic; }
@media (min-width: 761px) { .mark b { font-size: 38px; } .nav { gap: 22px; } }
/* the Archive's two views, Walk and Machine (0.27.0): a quiet two-way switch, the current one underlined */
.views { font: italic 400 15px/1.2 var(--serif); color: var(--dim); }
.views a { color: var(--dim); text-decoration: none; display: inline-block; padding: 6px 0; }
.views a:hover { color: var(--fg); }
.views a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* page to page: the header holds still while the page under it changes (cross-document view transitions; ignored where unsupported) */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
