/* V·SAG house style. The minimal edition (2026-09-27). ONE source of truth: design/vsag.css.
   design/stamp.py copies this file, vsag.js and fonts/ into every room's public/ folder. Never edit the copies.

   One font (Inter). White and near black, gray for the second voice, no accent colour, no ornaments.
   One menu, fixed on the left of a centred frame, identical on every page of every room; on phones it
   folds into a Menu button. Text sits in one left aligned column beside it.

   Order: fonts, tokens, base, frame, menu (desk rail, phone bar, phone sheet), footer, type, home,
   lists, entry, page heads, controls, sheets and windows, print. */

/* ---------- fonts: Inter only, self hosted on www and shared by every room (one download, no swap
   when moving between rooms; Caddy sends the CORS header), split by script ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("https://www.v-sag.com/fonts/inter-roman-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("https://www.v-sag.com/fonts/inter-symbols.woff2") format("woff2"); unicode-range: U+2190-2193, U+2197-2198, U+25B6, U+2715; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("https://www.v-sag.com/fonts/inter-roman-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("https://www.v-sag.com/fonts/inter-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper:   #ffffff;               /* the page */
  --paper-2: #f4f4f4;               /* quiet insets: fields, code, empty image wells */
  --paper-3: #f9f9f9;               /* a row under the pointer */
  --ink:     #111111;               /* text, about 19:1 */
  --ink-2:   #595959;               /* the second voice: dates, captions, the menu, 7:1 */
  --ink-3:   #8f8f8f;               /* hairline marks only, never text you need */
  --rule:    rgba(0, 0, 0, .09);
  --rule-2:  rgba(0, 0, 0, .18);
  --gold:    #111111;               /* the old accent names stay for the rooms; there is no accent now */
  --gold-ink:#111111;
  --glow:    transparent;
  --select:  rgba(0, 0, 0, .1);
  --error:   #b42318;               /* form errors, about 6:1 */

  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif:   var(--sans);            /* one font: every older name points at Inter */
  --display: var(--sans);
  --mono:    var(--sans);
  --code:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text:    1.0625rem;              /* 17px */
  --leading: 1.7;
  --measure: 40rem;                  /* the reading column, about 70 characters */
  --gutter:  clamp(1.25rem, 4vw, 2rem);
  --frame:   74rem;                  /* the menu and the page, centred together on wide screens */
  --side:    12rem;                  /* the menu's column */
  --edge:    0px;                    /* the empty margin left of the frame (desks) */
  --rail:    0px;                    /* where the page starts, measured from the left (desks) */
  --bar:     3.5rem;                 /* the phone bar's height (0 on desks) */
  --r:       8px;
}
@media (min-width: 56rem) {
  :root { --bar: 0px; --edge: max(0px, calc((100vw - var(--frame)) / 2)); --rail: calc(var(--edge) + var(--side)); }
}

:root[data-theme="night"] {
  color-scheme: dark;
  --paper: #0a0a0a; --paper-2: #171717; --paper-3: #121212;
  --ink: #ededed; --ink-2: #a3a3a3; --ink-3: #6b6b6b;
  --rule: rgba(255, 255, 255, .1); --rule-2: rgba(255, 255, 255, .2);
  --gold: #ededed; --gold-ink: #ededed; --select: rgba(255, 255, 255, .16); --error: #f97066;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]):not([data-theme="sepia"]) {
    color-scheme: dark;
    --paper: #0a0a0a; --paper-2: #171717; --paper-3: #121212;
    --ink: #ededed; --ink-2: #a3a3a3; --ink-3: #6b6b6b;
    --rule: rgba(255, 255, 255, .1); --rule-2: rgba(255, 255, 255, .2);
    --gold: #ededed; --gold-ink: #ededed; --select: rgba(255, 255, 255, .16); --error: #f97066;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 1rem); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--text); line-height: var(--leading);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
::selection { background: var(--select); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; z-index: 90; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--ink); padding: .5rem .8rem; border: 1px solid var(--rule-2);
  border-radius: var(--r); font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* the old ornaments render as nothing, wherever a room still has one in its markup */
.st { display: none !important; }

/* ---------- the frame: every page's content starts at the same place ---------- */
.col, .page, .wide { margin-inline: auto; padding-inline: var(--gutter); }
.col, .page { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.wide { max-width: calc(58rem + 2 * var(--gutter)); }
@media (min-width: 56rem) {
  body { padding-left: var(--rail); padding-right: var(--edge); }
  .col, .page, .wide { margin-left: 0; padding-left: clamp(2rem, 4vw, 4rem); padding-right: var(--gutter); }
  .col, .page { max-width: calc(var(--measure) + clamp(2rem, 4vw, 4rem) + var(--gutter)); }
  .wide { max-width: none; }
}

/* ---------- the menu: phones get a bar with a Menu button ---------- */
.site-head, .site-foot { font-family: var(--sans); font-size: 1rem; line-height: 1.5; }   /* identical in every room, whatever the room's own type */
.site-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--bar); padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { margin: 0; line-height: 1; }
.wordmark { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__room { display: none; }   /* no room names beside the wordmark: the menu says where you are */
.site-head__bar { display: flex; align-items: center; }
.menubtn, .pill, .themebtn { font: 400 .9375rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: .7rem 0;
  cursor: pointer; }
.menubtn { min-width: 3.25rem; text-align: right; }
.menubtn:hover, .pill:hover, .themebtn:hover { color: var(--ink); }
.site-head__bar .themebtn { display: none; }
.themebtn svg { display: none; }

/* the phone menu: a plain full screen list (an HTML popover; vsag.js toggles a class where popovers are missing) */
.rail__panel:popover-open, .rail__panel.is-open {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 80; width: 100%; height: auto; max-width: none; max-height: none; margin: 0;
  border: 0; border-top: 1px solid var(--rule); padding: 1rem var(--gutter) 2rem; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; overflow-y: auto; }
.rail__panel::backdrop { background: transparent; }
@supports not selector(:popover-open) { @media (max-width: 55.99rem) { .rail__panel:not(.is-open) { display: none; } } }
.rail__panel > * { flex-shrink: 0; }
.rail__panel:popover-open .site-nav a, .rail__panel.is-open .site-nav a { font-size: 1.375rem; padding-block: .5rem; }
.rail__panel:popover-open .rail__foot, .rail__panel.is-open .rail__foot { margin-top: 2rem; }

.site-nav ol { list-style: none; margin: 0; padding: 0; }
.site-nav__group { display: none; }
.site-nav a { display: block; padding: .28rem 0; font-size: .9375rem; font-weight: 400; line-height: 1.4; color: var(--ink-2);
  text-decoration: none; transition: color .15s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.sky, .spy { display: none !important; }
.rail__foot { display: flex; }
.rail__foot .themebtn { padding-inline: 0; }

/* desks: the menu is a column on the left of the frame, the same on every page, top aligned */
@media (min-width: 56rem) {
  .site-head { position: fixed; top: 0; bottom: 0; left: var(--edge); width: var(--side); height: auto; z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2.5rem;
    padding: 2.5rem 1rem 2rem var(--gutter); background: none; border: 0; overflow-y: auto; }
  .site-head__bar { display: none; }
  .rail__panel, .rail__panel:popover-open, .rail__panel.is-open {
    position: static; inset: auto; z-index: auto; display: flex; flex-direction: column; justify-content: space-between; flex: 1 1 auto;
    width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: none; overflow: visible; color: inherit; }
}

/* ---------- footer ---------- */
.site-foot { margin-top: 6rem; }
.site-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--rule); font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.site-foot__sign { margin: 0; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* the books reader keeps a thin reading line */
.progress { position: fixed; inset: 0 auto auto 0; height: 2px; width: 0; z-index: 60; background: var(--ink); opacity: .55; }

/* ---------- type ---------- */
h1 { margin: 0 0 1rem; font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
h1 em, h2 em { font-style: normal; }
.display { font-weight: 600; }
.eyebrow, .label, .dateline, .meta { margin: 0; font-size: .875rem; font-weight: 400; line-height: 1.5; letter-spacing: 0;
  text-transform: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eyebrow a, .dateline a, .meta a { color: inherit; text-decoration: none; }
.eyebrow a:hover, .dateline a:hover, .meta a:hover { color: var(--ink); }
.dot { color: var(--ink-3); }
.lede, .lead { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.more { display: inline-block; margin-top: 1rem; font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- home ---------- */
.intro { padding-top: clamp(3rem, 9vw, 5.5rem); }
.intro p { margin: 0; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.section { margin-top: clamp(3rem, 8vw, 4.5rem); }
.section__title { margin: 0 0 .9rem; font-size: .875rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); }
.latest h3 { margin: .15rem 0 .35rem; font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.latest h3 a { text-decoration: none; }
.latest h3 a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.latest p { margin: .5rem 0 0; color: var(--ink-2); text-wrap: pretty; }
.latest .meta { margin: 0; }

/* ---------- lists: a title and a date, nothing else ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: .45rem 0; text-decoration: none; }
.list__title { color: var(--ink); }
.list__date, .list__note { flex: none; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list a:hover .list__title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (max-width: 30rem) { .list a { flex-direction: column; gap: 0; padding: .55rem 0; } }

/* the notebook: a year, then its entries */
.yeargroup { margin-top: 2.75rem; }

/* ---------- an entry: one column, text first ---------- */
.entry { padding-top: clamp(3rem, 9vw, 5.5rem); }
.entry h1 { margin: .5rem 0 1rem; }
.entry .lead { margin-bottom: 2.25rem; }
.prose p { margin: 0 0 1.3em; text-wrap: pretty; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.prose blockquote { margin: 1.8em 0; padding-left: 1.1em; border-left: 2px solid var(--rule-2); color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose strong { font-weight: 600; }
.prose hr, .break { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }

/* photographs sit in the column, plain */
.plate { margin: 2.25em 0; }
.plate img { width: 100%; border-radius: var(--r); background: var(--paper-2); }
.plate figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--ink-2); }
.plate--inset { margin: 2rem 0; max-width: 22rem; }
.plate--inset img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 38%; }

.gallery-title { margin: 2.5rem 0 .75rem; font-size: .875rem; color: var(--ink-2); }
.entry .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.entry .gallery a { display: block; }
.entry .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--paper-2); }

/* earlier and later */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule); }
.pager a { display: block; text-decoration: none; }
.pager span { display: block; font-size: .8125rem; color: var(--ink-2); }
.pager b { display: block; margin-top: .2rem; font-weight: 500; line-height: 1.4; }
.pager a:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pager .next { text-align: right; }
@media (max-width: 30rem) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { text-align: left; } }

.aside-book { display: flex; gap: .9rem; align-items: center; margin-top: 2rem; text-decoration: none; }
.aside-book img { width: 40px; flex: none; border-radius: 3px; }
.aside-book p { margin: 0; font-size: .9375rem; line-height: 1.45; }
.aside-book b { display: block; font-weight: 500; }
.aside-book span { display: block; color: var(--ink-2); font-size: .875rem; }
.aside-book .label { font-size: .8125rem; }
.aside-book .go { color: var(--ink); font-weight: 500; }
.aside-book:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ---------- page heads (biography, portfolio, the notebook, room fronts) ---------- */
.pagehead { padding-top: clamp(3rem, 9vw, 5.5rem); }
.pagehead h1 { margin: .35rem 0 1rem; }
.pagehead .lede b { font-weight: 600; color: var(--ink); }

.block { margin-top: clamp(3rem, 8vw, 4rem); }
.block > .label, .block > .eyebrow, .block > h2 { margin: 0 0 .75rem; font-size: .875rem; font-weight: 500; color: var(--ink-2); }

/* the works: a title, a line about it, a small note */
.works { list-style: none; margin: 0; padding: 0; }
.works a, .works .row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline;
  padding: .6rem 0; text-decoration: none; }
.works .y { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.works b { display: block; font-weight: 500; line-height: 1.4; }
.works i { display: block; font-style: normal; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.works em { font-style: normal; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.works a:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.works--plain a, .works--plain .row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 34rem) {
  .works a, .works .row { grid-template-columns: 3rem minmax(0, 1fr); }
  .works em { grid-column: 2; }
  .works--plain a, .works--plain .row { grid-template-columns: minmax(0, 1fr); }
  .works--plain em { grid-column: 1; }
}

/* at a glance */
.facts { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .1rem 1rem; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: .3rem 0; }
.facts dt { font-size: .875rem; color: var(--ink-2); line-height: 1.7; }

.links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: 0; }
.links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.links + .links { margin-top: .6rem; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 500 .9375rem/1.2 var(--sans);
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r); padding: .7rem 1.1rem;
  text-decoration: none; cursor: pointer; transition: opacity .15s ease; }
.btn:hover { opacity: .85; }
.btn--quiet, .btn--ghost { color: var(--ink); background: transparent; border-color: var(--rule-2); }
.btn--quiet:hover, .btn--ghost:hover { opacity: 1; border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.field { font: 400 1rem/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2);
  border-radius: var(--r); padding: .75rem .9rem; width: 100%; }
.field:focus { border-color: var(--ink); outline: none; }
.field::placeholder { color: var(--ink-3); }
.field[aria-invalid="true"] { border-color: var(--error); }

/* filters and steps are plain words; the chosen one is ink, medium, underlined */
.words { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; }
.words button { font: inherit; color: var(--ink-2); background: none; border: 0; padding: .4rem 0; cursor: pointer; }
.words button:hover { color: var(--ink); }
.words button.is-on, .words button[aria-pressed="true"], .words button[aria-current] { color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; }

@media (pointer: coarse) { .site-nav a { padding-block: .55rem; } .words button, .site-foot a { padding-block: .7rem; } }

/* ---------- a sheet: the one overlay pattern (contents, gates, settings) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.25rem; background: rgba(0, 0, 0, .4); }
.sheet[hidden] { display: none; }
.sheet__card { position: relative; width: 100%; max-width: 30rem; max-height: 86vh; overflow: auto; background: var(--paper);
  color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; padding: 1.75rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.sheet__close { position: absolute; top: .75rem; right: .85rem; font: 400 1.25rem/1 var(--sans); color: var(--ink-2); background: none;
  border: 0; padding: .35rem .5rem; cursor: pointer; }
.sheet__close:hover { color: var(--ink); }

/* a dark window: canvases keep their own night inside a light page */
.window { --w-ink: #e9e9e9; --w-ink-2: #a3a3a3; --w-rule: rgba(255, 255, 255, .16); --w-gold: #e9e9e9;
  background: #0b0b0c; background-clip: padding-box; color: var(--w-ink); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }

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

/* ---------- print ---------- */
@media print {
  body { padding: 0 !important; background: #fff; color: #000; font-size: 11pt; }
  .site-head, .site-foot, .pager, .aside-book, .progress { display: none !important; }
  .col, .page, .wide { max-width: none; padding: 0; }
}
