/* warren.css -- one stylesheet for every burrow. Carried from the first demo of 2026-10-09 and to be
   pared as the slices land. A burrow changes its colors and type through the custom properties its own file
   sets (--band, --accent, --go, --panel, --pin, --serif, --sans); nothing else here is a burrow's to change. Techniques: good-css.com. */

@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/static/fonts/cormorant-garamond-500-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500 600;font-display:swap;src:url(/static/fonts/cormorant-garamond-500-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url(/static/fonts/poppins-300-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/poppins-400-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/poppins-500-normal.woff2) format('woff2')}
@font-face{font-family:'Literata';font-style:normal;font-weight:200 900;font-display:swap;src:url(/static/fonts/literata-var.ttf) format('truetype')}
@font-face{font-family:'Literata';font-style:italic;font-weight:200 900;font-display:swap;src:url(/static/fonts/literata-italic-var.ttf) format('truetype')}

@layer reset, tokens, base, layout, parts, rooms, desk;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; min-width: 0; }
  :root {
    interpolate-size: allow-keywords;
    scrollbar-gutter: stable;      /* kept: a headless shot with hidden scrollbars shows the gutter as a strip; a real browser fills it with its scrollbar or reserves none for an overlay one, and without it pages shift between short and long */
    text-wrap: pretty;
    overflow-wrap: break-word;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  body { margin: 0; min-height: 100svh; }
  h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
  p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
  ul, ol { padding-inline-start: 1.2em; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  input, textarea, select, button { font: inherit; color: inherit; }
  input, textarea, select { font-size: max(16px, 1rem); }
  button, a, [role="button"] { touch-action: manipulation; }
  button { user-select: none; -webkit-user-select: none; }
  fieldset { border: 0; padding: 0; }
}

/* ------------------------------------------------------------------ tokens */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* the default palette, in oklch */
    --indigo: oklch(37% 0.10 275);
    --orchid: oklch(60% 0.16 325);
    --teal:   oklch(50% 0.08 175);
    --cream:  oklch(95% 0.045 105);
    --plum:   oklch(48% 0.15 335);
    --ember:  oklch(58% 0.14 45);
    --moss:   oklch(52% 0.10 140);

    --field:   light-dark(oklch(97.5% 0.012 100), oklch(19% 0.03 275));
    --card:    light-dark(oklch(100% 0 none), oklch(24% 0.035 275));
    --ink:     light-dark(oklch(25% 0.05 275), oklch(93% 0.015 100));
    --soft:    light-dark(oklch(45% 0.04 275), oklch(76% 0.03 275));
    --rule:    light-dark(oklch(86% 0.02 275), oklch(36% 0.04 275));
    --band:    light-dark(var(--indigo), oklch(15% 0.035 275));
    --on-band: oklch(96% 0.02 100);
    --accent:  light-dark(var(--plum), oklch(78% 0.11 325));
    --go:      light-dark(var(--teal), oklch(72% 0.09 175));
    --go-ink:  light-dark(oklch(99% 0 none), oklch(17% 0.03 175));
    --warn:    light-dark(oklch(52% 0.15 45), oklch(78% 0.12 60));
    --stop:    light-dark(oklch(50% 0.18 25), oklch(72% 0.15 25));
    --tint:    color-mix(in oklch, var(--room, var(--accent)) 9%, var(--field));
    --panel:   color-mix(in oklch, var(--accent) 8%, var(--card));
    --pin:     var(--accent);

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'Courier New', Courier, monospace;

    /* the fluid scale: 18px at 20rem to 20px at 77.5rem; headings step by 1.2 narrow, 1.25 wide */
    --narrow: 20; --wide: 77.5;
    --size-narrow: 1.0625; --size-wide: 1.1875;
    --ratio-narrow: 1.2; --ratio-wide: 1.28;
    --fluid: clamp(0rem, (100vw - var(--narrow) * 1rem) / (var(--wide) - var(--narrow)), 1rem);
    --at-narrow: calc(var(--size-narrow) * (1rem - var(--fluid)));
    --at-wide: calc(var(--size-wide) * var(--fluid));
    --step--1: calc(var(--step-0) / var(--ratio-narrow));
    --step-0: calc(var(--at-narrow) + var(--at-wide));
    --step-1: calc(var(--at-narrow) * var(--ratio-narrow) + var(--at-wide) * var(--ratio-wide));
    --step-2: calc(var(--at-narrow) * pow(var(--ratio-narrow), 2) + var(--at-wide) * pow(var(--ratio-wide), 2));
    --step-3: calc(var(--at-narrow) * pow(var(--ratio-narrow), 3) + var(--at-wide) * pow(var(--ratio-wide), 3));
    --step-4: calc(var(--at-narrow) * pow(var(--ratio-narrow), 4) + var(--at-wide) * pow(var(--ratio-wide), 4));
    --step-5: calc(var(--at-narrow) * pow(var(--ratio-narrow), 5) + var(--at-wide) * pow(var(--ratio-wide), 5));
    --space-xs: calc(0.5 * var(--step-0));
    --space-s: var(--step-0);
    --space-m: calc(1.5 * var(--step-0));
    --space-l: calc(2.25 * var(--step-0));
    --space-s-l: calc(var(--at-narrow) + 2.25 * var(--at-wide));
    --space-section: clamp(2.75rem, 1rem + 6vw, 6.5rem);

    --radius: 0.4rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }
  [data-theme="light"] { color-scheme: light; }
  [data-theme="dark"] { color-scheme: dark; }
  /* where the browser can reckon it, the ink of a button is chosen for its own --go: white or black, by the luminance of --go clipped to sRGB, so a
     house that writes one --go for day and night still reads at 4.5:1 or more in both (measured over 3200 colors, 2026-10-29). A house that writes
     its own --go-ink keeps it; a browser that cannot reckon it keeps the pair above. */
  @supports (color: color(from red xyz-d65 x y z)) {
    :root { --go-ink: color(from color(from var(--go) srgb clamp(0, r, 1) clamp(0, g, 1) clamp(0, b, 1)) xyz-d65
                       calc(clamp(0, (0.179 - y) * 1000000, 1) * 0.9505) clamp(0, (0.179 - y) * 1000000, 1) calc(clamp(0, (0.179 - y) * 1000000, 1) * 1.089)); }
  }
}

/* ------------------------------------------------------------------ base */
@layer base {
  body { font-family: var(--sans); font-weight: 300; font-size: var(--step-0); line-height: 1.7;
         background: var(--field); color: var(--ink); display: flex; flex-direction: column; }
  main { flex: 1; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; }
  h1 { font-size: var(--step-5); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); }
  h4 { font-family: var(--sans); font-weight: 500; font-size: var(--step-0); }
  h1 em, h2 em { font-style: italic; color: var(--accent); }
  strong { font-weight: 500; }
  small, .small { font-size: var(--step--1); }
  a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  :focus-visible { outline: max(2px, 0.08em) solid currentColor; outline-offset: 0.25em; border-radius: 2px; }
  hr { border: 0; border-block-start: 1px solid var(--rule); margin-block: var(--space-m); }
  blockquote { border-inline-start: 3px solid var(--room, var(--accent)); padding-inline-start: var(--space-s);
               font-family: var(--serif); font-size: var(--step-1); font-style: italic; }
  code { font-family: var(--mono); font-size: 0.9em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 3px; }
  /* a line to copy whole is one box: it moves to the next line as one and never parts between ! and [ (PATROCLUS 2026-11-07, finding 10) */
  code.token { display: inline-block; max-inline-size: 100%; overflow-wrap: anywhere; }
  code.token .nb { white-space: nowrap; }   /* the token never parts between "]" and "(" (PATROCLUS 2026-11-09); a copy of it holds no extra character */
  @media (hover: hover) and (pointer: fine) { a:hover { color: var(--ink); } }
}

/* ------------------------------------------------------------------ layout */
@layer layout {
  /* the content grid with breakouts: every child of .page sits in the reading column unless it asks */
  .page {
    --gutter: clamp(1rem, 4vw, 2rem); --content: 46rem; --breakout: 68rem;
    display: grid;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [breakout-start] minmax(0, calc((var(--breakout) - var(--content)) / 2))
      [content-start] min(100% - var(--gutter) * 2, var(--content)) [content-end]
      minmax(0, calc((var(--breakout) - var(--content)) / 2)) [breakout-end]
      minmax(var(--gutter), 1fr) [full-end];
  }
  :is(.page, .full) > * { grid-column: content; }
  :is(.page, .full) > .wide { grid-column: breakout; }
  :is(.page, .full) > .full { grid-column: full; display: grid; grid-template-columns: inherit; }

  .flow > * { margin-block: 0; }
  .flow > * + * { margin-block-start: var(--flow, 1em); }
  .flow > :is(h2, h3) { --flow: 2em; }
  .flow > :is(h2, h3) + * { --flow: 0.5em; }
  .flow > :is(h2, h3):first-child { --flow: 0; }
  .flow > .kicker + * { --flow: 0.6em; }

  .grid { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 16rem)), 1fr)); }
  .row { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-s); align-items: center; }
  .row > .end { margin-inline-start: auto; }
  .stack { display: flex; flex-direction: column; gap: var(--space-s); }
  .with-side { display: flex; flex-wrap: wrap; gap: var(--space-l); align-items: flex-start; }
  .with-side > .side { flex-basis: 17rem; flex-grow: 1; }
  .with-side > .main { flex-basis: 0; flex-grow: 999; min-inline-size: 55%; }

  section.part { padding-block: var(--space-section); }
  section.part + section.part { padding-block-start: 0; }
  section.part:has(+ .band), .band + section.part { padding-block-start: var(--space-section); }
  /* straight under a band the page's own wrapper already leaves a space; the first part adds none of its own */
  .band + .page > section.part:first-child { padding-block-start: 0; }
}

/* ------------------------------------------------------------------ parts */
@layer parts {
  /* the head of every page */
  .site-head { background: var(--band); color: var(--on-band); position: sticky; inset-block-start: 0; z-index: 20; }
  .site-head .inner { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; align-items: baseline;
                      padding: 0.7rem clamp(1rem, 4vw, 2rem); max-inline-size: 76rem; margin-inline: auto; }
  .brand { font-family: var(--serif); font-size: var(--step-2); color: var(--on-band); text-decoration: none; line-height: 1; margin-inline-end: auto; overflow-wrap: normal; }
  .brand span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-inline-start: 0.6em; }
  .site-head nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; overflow-x: auto; justify-content: safe flex-end; }
  .site-head nav a { color: color-mix(in oklch, var(--on-band) 78%, transparent); font-family: var(--mono); font-size: 0.68rem;
                     letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding-block: 0.3rem; white-space: nowrap; }
  .site-head nav a[aria-current] { color: var(--on-band); box-shadow: 0 1px 0 var(--orchid); }
  .site-head nav a.door { color: var(--band); background: var(--cream); padding-inline: 0.7rem; border-radius: 2rem; }
  @media (hover: hover) and (pointer: fine) { .site-head nav a:hover { color: var(--on-band); } .site-head nav a.door:hover { color: var(--band); background: oklch(100% 0 none); } }
  html { scroll-padding-block-start: 5rem; }

  .proto { background: var(--ember); color: oklch(99% 0 none); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
           text-transform: uppercase; text-align: center; padding: 0.3rem 1rem; }
  .proto a { color: inherit; }

  .kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--room, var(--accent)); display: block; }
  .kicker::after { content: ""; display: block; inline-size: 2.6rem; border-block-end: 1px solid currentColor; margin-block-start: 0.5rem; }
  .lede { font-size: var(--step-1); line-height: 1.6; font-weight: 300; }
  .lede p + p { margin-block-start: 0.8em; }
  .quiet { color: var(--soft); }

  .page-head { padding-block: var(--space-l) var(--space-m); border-block-end: 1.5px solid var(--ink); margin-block-end: var(--space-l); }
  .page-head h1 { margin-block: 0.5rem 0.2rem; }
  .page-head .lede { margin-block-start: 0.8rem; max-inline-size: 40rem; }

  /* dark bands */
  .band { background: var(--band); color: var(--on-band); padding-block: var(--space-section); overflow-x: clip; }
  .band .kicker { color: var(--cream); }
  .band a { color: var(--cream); }
  .band h1 em, .band h2 em { color: oklch(82% 0.1 325); }
  .band .quiet { color: color-mix(in oklch, var(--on-band) 72%, transparent); }
  .hero { background: linear-gradient(150deg, var(--band) 0%, color-mix(in oklch, var(--band), var(--plum) 45%) 70%, color-mix(in oklch, var(--band), var(--teal) 60%) 130%); }
  .hero h1 { max-inline-size: 16ch; margin-block: 0.7rem 1rem; }
  .hero .lede { max-inline-size: 36rem; }
  .hero-grid { display: flex; flex-wrap: wrap; gap: var(--space-l); align-items: center; }
  .hero-grid > :first-child { flex: 999 1 22rem; }
  .hero-grid > .spiral { flex: 1 1 18rem; max-inline-size: 26rem; margin-inline: auto; color: var(--cream); }
  svg.spiral { inline-size: 100%; }

  /* buttons */
  .button { display: inline-flex; align-items: center; gap: 0.5em; border: 1px solid var(--go); background: var(--go); color: var(--go-ink);
            font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
            padding: 0.75rem 1.2rem; border-radius: var(--radius); cursor: pointer; line-height: 1.2; }
  .button.quiet { background: transparent; color: var(--go); }
  .button.small { padding: 0.45rem 0.8rem; font-size: 0.66rem; }
  .button.stop { background: transparent; border-color: var(--stop); color: var(--stop); }
  .band .button { background: var(--cream); border-color: var(--cream); color: var(--indigo); }
  .band .button.quiet { background: transparent; color: var(--cream); }
  .button:active { transform: scale(0.97); }
  @media (prefers-reduced-motion: no-preference) { .button { transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); } }
  @media (hover: hover) and (pointer: fine) {
    .button:hover { background: color-mix(in oklch, var(--go), black 14%); color: var(--go-ink); }
    /* hover moves the ground away from its ink, toward the ink's opposite, so the contrast only grows; darkening alone took a black ink below 4.5:1 */
    @supports (color: color(from red srgb r g b)) { .button:hover { background: color-mix(in oklch, var(--go), color(from var(--go-ink) srgb calc(1 - r) calc(1 - g) calc(1 - b)) 14%); } }
    .button.quiet:hover, .button.stop:hover { background: color-mix(in oklch, currentColor 10%, transparent); color: inherit; }
    .band .button:hover { background: oklch(100% 0 none); color: var(--indigo); }
  }

  /* cards: a color strip, the room's color; rows line up across a row of cards by subgrid */
  .cards { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 17rem)), 1fr)); }
  .card { position: relative; background: var(--card); border: 1px solid var(--rule); border-block-start: 4px solid var(--room, var(--accent));
          border-radius: var(--radius); padding: var(--space-s) var(--space-s) var(--space-m);
          display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.5rem; color: var(--ink); }
  .card h3 { font-size: var(--step-2); }
  .card h3 a { color: inherit; text-decoration: none; }
  .card h3 a::after { content: ""; position: absolute; inset: 0; }
  .card h3 a:focus-visible { outline: 2px solid transparent; }
  .card:has(h3 a:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
  .card :is(button, a:not(h3 a)) { position: relative; z-index: 1; }
  .card .when { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--soft); align-self: end; }
  .card p { font-size: var(--step--1); line-height: 1.6; }
  @media (prefers-reduced-motion: no-preference) { .card { transition: box-shadow 200ms var(--ease-out), translate 200ms var(--ease-out); } }
  @media (hover: hover) and (pointer: fine) { .card:has(h3 a):hover { box-shadow: 0 6px 24px color-mix(in oklch, var(--indigo) 16%, transparent); translate: 0 -2px; } }
  .panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-s-l); }
  .panel.tint { background: var(--tint); border-color: color-mix(in oklch, var(--room, var(--accent)) 30%, var(--rule)); }

  /* facts: who, when, where, what it costs, said once */
  .facts { display: grid; grid-template-columns: fit-content(16rem) 1fr; gap: 0.55rem 1.1rem; font-size: var(--step--1); }
  .facts dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); padding-block-start: 0.32em; }
  .facts dd { font-weight: 400; }
  .price { font-family: var(--serif); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
  .pill { display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
          border: 1px solid currentColor; border-radius: 2rem; padding: 0.12rem 0.6rem; color: var(--room, var(--soft)); white-space: nowrap; }
  .pill.go { color: var(--go); } .pill.warn { color: var(--warn); } .pill.stop { color: var(--stop); }
  .pill.solid { background: var(--room, var(--accent)); border-color: transparent; color: oklch(99% 0 none); }

  /* notices */
  .notice { border-inline-start: 3px solid var(--room, var(--accent)); background: var(--tint); padding: var(--space-xs) var(--space-s); font-size: var(--step--1); border-radius: 0 var(--radius) var(--radius) 0; }
  .notice.warn { --room: var(--warn); } .notice.stop { --room: var(--stop); } .notice.go { --room: var(--go); }
  .sim { border: 1px dashed var(--warn); border-radius: var(--radius); padding: var(--space-xs) var(--space-s); font-size: var(--step--1); background: color-mix(in oklch, var(--warn) 7%, var(--field)); }
  .sim > summary, .sim > strong:first-child { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); }

  /* lists of dated things */
  .dates { list-style: none; padding: 0; display: grid; gap: 0; }
  .dates > li { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: baseline; padding-block: 0.85rem; border-block-end: 1px solid var(--rule); }
  .dates .day { flex: 0 0 11.5rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; color: var(--soft); }
  .dates .what { flex: 999 1 14rem; }
  .dates .what a { font-family: var(--serif); font-size: var(--step-1); font-weight: 500; text-decoration: none; color: var(--ink); }
  .dates .what small { display: block; color: var(--soft); }
  .month { font-family: var(--serif); font-size: var(--step-2); margin-block: var(--space-m) 0; padding-block-end: 0.3rem; border-block-end: 1.5px solid var(--ink); }

  /* the spiral */
  .rings { list-style: none; padding: 0; counter-reset: ring; display: grid; gap: 0; }
  .rings > li { counter-increment: ring; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1rem; padding-block: 1.1rem; border-block-end: 1px solid var(--rule); position: relative; }
  .rings > li::before { content: counter(ring); font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--room, var(--accent)); text-align: center;
                        inline-size: 3.2rem; block-size: 3.2rem; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; grid-row: span 3; }
  .rings > li.walked::before { background: var(--room, var(--accent)); color: oklch(99% 0 none); }
  /* where the browser can reckon it, the ink on a solid pill and a walked ring is chosen for its own ground, as a button's is for --go, since a ground of
     --accent or a room's color may be light at night */
  @supports (color: color(from red xyz-d65 x y z)) {
    .pill.solid, .rings > li.walked::before {
      color: color(from color(from var(--room, var(--accent)) srgb clamp(0, r, 1) clamp(0, g, 1) clamp(0, b, 1)) xyz-d65
                   calc(clamp(0, (0.179 - y) * 1000000, 1) * 0.9505) clamp(0, (0.179 - y) * 1000000, 1) calc(clamp(0, (0.179 - y) * 1000000, 1) * 1.089));
    }
  }
  .rings > li.here { background: var(--tint); margin-inline: calc(-1 * var(--space-xs)); padding-inline: var(--space-xs); border-radius: var(--radius); }
  .rings h3 { font-size: var(--step-2); }
  .rings .inner-mark { --room: var(--indigo); }
  .spiral path.arm { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.55; }
  .spiral circle { fill: var(--cream); }
  .spiral circle.inner { fill: var(--orchid); }
  .spiral text { font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; fill: currentColor; text-transform: uppercase; }

  /* forms */
  form.fields, .fields { display: flex; flex-direction: column; gap: var(--space-s); }
  label, legend { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--soft); display: block; margin-block-end: 0.3rem; }
  label small, legend small, .help { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 0.78rem; color: var(--soft); display: block; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
    inline-size: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem 0.75rem; line-height: 1.5;
    /* a field's edge drawn from the ink, so it stands at 3 to 1 or more on its card in day and night (PATROCLUS, 2026-11-07: --rule gave 1.5 to 1) */
    border-color: color-mix(in oklch, var(--ink) 55%, var(--card)); }
  textarea { field-sizing: content; min-height: 4lh; max-height: 28lh; resize: vertical; font-family: var(--sans); font-weight: 300; }
  textarea.letter { font-family: var(--serif); font-size: 1.1em; }
  input:user-invalid, textarea:user-invalid { border-color: var(--stop); }
  .checks { display: grid; gap: 0.35rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .checks label { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0; text-transform: none; color: var(--ink); display: flex; gap: 0.55rem; align-items: baseline; margin: 0; }
  .checks input { accent-color: var(--go); inline-size: 1.05em; block-size: 1.05em; flex: none; }
  form:has(:focus-visible) > .panel, form.panel:has(:focus-visible) { border-color: color-mix(in oklch, var(--go) 50%, var(--rule)); }

  /* tables */
  /* a table wider than the page scrolls sideways; a shade at the cut edge says there is more (PATROCLUS, 2026-11-07: nothing showed it), and goes when the edge is reached */
  .table-wrap { overflow-x: auto;
                background: linear-gradient(to right, var(--wrap-ground, var(--field)) 30%, transparent) left / 2rem 100% no-repeat local,
                            linear-gradient(to left, var(--wrap-ground, var(--field)) 30%, transparent) right / 2rem 100% no-repeat local,
                            radial-gradient(farthest-side at 0 50%, color-mix(in oklch, var(--ink) 40%, transparent), transparent) left / 0.9rem 100% no-repeat scroll,
                            radial-gradient(farthest-side at 100% 50%, color-mix(in oklch, var(--ink) 40%, transparent), transparent) right / 0.9rem 100% no-repeat scroll; }
  .card .table-wrap, .panel .table-wrap { --wrap-ground: var(--card); }
  /* a table with headings on an inside page, or one whose rows hold a form, stacks each row at a phone's width, so nothing in it lies beyond the edge */
  @media (max-width: 40rem) {
    table.stacks thead { display: none; }
    table.stacks tr { display: block; padding-block: 0.6rem; border-block-end: 1px solid var(--rule); }
    table.stacks td { display: block; border: 0; padding: 0.1rem 0; text-align: start; }
    table.stacks td:empty { display: none; }
    table.stacks td[data-label]:empty { display: block; }   /* a named cell with nothing in it still says its name, and None (PATROCLUS 2026-11-09) */
    table.stacks td[data-label]:empty::after { content: "None"; color: var(--soft); }
    /* each cell under its column's name, set by the frame from the table's headings (PATROCLUS 2026-11-07, finding 3) */
    table.stacks td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
    table.stacks td.num { text-align: start; }
  }
  table { border-collapse: collapse; inline-size: 100%; font-size: var(--step--1); }
  th { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); text-align: start; font-weight: 400;
       border-block-end: 1.5px solid var(--ink); padding: 0.45rem 0.7rem 0.45rem 0; white-space: nowrap; }
  td { border-block-end: 1px solid var(--rule); padding: 0.55rem 0.7rem 0.55rem 0; vertical-align: top; }
  /* a table of many narrow numbers lets its headings wrap in their cells, so each column's name stands apart (PATROCLUS 2026-11-07, finding 6: the work book's ten ran together) */
  table.heads-wrap th { white-space: normal; vertical-align: bottom; }
  td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }
  .yes { color: var(--go); } .no { color: var(--rule); }

  /* details that open smoothly */
  details { border-block-end: 1px solid var(--rule); }
  details > summary { cursor: pointer; padding-block: 0.8rem; font-family: var(--serif); font-size: var(--step-1); font-weight: 500; list-style-position: outside; }
  details::details-content { height: 0; overflow: clip; }
  details[open]::details-content { height: auto; padding-block-end: 1rem; }
  @media (prefers-reduced-motion: no-preference) {
    details::details-content { transition: height 0.3s var(--ease-out), content-visibility 0.3s allow-discrete; }
  }
  details.sim { border: 1px dashed var(--warn); }
  details.sim > summary { padding-block: 0.2rem; }

  .letter-text { font-family: var(--serif); font-size: var(--step-1); line-height: 1.65; }
  .letter-text :is(h2, h3) { font-size: var(--step-2); }
  .mail { font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-s); }

  .site-foot { background: var(--band); color: color-mix(in oklch, var(--on-band) 80%, transparent); margin-block-start: var(--space-section); padding-block: var(--space-l); font-size: var(--step--1); }
  .site-foot .inner { max-inline-size: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); display: grid; gap: var(--space-m) var(--space-l);
                      grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  .site-foot a { color: var(--on-band); text-decoration: none; display: block; padding-block: 0.12rem; }
  .site-foot h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); margin-block-end: 0.5rem; font-weight: 400; }
  .site-foot .fine { grid-column: 1 / -1; border-block-start: 1px solid color-mix(in oklch, var(--on-band) 25%, transparent); padding-block-start: var(--space-s); font-size: 0.78rem; }
}

/* ------------------------------------------------------------------ rooms */
@layer rooms {
  [data-room="learning"]  { --room: light-dark(var(--teal), oklch(74% 0.09 175)); }
  [data-room="ceremony"]  { --room: light-dark(var(--ember), oklch(76% 0.11 50)); }
  [data-room="private"]   { --room: light-dark(var(--indigo), oklch(76% 0.08 275)); }
  [data-room="community"] { --room: light-dark(var(--moss), oklch(76% 0.1 140)); }
}

/* ------------------------------------------------------------------ the hub and the desk */
@layer desk {
  body.desk { --content: 60rem; }
  body.desk .page, body.hub .page { --content: 62rem; --breakout: 74rem; }
  .side-nav { display: flex; flex-direction: column; gap: 0.1rem; position: sticky; inset-block-start: 5rem; }
  .side-nav a { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--soft);
                padding: 0.45rem 0.7rem; border-inline-start: 2px solid var(--rule); }
  .side-nav a[aria-current] { color: var(--ink); border-color: var(--accent); background: var(--tint); }
  .side-nav h4 { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); font-weight: 400; margin-block: 0.9rem 0.3rem; }
  .tiles { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
  .tile { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-s); display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--ink); }
  .tile b { font-family: var(--serif); font-weight: 500; font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums; }
  .tile span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
  .tile.warn b { color: var(--warn); } .tile.stop b { color: var(--stop); } .tile.go b { color: var(--go); }
  .bar { block-size: 0.55rem; background: var(--rule); border-radius: 1rem; overflow: clip; min-inline-size: 5rem; }
  .bar > i { display: block; block-size: 100%; background: var(--room, var(--accent)); inline-size: calc(var(--n) * 1%); }
  .timeline { list-style: none; padding: 0; border-inline-start: 1px solid var(--rule); margin-inline-start: 0.4rem; }
  .timeline li { padding: 0 0 0.9rem 1rem; position: relative; font-size: var(--step--1); }
  .timeline li::before { content: ""; position: absolute; inset-inline-start: -0.3rem; inset-block-start: 0.55em; inline-size: 0.55rem; block-size: 0.55rem; border-radius: 50%; background: var(--accent); }
  .timeline time { font-family: var(--mono); font-size: 0.68rem; color: var(--soft); display: block; }
  .finding > .pill { justify-self: start; align-self: start; }   /* the badge keeps its own size in its column (PATROCLUS, 2026-11-07: drawn stretched) */
  .finding { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.2rem 1rem; padding-block: 0.6rem; border-block-end: 1px solid var(--rule); font-size: var(--step--1); }
  .diagram text { font-family: var(--mono); font-size: 10px; fill: var(--ink); }
  .diagram .box { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
  .diagram .wall { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
  .diagram .line { stroke: var(--soft); stroke-width: 1; fill: none; }
  .diagram .head { font-family: var(--serif); font-size: 15px; }
  .post { border-block-end: 1px solid var(--rule); padding-block: var(--space-s); }
  .post .by { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--soft); }
  .reply { margin-inline-start: var(--space-s); padding-inline-start: var(--space-s); border-inline-start: 2px solid var(--rule); margin-block-start: 0.7rem; font-size: var(--step--1); }
}

/* ------------------------------------------------------------------ after looking at it */
@layer parts {
  /* the side column is a container: its facts stack when it is narrow, wherever it sits */
  .with-side > .side { flex-basis: 20rem; container-type: inline-size; }
  .side .panel { padding: var(--space-s); }
  @container (width < 26rem) {
    .facts { grid-template-columns: 1fr; gap: 0.1rem; }
    .facts dd { margin-block-end: 0.7rem; }
    .facts dd:last-child { margin-block-end: 0; }
  }
  /* and on a narrow page, wherever they sit: a sentence-long label would leave its answer a sliver */
  @media (width < 36rem) {
    .facts { grid-template-columns: 1fr; gap: 0.1rem; }
    .facts dd { margin-block-end: 0.7rem; }
    .facts dd:last-child { margin-block-end: 0; }
  }
  a.pill { text-decoration: none; }
  .panel > .kicker + h3 { margin-block-start: 0.6rem; }
}
@layer parts {
  /* a page whose body breaks out to the wide column carries its head out with it */
  .page:has(> .wide) > :is(.page-head, .notice) { grid-column: breakout; }
  .spiral circle { fill: currentColor; }
  .band .spiral circle { fill: var(--cream); }
  .spiral circle.inner, .band .spiral circle.inner { fill: var(--orchid); }
  .dates .what a { line-height: 1.2; display: inline-block; }
  td:first-child { white-space: nowrap; }
  td:first-child:last-child, .wrap-first td:first-child { white-space: normal; }
}
@layer parts {
  /* the menu is one row that scrolls sideways when it must, never a stack */
  .site-head nav { flex-wrap: nowrap; max-inline-size: 100%; scrollbar-width: none; }
  .site-head nav a { flex: none; }
}
@layer parts {
  .emblem { inline-size: 3.4rem; block-size: 3.4rem; fill: none; stroke: var(--room, var(--accent)); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .card { grid-row: span 5; }
  .card > .emblem { justify-self: start; margin-block: 0.3rem 0.1rem; }
  .card:not(:has(> .emblem)) { grid-row: span 4; }
  .room-mark { padding-block-start: var(--space-l); margin-block-end: calc(-1 * var(--space-m)); }
  .room-mark .emblem { inline-size: 5rem; block-size: 5rem; }
}
@layer parts { .nav-out { background: none; border: 0; padding: 0.3rem 0; cursor: pointer; color: color-mix(in oklch, var(--on-band) 78%, transparent); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; } }
@layer parts {
  .said { white-space: pre-wrap; overflow-wrap: anywhere; }
  .post h3 a { color: inherit; text-decoration: none; }
  .post img, .reply img { max-block-size: 34rem; inline-size: auto; }
}
/* ------------------------------------------------------------------ the public face (slice 2) */
@layer parts {
  .card p.price { font-size: var(--step-3); margin-block: 0.1rem 0.3rem; }
  .card ul { padding-inline-start: 1.1rem; font-size: var(--step--1); line-height: 1.6; }
  .card figure img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; inline-size: 100%; }
  body.public figure img { border-radius: var(--radius); }
  body.public figure.wide { margin-block-end: var(--space-m); }
  body.public .flow > figure { --flow: 1.6em; }
  .hero-grid > figure { flex: 1 1 18rem; max-inline-size: 30rem; }
  .hero figcaption.credit, .aside-band figcaption.credit { color: color-mix(in oklch, var(--on-band) 78%, transparent); }
  blockquote > p.small { font-style: normal; }
  details > summary { cursor: pointer; }
  code { font-family: var(--mono); font-size: 0.85em; background: var(--tint); padding: 0.05em 0.3em; border-radius: 3px; }
  a.tile { color: inherit; }
}
@layer parts { .page-head + section.part { padding-block-start: 0; } }

/* gatherings: the first month of a calendar sits close under what comes before it */
@layer parts {
  .part > h2.month:first-child, .main > h2.month:first-child { margin-block-start: 0; }
  .dates > li > form { margin: 0; }
}

/* ------------------------------------------------------------------ the front page's parts */
@layer parts {
  /* the header wraps rather than hides: the menu may take a second line, and Join and Sign in stay on the screen, as buttons */
  body.public .site-head nav { flex-wrap: wrap; overflow: visible; justify-content: flex-start; gap: 0.35rem 1.1rem; align-items: center; }
  body.public .site-head .brand { flex: 1 1 auto; }
  .site-head nav a.door { border: 1px solid var(--cream); padding: 0.4rem 0.9rem; line-height: 1.2; }
  .site-head nav a.door.join { color: var(--band); background: var(--cream); }
  .site-head nav a.door:not(.join) { color: var(--on-band); background: transparent; }
  @media (hover: hover) and (pointer: fine) { .site-head nav a.door:not(.join):hover { background: color-mix(in oklch, var(--cream) 18%, transparent); color: var(--on-band); } }
  /* the menu's rooms are a group; wide, they are the menu's own links as ever */
  .site-head nav > .rooms { display: contents; }
  /* on a phone the head is two lines: the brand with Join, Sign in and the day and night button beside it, then the rooms under */
  @media (max-width: 30rem) {
    .site-head .inner:has(> nav > .rooms) { column-gap: 0.7rem; align-items: center; }
    .site-head .inner:has(> nav > .rooms) > .brand { order: 1; flex: 1 1 0; min-inline-size: min-content; }
    .site-head nav:has(> .rooms) { display: contents; }
    .site-head nav:has(> .rooms) > a.door { order: 2; }
    .site-head .inner:has(> nav > .rooms) > .theme-toggle { order: 3; margin-inline-start: 0; }
    .site-head nav > .rooms { order: 4; display: flex; flex-wrap: wrap; flex: 1 0 100%; gap: 0.1rem 0.85rem; }
    body.public .site-head nav > .rooms > a { font-size: 0.9rem; padding-block: 0.15rem; }
  }

  /* a small line of place above the front page's title */
  .place { font-style: italic; color: color-mix(in oklch, currentColor 75%, transparent); font-size: var(--step--1); }

  /* a heading over a part */
  section.part > h2:first-child, .beside-main > h2:first-child, section.part > .kicker + h2, .beside-main > .kicker + h2 { margin-block-end: var(--space-m); }
  section.part > .kicker + h2, .beside-main > .kicker + h2 { margin-block-start: 0.7rem; }
  section.part > h2:has(+ .part-intro), .beside-main > h2:has(+ .part-intro) { margin-block-end: 0.6rem; }
  .part-intro { max-inline-size: 60ch; color: var(--soft); margin-block-end: var(--space-m); }
  section.part > .kicker:first-child:has(+ .part-intro) + .part-intro { margin-block-start: 0.7rem; }
  .levels-join { margin-inline-start: 0.4rem; }

  /* the board: a flyer for each gathering, tilted a little and pinned */
  .board .flyers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-m); align-items: start;
                   padding: var(--space-m); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
                   background-image: radial-gradient(color-mix(in oklch, var(--ink) 7%, transparent) 1px, transparent 1.2px); background-size: 14px 14px; }
  .flyer { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--rule); padding: var(--space-m) var(--space-s) var(--space-s);
           box-shadow: 0 10px 24px -14px color-mix(in oklch, var(--ink) 50%, transparent); transform: rotate(var(--tilt, 0deg)); }
  .flyer:nth-child(4n+1) { --tilt: -1.2deg; } .flyer:nth-child(4n+2) { --tilt: 0.8deg; } .flyer:nth-child(4n+3) { --tilt: -0.5deg; } .flyer:nth-child(4n) { --tilt: 1.1deg; }
  .flyer::before { content: ""; position: absolute; inset-block-start: -0.55rem; inset-inline-start: 50%; inline-size: 1.1rem; block-size: 1.1rem; margin-inline-start: -0.55rem;
                   border-radius: 50%; background: var(--pin); box-shadow: inset -2px -3px 4px rgb(0 0 0 / 0.25), 0 2px 3px rgb(0 0 0 / 0.3); }
  .flyer .when { font-family: var(--serif); font-size: var(--step-2); line-height: 1.05; margin-block-end: 0.5rem; }
  .flyer .when small { display: block; font-family: var(--sans); font-size: var(--step--1); color: var(--soft); margin-block-start: 0.3rem; line-height: 1.4; }
  .flyer.undated .when { color: var(--soft); }
  .flyer h3 { margin-block-end: 0.5rem; }
  .flyer figure { margin-block: var(--space-xs); }
  figcaption.credit { font-size: 0.78rem; font-style: italic; color: var(--soft); margin-block-start: 0.3rem; line-height: 1.35; }
  .flyer figure img { aspect-ratio: 4 / 3; object-fit: cover; inline-size: 100%; border-radius: var(--radius); }
  .flyer .meta { display: grid; gap: 0.2rem; font-size: var(--step--1); }
  .flyer .go { margin-block-start: var(--space-xs); }
  .board .also { margin-block-start: var(--space-s); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m); align-items: center; font-size: var(--step--1); }
  @media (prefers-reduced-motion: no-preference) {
    .flyer { transition: transform 180ms var(--ease-out); }
    .flyer:hover { transform: rotate(0deg) translateY(-2px); }
  }

  /* the doors: the rooms, each with its picture and one line */
  .doors ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-m); }
  .doors li figure { margin-block-end: var(--space-xs); }
  .doors li figure img { aspect-ratio: 3 / 2; object-fit: cover; inline-size: 100%; }
  .doors li h3 a { color: var(--ink); text-decoration: none; }
  @media (hover: hover) and (pointer: fine) { .doors li h3 a:hover { text-decoration: underline; text-decoration-color: var(--pin); } }

  /* the articles and an aside, side by side; one column on a narrow screen */
  .beside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  @media (min-width: 52rem) { .beside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
  .aside { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-s-l); align-self: start; }
  .aside > h2 { font-size: var(--step-2); }

  /* the levels: a list, not a kit of cards */
  .levels ol { list-style: none; padding: 0; border-block-start: 1px solid var(--rule); }
  .levels li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem 1.5rem; padding: var(--space-s) 0; border-block-end: 1px solid var(--rule); }
  @media (min-width: 48rem) { .levels li { grid-template-columns: 11rem 8rem minmax(0, 1fr); align-items: baseline; } }
  .levels .name { font-family: var(--serif); font-size: var(--step-2); }
  .levels .price { font-family: var(--serif); font-size: var(--step-2); color: var(--soft); }
  .levels li.first { background: var(--panel); padding-inline: var(--space-s); border-radius: var(--radius); }
  /* the free level's panel reaches out past the column by its own padding where there is room for it; on a phone the column is that narrow already, and reaching out would run the page 1px wide */
  @media (min-width: 48rem) { .levels li.first { margin-inline: calc(var(--space-s) * -1); } }

  /* the foot: its place, a way to write, the pages, the credits and a promise across the bottom */
  .site-foot .place { font-style: italic; margin-block-start: 0.4rem; }
  .site-foot .write-to { margin-block-start: 0.4rem; }
  .site-foot .credits p + p { margin-block-start: 0.3rem; }
  .site-foot .promise { font-size: var(--step--1); }
}

/* a drawn mark (a picture named mark-...) is line art on cream: at night its figure takes the page's own panel colour, and the picture, inverted (lines light, hues kept), is laid over it with lighten, so the ground is the panel itself and a line shows where it is lighter; a photograph is never touched */
@layer parts {
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.public figure.mark { background: var(--panel); isolation: isolate; border-radius: var(--radius); overflow: hidden; }
    :root:not([data-theme="light"]) body.public figure.mark img { display: block; filter: invert(1) hue-rotate(180deg) brightness(0.92); mix-blend-mode: lighten; }
  }
  :root[data-theme="dark"] body.public figure.mark { background: var(--panel); isolation: isolate; border-radius: var(--radius); overflow: hidden; }
  :root[data-theme="dark"] body.public figure.mark img { display: block; filter: invert(1) hue-rotate(180deg) brightness(0.92); mix-blend-mode: lighten; }
}

/* ------------------------------------------------------------------ the day and night button
   Rendered hidden by the page; theme.js unhides it. The [hidden] rule is stated here because a layered rule would otherwise
   beat the browser's own. Two inline drawings sit in the button: a sun, shown by day, and a crescent moon, shown when the page is
   at night (aria-pressed true). The target is 2.25rem square; the drawing is 1.5rem. */
.theme-toggle[hidden] { display: none; }
@layer parts {
  .theme-toggle { inline-size: 2.25rem; block-size: 2.25rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--on-band);
                  display: inline-grid; place-items: center; align-self: center; flex: none; border-radius: 50%; }
  .theme-toggle svg { inline-size: 1.5rem; block-size: 1.5rem; display: block; }
  .theme-toggle .moon, .theme-toggle[aria-pressed="true"] .sun { display: none; }
  .theme-toggle[aria-pressed="true"] .moon { display: block; }
  .theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
  .site-head .inner > .theme-toggle { margin-inline-start: -0.3rem; }
}

/* ------------------------------------------------------------------ a content page's top picture, the one button, a gathering that meets again */
@layer parts {
  /* a page's own top picture is an illustration, not the page: capped in height, at the picture's own shape, never the whole column */
  body.public figure.top { inline-size: fit-content; max-inline-size: 100%; margin-block-end: var(--space-m); }
  body.public figure.top img { display: block; inline-size: auto; max-inline-size: 100%; block-size: auto; max-block-size: min(22rem, 40vh); object-fit: contain; }
  /* the one button under a page's lede */
  .page-head .call { margin-block-start: var(--space-s); }
  /* a gathering that meets again: its later days under its line; the way to ask for a day that is not fixed */
  .dates .what small.later, .dates .what small.ask { margin-block-start: 0.15rem; }
  /* the header holds the menu, Join, Sign in and the day and night button on one line where the screen is wide enough for them */
  @media (min-width: 64rem) { .site-head .inner { max-inline-size: 84rem; } }
}
@layer parts { .page:has(> .wide) > figure.top { grid-column: breakout; } }
@layer parts { .dates .what small.ask a { font-family: var(--sans); font-size: inherit; font-weight: 400; text-decoration: underline; color: var(--room, var(--accent)); } }

/* ------------------------------------------------------------------ the board fills its rows; the room list reads as links; a level that adds to a lower one */
@layer parts {
  /* the board: flyers wrap in rows of the same width, and a short last row sits in the middle, so five in three columns leave no hole at the side */
  .board .flyers { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--space-m); container-type: inline-size; }
  .board .flyers > .flyer { flex: 0 0 100%; min-inline-size: 0; }
  @container (min-width: 34rem) { .board .flyers > .flyer { flex-basis: calc((100% - var(--space-m)) / 2); } }
  @container (min-width: 52rem) { .board .flyers > .flyer { flex-basis: calc((100% - 2 * var(--space-m)) / 3); } }
  /* the pages inside a room: the title is a link and reads as one */
  .dates.room .what a { color: var(--room, var(--accent)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  @media (hover: hover) and (pointer: fine) { .dates.room .what a:hover { color: var(--ink); } }
  /* the line that says a level holds all of a lower one */
  .card p.everything { color: var(--soft); margin-block-end: 0; }
  .card p.everything + ul { margin-block-start: 0.2rem; }
}

/* ------------------------------------------------------------------ :labels :plain; the small labels in the house's own text face, in sentence case, at the sizes of the working design */
@layer parts {
  body.labels-plain :is(.brand span, .site-head nav a, .nav-out, .proto, .kicker, .button, .card .when, .facts dt, .pill, .sim > summary, .sim > strong:first-child,
                        .dates .day, label, legend, th, .site-foot h4, .side-nav a, .side-nav h4, .tile span, .timeline time, .post .by) {
    font-family: var(--sans); text-transform: none; letter-spacing: 0;
  }
  body.labels-plain .site-head nav a, body.labels-plain .nav-out { font-size: var(--step-0); font-weight: 400; }
  body.labels-plain .brand span { font-size: var(--step--1); }
  body.labels-plain .proto { font-size: var(--step--1); }
  body.labels-plain .kicker { font-size: var(--step--1); font-weight: 500; }
  body.labels-plain .button { font-size: var(--step-0); font-weight: 500; }
  body.labels-plain .button.small { font-size: var(--step--1); }
  body.labels-plain .card .when, body.labels-plain .dates .day { font-size: var(--step--1); font-weight: 400; }
  body.labels-plain .facts dt { font-size: var(--step--1); font-weight: 500; padding-block-start: 0; }
  body.labels-plain .pill { font-size: 0.82rem; font-weight: 400; }
  body.labels-plain .sim > summary, body.labels-plain .sim > strong:first-child { font-size: var(--step--1); font-weight: 500; }
  body.labels-plain :is(label, legend) { font-size: var(--step--1); font-weight: 500; }
  body.labels-plain th { font-size: var(--step--1); font-weight: 500; }
  body.labels-plain .site-foot h4 { font-size: var(--step-0); font-weight: 500; }
  body.labels-plain :is(.side-nav a, .tile span, .timeline time, .post .by) { font-size: var(--step--1); }
  body.labels-plain .side-nav h4 { font-size: var(--step--1); font-weight: 500; }
  body.labels-plain .checks label { font-size: var(--step--1); font-weight: 300; }
}

/* a gathering's top picture is capped like a content page's (the markup gives it both classes) */
@layer parts { body.public figure.wide.top { margin-block-end: var(--space-m); } }

/* ------------------------------------------------------------------ a room's color, the door cards, the pill on a flyer, a brief aside on the band
   A page that sets :color gives --room (day and night) to [data-room="ID"] in the house's one style; what carries data-room follows it. */
@layer parts {
  .flyer[data-room] { border-block-start: 4px solid var(--room); }
  .flyer[data-room]::before { background: var(--room); }
  .flyer .pill { margin-block-end: 0.6rem; }

  /* a door as a card: its strip, its kicker, its emblem beside the title, its picture, its line and who it is for */
  .doors li.door-card { background: var(--card); border: 1px solid var(--rule); border-block-start: 4px solid var(--room, var(--accent)); border-radius: var(--radius);
                        padding: var(--space-s); display: grid; gap: 0.6rem; align-content: start; }
  .doors li.door-card figure { margin-block-end: 0.4rem; }
  .doors li.door-card .kicker { margin-block-end: 0; }
  .door-head { display: flex; align-items: center; gap: 0.9rem; }
  .doors img.emblem { inline-size: 3rem; block-size: 3rem; object-fit: contain; flex: none; }
  .doors li.door-card h3 { font-size: 1.9rem; }
  .doors li .for { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--soft); line-height: 1.5; }
  @media (hover: hover) and (pointer: fine) { .doors li.door-card:hover { box-shadow: 0 6px 24px -10px color-mix(in oklch, var(--band) 40%, transparent); } }

  /* a room's pages: a note takes the room's strip, and the body's headings stand under a rule */
  [data-room] .aside { border-block-start: 4px solid var(--room); }
  [data-room] .flow > h2 { padding-block-start: var(--space-s); border-block-start: 1px solid var(--rule); }
  [data-room] .flow > h2:first-child { padding-block-start: 0; border-block-start: 0; }

  /* the aside as a band-colored panel (:aside-band) */
  .aside.aside-band { background: var(--band); color: var(--on-band); border-color: transparent; }
  .aside-band h2 { color: inherit; }
  .aside-band .kicker { color: var(--cream); }
  .aside-band a { color: var(--cream); }
  .aside-band .button.quiet { background: var(--cream); border-color: var(--cream); color: var(--band); }
  @media (hover: hover) and (pointer: fine) { .aside-band .button.quiet:hover { background: oklch(100% 0 none); color: var(--band); } }

  /* the first screen's lede may carry emphasis */
  .band .lede em { font-style: italic; color: color-mix(in oklch, var(--accent) 40%, white); }

  /* the levels: the price in the label face; the free level marked with the go color */
  .levels .price { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding-block-start: 0.45rem; }
  .levels li.first { border-inline-start: 3px solid var(--go); }
  body.labels-plain :is(.levels .price, .doors li .for) { font-family: var(--sans); text-transform: none; letter-spacing: 0; }
  body.labels-plain .levels .price { font-size: var(--step-0); }
  body.labels-plain .doors li .for { font-size: var(--step--1); }
}

/* ------------------------------------------------------------------ a signed-in person's head inside */
@layer parts {
  /* the inside menu wraps rather than hides; every item and Sign out stay on the screen, as the public head does */
  .site-head nav.inside { flex-wrap: wrap; overflow: visible; justify-content: flex-start; align-items: center; gap: 0.1rem 1.1rem; }
  .site-head nav .nav-out.door { border: 1px solid var(--cream); padding: 0.4rem 0.9rem; line-height: 1.2; border-radius: 2rem; color: var(--on-band); background: transparent; }
  /* Sign out sits on the line its neighbours sit on: no strut under the button, and the links' own line height (the chair saw it low, 2026-10-28) */
  .site-head nav form { margin: 0; display: flex; }
  .site-head nav .nav-out { padding-block: 0.3rem; line-height: 1.7; }
  /* the way back to the front, at the foot of every inside page, drawn as a button so it is seen */
  /* its own inks, not the band's, so it is seen on any house's band, day or night (the chair, 2026-11-07: "too hard to see"): a dark button
     ringed in cream by day, a cream one ringed in dark by night */
  .site-foot .foot-doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-block-start: 0.8rem; }
  .site-foot a.to-public, .site-foot a.to-notes { display: inline-flex; border: 2px solid light-dark(oklch(96% 0.02 100), oklch(20% 0.03 275));
                           background: light-dark(oklch(22% 0.03 275), oklch(96% 0.02 100)); color: light-dark(oklch(99% 0 none), oklch(20% 0.03 275));
                           font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
                           padding: 0.6rem 1.1rem; border-radius: var(--radius); line-height: 1.2; }
  .site-foot a.to-public:hover, .site-foot a.to-notes:hover { text-decoration: underline; }
  @media (max-width: 30rem) {
    /* two lines: the brand with the day and night button, then the menu under, wrapping to as many lines as it needs */
    .site-head .inner:has(> nav.inside) { column-gap: 0.7rem; align-items: center; }
    .site-head .inner:has(> nav.inside) > .brand { order: 1; flex: 1 1 0; min-inline-size: min-content; }
    .site-head .inner:has(> nav.inside) > .theme-toggle { order: 2; margin-inline-start: 0; }
    .site-head nav.inside { order: 3; flex: 1 0 100%; max-inline-size: 100%; gap: 0.1rem 0.85rem; }
    .site-head nav.inside > a, .site-head nav.inside .nav-out { font-size: 0.8rem; }
  }
  .problem { color: var(--stop); font-weight: 600; margin-block: 0.25rem; }
}

/* text for a screen's sake or a form's: drawn, so a browser treats it as present (Enter uses a rendered first button), but not seen */
@layer parts {
  .visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ------------------------------------------------------------------ a burrow's own look
   Every rule here is under a class the house puts on the body only where the burrow's :look asks for it; a burrow that asks for
   nothing is drawn as before. The values come from custom properties the burrow's one style sets (--look-...); each has a fallback. */
@layer parts {
  .menu-check { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
  .menu-button { display: none; cursor: pointer; padding: 0.5rem; line-height: 0; }
  .menu-button .bars { display: block; inline-size: 1.5rem; block-size: 1.1rem;
    background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
  .menu-check:focus-visible ~ .menu-button { outline: 2px solid currentColor; outline-offset: 2px; }

  body.look .site-head .inner { align-items: center; }
  body.look .brand img { display: block; block-size: 3.2rem; inline-size: auto; max-inline-size: 100%; }
  body.look-column .page { --content: var(--look-column); --breakout: var(--look-column); }
  body.look-column :is(.site-head, .site-foot) .inner { max-inline-size: var(--look-column); }

  body.look-heads main :is(h1, h2, h3):not(:is(.band, .aside-band) *) {
    color: var(--look-head-color, inherit); font-weight: var(--look-head-weight, 500); font-style: var(--look-head-style, normal);
    font-family: var(--look-head-face, var(--serif)); text-align: var(--look-head-align, start); }

  body.look-call main .button:not(.quiet, .stop, .small) {
    background: var(--look-call-bg, var(--go)); border-color: var(--look-call-bg, var(--go)); color: var(--look-call-ink, var(--go-ink));
    border-radius: var(--look-call-radius, var(--radius)); font-family: var(--look-call-face, inherit); font-style: var(--look-call-style, normal);
    font-weight: var(--look-call-weight, inherit); }
  body.look-call main .call { justify-content: center; }

  /* a picture that stands alone in a paragraph is centered; a plain front's kicker is a small bold line under the first picture, in the heading color */
  body.look .flow > figure { text-align: center; }
  body.look .flow > figure img { display: block; margin-inline: auto; max-inline-size: 100%; }
  body.look-plain-front .look-kicker { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--look-head-color, inherit); }
  body.look-divider section.part + section.part::before {
    content: ""; display: block; block-size: 3.5rem; margin-block-end: var(--space-m);
    background: var(--look-divider) center / contain no-repeat; }
  /* a page body is a run of siblings, not sections: the divider draws before each h2 but the first, and not between two h2 in a row */
  body.look-divider .flow > h2:not(:first-of-type, h2 + h2)::before {
    content: ""; display: block; block-size: 3.5rem; margin-block-end: var(--space-m);
    background: var(--look-divider) center / contain no-repeat; }
  body.look-icons main :is(p, li) > img { inline-size: var(--look-icon); block-size: var(--look-icon); border-radius: 50%; object-fit: cover; vertical-align: middle; margin-inline-end: 0.5em; }
  /* a list whose every item begins with a picture: the round icon at the left of its line, the words beside it, no bullet; it wraps with the words */
  body.look-icons ul.icon-rows { list-style: none; padding: 0; display: grid; gap: var(--space-s); }
  body.look-icons ul.icon-rows > li { display: flex; align-items: center; gap: 0.9rem; margin: 0; padding: 0; }
  body.look-icons ul.icon-rows > li > img { flex: none; margin: 0; }
  body.look-icons ul.icon-rows > li > span { flex: 1 1 0; min-inline-size: 0; overflow-wrap: anywhere; }
  /* the front's title when no band draws it: read by a screen reader, not seen */
  body.look-plain-front h1.look-hidden { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
  body.look-foot-bar .site-foot { padding-block: 1.1rem; margin-block-start: 0; }
  body.look-foot-bar .site-foot .fine { border: 0; padding: 0; text-align: center; font-size: 0.78rem; color: var(--on-band); }

  /* on a phone the menu waits behind the three-line button, which the check box turns */
  @media (max-width: 40rem) {
    body.look-menu .site-head .inner > .menu-button { display: inline-flex; order: 3; }
    body.look-menu .site-head .inner > .brand { order: 1; flex: 1 1 0; min-inline-size: min-content; }
    body.look-menu .site-head .inner > .theme-toggle { order: 2; }
    body.look-menu .site-head .inner > nav { display: none; order: 4; flex: 1 0 100%; }
    body.look-menu .site-head .inner > .menu-check:checked ~ nav { display: flex; flex-wrap: wrap; }
  }
}

/* ------------------------------------------------------------------ an application: the drawn signature's pad and the file pickers
   The pad is made by signature.js; with no script the form has only the typed name. It fills the width it is given and keeps its shape. */
@layer parts {
  .sign-pad { display: block; inline-size: 100%; max-inline-size: 36rem; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); touch-action: none; cursor: crosshair; }
  /* the pad paints white with dark ink, and that is what is kept, as a signature on paper; at night it is shown turned, dark with light ink, as a drawn
     mark is, and what is kept is unchanged */
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sign-pad { filter: invert(1) hue-rotate(180deg) brightness(0.92); mix-blend-mode: lighten; } }
  :root[data-theme="dark"] .sign-pad { filter: invert(1) hue-rotate(180deg) brightness(0.92); mix-blend-mode: lighten; }
  .fields input[type=file] { inline-size: 100%; max-inline-size: 100%; }
  /* the file input's own button is drawn as the house's small quiet button, in both themes, and not as the system's grey one */
  .fields input[type=file]::file-selector-button { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
    padding: 0.45rem 0.8rem; margin-inline-end: 0.8rem; border: 1px solid var(--go); border-radius: var(--radius); background: transparent; color: var(--go); cursor: pointer; }
  @media (hover: hover) and (pointer: fine) { .fields input[type=file]::file-selector-button:hover { background: color-mix(in oklch, var(--go) 10%, transparent); } }
  body.labels-plain .fields input[type=file]::file-selector-button { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: var(--step--1); font-weight: 500; }
  .application-scan { display: block; max-inline-size: 100%; block-size: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
}

/* a recording played inside a lesson (W16) */
.player { aspect-ratio: 16 / 9; inline-size: 100%; }
.player iframe { inline-size: 100%; block-size: 100%; border: 0; border-radius: var(--radius); }

/* ------------------------------------------------------------------ a look's later parts: the menu at every width, the empty foot, search, a recording, and the apply form's small parts
   Each is under a class the house puts on the body only where the burrow asks for it, or on a part only the burrow's own words draw. */
@layer parts {
  /* :menu-button :always: the button shows at every width, the menu stays beside it when there is room, and the button opens a panel with the same links */
  .site-head .menu-panel { display: none; }
  .menu-close { display: none; }
  body.look-menu-always .site-head .inner { position: relative; }
  body.look-menu-always .site-head .inner > .menu-button { display: inline-flex; order: 5; color: var(--on-band); }
  body.look-menu-always .site-head .inner > .menu-check:checked ~ .menu-panel {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; position: absolute; inset-block-start: 100%; inset-inline-end: clamp(1rem, 4vw, 2rem); z-index: 30;
    min-inline-size: 14rem; padding: 0.9rem 1.1rem; background: var(--band); color: var(--on-band); box-shadow: 0 0.6rem 1.4rem oklch(20% 0 none / 0.25); }
  body.look-menu-always .site-head .inner > .menu-check:checked ~ .menu-panel { border: 0.07rem solid color-mix(in oklch, var(--on-band) 25%, transparent); }
  body.look-menu-always .menu-panel a { color: var(--on-band); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding-block: 0.2rem; }
  body.look-menu-always .menu-panel a[aria-current] { box-shadow: 0 1px 0 var(--orchid); }
  body.look-menu-always .menu-panel a.door { border: 1px solid var(--cream); padding: 0.35rem 0.8rem; border-radius: 2rem; }
  body.look-menu-always .menu-panel .rooms { display: contents; }
  body.look-menu-always .menu-panel form { margin: 0; }
  @media (max-width: 40rem) {
    /* a phone: only the button shows; the panel takes the place of the menu, under the brand */
    body.look-menu-always .site-head .inner > nav, body.look-menu-always .site-head .inner > .menu-check:checked ~ nav { display: none; }
    body.look-menu-always .site-head .inner > .menu-check:checked ~ .menu-panel { position: static; order: 6; flex: 1 0 100%; box-shadow: none; border: 0; padding: 0.4rem 0 0.2rem; background: transparent; }
  }

  /* :footer :empty (and the chrome none): a bar with no words */
  body.look-foot-empty .site-foot .inner { min-block-size: 1.4rem; }

  /* a search box in the public header */
  .site-search { margin: 0; display: flex; align-items: center; }
  .site-search input[type=search] { inline-size: 11rem; max-inline-size: 100%; font: inherit; font-size: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 2rem; border: 1px solid color-mix(in oklch, var(--on-band) 45%, transparent);
    background: color-mix(in oklch, var(--on-band) 10%, transparent); color: var(--on-band); }
  .site-search input[type=search]::placeholder { color: color-mix(in oklch, var(--on-band) 70%, transparent); }
  @media (max-width: 40rem) { .site-search { order: 8; flex: 1 0 100%; } .site-search input[type=search] { inline-size: 100%; } }
  .search-page-form { display: flex; gap: 0.6rem; align-items: center; margin-block-end: var(--space-m); }
  .search-page-form input[type=search] { flex: 1 1 auto; max-inline-size: 28rem; }
  .search-results { list-style: none; padding: 0; display: grid; gap: var(--space-m); }
  .search-results li > a { font-weight: 600; }
  .search-results li > p { margin-block-start: 0.2rem; color: var(--soft); }

  /* a recording kept on the shelf, drawn in a public page's words */
  .flow video, figure video { display: block; max-inline-size: 100%; margin-inline: auto; border-radius: var(--radius); }

  /* the apply form, drawn as an older one: a red star after a required label, a title, the button's own words for the upload, a pen's swatches */
  .req { color: light-dark(oklch(50% 0.2 27), oklch(72% 0.17 27)); font-weight: 700; }
  .apply-form-title { margin-block-end: var(--space-s); }
  .field-tip { display: none; }
  input:focus ~ .field-tip, textarea:focus ~ .field-tip { display: block; }
  .copy-tick { margin-block: var(--space-s); }
  .fields div:has(> .upload-input) { position: relative; }
  .fields input.upload-input { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; max-inline-size: 1px; block-size: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
  .upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
  .upload-pick { cursor: pointer; }
  .fields div:has(> .upload-input:focus-visible) .upload-pick { outline: 2px solid currentColor; outline-offset: 2px; }
  .pad-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block-start: 0.5rem; }
  .pad-swatch { inline-size: 1.7rem; block-size: 1.7rem; padding: 0; border-radius: 50%; cursor: pointer; }
  .pad-swatch { border: 0.12rem solid var(--rule); }
  .pad-swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
}

/* ------------------------------------------------------------------ version notes, open over the first page after a sign-in (version-notes.lisp) */
@layer parts {
  /* a dialog drawn open by the house, closed by its own form (method dialog), so no script is needed */
  /* its head (title and Close) and its end stay put; only the notes between them scroll, so a Close is always in view (PATROCLUS, 2026-11-07) */
  dialog.version-notes[open] { position: fixed; inset: 0; z-index: 50; margin: auto; inline-size: min(38rem, 100% - 2rem); max-block-size: min(85dvh, 100% - 2rem); overflow: hidden;
                               display: flex; flex-direction: column; padding: 0;
                               background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
                               box-shadow: 0 0 0 100vmax oklch(10% 0.02 275 / 0.55); }
  dialog.version-notes .version-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem 0.8rem;
                                             border-block-end: 1px solid var(--rule); }
  dialog.version-notes .version-notes-head form { margin: 0; }
  dialog.version-notes .version-notes-body { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; padding: 0.4rem 1.5rem 1rem; overscroll-behavior: contain; }
  dialog.version-notes .version-notes-end { padding: 0.8rem 1.5rem 1rem; border-block-start: 1px solid var(--rule); }
  dialog.version-notes h2 { margin: 0; }
  dialog.version-notes h3, .version-notes-page h3 { margin-block-start: 1.2rem; font-size: 1.05rem; }
  dialog.version-notes h3 small, .version-notes-page h3 small { font-weight: 400; color: var(--soft); }
  dialog.version-notes ul, .version-notes-page ul { padding-inline-start: 1.2rem; }
  dialog.version-notes .version-notes-end { display: flex; justify-content: flex-end; }
}
