/* minimassif.com shared styles: one set of tokens and components for every page (/, /inside, the sign-in gate).
   Brand palette from brand/minimassif/README.md. Accent: glacier blue (founder pick 2026-10-16); magenta lives only in the logo.
   Type: Jost only (founder pick 2026-10-16), self-hosted. Layout grid: one gutter token, one measure, no per-page spacing. */

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 650;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --paper: #F6F8F8;     /* the page */
  --ink: #14262E;       /* type */
  --quiet: #4D626B;     /* secondary type */
  --rule: #D9E1E4;      /* lines, empty media */
  --accent: #4A768A;    /* glacier: what you can touch */
  --on-accent: #F6F8F8;
  --error: #9A3B26;     /* a form's error line (the Follow box) */
  --shade: 10, 22, 28;  /* rgb of the scrim over photos */
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
  --measure: 34em;
  --radius: 4px;
  --t-hero: clamp(2.6rem, 7.2vw, 5.6rem);
  --t-head: clamp(1.8rem, 4.2vw, 3.2rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #14262E; --ink: #F6F8F8; --quiet: #B7C4C9; --rule: #2F4450; --accent: #8FB3C6; --on-accent: #14262E; --error: #F3B6A6; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #14262E; --ink: #F6F8F8; --quiet: #B7C4C9; --rule: #2F4450; --accent: #8FB3C6; --on-accent: #14262E; --error: #F3B6A6; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 var(--t-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; text-wrap: pretty; } /* never balance: a line breaks only when it runs out of room (founder 2026-10-17) */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
.mm-wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mm-quiet { color: var(--quiet); }
.mm-small { font-size: var(--t-small); }
.mm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo: light and dark lockups, swapped by theme; .mm-on-photo forces the light-on-dark version */
.mm-logo { display: inline-block; line-height: 0; text-decoration: none; }
.mm-logo img { height: 30px; width: auto; } /* SITE-MERGE (founder 2026-11-15: "way too small"): 137 px wide; 27 px on a phone (123 px), never under the brand's 120 px lockup minimum */
@media (max-width: 560px) { .mm-logo img { height: 27px; } }
.mm-logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mm-logo-light { display: none; } :root:not([data-theme="light"]) .mm-logo-dark { display: inline; } }
:root[data-theme="dark"] .mm-logo-light { display: none; } :root[data-theme="dark"] .mm-logo-dark { display: inline; }
.mm-on-photo .mm-logo-light { display: none !important; } .mm-on-photo .mm-logo-dark { display: inline !important; }

/* buttons and fields: one height, one radius, one weight everywhere */
.mm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; font: 500 0.95rem/1 var(--font); color: var(--on-accent); background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.mm-button:hover { color: var(--on-accent); filter: brightness(1.08); }
.mm-button:disabled { opacity: 0.6; cursor: default; }
.mm-field { min-height: 46px; padding: 0 14px; font: 400 1rem/1 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }
.mm-field::placeholder { color: var(--quiet); }
.mm-iconbutton { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.mm-iconbutton svg { width: 20px; height: 20px; }
/* an icon button sitting on a picture or a live scene: a paper disc so it reads on any background */
.mm-iconbutton.mm-on-media { color: var(--ink); background: color-mix(in srgb, var(--paper) 86%, transparent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.mm-iconbutton.mm-on-media:hover { background: var(--paper); color: var(--accent); }

/* sign-up: field + button, one line under it */
.mm-signup { display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
.mm-signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-signup .mm-field { flex: 1 1 14rem; }
.mm-signup p { font-size: var(--t-small); color: var(--quiet); min-height: 1.5em; }
.mm-on-photo .mm-signup .mm-field { background: rgba(255, 255, 255, 0.94); color: #14262E; border-color: transparent; }
.mm-on-photo .mm-signup p { color: rgba(255, 255, 255, 0.88); }
/* the Follow box (/follow.js, FOLLOW-BOX-1): every row has a fixed height, so a state change never moves anything; the status
   line keeps room for two lines (the "what you get" line wraps to two at most widths) */
.mm-follow-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-follow-row .mm-field { flex: 1 1 14rem; }
.mm-follow .mm-follow-msg { min-height: 3em; margin: 0; line-height: 1.5; text-wrap: pretty; }
.mm-follow .mm-follow-msg[data-kind="error"] { color: var(--error); }
.mm-on-photo .mm-follow .mm-follow-msg[data-kind="error"] { color: #F3B6A6; }
.mm-follow .mm-follow-check:empty { display: none; }
.mm-follow :disabled { opacity: 0.6; cursor: default; }
@media (max-width: 420px) { .mm-follow-row .mm-field { flex-basis: 10rem; } } /* field + button on one row at 390 */
/* FOLLOW-REMEMBER-1 (founder 2026-11-27): a browser that followed (<html data-follow-mark>, from the mm_follow cookie) sees one quiet
   line instead of the form: confirmed "You're following miniMassif. Thanks!" + Manage; pending "Check your inbox to confirm." +
   Resend, which opens the form again (data-follow-open). Decided before the first paint, so the box never swaps while loading. */
.mm-follow .mm-follow-state { display: none; margin: 0; }
.mm-follow-state .mm-linkbutton { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:root[data-follow-mark="confirmed"] .mm-follow:not([data-follow-open]) > :not([data-follow-state="confirmed"]),
:root[data-follow-mark="pending"] .mm-follow:not([data-follow-open]) > :not([data-follow-state="pending"]) { display: none; }
:root[data-follow-mark="confirmed"] .mm-follow:not([data-follow-open]) > [data-follow-state="confirmed"],
:root[data-follow-mark="pending"] .mm-follow:not([data-follow-open]) > [data-follow-state="pending"] { display: block; }
.mm-on-photo .mm-button { --accent: #8FB3C6; --on-accent: #14262E; }

/* the sign-in gate for /inside (served by the Worker) */
.gate-page { min-height: 100vh; display: grid; place-items: center; }
.gate-wrap { display: flex; flex-direction: column; gap: 24px; width: min(22rem, calc(100% - 2 * var(--gutter))); padding-block: 40px; }
.gate { display: flex; flex-direction: column; gap: 10px; }
.gate label { font-size: var(--t-small); color: var(--quiet); }
.gate-msg { font-size: var(--t-small); }
.gate-theme { position: fixed; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.gate-theme .mm-dial { border-left: 0; padding-right: 0; }

/* toy controls (toys/ui.js), founder layout v2: buttons only, over the toy. Bottom row = option groups (tap cycles),
   right column = actions and tools. Small pills on a translucent paper backdrop; one height, one font size. */
/* every dial in every bar has the same width (founder 2026-10-17); labels are kept to 8 letters in ui.js */
.mm-toy-row { --dial-w: 5.4rem; position: absolute; left: calc(var(--toy-inset, 0px) + 12px); bottom: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: var(--dial-w); z-index: 2; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--paper) 84%, transparent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mm-toy-row:empty, .mm-toy-col:empty { display: none; }
.mm-toy-row.mm-toy-corner { left: auto; right: calc(var(--toy-inset, 0px) + 12px); }
@media (max-width: 380px) { .mm-toy-row { --dial-w: 4.9rem; } }

/* a dial: label, value, one dot per option */
.mm-dial { display: grid; gap: 3px; justify-items: start; padding: 7px 14px 8px; font: inherit; color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--rule); cursor: pointer; text-align: left; }
.mm-dial:first-child { border-left: 0; }
.mm-dial:hover .mm-dial-v { color: var(--accent); }
.mm-dial-k { font-size: 0.6875rem; line-height: 1; color: var(--quiet); }
.mm-dial-v { display: grid; font-size: 0.875rem; font-weight: 500; line-height: 1.1; }
.mm-dial-v { width: 100%; }
.mm-dial-v > span { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.mm-dial-v > span.on { visibility: visible; }
.mm-dial-dots { display: flex; gap: 3px; }
.mm-dial-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }
.mm-dial-dots i.on { background: var(--accent); }
/* the Theme dial (theme.js) sits at the end of a footer row */
footer .mm-theme { margin-left: auto; padding-right: 0; border-left: 0; color: var(--ink); }
/* the footer's identity: the lockup and the studio line as one group. The dot between them is drawn here, so it can
   never start a line; on narrow screens the line sits under the lockup and the dot goes. Privacy + Theme wrap below. */
footer:has(.mm-foot-id) { flex-wrap: wrap; row-gap: 12px; }
.mm-foot-id { display: inline-flex; align-items: center; gap: 8px; }
.mm-foot-line::before { content: "\00B7"; margin-right: 8px; }
@media (max-width: 520px) { .mm-foot-id { flex-direction: column; align-items: flex-start; gap: 6px; } .mm-foot-line::before { content: none; } }
.mm-toy-col { position: absolute; right: calc(var(--toy-inset, 0px) + 12px); top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 2; }
.mm-pill { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 11px; font: 400 0.8125rem/1 var(--font); color: var(--ink);
  background: color-mix(in srgb, var(--paper) 84%, transparent); border: 0; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* what just changed: fades in above the bottom row and out again; absolutely placed, so nothing moves */
.mm-toy-toast { position: absolute; left: calc(var(--toy-inset, 0px) + 12px); bottom: 72px; z-index: 2; margin: 0; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 84%, transparent); opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.mm-toy-toast.on { opacity: 1; transform: none; }
.mm-toy-toast:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .mm-toy-toast { transition: none; transform: none; } }
.mm-pill:hover { color: var(--accent); }
.mm-pill[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* the brand on every toy: the lockup on a paper pill, top left (no effects on the lockup itself, brand rule) */
.mm-toy-brand { position: absolute; left: calc(var(--toy-inset, 0px) + 12px); top: 12px; z-index: 2; padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 86%, transparent); line-height: 0; pointer-events: none; }
.mm-toy-brand img { height: 18px; width: auto; }

/* the toy's title: centred near the top, fades in, then out after a few seconds */
.mm-toy-title { position: absolute; left: 50%; top: 18%; z-index: 2; transform: translateX(-50%); width: max-content; max-width: calc(100% - 48px); text-align: center; pointer-events: none;
  display: grid; gap: 4px; padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--paper) 88%, transparent); opacity: 0; transition: opacity 0.5s ease; }
.mm-toy-title.on { opacity: 1; }
.mm-toy-title.on.out { opacity: 0; transition-duration: 0.9s; }
.mm-toy-title strong { font-size: 1.15rem; font-weight: 500; }
.mm-toy-title span { font-size: 0.8125rem; color: var(--quiet); }
@media (prefers-reduced-motion: reduce) { .mm-toy-title { transition: none; } }
/* the toy frame: hard edge, page-coloured ground (founder 2026-10-17) */
/* full width (founder 2026-10-17): the frame breaks out of the page gutter to both screen edges; rules top and bottom only */
.mm-toy-frame { background: var(--paper); border-block: 1px solid var(--rule); overflow: hidden;
  margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px))); }

/* pull handle on the toy's right edge (founder 2026-10-17): pull it and the whole page slides; the toy never moves */
.mm-toy-scroll { position: absolute; top: 0; right: var(--toy-inset, 0px); bottom: 0; width: 36px; z-index: 1; touch-action: none; cursor: grab; display: grid; place-items: center; }
.mm-toy-scroll.pulling { cursor: grabbing; }
.mm-toy-handle { width: 22px; height: 72px; border-radius: 11px; background: color-mix(in srgb, var(--paper) 86%, transparent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  background-image: linear-gradient(var(--quiet), var(--quiet)), linear-gradient(var(--quiet), var(--quiet)), linear-gradient(var(--quiet), var(--quiet));
  background-size: 10px 2px; background-repeat: no-repeat; background-position: center 30px, center 35px, center 40px; }
.mm-toy-scroll.pulling .mm-toy-handle { background-color: var(--paper); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
@media (pointer: fine) { .mm-toy-scroll { width: 28px; } .mm-toy-handle { width: 16px; height: 52px; background-position: center 20px, center 25px, center 30px; } }
.mm-toy-col, .mm-toy-row.mm-toy-corner { right: calc(var(--toy-inset, 0px) + 44px); }
@media (pointer: fine) { .mm-toy-col, .mm-toy-row.mm-toy-corner { right: calc(var(--toy-inset, 0px) + 34px); } }

/* the toy band (toys/band.js), the one toy component on every page: one stage, one toy at a time. Touching the toy turns
   it; a swipe on the caption row, the arrows or the dots move to the next toy. Hard edge, page-coloured ground
   (founder 2026-10-17). The band sits inside an .mm-wrap; its stage breaks out to both screen edges (.mm-toy-frame). */
.mm-band { display: flex; flex-direction: column; gap: 18px; }
.mm-band-stage { position: relative; aspect-ratio: 16 / 9; touch-action: pan-y; } /* only the canvas blocks scrolling; the scroll strip must inherit pan-y */
/* fit (founder 2026-11-11, a 3440 px wide window needed vertical scrolling to see the toy): the stage is never taller than
   82% of the window (room for the heading), so on a wide or short window it stays full bleed but gets wider than 16:9.
   The toy keeps its fixed vertical field of view there, so the whole island stays framed and centred; the overlays
   (brand, dials, pull handle, sheet) move in to a centred 16:9 column via --toy-inset so they stay next to the island. */
.mm-band-stage { max-height: 82vh; max-height: 82svh; --toy-inset: max(0px, (100% - 82vh * 16 / 9) / 2); }
@supports (height: 1svh) { .mm-band-stage { --toy-inset: max(0px, (100% - 82svh * 16 / 9) / 2); } }
@media (max-width: 700px) { .mm-band-stage { aspect-ratio: 4 / 5; } }
.mm-band-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mm-band-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; touch-action: pan-y; }
.mm-band-caption { font-size: 1.05rem; font-weight: 400; min-height: 1.6em; }
.mm-band-dots, .mm-strip-dots { display: flex; gap: 6px; justify-content: center; grid-column: 1 / -1; }
.mm-band-dots button, .mm-strip-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.mm-band-dots button::before, .mm-strip-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background 0.2s ease, transform 0.2s ease; }
.mm-band-dots button[aria-current="true"]::before, .mm-strip-dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .mm-band-dots button::before, .mm-strip-dots button::before { transition: none; } }

/* a clip strip (the /inside gallery): 16:9 clips side by side, swipe or the arrows to move, dots for position. Each
   clip is a silent loop that plays only while on screen. Fixed boxes, so nothing moves when a clip loads. */
.mm-strip { display: flex; flex-direction: column; gap: 14px; }
.mm-strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 44rem); gap: clamp(12px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mm-strip-track::-webkit-scrollbar { display: none; }
.mm-strip-item { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mm-strip-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rule); }
.mm-strip-media video, .mm-strip-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-strip-item figcaption { display: grid; gap: 4px; align-content: start; min-height: 6.4em; font-size: var(--t-small); color: var(--quiet); }
.mm-strip-item figcaption b { font-weight: 500; color: var(--ink); }
.mm-strip-item figcaption span { text-wrap: pretty; } /* no lone last word; the captions also glue their last two words with &nbsp; for browsers without pretty (founder 2026-10-19) */
.mm-strip-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.mm-strip-dots { grid-column: auto; } /* the shared dots rule spans the full row; here the row reads prev | dots | next */

/* How it works (toys/band.js + toys/howitworks.js): a pill under the brand opens a sheet over the lower part of the
   stage (a side card on wide screens). All absolutely placed inside the stage: nothing outside it moves, the toy keeps
   running behind. The catcher is a clear layer over the toy while the sheet is open; a tap on it closes the sheet. */
.mm-band-how { position: absolute; left: calc(var(--toy-inset, 0px) + 12px); top: 56px; z-index: 2; }
.mm-band-how[hidden] { display: none; }
.mm-band-catcher { position: absolute; inset: 0; z-index: 3; display: none; }
.mm-band-open .mm-band-catcher { display: block; }
.mm-band-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 60%; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 18px; color: var(--ink); background: var(--paper);
  border-top: 1px solid var(--rule); border-radius: 12px 12px 0 0; box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.16);
  transform: translateY(102%); visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; }
.mm-band-open .mm-band-sheet { transform: none; visibility: visible; transition: transform 0.3s ease, visibility 0s; }
@media (min-width: 900px) {
  .mm-band-sheet { left: calc(var(--toy-inset, 0px) + 12px); right: auto; top: 12px; bottom: 12px; width: min(25rem, 44%); max-height: none; border: 1px solid var(--rule); border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16); transform: translateX(calc(-100% - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .mm-band-sheet, .mm-band-open .mm-band-sheet { transition: none; } }
.mm-band-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mm-band-sheet-head h3 { margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.mm-band-sheet-head .mm-pill { flex: none; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.mm-band-sheet-status { font-size: 0.75rem; color: var(--quiet); }
.mm-band-sheet-status.soon { color: var(--accent); }
.mm-band-sheet-body { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; line-height: 1.5; max-width: var(--measure); }
.mm-band-sheet-fig { margin: 4px 0 0; }
.mm-band-sheet-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--rule); }
.mm-band-sheet-fig figcaption { padding: 6px 0 0; font-size: 0.75rem; color: var(--quiet); }

/* toy hints (v2 pages, data-hints="on"): grab cursor, and the one-time chip on the first toy (fades, never moves layout) */
.mm-hints canvas { cursor: grab; }
.mm-hints canvas:active { cursor: grabbing; }
.mm-toy-hint { position: absolute; left: 50%; bottom: 76px; z-index: 2; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8125rem; color: var(--ink); background: color-mix(in srgb, var(--paper) 88%, transparent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none; white-space: nowrap; }
.mm-toy-hint.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mm-toy-hint { transition: none; } }

/* confidentiality marking (founder 2026-10-19), injected by the Worker into every signed-in page: body[data-mm-aud],
   a one-line notice above the page (scrolls away, never sticky) and in the footer, a faint watermark of the audience
   name over figures, and the one-time notice dialog (inside/confidential.js). The watermark tile is an SVG data URI
   per theme in --mm-wm, set by the Worker's inline <style>. Nothing here changes layout. */
.mm-conf-banner { margin: 0; padding-block: 5px 6px; font-size: 0.75rem; line-height: 1.4; color: var(--quiet); background: var(--paper); border-bottom: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-conf-foot { margin: 0; flex: 0 0 100%; order: 99; font-size: 0.75rem; color: var(--quiet); }
footer:has(> .mm-conf-foot) { flex-wrap: wrap; }
/* SITE-MOJANG (founder 2026-11-15): Mojang's usage-guidelines disclaimer, the last line of every footer (and of the 404 and
   the sign-in page, which have none). Small and quiet, --quiet on --paper is AA in both themes. */
.mm-legal { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--quiet); text-wrap: pretty; }
footer > .mm-legal { flex: 0 0 100%; order: 100; margin-top: 4px; }
footer:has(> .mm-legal) { flex-wrap: wrap; }
.lost-wrap > .mm-legal, .gate-wrap > .mm-legal { margin-top: 8px; }
footer .mm-contact { flex: 0 0 100%; order: 98; font-size: var(--t-small); color: var(--quiet); } /* the inside pages: how to reach us */
/* zero specificity: any page rule that already positions the element wins, so nothing is moved */
:where(body[data-mm-aud] figure, body[data-mm-aud] .still) { position: relative; }
body[data-mm-aud] :is(figure:not(.mm-strip-item), .still, .mm-strip-media)::after { content: ""; position: absolute; inset: 0; pointer-events: none; user-select: none; -webkit-user-select: none;
  background-image: var(--mm-wm, none); background-repeat: repeat; border-radius: inherit; }
/* gallery slides: the watermark stays on (leak tracing) but waits for the slide's still or clip, never on an empty box */
body[data-mm-aud] .mm-strip-media::after { opacity: 0; transition: opacity 0.3s ease; }
body[data-mm-aud] .mm-strip-media.ready::after { opacity: 1; }
.mm-conf-dialog { width: min(24rem, calc(100vw - 32px)); max-width: none; margin: auto; padding: 26px 24px 22px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22); }
.mm-conf-dialog::backdrop { background: rgba(var(--shade), 0.45); }
.mm-conf-dialog h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.2; }
.mm-conf-dialog p { margin: 0 0 20px; font-size: var(--t-small); color: var(--quiet); }
.mm-conf-dialog .mm-button { width: 100%; }

/* "On this page" (inside/rail.js): a fixed index on the right of pages with chapters, only where it fits beside the
   37rem column. All entries always shown (no expand, so nothing reflows); the current chapter and sub-section get the
   accent and a thin left marker. Fades out while a wide figure passes under it. Hidden in print. */
.mm-rail { display: none; position: fixed; z-index: 10; top: var(--mm-rail-top, 96px); width: 14rem; max-height: calc(100vh - var(--mm-rail-top, 96px) - 24px); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin; font-size: 0.8125rem; line-height: 1.35; color: var(--quiet);
  right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100vw - 75rem) / 2 - 16rem)); transition: opacity 0.2s ease, visibility 0s linear 0s; }
@media (min-width: 1280px) { .mm-rail { display: block; } }
.mm-rail.is-covered { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
@media (prefers-reduced-motion: reduce) { .mm-rail, .mm-rail.is-covered { transition: none; } }
.mm-rail-head { margin: 0 0 8px; padding-left: 12px; font-weight: 500; color: var(--quiet); }
.mm-rail ol { list-style: none; margin: 0; padding: 0; }
.mm-rail li { margin: 0; }
.mm-rail a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); padding: 3px 0 3px 10px; border-left: 2px solid transparent; color: inherit; text-decoration: none; }
.mm-rail a:hover { color: var(--ink); }
.mm-rail-n { font-variant-numeric: tabular-nums; }
.mm-rail-ch { color: var(--ink); }
.mm-rail ol ol a { grid-template-columns: minmax(0, 1fr); padding-left: calc(10px + 1.5rem); }
.mm-rail ol ol { margin-bottom: 6px; }
.mm-rail a.is-current { color: var(--accent); border-left-color: var(--accent); }
@media print { .mm-rail, .mm-conf-dialog { display: none !important; } }

/* "Try it now in your browser" is OFF until the founder says ok (2026-10-19). Delete this rule to turn the buttons back on.
   It hides the button and the note right after it, on every page that has one. */
[data-try], [data-try] + .try-note { display: none !important; }

/* Sign out (2026-10-19): a POST form in the top-bar nav whose button looks exactly like the link it replaced. The form
   adds no box (display: contents), so the nav's flex gap and alignment are unchanged; the button takes the nav link
   styles of each page (small, quiet, no underline, accent on hover; white on the trailer opening). */
.mm-signout { display: contents; }
.mm-linkbutton { appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: inherit; text-decoration: none; cursor: pointer; }
.mm-linkbutton:hover { color: var(--accent); }
nav .mm-linkbutton { font-size: var(--t-small); color: var(--quiet); }
nav .mm-linkbutton:hover { color: var(--accent); }
.opening .top nav .mm-linkbutton { color: rgba(255, 255, 255, 0.88); }
.opening .top nav .mm-linkbutton:hover { color: #fff; }

/* "Try it soon": the same button, visibly not active yet (founder 2026-10-19) */
.mm-button-soon { opacity: 0.55; cursor: default; pointer-events: none; }
/* "Open the Studio preview" (founder 2026-10-19): ships hidden; the Worker removes `hidden` only for the audiences in
   STUDIO_BUTTON. Desktop only: on touch devices it never shows and "Try it soon" stays; on desktop it takes its place. */
.mm-studio-open[hidden] { display: none; }
@media (hover: none), (pointer: coarse) { .mm-studio-open { display: none; } }
@media (hover: hover) and (pointer: fine) { .mm-studio-open:not([hidden]) + .mm-button-soon { display: none; } }

/* a second, quieter button next to the main one: an outline in the type colour (SITE-REFRESH-B: "Watch the trailer" over the
   homepage hero; on a photo it is white over a light veil of the scrim) */
.mm-button-ghost { gap: 10px; color: var(--ink); background: transparent; border: 1.5px solid currentColor; }
.mm-button-ghost:hover { color: var(--accent); filter: none; }
.mm-on-photo .mm-button-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.8); background: rgba(var(--shade), 0.3); }
.mm-on-photo .mm-button-ghost:hover { color: #fff; border-color: #fff; background: rgba(var(--shade), 0.5); }
.mm-button-ghost .mm-play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.mm-button-ghost .mm-button-meta { font-weight: 300; opacity: 0.8; }
.mm-trailer-open[hidden] { display: none; }

/* The trailer popup (/trailer.js: the homepage hero and /inside; was inside/trailer.css). The YouTube player is made only on
   press and removed on close, so the sound stops. */
.mm-trailer { width: min(92vw, 1100px); max-width: none; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.mm-trailer::backdrop { background: rgba(8, 12, 16, 0.86); }
.mm-trailer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; font-size: var(--t-small); }
.mm-trailer-bar a { color: rgba(255, 255, 255, 0.88); }
.mm-trailer-close { color: #fff; }
.mm-trailer-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.mm-trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
