/* Symbolica prototype. Light leads, dark adapts. Serif for reading, mono for the record. */

/* Self-hosted type, SIL Open Font License. EB Garamond for reading, IBM Plex Mono for the record. */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/spectral-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/spectral-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/spectral-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/spectral-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/spectral-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/libre-caslon-display-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cardo"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cardo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }


:root {
  --paper: #f4efe6;
  --paper-deep: #ebe4d6;
  --ink: #1e1b17;
  --ink-2: #57504a;
  --ink-3: #6a625a;
  --rule: rgba(30, 27, 23, 0.16);
  --rule-strong: rgba(30, 27, 23, 0.4);
  --gold: #a4842e;        /* gold on paper: rules, active states */
  --gold-ink: #7a6120;    /* gold used as text on paper */
  --ring: #dcb75a;        /* the ring on the image, same in both themes: the plate does not change with the theme */
  --ring-fill: rgba(10, 10, 12, 0.28);
  --shadow: 0 1px 0 rgba(30,27,23,0.06), 0 24px 60px -30px rgba(30,27,23,0.35);
  --serif: "Spectral", "EB Garamond", Georgia, "Iowan Old Style", serif;   /* Spectral since 0.8, Will's choice from the specimen; EB Garamond stays loaded for the brand page and as the fallback */
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wordmark: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  --measure: 33em;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-deep: #1a1816;
  --ink: #eae3d6;
  --ink-2: #b3aa9b;
  --ink-3: #9c9385;
  --rule: rgba(234, 227, 214, 0.16);
  --rule-strong: rgba(234, 227, 214, 0.4);
  --gold: #d0ad4f;
  --gold-ink: #d4b45c;
  --ring: #dcb75a;
  --ring-fill: rgba(10, 10, 12, 0.28);
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 24px 60px -30px rgba(0,0,0,0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
@media (max-width: 600px) { html { font-size: 17px; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--paper); }

/* ---------- record type: the mono voice ---------- */
.mono, .label, .crumb, .meta, .btn, .key-num, .toggle {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  line-height: 1.4;
}
.label { color: var(--ink-3); display: block; margin-bottom: 0.35rem; }
.meta { color: var(--ink-2); }
.meta a { border-bottom: 1px solid var(--rule-strong); }
.meta a:hover { text-decoration: none; border-color: var(--ink); }
.crumb { color: var(--ink-3); }
.crumb a:hover { color: var(--ink); text-decoration: none; }
.crumb .sep { margin: 0 0.5em; opacity: 0.6; }

/* ---------- header / footer ---------- */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.site-nav-left { justify-self: start; }
.site-nav-right { justify-self: end; }
.wordmark {
  font-family: var(--wordmark); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.01em; line-height: 1;
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark .mark { width: 1.05em; height: 1.05em; flex: none; color: currentColor; }   /* one colour: the mark takes the colour of the word */
@media (max-width: 699px) {
  .wordmark .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the mark alone on a phone; the name stays for screen readers */
  .wordmark .mark { width: 26px; height: 26px; }
  .site-header { gap: 0.6rem; }
  .site-nav { gap: 1rem; }
}
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.6rem; align-items: baseline; }
.site-nav a, .toggle { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.toggle { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); }
.toggle:hover { color: var(--ink); }

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  font-size: 0.9rem;
}
.site-footer .meta { font-size: 0.72rem; }

/* ---------- page shells ---------- */
.page { padding: 0 clamp(1rem, 4vw, 3rem); }
.reading { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.reading p { hyphens: auto; }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }
.section-label { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0 0.8rem; }
.section-label::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; margin: 0; }
h2.label { font-family: var(--mono); font-weight: 400; font-size: 0.76rem; line-height: 1.4; letter-spacing: 0.1em; }   /* a heading in the record voice */
.title-xl { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.title-l  { font-size: clamp(1.75rem, 3.3vw, 2.4rem); }
.title-m  { font-size: 1.25rem; }
.lede { font-size: 1.2rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.also { color: var(--ink-2); font-style: italic; }
.small { font-size: 0.9rem; color: var(--ink-2); }

.proto-note {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; text-transform: none;
  color: var(--gold-ink); border-left: 2px solid var(--gold); padding: 0.35rem 0 0.35rem 0.8rem;
  margin: 0 0 1.4rem; line-height: 1.5;
}

/* ---------- plate figure and hotspots ---------- */
.plate {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}
.plate img {
  display: block;
  max-height: var(--plate-max, 86svh);
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow: var(--shadow);
}
.plate.ip .pin .ring { opacity: 0; }
.plate.ip.marks-on .pin .ring, .plate.ip.is-flash .pin .ring, .plate.ip .pin:hover .ring, .plate.ip .pin:focus-visible .ring,
.plate.ip .pin[aria-pressed="true"] .ring, .plate.ip .pin.is-today .ring, .plate.ip .pin.is-lit .ring { opacity: 1; }
.plate.ip .pin .ring { transition: opacity 0.35s ease, transform 0.15s ease, background 0.15s ease; }
.plate.ip.is-flash .pin .ring { transition-delay: calc(var(--i, 0) * 90ms); }
.plate.ip .pin.is-today .ring { background: rgba(220,183,90,0.45); color: #14120f; text-shadow: none; }
.plate.ip .pin[aria-pressed="true"] .ring { background: rgba(220,183,90,0.55); color: #14120f; text-shadow: none; border-width: 1.5px; }
.pin { cursor: pointer; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;            /* touch target */
  padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: opacity 0.2s ease;
}
.pin .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ring);
  background: var(--ring-fill);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 0 12px rgba(0,0,0,0.45);
  display: grid; place-items: center;
  color: #f6efdf;
  font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0; line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  transition: transform 0.15s ease, background 0.15s ease;
}
.pin:hover .ring, .pin:focus-visible .ring { transform: scale(1.12); }
.pin[aria-pressed="true"] .ring { background: rgba(220, 183, 90, 0.45); color: #14120f; text-shadow: none; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .ring { outline: 2px solid var(--paper); outline-offset: 2px; }

.plate-tools {
  display: flex; gap: 1.5rem; justify-content: center; align-items: center;
  margin: 0.9rem 0 0;
}
.plate-tools .toggle[aria-pressed="false"] { color: var(--ink-3); }


/* the key list */
.key { list-style: none; margin: 0; padding: 0; }
.key li { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0 0.8rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.key li:last-child { border-bottom: 1px solid var(--rule); }
.key > li > button { all: unset; cursor: pointer; display: contents; }   /* the row itself; the note inside the row keeps its own buttons */
.key-num { color: var(--gold-ink); font-size: 0.7rem; }
.key .key-text { min-width: 0; line-height: 1.3; }
.key .key-name { font-weight: 500; font-size: 1.02rem; transition: color 0.2s ease; }
.key .key-where { color: var(--ink-3); font-style: italic; font-size: 0.88rem; margin-left: 0.45em; }
.key li:hover .key-name, .key li.is-active .key-name { color: var(--gold-ink); }
.key-open { font-family: var(--mono); font-size: 0.9rem; line-height: 1; color: var(--ink-3); width: 1.2rem; text-align: center; }
.key-open::before { content: "+"; }
.key li.is-active .key-open::before { content: "−"; }
.key li.is-active .key-open { color: var(--gold-ink); }
.key li.is-unmarked { grid-template-columns: 1.5rem 1fr; color: var(--ink-3); font-style: italic; font-size: 0.9rem; line-height: 1.45; align-items: baseline; }

/* record block: label above, serif value */
.record { display: grid; gap: 1.1rem; }
.record .val { font-size: 0.93rem; line-height: 1.45; }
.record .val a { border-bottom: 1px solid var(--rule-strong); }

.btn {
  display: inline-block; padding: 0.7rem 1rem; border: 1px solid var(--ink); color: var(--ink);
  border-radius: 2px; cursor: pointer; background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------- plate page layout: notes left, plate right ---------- */
.plate-page { padding-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 980px) {
  .plate-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 24rem);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .plate-page .panel { padding-top: 0.4rem; }
  .plate-page .stage { position: sticky; top: 1.2rem; --plate-max: calc(100svh - 9.6rem); }
}
@media (max-width: 979px) {
  .plate-page .stage { margin-bottom: 1.5rem; }
}
.panel .crumb { display: block; margin-bottom: 1.2rem; }
.panel .title-block { margin-bottom: 1.5rem; display: grid; gap: 0.65rem; }
.panel .deck { margin: 0; font-size: 1.12rem; line-height: 1.45; color: var(--ink); }                     /* the deck: what the plate is, in one sentence, before who made it */
.panel .record-line { color: var(--ink-3); font-size: 0.86rem; }
.panel .reading-label { margin-top: 2rem; }
.reading { font-size: 1.02rem; line-height: 1.55; }
.reading p { margin: 0 0 1rem; }
.reading p[data-sym] { border-left: 2px solid transparent; padding-left: 0.85rem; margin-left: -0.95rem; transition: border-color 0.3s ease; }
.reading p.is-read { border-left-color: var(--gold); }                                                   /* the paragraph the plate is answering */
.reading .proto-note { font-size: 0.66rem; }
.panel .title-l { font-size: clamp(1.7rem, 2.5vw, 2.05rem); }
.panel .also { margin: 0; font-size: 0.94rem; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.panel .also-label { font-style: normal; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 0.4em; }
.panel .section-label { margin-top: 0; margin-bottom: 0.5rem; }
.plate-hint { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-3); }


/* ---------- symbol page ---------- */
.symbol-head { text-align: center; padding-top: 2.2rem; }
.symbol-head .also { margin-top: 0.5rem; }
.symbol-head .label { margin-top: 1rem; }
.appears { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.4rem; }
.appears li a { display: block; }
.appears li a:hover { text-decoration: none; }
.appears img { box-shadow: var(--shadow); }
.appears .title-m { margin-top: 0.7rem; font-size: 1.02rem; }
.appears .meta { display: block; margin-top: 0.3rem; font-size: 0.72rem; }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.related a { border-bottom: 1px solid var(--rule-strong); }
.related a:hover { text-decoration: none; border-color: var(--ink); }
.contested { border-left: 2px solid var(--rule-strong); padding-left: 1.1rem; }

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

/* ---------- immersive: the plate alone, zoomable ---------- */
.immersive[hidden] { display: none; }
.immersive { position: fixed; inset: 0; z-index: 20; background: var(--paper-deep); display: grid; grid-template-rows: auto 1fr auto; }
.zoom-bar { display: flex; align-items: center; gap: 1.4rem; padding: 0.8rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.zoom-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-readout { min-width: 6em; text-align: right; color: var(--ink-3); }
.zoom-bar .toggle[aria-pressed="true"] { color: var(--gold-ink); }
.immersive-close { position: static; }
.zoom-view { position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.immersive.is-zoomed .zoom-view { cursor: move; }
.zoom-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --iz: 1; }
.zoom-stage img { display: block; width: auto; height: auto; max-width: none; max-height: none; box-shadow: var(--shadow); user-select: none; -webkit-user-drag: none; }
.zoom-stage .pin { transform: translate(-50%, -50%) scale(var(--iz)); }      /* the marks keep their size whatever the zoom */
.zoom-stage .pin .ring { opacity: 0; }
.zoom-stage.marks-on .pin .ring { opacity: 1; }
.zoom-hint { padding: 0.6rem clamp(1rem, 4vw, 3rem) 0.9rem; color: var(--ink-3); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; border-top: 1px solid var(--rule); }
@media (max-width: 699px) { .zoom-title { display: none; } .zoom-bar { gap: 1rem; } .zoom-hint { font-size: 0.6rem; } }
body.has-immersive { overflow: hidden; }


/* ---------- view transitions between the mosaic and the plate ---------- */
@view-transition { navigation: auto; }
::view-transition-old(plate-hand), ::view-transition-new(plate-hand) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

/* ---------- the mosaic ---------- */
body.is-mosaic .site-header { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mosaic { padding: 0.9rem clamp(0.6rem, 1.2vw, 1.2rem) 0; --gap: 14px; --row: 8px; }
.wall-grid { column-count: 2; column-gap: var(--gap); }                 /* no-JS layout */
@media (min-width: 700px) { .wall-grid { column-count: 3; } }
@media (min-width: 1100px) { .wall-grid { column-count: 4; } }
@media (min-width: 1700px) { .wall-grid { column-count: 5; } }
.js .wall-grid { column-count: auto; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: var(--gap); }
.mosaic { overflow: clip; overflow-clip-margin: 1.5rem; padding-bottom: 1rem; }   /* column drift is bounded, and nothing leaves the wall */
.js .tile { margin: 0; }
.js .tile-hero { grid-column: span 2; }
@media (max-width: 699px) { .js .tile-hero, .js .tile-text { grid-column: span 2; } }

.tile {
  position: relative; margin: 0 0 var(--gap); break-inside: avoid;
  --f: 1; --p: 1; --dx: 0px; --dy: 0px; --py: 0px; --mx: 0px; --my: 0px;
  opacity: var(--p);
  transform: translate3d(calc(var(--dx) * (1 - var(--p)) + var(--mx)), calc(var(--dy) * (1 - var(--p)) + var(--py) + var(--my)), 0);
  will-change: transform, opacity;
}
.tile-hero img { transition: opacity 0.2s ease; }
.tile-hero.is-morphing img { opacity: 0 !important; }
.tile-hero.is-morphing .tile-link { background: transparent; }
.tile-hero.is-morphing .tile-ring, .tile-hero.is-morphing .decoded-badge { opacity: 0 !important; }
.tile-link { display: block; position: relative; overflow: hidden; background: var(--c, var(--paper-deep)); }
.tile-link:hover { text-decoration: none; }
.tile-ph { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px); transform: scale(1.08); }
.tile img {
  position: relative; display: block; width: 100%; height: auto;
  transition: opacity 0.6s ease, filter 0.35s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
  filter: saturate(calc(0.62 + 0.38 * var(--f))) brightness(calc(0.92 + 0.08 * var(--f)));
}
.js .tile img { opacity: 0; }
.js .tile img.loaded { opacity: 1; }
.tile-link:hover img, .tile-link:focus-visible img { transform: scale(1.015); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(14,12,10,0.72), rgba(14,12,10,0));
  color: #f4efe6; display: grid; gap: 0.15rem;
  opacity: 0; transition: opacity 0.25s ease;
}
.tile-cap .cap-title { font-style: italic; font-size: 0.95rem; line-height: 1.25; }
.tile-cap .meta { color: rgba(244,239,230,0.85); font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0; text-transform: none; line-height: 1.35; }   /* maker, date, source read as a byline; only the motif line below stays in mono */
.tile-link:hover .tile-cap, .tile-link:focus-visible .tile-cap { opacity: 1; }
@media (hover: none) { .tile-cap { display: none; } }

/* the decoded plate: its rings appear when it rests in focus */
.tile-decoded .tile-ring {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 1.5px solid var(--ring); background: rgba(10,10,12,0.28); box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 0 10px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 140ms); pointer-events: none;
}
.tile-decoded.is-decoding .tile-ring { opacity: 1; }
.tile-decoded .decoded-badge {
  position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.3rem 0.5rem; color: var(--ring);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(14,12,10,0.55); opacity: 0; transition: opacity 0.4s ease 0.9s;
}
.tile-decoded.is-decoding .decoded-badge { opacity: 1; }

/* the text tile */
.tile-text { padding: 1.2rem 1.1rem 1.3rem; background: var(--paper-deep); display: grid; gap: 1rem; align-content: start; }
.tile-text p { margin: 0; font-size: 1.06rem; line-height: 1.38; text-wrap: balance; }
.tile-text .meta a { border-bottom: 1px solid var(--rule-strong); }

.mosaic-sentinel { height: 1px; }

/* the viewer: a tile, alone */
.viewer[hidden] { display: none; }
.viewer { position: fixed; inset: 0; z-index: 20; background: var(--paper-deep); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 2.5rem 1rem 1rem; }
.viewer img { max-height: calc(100svh - 10.5rem); max-width: 96vw; width: auto; height: auto; box-shadow: var(--shadow); }   /* room under the image for a three-line caption */
.viewer-close { position: absolute; top: 1rem; right: clamp(1rem, 4vw, 3rem); }
.viewer-caption { display: grid; gap: 0.25rem; justify-items: center; text-align: center; margin-top: 0.8rem; }
.viewer-caption .cap-title { font-style: italic; font-size: 1rem; }
.viewer-caption .meta a { border-bottom: 1px solid var(--rule-strong); }
body.has-viewer { overflow: hidden; }

/* ---------- archive ---------- */
.archive-page { padding-top: 2rem; }
.archive-head { max-width: var(--measure); margin-bottom: 2.4rem; }
.archive-head .title-l { margin-top: 1rem; }
.archive-lede { margin-top: 0.8rem; color: var(--ink-2); }
.arch-group { margin: 0 0 2.6rem; }
.arch-group .section-label { margin: 0 0 1rem; }
.arch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.4rem 1.2rem; }
.arch-grid a { display: block; }
.arch-grid a:hover { text-decoration: none; }
.arch-grid img { box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.arch-grid .cap-title { display: block; margin-top: 0.6rem; font-style: italic; font-size: 0.93rem; line-height: 1.3; }
.arch-grid .meta { display: block; margin-top: 0.3rem; font-size: 0.68rem; }
.arch-grid .decoded { color: var(--gold-ink); }

/* ---------- brand ---------- */
.brand { padding-top: 2rem; padding-bottom: 3rem; }
.brand-head { max-width: var(--measure); margin-bottom: 2.4rem; }
.brand-head .title-l { margin-top: 1rem; }
.brand-lede { margin-top: 0.8rem; color: var(--ink-2); }
.brand-row { display: grid; grid-template-columns: 1fr; gap: 0.8rem 2.5rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .brand-row { grid-template-columns: 12rem minmax(0, 1fr); } }
.brand-body { min-width: 0; }
.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem; }
.marks.two { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 44rem; }
.mark-card { margin: 0; display: grid; gap: 0.8rem; }
.mark-stage { display: grid; place-items: center; height: 13rem; background: var(--paper-deep); color: var(--ink); }
.mark-card.is-rec .mark-stage { outline: 1px solid var(--gold); outline-offset: -1px; }
.mark-card figcaption { display: grid; gap: 0.35rem; }
.mark-name { font-weight: 500; font-size: 1.02rem; }
.mark-why { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.rec { color: var(--gold-ink); }
.mark-sizes { margin-top: 1.6rem; display: grid; gap: 0.6rem; }
.sizes { display: flex; align-items: center; gap: 1.6rem; color: var(--ink); }
.lockups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.lockup-stage { display: grid; place-items: center; padding: 3rem 1rem; }
.lockup-stage.light { background: #f4efe6; color: #1e1b17; }
.lockup-stage.dark { background: #121110; color: #eae3d6; }
.lockup { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 500; font-size: 2rem; letter-spacing: 0.01em; }
.lockup svg { width: 1.05em; height: 1.05em; }
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; margin-bottom: 1rem; }
.voice { display: grid; gap: 0.6rem; padding: 1.2rem; background: var(--paper-deep); }
.voice-sample.serif { font-size: 1.35rem; line-height: 1.35; margin: 0; }
.voice-sample.mono-sample { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; line-height: 1.6; margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.swatch { display: grid; gap: 0.3rem; padding-top: 4.2rem; background: linear-gradient(var(--sw), var(--sw)) top / 100% 3.6rem no-repeat; color: var(--ink-2); }
.ring-demo { display: flex; gap: 2.2rem; align-items: center; padding: 2rem; background: #1b1d3a; margin-bottom: 1rem; width: fit-content; }
.pin-demo { display: grid; place-items: center; width: 44px; height: 44px; }
.pin-demo .ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ring); background: rgba(10,10,12,0.28); box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 0 12px rgba(0,0,0,0.45); display: grid; place-items: center; color: #f6efdf; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; }
.pin-demo.is-active .ring { background: rgba(220,183,90,0.45); color: #14120f; }

@media (prefers-reduced-motion: reduce) {
  .tile, .col { transform: none !important; }
  .tile img { transition: none; }
}




/* wordmark settings on the brand page */
.wordmarks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.wordmarks li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .wordmarks li { grid-template-columns: 22rem minmax(0, 1fr); align-items: center; gap: 2rem; } }
.wordmarks li:last-child { border-bottom: 1px solid var(--rule); }
.wordmarks .lockup { font-size: 2.3rem; letter-spacing: 0.01em; }
.wordmarks .lockup svg { color: var(--gold-ink); }
.wordmarks li.is-rec .lockup { color: var(--ink); }
.wordmarks .wm-note { display: grid; gap: 0.25rem; }
.wordmarks .wm-note .small { line-height: 1.45; }
.wm-cormorant { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.wm-eb { font-family: "EB Garamond", serif; font-weight: 500; }
.wm-caslon { font-family: "Libre Caslon Display", serif; font-weight: 400; }
.wm-cardo { font-family: "Cardo", serif; font-weight: 400; }
.wm-fell { font-family: "IM Fell English", serif; font-weight: 400; }
.lockup-stage .lockup { font-family: var(--wordmark); font-weight: 600; font-size: 2.4rem; }


/* ---------- the note card: what a mark says, beside the plate, never leaving the page ---------- */
.stage, .today-stage { position: relative; }
.note-card {
  position: absolute; left: calc(100% + 1.4rem); top: 0; width: min(19rem, 28vw); z-index: 3;
  padding: 0.9rem 1rem 1rem; background: var(--paper); border-left: 2px solid var(--gold);
  box-shadow: 0 1px 0 rgba(30,27,23,0.06), 0 18px 50px -24px rgba(30,27,23,0.45);
  display: grid; gap: 0.4rem;
}
.note-card[hidden] { display: none; }
.note-card .note-name { font-size: 1.12rem; font-weight: 500; line-height: 1.2; }
.note-card .note-name a:hover { text-decoration: none; color: var(--gold-ink); }
.note-card .note-gloss { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink); }
.note-card .note-body { display: grid; gap: 0.45rem; min-width: 0; }
.note-card .note-says { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.says-who { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-right: 0.45em; white-space: nowrap; }
.note-card .note-more { margin: 0.1rem 0 0; }
.note-card .note-more a { color: var(--gold-ink); }
.note-card .note-close { position: absolute; top: 0.55rem; right: 0.7rem; }
.note-close { all: unset; cursor: pointer; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.note-close:hover { color: var(--ink); }
@media (max-width: 979px) {
  .note-card { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; z-index: 12; padding: 1rem clamp(1rem, 4vw, 3rem) 1.4rem; border-left: 0; border-top: 1px solid var(--rule-strong); box-shadow: 0 -18px 40px -20px rgba(0,0,0,0.35); max-height: 62svh; overflow-y: auto; }
  .note-card .note-close { right: clamp(1rem, 4vw, 3rem); }
}


/* the clone that carries the plate from the spread into its tile */
.hero { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.hero img { display: block; width: 100%; height: 100%; box-shadow: var(--shadow); }
.hero[hidden] { display: none; }

@media (max-width: 699px) { .nav-today { display: none; } }


/* ---------- isolating a symbol: the plate bleaches, the symbol keeps its colour ---------- */
.plate.ip img.base { transition: filter 0.5s ease, opacity 0.5s ease; }
.plate.ip img.focus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0;
  clip-path: inset(0 0 0 0); transition: clip-path 0.55s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease; }
.plate.ip.has-active img.base { filter: saturate(0.04) brightness(1.55) contrast(0.68); opacity: 0.5; }
.plate.ip.has-active img.focus { opacity: 1; }
.plate.ip.has-active .pin .ring { opacity: 0.35; }
.plate.ip.has-active .pin[aria-pressed="true"] .ring { opacity: 1; }
.plate.ip.has-active .pin.is-today:not([aria-pressed="true"]) .ring { opacity: 0.35; }
.today .plate.is-morphing img.focus { opacity: 0 !important; }

.record .cite { font-size: 0.86rem; color: var(--ink-2); }

/* the loupe: the symbol enlarged inside its note, and the thing that carries into the entry */
.note-card .note-loupe { display: block; width: fit-content; max-width: 100%; margin: 0.2rem 0 0.4rem; line-height: 0; }
.note-card .note-loupe img { max-height: 9rem; width: auto; max-width: 100%; box-shadow: var(--shadow); image-rendering: auto; }
.note-inline .note-loupe img { max-height: 7rem; }
@media (max-width: 979px) { .note-card .note-loupe img { max-height: 5.5rem; } }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

/* app icons on the brand page */
.icons { display: flex; gap: 2rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.icon { display: grid; gap: 0.5rem; justify-items: center; }
.icon .tile-icon { width: 120px; height: 120px; border-radius: 27px; background: #1a1714; display: grid; place-items: center; color: #dcb75a; box-shadow: var(--shadow); }
.icon .tile-icon.small { width: 60px; height: 60px; border-radius: 13.5px; }
.icon .tile-icon.paper { background: #f4efe6; color: #1e1b17; }

/* ---------- the deep section of a plate page: the whole width, label left, text right ---------- */
.plate-deep { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-bottom: 1rem; }
.deep-row { display: grid; grid-template-columns: 1fr; gap: 0.8rem 3rem; padding: 2.2rem 0; border-top: 1px solid var(--rule); }
.deep-row:first-child { border-top: 0; }
@media (min-width: 900px) { .deep-row { grid-template-columns: 14rem minmax(0, 44em); } }
.deep-body { min-width: 0; font-size: 1.06rem; line-height: 1.55; }
.deep-body .proto-note { font-size: 0.66rem; }
.deep-body.record { display: grid; gap: 1.1rem; font-size: 1rem; }
.deep-body.record .val { font-size: 0.95rem; }

/* ---------- the key with its crops, and the note that opens under the row ---------- */
.key.key-visual li { grid-template-columns: 1.5rem 3rem 1fr auto; }
.key.key-visual li.is-unmarked { grid-template-columns: 1.5rem 1fr; }
.key.key-visual .key-thumb { width: 3rem; height: 3rem; object-fit: cover; display: block; box-shadow: var(--shadow); }
.key-note { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(.2,.7,.2,1); }
.key-note.is-open { grid-template-rows: 1fr; }
.key-note > .note-inline {
  position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; z-index: auto;
  min-height: 0; overflow: hidden; margin: 0; padding: 0 0 0 calc(1.5rem + 0.8rem + 3rem + 0.8rem);
  background: transparent; border: 0; box-shadow: none;
  display: block;
  opacity: 0; transition: opacity 0.3s ease, padding 0.45s cubic-bezier(.2,.7,.2,1);
}
.key-note .note-loupe { display: none; }                       /* the row's own thumbnail carries the symbol into the entry */
.key-note.is-open > .note-inline { opacity: 1; padding-top: 0.45rem; padding-bottom: 1rem; }
.key-note > .note-inline[hidden] { display: none; }
.key-note .note-name { display: none; }                       /* the row already names it */
.key-note .note-close { position: absolute; top: 0.5rem; right: 0; }
.key-note.is-open > .note-inline { padding-right: 3.2rem; }
@media (max-width: 979px) { .key-note > .note-inline { padding-left: calc(1.5rem + 0.8rem + 3rem + 0.8rem); } }
@media (min-width: 980px) { .note-sheet { display: none !important; } }   /* on a wide screen every note opens under its row */

/* ---------- entrances: nothing pops ---------- */
.note-card { transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2,.7,.2,1), display 0.35s allow-discrete; }
@starting-style { .note-card:not([hidden]) { opacity: 0; transform: translateY(10px); } }
.plate.ip .pin[aria-pressed="true"] .ring { transform: scale(1.08); }

/* ---------- about, sources ---------- */
.about { padding-top: 2rem; padding-bottom: 3rem; }
.about .brand-row:first-of-type { border-top: 0; }
.sources { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 0.93rem; color: var(--ink-2); }
.sources li { margin-bottom: 0.3rem; }


/* ---------- type ladder ----------
   1 title, serif 500.  2 deck, serif, larger than body.  3 body, serif.  4 byline and notes, serif, smaller, ink-2.
   5 labels: mono, uppercase, three words at most, and numerals. A long string is never set in the mono voice. */
.byline { font-family: var(--serif); font-size: 0.94rem; line-height: 1.45; color: var(--ink-2); letter-spacing: 0; text-transform: none; margin: 0; }
.byline i { font-style: italic; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }

/* ---------- today: the plate, named first; then today's symbol, shown as what it is, a detail of the plate ---------- */
.today { position: relative; min-height: calc(100svh - 4.6rem); display: grid; align-content: center; justify-items: center; padding: 1rem clamp(1rem, 4vw, 3rem) 7rem; }
.today-stage { width: fit-content; max-width: 100%; }
.today-stage .plate { margin: 0; }
.today-stage .plate img { max-height: min(calc(100svh - 13.5rem), 1100px); max-width: min(92vw, 900px); }
.plate-link { display: block; line-height: 0; }
.plate-link:focus-visible { outline-offset: 6px; }
.today .plate.ip:hover .pin .ring { opacity: 0.55; }             /* the marks show themselves while the plate is under the hand */
.today .plate.ip:hover .pin.is-today .ring, .today .plate.ip:hover .pin:hover .ring { opacity: 1; }
.today-plate-cap { position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: 2rem; max-width: 26rem; display: grid; gap: 0.45rem; }
.today-plate-cap .label { margin: 0; }
.today-title { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; }
.today-title a:hover { text-decoration: none; color: var(--gold-ink); }
.today-maker { font-family: var(--serif); font-size: 0.94rem; line-height: 1.45; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.today-open { margin: 0.1rem 0 0; }
.today-open .decoded { color: var(--gold-ink); border-bottom-color: var(--gold); }
.today-symbol-cap { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2rem; width: min(24rem, 30vw); display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0.9rem; align-items: start; transition: opacity 0.3s ease; }
.today-crop { display: block; line-height: 0; }
.today-crop img { width: 4.4rem; height: 4.4rem; object-fit: cover; box-shadow: var(--shadow); }
.today-symbol-text { display: grid; gap: 0.3rem; min-width: 0; }
.today-symbol-text .label { margin: 0; color: var(--gold-ink); }
.today-symbol-name { margin: 0; font-size: 1.4rem; font-weight: 500; line-height: 1.1; }
.today-symbol-name a:hover { text-decoration: none; color: var(--gold-ink); }
.today-gloss { margin: 0; color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.today-hint { margin: 0.2rem 0 0; color: var(--ink-3); font-family: var(--serif); font-size: 0.86rem; font-style: italic; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.today .wall-hint { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); color: var(--ink-3); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.3s ease; }
.today .wall-hint.is-gone { opacity: 0; }
.js .today-symbol-cap, .js .today-plate-cap { opacity: calc(1 - var(--q, 0) * 1.6); }
.js .today.has-note .today-symbol-cap { opacity: 0; pointer-events: none; }   /* the note beside the plate takes over from the card */
.today .plate.is-morphing img { opacity: 0; }
.today .plate.is-morphing .pin { opacity: 0; }
@media (max-width: 979px) {
  .today { padding-bottom: 1.5rem; min-height: auto; padding-top: 1rem; }
  .today-stage .plate img { max-height: 74svh; }
  .today-plate-cap, .today-symbol-cap { position: static; max-width: none; width: 100%; margin-top: 1.4rem; }
  .today-symbol-cap { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
  .today .wall-hint { display: none; }
  .js .today.has-note .today-symbol-cap { opacity: 1; pointer-events: auto; }
}

/* ---------- the wall's head (landing) and group heads (symbols page) ---------- */
.mosaic-today { padding-top: 3.6rem; }
.wall-head { display: grid; gap: 0.35rem; padding: 0 clamp(0.4rem, 1vw, 1rem) 1.5rem; }
.js .mosaic-today .wall-head { opacity: calc(var(--wq, 1) * var(--wq, 1) * var(--wq, 1)); }
body.is-mosaic .site-footer { margin-top: 0; }
.wall-head .label { margin: 0; }
.wall-title { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.1; }
.wall-meta { margin: 0; font-family: var(--serif); font-size: 0.94rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); line-height: 1.45; }
.wall-meta a { border-bottom: 1px solid var(--rule-strong); }
.wall-group { margin: 0 0 2.2rem; }
.wall-group[hidden] { display: none; }
.wall-group-head {
  position: sticky; top: var(--bar-h, 3.6rem); z-index: 4;
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin: 0 0 var(--gap); padding: 0.65rem clamp(0.4rem, 1vw, 1rem) 0.7rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.wall-group-name { font-size: 1.25rem; font-weight: 500; line-height: 1.1; }
.wall-group-entry { margin-left: auto; color: var(--gold-ink); }
.wall-group-entry:hover { text-decoration: none; border-bottom: 1px solid var(--gold); }
.tile-cap .tile-tags { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,0.7); margin-top: 0.2rem; }
.tile-cap .tag-central { color: #d0ad4f; }                                  /* the central motif leads the line, in gold; the secondary motifs follow in cream */
.role-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-right: 0.4em; }
.across-role { display: block; margin: 1.3rem 0 0.7rem; }
.wall-group-more { all: unset; cursor: pointer; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid transparent; }
.wall-group-more:hover, .wall-group-more:focus-visible { color: var(--gold-ink); border-bottom-color: var(--gold); outline: none; }
/* the Share popover's Master file item walks to the gate in the Record and calls it out once */
.is-called { animation: called 2.6s ease; }
.is-called .signup-field { border-bottom-color: var(--gold); }
@keyframes called { 0% { box-shadow: 0 0 0 0 transparent; } 18% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold) 16%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; background: transparent; } }
.wall-empty { padding: 3rem 1rem 1rem; text-align: center; }

/* ---------- the index: the wall's filters as a catalogue index. A rail beside the wall on a wide screen, a line with a sheet on a narrow one ---------- */
.symbols-head { padding-top: 2rem; padding-bottom: 1.6rem; max-width: 48rem; }
.symbols-head .title-l { margin-top: 1rem; }
.entries-line { margin: 1rem 0 0; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.entries-line .entries-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 0.5em; }
.entries-line a { border-bottom: 1px solid var(--rule-strong); }
.filter-search { all: unset; box-sizing: border-box; width: 100%; font-family: var(--serif); font-size: 0.95rem; line-height: 1.3; padding: 0.4rem 0; color: var(--ink); border-bottom: 1px solid var(--rule-strong); }
.filter-search::placeholder { color: var(--ink-3); }
.filter-search:focus { border-bottom-color: var(--gold); }
.index-count { margin: 0.6rem 0 0; font-size: 0.66rem; }
.index-sec { margin-top: 1.4rem; }
.index-label { border-bottom: 1px solid var(--rule); padding-bottom: 0.35rem; margin: 0 0 0.45rem; color: var(--ink-3); }
.index-fam { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0.85rem 0 0.2rem; padding-left: 0.8rem; }
.index-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; width: 100%; padding: 0.2rem 0 0.2rem 0.8rem; border-left: 2px solid transparent; font-family: var(--serif); font-size: 0.92rem; line-height: 1.3; color: var(--ink-2); transition: color 0.15s, border-color 0.15s; }
.index-item:hover { color: var(--ink); }
.index-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.index-item.is-on { color: var(--ink); border-left-color: var(--gold); }
.index-item[hidden] { display: none; }
.index-fam[hidden] { display: none; }
.index-n { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-3); font-feature-settings: "tnum"; flex: none; }
.index-item.is-on .index-n { color: var(--gold-ink); }
.index-head, .index-bar, .index-scrim { display: none; }
.wall-clear { all: unset; cursor: pointer; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 1px solid var(--gold); margin-left: auto; }
.wall-clear:hover, .wall-clear:focus-visible { color: var(--ink); border-bottom-color: var(--ink); outline: none; }
@media (min-width: 1100px) {
  .wall-layout { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 0 2.2rem; align-items: start; padding: 0 clamp(1rem, 4vw, 3rem) 0 clamp(1rem, 4vw, 3rem); }
  .index { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; padding: 1.4rem 0.6rem 2rem 0; }
  .wall-layout .mosaic-wall { padding-top: 1.2rem; }
  .wall-layout .mosaic-wall { padding-left: 0; padding-right: 0; }
}
@media (max-width: 1099px) {
  .index { position: sticky; top: 0; z-index: 7; }                        /* no filter or transform here: the sheet below is fixed to the viewport, and a blurred ancestor would capture it */
  .index-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.55rem clamp(1rem, 4vw, 3rem); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .index-summary { font-size: 0.68rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .index-body { display: none; }
  .index.is-open .index-body { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 84svh; overflow-y: auto; padding: 0.9rem clamp(1rem, 4vw, 3rem) max(1.4rem, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule-strong); box-shadow: 0 -18px 50px -24px rgba(30,27,23,0.45); }
  .index.is-open .index-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(30,27,23,0.28); }
  .index-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
  .index-head .label { margin: 0; }
  .index-sec { margin-top: 1.1rem; }
  .index-item { font-size: 0.97rem; padding-top: 0.32rem; padding-bottom: 0.32rem; }
}
.mosaic-wall { padding-top: 1.2rem; }

/* ---------- the sign-up: where the landing ends. A specimen of this week's symbol beside the words; a hairline field, not a box ---------- */
.usp { margin-top: 3rem; padding: clamp(4rem, 12vh, 7rem) clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.usp-inner { max-width: 62rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
/* the letter: what the email is, shown as an object. A card in the proportions of the plate mark, with its point. */
.letter { margin: 0; display: grid; gap: 1rem; justify-items: start; }
/* the letter is the picture: full colour, edge to edge in a thin paper mount, this week's symbol ringed on it,
   and the week's note laid over the foot of the picture rather than stacked under it */
.letter-card { position: relative; width: min(100%, 17rem); padding: 0.55rem; background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: var(--shadow); display: grid; gap: 0.5rem; align-content: start; }
:root[data-theme="dark"] .letter-card { background: var(--paper-deep); }
.letter-point { position: absolute; top: -1px; left: -1px; width: 0.35rem; height: 0.35rem; background: var(--gold); }
.letter-head { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 0.15rem 0.15rem 0; }
.letter-plate { position: relative; display: block; width: 100%; }
.letter-img { display: block; width: 100%; height: auto; }
.letter-ring { position: absolute; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid var(--gold); box-shadow: 0 0 0 1px rgba(20,16,12,0.45), 0 0 16px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(20,16,12,0.35); pointer-events: none; }
.letter-note { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.28rem; padding: 2.6rem 0.85rem 0.8rem;
  background: linear-gradient(to top, rgba(10,9,8,0.93) 0%, rgba(10,9,8,0.86) 38%, rgba(10,9,8,0.45) 72%, rgba(10,9,8,0) 100%); }
.letter-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.1; color: #f4efe6; }
.letter-gloss { font-size: 0.8rem; line-height: 1.35; color: rgba(244,239,230,0.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.letter-more { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.letter figcaption { max-width: 17rem; font-size: 0.88rem; }
.usp-text { display: grid; gap: 1.1rem; justify-items: start; }
.usp .usp-text .label { margin: 0; }
.usp-title { font-size: clamp(1.85rem, 3.9vw, 2.85rem); line-height: 1.04; letter-spacing: -0.01em; }
.usp-body { margin: 0; font-size: 1.06rem; line-height: 1.5; max-width: 32em; }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: end; width: 100%; max-width: 34rem; margin-top: 0.4rem; }
.signup-field { all: unset; box-sizing: border-box; width: 100%; min-width: 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; padding: 0.45rem 0; color: var(--ink); border-bottom: 1px solid var(--rule-strong); transition: border-color 0.2s ease; }
.signup-field::placeholder { color: var(--ink-3); font-style: italic; }
.signup-field:focus { border-bottom-color: var(--gold); outline: none; }
.signup-btn { all: unset; box-sizing: border-box; cursor: pointer; white-space: nowrap; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding: 0.45rem 0; border-bottom: 1px solid var(--gold); transition: color 0.2s ease; }
.signup-btn:hover { color: var(--gold-ink); }
.signup-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.signup-arrow { display: inline-block; margin-left: 0.5em; transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
.signup-btn:hover .signup-arrow { transform: translateX(0.25em); }
.signup-note { margin: 0; min-height: 1.4em; }
.signup-legal { margin: 0.2rem 0 0; color: var(--ink-3); }
.signup-legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.15em; }
.signup-legal a:hover { color: var(--ink); }
.signup-compact { max-width: 28rem; margin-top: 0.8rem; }
.signup-compact .signup-field { font-size: 0.95rem; }
.end-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 1.6rem 0 0; }
.end-links a { border-bottom: 1px solid var(--rule-strong); }
@media (max-width: 900px) {
  .usp-inner { grid-template-columns: 1fr; }
  /* the picture leads on a phone too: the card takes the column and the credit sits under it */
  .letter { grid-template-columns: 1fr; gap: 0.7rem; justify-items: stretch; }
  .letter-card { width: min(100%, 20rem); }
  .letter figcaption { max-width: 20rem; }
}
@media (max-width: 520px) { .signup { grid-template-columns: 1fr; gap: 0.8rem; align-items: start; } }

/* ---------- a note about sources, in the reading voice ---------- */
.source-note { margin: 0 0 1.4rem; padding: 0.2rem 0 0.2rem 0.9rem; border-left: 2px solid var(--gold); font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.record .sources .check { color: var(--ink-3); }

/* ---------- symbol page hero: the plate itself, bleached, the symbol in colour ---------- */
.symbol-hero { padding: clamp(1.5rem, 4vw, 3rem) 1rem; display: grid; gap: 0.9rem; justify-items: center; }
.symbol-hero-link { display: block; line-height: 0; }
.symbol-hero-link:hover { text-decoration: none; }
.symbol-plate { margin: 0; }
.symbol-plate img { max-height: 62svh; max-width: min(92vw, 640px); width: auto; height: auto; }
.symbol-plate img.base { transition: filter 0.6s ease, opacity 0.6s ease; }
.symbol-hero-link:hover .symbol-plate img.base { filter: none; opacity: 1; }   /* under the hand the whole plate comes back */
.symbol-hero-cap { text-align: center; }
.arch-grid .card-line, .appears .card-line { display: block; margin-top: 0.3rem; font-size: 0.88rem; }

/* ---------- other symbols: one tile per group, the picture first, the name on it ---------- */
.explore { padding: clamp(3rem, 8vh, 5rem) clamp(0.6rem, 1.2vw, 1.2rem) 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
.explore-head { padding-bottom: 1.6rem; }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap, 14px); }
@media (max-width: 1099px) { .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.explore-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--c, var(--paper-deep)); }
.explore-tile:hover { text-decoration: none; }
.explore-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; filter: saturate(0.7) brightness(0.94); transition: filter 0.45s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.explore-tile:hover img, .explore-tile:focus-visible img { filter: none; transform: scale(1.02); }
.explore-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 0.9rem 0.85rem; display: grid; gap: 0.2rem; color: #f4efe6; background: linear-gradient(to top, rgba(14,12,10,0.78), rgba(14,12,10,0)); }
.explore-name { font-size: 1.06rem; font-weight: 500; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.explore-cap .meta { color: rgba(244,239,230,0.85); font-family: var(--serif); font-style: italic; font-size: 0.9rem; letter-spacing: 0; text-transform: none; line-height: 1.3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-cap .meta:empty { display: none; }

/* ---------- primary and secondary motifs in the key ---------- */
.key li.key-sub { display: block; padding: 0.9rem 0 0.35rem; border-top: 0; }
.key li.key-sub + li { border-top: 0; }
.key li.key-sub .label { margin: 0; }
.key li.is-primary .key-name { font-size: 1.12rem; }

/* ---------- the hub grid on a symbol page ---------- */
.arch-grid.across { margin-top: 0.4rem; }
.arch-grid .card-note { color: var(--ink-3); font-style: italic; font-size: 0.82rem; }

.arch-grid .card-says { color: var(--ink-2); font-size: 0.84rem; line-height: 1.4; margin-top: 0.35rem; }
.arch-grid .card-says .says-who, .viewer-caption .says-who { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-right: 0.4em; }
.viewer-caption .meta { max-width: 46em; text-align: center; line-height: 1.5; font-family: var(--serif); font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }   /* a caption is prose, not a label */
.viewer-caption .role-k { margin-left: 0.15em; }

/* ---------- sharing, discreet ---------- */
.plate-tools { position: relative; flex-wrap: wrap; }
.plate-tools .toggle[aria-expanded="true"] { color: var(--gold-ink); }
.share-pop { position: absolute; top: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%); z-index: 8; min-width: 17rem; padding: 0.35rem 0; background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: var(--shadow); display: grid; }
.share-pop[hidden] { display: none; }
.share-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 0.1rem; padding: 0.6rem 1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-align: left; }
.share-item + .share-item { border-top: 1px solid var(--rule); }
.share-item:hover { color: var(--gold-ink); text-decoration: none; }
.share-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.share-sub { font-family: var(--serif); font-size: 0.84rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); line-height: 1.3; }
@starting-style { .share-pop:not([hidden]) { opacity: 0; transform: translateX(-50%) translateY(-4px); } }
.share-pop { transition: opacity 0.25s ease, transform 0.25s ease, display 0.25s allow-discrete; }
@media (max-width: 979px) { .share-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; transform: none; min-width: 0; border-left: 0; border-right: 0; border-bottom: 0; z-index: 13; padding-bottom: 0.6rem; } }
body.has-sheet { overflow: hidden; }                                    /* the index sheet is open on a narrow screen: the page holds still behind it */

/* ---------- the record page: a work that is not yet decoded, shown whole, with its motifs by role and what has been read about it ---------- */
.work-plate img { background: var(--paper-deep); }
.motifs { margin: 0 0 1.4rem; display: grid; gap: 0.7rem; }
.motifs .motif { display: grid; gap: 0.2rem; }
.motifs dt { margin: 0; }
.motifs dd { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.motifs dd a { border-bottom: 1px solid var(--rule-strong); }
.motifs dd a:hover { text-decoration: none; border-bottom-color: var(--gold); color: var(--gold-ink); }
.motif-as { color: var(--ink-2); font-size: 0.94rem; }
.reading-note { margin: 0 0 1.4rem; font-style: italic; }
.panel .note-says { margin: 0 0 0.9rem; font-size: 0.98rem; line-height: 1.5; }
.says-where { display: block; margin-top: 0.15rem; color: var(--ink-3); font-size: 0.86rem; }
.work-state { color: var(--ink-3); border-left: 2px solid var(--rule); padding-left: 0.8rem; margin: 1.4rem 0 0; }
.arch-more { margin-left: auto; color: var(--gold-ink); }
.arch-more:hover { text-decoration: none; border-bottom: 1px solid var(--gold); }
.arch-group .section-label { display: flex; align-items: baseline; gap: 1rem; }
.arch-group .section-label .label a { color: inherit; }
.arch-group .section-label .label a:hover { color: var(--gold-ink); text-decoration: none; }

.key.key-motifs li { grid-template-columns: 1.5rem 1fr; padding: 0.55rem 0; }
.key.key-motifs .key-name a { color: inherit; border-bottom: 1px solid var(--rule-strong); }
.key.key-motifs .key-name a:hover { text-decoration: none; color: var(--gold-ink); border-bottom-color: var(--gold); }
.key.key-motifs .key-where i { font-style: italic; }
.picture-note { margin: 0 0 1.4rem; }
.picture-note .says-who { margin-left: 0.4em; }
.deep-label .small { margin: 0.4rem 0 0; }
.deep-label .small a { border-bottom: 1px solid var(--rule-strong); }

/* ---------- the landing wall's head: today's symbol named large, pictured, and kept in view while the wall scrolls ---------- */
.today-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.35rem 1.2rem; padding-top: 0.9rem; padding-bottom: 1.2rem; margin-bottom: 0.6rem;
  position: sticky; top: var(--head-h, 3.7rem); z-index: 4; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.today-head-crop { display: block; width: 4.6rem; height: 4.6rem; flex: none; }
.today-head-crop img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: var(--shadow); }
.today-head-text { display: grid; gap: 0.3rem; min-width: 0; }
.today-head .wall-title { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
@media (max-width: 699px) { .today-head { top: var(--head-h, 3.2rem); padding-top: 0.7rem; padding-bottom: 0.8rem; } .today-head-crop { width: 3.4rem; height: 3.4rem; } .today-head .wall-title { font-size: 1.5rem; } }

/* ---------- the gate: what an address gets, said plainly, on plates and records ---------- */
.gate { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 0 1.4rem; display: grid; gap: 0.5rem; }
.gate .label { margin: 0; color: var(--gold-ink); }
.gate-title { margin: 0; font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.gate-body { margin: 0 0 0.3rem; font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.facts { margin: 0; display: grid; gap: 0.9rem; }
.facts > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.facts dt { margin: 0; }
.facts dd { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.facts dd a { border-bottom: 1px solid var(--rule-strong); }
@media (max-width: 600px) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.about .brand-body.reading { margin-left: 0; }                            /* the About's columns start where the facts start; the measure still holds */
.about .facts { max-width: var(--measure); }

/* ---------- About: the plate beside the manifesto, a strip from the archive, then the offer, the rules, the numbers ---------- */
.about-hero { padding-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 980px) { .about-hero { grid-template-columns: minmax(280px, 30rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; } .about-plate { position: sticky; top: 1.5rem; } }
.about-plate { margin: 0; }
.about-plate img { display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.about-plate figcaption { margin-top: 0.8rem; max-width: 30rem; }
.about-words { max-width: 40rem; }
.about-words .crumb { display: block; margin-bottom: 1.4rem; }
.about-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.01em; }
.about-deck { margin: 0 0 1.8rem; font-size: 1.28rem; line-height: 1.42; color: var(--ink); }
.about-manifesto { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.about-manifesto p { margin: 0 0 1.1rem; }
.about-strip { padding: 3rem clamp(1rem, 4vw, 3rem) 2.5rem; border-top: 1px solid var(--rule); margin-top: 3rem; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.strip a { display: block; } .strip a:hover { text-decoration: none; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; box-shadow: var(--shadow); }
.strip .cap-title { display: block; margin-top: 0.55rem; font-style: italic; font-size: 0.92rem; line-height: 1.3; }
.strip .card-line { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--ink-3); }
.strip-caption { margin: 1.4rem 0 0; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.about-rest { padding-top: 0.5rem; }
.about-rest .brand-row:first-of-type { border-top: 0; }
.gate-about { border-top: 0; padding-top: 0; }
.gate-about .gate-title { font-size: 1.6rem; }
.facts.stats > div { grid-template-columns: 7rem minmax(0, 1fr); }
