/* Precious Things Studio · Vitrine
   One stylesheet, built from the tokens on the Vitrine · Style sheet board.
   Everything here is self-hosted; nothing loads from another server. */

/* ---------- Fonts (SIL Open Font License, see fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Grounds and surfaces */
  --linen: #F6F3EC;
  --paper: #FBF9F4;
  --mat: #FFFDF8;
  --fill: #E4DDCF;
  --code: #ECE6DA;

  /* Ink (contrast against linen) */
  --ink: #22201C;        /* 14.7:1 titles, links */
  --body: #3A362F;       /* 10.9:1 running text */
  --secondary: #5C564C;  /* 6.6:1 captions, credits, nav */
  --muted: #6B6458;      /* 5.3:1 labels, dates, numbers */
  --marker: #8A7F6C;     /* list bullets only, decorative */

  /* Lines */
  --rule-strong: #B9AF9C;
  --rule: #D9D2C3;
  --rule-light: #E3DCCD;
  --rule-code: #DDD5C5;
  --shadow: 0 16px 20px -16px rgba(60, 50, 30, 0.28);

  /* Accent */
  --clay: #7A4A2E;
  --highlight: #F1E2B8;
  --screen: #3A362F;
  --on-screen: #E8E2D6;
  --lightbox: #1C1A17;

  /* Type */
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --size-note-title: 56px;
  --size-page-title: 56px;
  --size-h2: 36px;
  --size-h3: 28px;
  --size-h4: 23px;
  --size-quote: 44px;
  --size-lead: 25px;
  --size-body: 22px;
  --size-annotation: 28px;
  --size-label-title: 26px;
  --size-wordmark: 22px;
  --size-nav: 14px;

  /* Layout */
  --page-max: 1160px;
  --gutter: 32px;
  --measure: 680px;
  --section-gap: 64px;
  --touch: 44px;
  --mat-pad: 20px;
}

@media (max-width: 640px) {
  :root {
    --size-note-title: 36px;
    --size-page-title: 40px;
    --size-h2: 28px;
    --size-h3: 24px;
    --size-h4: 20px;
    --size-quote: 30px;
    --size-lead: 20px;
    --size-body: 18px;
    --size-annotation: 22px;
    --size-label-title: 22px;
    --size-wordmark: 18px;
    --size-nav: 13px;
    --gutter: 20px;
    --section-gap: 48px;
    --mat-pad: 14px;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

/* Square corners everywhere; 3px only on code and keys. */
button, input, select, textarea { font: inherit; border-radius: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover, a:focus-visible {
  color: var(--clay);
  text-decoration-color: var(--clay);
}
:focus-visible {
  outline: 1px solid var(--clay);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 12px 0;
  font-size: 14px;
}
.skip:focus { top: 0; }

/* The raised 1px clay corner on links that leave the site. Never ↗. */
.ext {
  display: inline-block;
  width: max(7px, 0.3em);
  height: max(7px, 0.3em);
  margin-left: 0.15em;
  vertical-align: 0.55em;
  overflow: visible;
}
.ext path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
/* Links written in Markdown (note bodies and any text field) can't carry the
   inline SVG, so Zola's rel="external" draws the same 1px clay corner here. */
a[rel~="external"]::after {
  content: "";
  display: inline-block;
  width: max(7px, 0.3em);
  height: max(7px, 0.3em);
  margin-left: 0.15em;
  vertical-align: 0.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 1H11V10' fill='none' stroke='%237A4A2E' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Long words (domains, URLs) wrap instead of overflowing. */
.wrap-anywhere { overflow-wrap: anywhere; }

/* ---------- Header and menu ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: calc(var(--page-max) + 2 * 40px);
  margin: 0 auto;
  padding: 28px 40px;
}

.wordmark {
  font-family: var(--serif);
  font-size: var(--size-wordmark);
  text-decoration: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: var(--size-nav);
}
.menu a,
.menu-fold__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--secondary);
  text-decoration: none;
}
.menu a[aria-current="page"],
.menu-fold__list a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
}
.menu a:hover,
.menu-fold__list a:hover { color: var(--clay); }

.menu-fold { display: none; }

@media (max-width: 640px) {
  .site-header { padding: 16px var(--gutter); gap: 8px 16px; }
  .menu { gap: 16px; }

  /* Four or more items fold into a "Menu" link; no script needed. */
  .site-header--many .menu { display: none; }
  .site-header--many .menu-fold { display: block; }
  .menu-fold > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--touch);
    font-size: var(--size-nav);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .menu-fold > summary::-webkit-details-marker { display: none; }
  .chevron { width: 10px; height: 7px; }
  .chevron path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .menu-fold[open] .chevron { transform: rotate(180deg); }
  .site-header--many { position: relative; }
  .menu-fold__list {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) 8px;
    background: var(--linen);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .menu-fold__list a {
    font-size: 16px;
    border-bottom: 1px solid var(--rule-light);
  }
  .menu-fold__list a:last-child { border-bottom: 0; }
}

/* ---------- Type ---------- */

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--size-page-title);
  line-height: 1;
}

.note-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--size-note-title);
  line-height: 1.12;
}

.lede {
  font-family: var(--serif);
  font-size: var(--size-annotation);
  line-height: 1.45;
}

/* Small capitalised label: "Why I kept it", "Hangs near", "Later", h6. */
.label,
.prose h6 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.date-line {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--clay);
  text-decoration-color: var(--clay);
}

.caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}

/* ---------- Prose (note bodies, thoughts, pages) ---------- */

.prose {
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.prose > * { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-weight: 400; color: var(--ink); }
.prose h2 { font-size: var(--size-h2); line-height: 1.2; margin-top: 24px; }
.prose h3 { font-size: var(--size-h3); line-height: 1.25; }
.prose h4 { font-size: var(--size-h4); line-height: 1.3; font-style: italic; }
.prose h5 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose mark { background: var(--highlight); color: var(--ink); padding: 0 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--marker); }
.prose hr { border: 0; border-top: 1px solid var(--rule); width: 100%; }
.prose code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--code);
  color: var(--ink);
  padding: 2px 5px;
  border-radius: 3px;
}
.prose pre {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  background: var(--code);
  border: 1px solid var(--rule-code);
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  color: var(--ink);
}
.prose pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.prose kbd {
  font-family: var(--mono);
  font-size: 0.75em;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 1px 6px;
  background: var(--mat);
  color: var(--ink);
}
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.prose th { text-align: left; font-weight: 500; border-bottom: 1px solid var(--rule-strong); padding: 8px 16px 8px 0; }
.prose td { border-bottom: 1px solid var(--rule-light); padding: 8px 16px 8px 0; }
.prose blockquote {
  border-left: 1px solid var(--rule-strong);
  padding-left: 24px;
  font-style: italic;
  color: var(--ink);
}

/* "Section" headings in a page: the small label with a rule above it. */
.prose h2.section {
  margin-top: 22px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose h2.section + * { margin-top: -10px; }

/* Columns in a body (the columns shortcode), laid out like "What gets kept"
   on About. Always one per row on phones. */
.columns { display: grid; gap: 24px 40px; }
.columns--1 { grid-template-columns: minmax(0, 1fr); }
.columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.columns--rule { border-top: 1px solid var(--rule); padding-top: 32px; }
.columns__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow-wrap: break-word; }
.columns__col > * { margin: 0; }
.columns__col h2, .columns__col h3, .columns__col h4 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 -6px;
}
.prose--page .columns__col { font-size: 15px; line-height: 1.6; color: var(--secondary); }
@media (max-width: 640px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Page (About, Now, Colophon …) ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.page__body { display: flex; flex-direction: column; gap: 24px; }
.page__head { display: flex; flex-direction: column; gap: 24px; }
.prose--page {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  gap: 20px;
}
.prose--page h2:not(.section),
.prose--page h3,
.prose--page h4 { font-family: var(--serif); }
.page__updated { font-size: 13px; color: var(--muted); }

/* A removed note's quiet page */
.removed { display: flex; flex-direction: column; gap: 24px; }
.removed .page-title { font-style: italic; }
.removed__lede { color: var(--body); }

@media (max-width: 640px) {
  .page { padding: 32px var(--gutter) 72px; }
  .prose--page { font-size: 16px; }
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.empty { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--secondary); }

/* Images that fill a box keep their focal point (10% steps; no inline styles under the CSP). */
.cover { width: 100%; height: 100%; object-fit: cover; }
.fx-0 { --fx: 0%; } .fx-1 { --fx: 10%; } .fx-2 { --fx: 20%; } .fx-3 { --fx: 30%; } .fx-4 { --fx: 40%; }
.fx-5 { --fx: 50%; } .fx-6 { --fx: 60%; } .fx-7 { --fx: 70%; } .fx-8 { --fx: 80%; } .fx-9 { --fx: 90%; } .fx-10 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-1 { --fy: 10%; } .fy-2 { --fy: 20%; } .fy-3 { --fy: 30%; } .fy-4 { --fy: 40%; }
.fy-5 { --fy: 50%; } .fy-6 { --fy: 60%; } .fy-7 { --fy: 70%; } .fy-8 { --fy: 80%; } .fy-9 { --fy: 90%; } .fy-10 { --fy: 100%; }
.cover { object-position: var(--fx, 50%) var(--fy, 50%); }

/* ---------- Surfaces ---------- */

.panel { background: var(--paper); border: 1px solid var(--rule); }
.mat { background: var(--mat); border: 1px solid var(--rule); padding: var(--mat-pad); }
.mat--tile { padding: 10px; }
.mat--grid { padding: 8px; }
.mat--body { padding: 14px; box-shadow: var(--shadow); }
.mat img, .mat a { display: block; }

/* Captions line up with the photo's inner edge: mat padding plus the 1px border. */
.caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}
.caption--inset { padding: 0 15px; }
.caption--grid { padding: 0 9px; }
.caption a { color: inherit; }

/* ---------- Note page ---------- */

.note, .home, .collection {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}
.collection { padding-top: 48px; gap: 36px; }

.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }

.work-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-end;
}
.work-row--thought { gap: 72px; align-items: flex-start; }
.work { flex: 999 1 560px; min-width: 0; margin: 0; box-shadow: var(--shadow); }

.mat--work { padding: 20px; }
.mat--work img { width: 100%; }
@media (min-width: 641px) {
  .mat--portrait img { width: 72%; margin: 0 auto; }
}
.lb-open { cursor: zoom-in; }

/* Quote on paper */
.panel--quote {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.6;
  color: var(--rule-strong);
}
.featured-quote {
  font-family: var(--serif);
  font-size: var(--size-quote);
  line-height: 1.22;
  color: var(--ink);
}
.quote-by { font-size: 15px; color: var(--secondary); }

/* Link card on paper */
.panel--link {
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}
.link-card__preview { flex: 1 1 220px; box-shadow: none; }
.link-card__preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.link-card__text { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.link-card__domain { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.link-card__title {
  font-family: var(--serif);
  font-size: var(--size-quote);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.link-card__desc { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--body); }

/* Video still in the mat; the whole still links out */
.screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--screen);
  color: var(--on-screen);
  text-decoration: none;
  overflow: hidden;
}
.screen__still { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.screen__over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.play { width: 76px; height: 76px; }
.play circle { fill: rgba(58, 54, 47, 0.35); stroke: var(--on-screen); stroke-width: 1.5; }
.play path { fill: var(--on-screen); }
.screen__watch {
  font-size: 14px;
  color: var(--linen);
  text-decoration: underline;
  text-decoration-color: rgba(232, 226, 214, 0.5);
  text-underline-offset: 4px;
}
.screen__watch .ext path { stroke: var(--on-screen); }
.screen:hover .screen__watch, .screen:focus-visible .screen__watch { text-decoration-color: var(--on-screen); }

/* Book: the cover standing on a shelf inside a paper case */
.panel--book {
  padding: 64px 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-cover {
  position: relative;
  width: min(300px, 70%);
  box-shadow: 0 18px 22px -16px rgba(60, 50, 30, 0.45);
  background: var(--fill);
}
.book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book-cover__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(34, 32, 28, 0.16), rgba(34, 32, 28, 0) 70%),
    linear-gradient(90deg, transparent 10px, rgba(255, 253, 248, 0.5) 11px, transparent 12px);
}
.shelf {
  align-self: stretch;
  height: 10px;
  margin: 0 -56px;
  border-top: 1px solid var(--rule);
  background: #F1ECE2;
}

/* Album: the copy that is owned, in a white mat */
.mat--album {
  padding: 48px;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.record { position: relative; width: min(420px, 74%); aspect-ratio: 1 / 1; margin-right: 16%; }
.record__disc, .record__grooves {
  position: absolute;
  top: 0; bottom: 0; left: 16%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.record__disc {
  background: radial-gradient(circle, var(--fill) 0 15%, var(--ink) 15.5% 16.5%, #2B2824 17% 100%);
  box-shadow: inset 0 0 0 1px var(--screen);
}
.record__grooves { background: repeating-radial-gradient(circle, rgba(255, 253, 248, 0.05) 0 1px, transparent 1px 4px); }
.record__sleeve {
  position: absolute;
  inset: 0;
  background: #DCD5C6;
  box-shadow: 0 18px 22px -16px rgba(60, 50, 30, 0.45);
}
.record__sleeve img, .digital img, .cd__insert img { width: 100%; height: 100%; object-fit: cover; }

.cd {
  width: min(380px, 70%);
  aspect-ratio: 1.08 / 1;
  display: flex;
  border: 1px solid #CFC6B4;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 40%), #EFEAE0;
  box-shadow: 0 18px 22px -16px rgba(60, 50, 30, 0.45);
}
.cd__hinge {
  flex: 0 0 7%;
  border-right: 1px solid #CFC6B4;
  background: repeating-linear-gradient(180deg, #E6E0D4 0 6px, #DCD5C6 6px 7px);
}
.cd__insert { flex: 1; margin: 4%; background: #DCD5C6; }

.tape {
  display: flex;
  align-items: stretch;
  height: min(400px, 60vw);
  box-shadow: 0 18px 22px -16px rgba(60, 50, 30, 0.45);
}
.tape__spine {
  width: 34px;
  background: #CFC6B4;
  border: 1px solid var(--rule-strong);
  border-right: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.tape__card { aspect-ratio: 0.64 / 1; background: #DCD5C6; border: 1px solid #CFC6B4; }
.tape__card img { width: 100%; height: 100%; object-fit: cover; }

.digital {
  width: min(400px, 72%);
  aspect-ratio: 1 / 1;
  background: #DCD5C6;
  box-shadow: 0 18px 22px -16px rgba(60, 50, 30, 0.45);
}

/* Thought: straight on the linen, no panel */
.thought { box-shadow: none; display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.thought__headline {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--size-note-title);
  line-height: 1.12;
}
.thought__body { max-width: 640px; }
.body-figure { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; max-width: none; }
.body-figure img { width: 100%; }

/* Image grid: 2, 3 or 4 across; one per row on phones */
.gallery { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.gallery__grid { display: grid; gap: 20px; }
.gallery--2 .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--4 .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery__crop { display: block; }
.gallery--square .gallery__crop { aspect-ratio: 1 / 1; }
.gallery--natural .gallery__crop img { height: auto; }
.gallery--natural .gallery__grid { align-items: start; }

/* ---------- Wall label ---------- */

.wall-label {
  flex: 1 1 280px;
  max-width: 320px;
  background: var(--mat);
  border: 1px solid var(--rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.wall-label__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--size-label-title);
  line-height: 1.15;
  color: var(--ink);
}
.wall-label__title--work { font-style: italic; font-size: calc(var(--size-label-title) + 2px); }
.wall-label__by { color: var(--body); }
.wall-label__source { color: var(--secondary); }
.wall-label__desc { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--body); }
.wall-label__rows,
.wall-label__credit,
.wall-label__list,
.wall-label__out,
.wall-label__outs,
.wall-label__full {
  border-top: 1px solid var(--rule-light);
  padding-top: 12px;
}
.wall-label__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}
.wall-label__rows dd { margin: 0; color: var(--ink); }
.wall-label__tags { display: flex; flex-wrap: wrap; gap: 0 10px; }
.wall-label__credit { font-size: 12px; color: var(--secondary); }
.wall-label__credit--plain { border-top: 0; padding-top: 0; }
.wall-label__list { display: flex; flex-direction: column; }
.wall-label__list a { padding: 6px 0; font-family: var(--serif); font-size: 16px; }
.wall-label__key { font-size: 12px; color: var(--muted); }
.wall-label__listen { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.wall-label__out, .wall-label__outs a, .wall-label__full, .wall-label__listen a {
  min-height: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.wall-label__outs { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Sections under the work ---------- */

.annotation, .aside-section { max-width: var(--measure); display: flex; flex-direction: column; gap: 14px; }
.annotation__text { font-family: var(--serif); font-size: var(--size-body); line-height: 1.65; color: var(--body); }
.annotation__text > p:first-of-type { font-size: var(--size-annotation); line-height: 1.45; color: var(--ink); }
.annotation__text p { margin: 0 0 26px; }
.annotation__text p:last-child { margin-bottom: 0; }
.aside-section { gap: 6px; }
.aside-section > .label { margin-bottom: 10px; }
.aside-section--ruled { gap: 12px; border-top: 1px solid var(--rule); padding-top: 24px; }
.aside-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.aside-section__note { margin-top: 8px; font-size: 13px; color: var(--secondary); }
.put-down { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--body); }
.clay-date { font-size: 13px; color: var(--clay); }
.legend { font-size: 12px; color: var(--muted); }
.dot { color: var(--clay); }
.dot--track { margin-left: 10px; font-size: 11px; vertical-align: 0.25em; }

.rows { margin: 0; padding: 0; list-style: none; }
.row {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
}
.row__key { flex: 0 0 56px; font-size: 14px; color: var(--clay); font-variant-numeric: tabular-nums; }
.row__key--muted { flex-basis: 36px; color: var(--muted); }
.row__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.row__text { font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink); }
.row__title { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.row__note { font-size: 14px; line-height: 1.55; color: var(--secondary); }
.row__kept { align-self: flex-start; font-size: 13px; color: var(--secondary); }
.row--link:hover .row__text { color: var(--clay); }
.tracks .row { padding: 12px 0; gap: 20px; }
.tracks__side { padding: 18px 0 4px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--secondary); }

/* Later, on thoughts */
.later { max-width: 760px; border-top: 1px solid var(--rule); padding-top: 32px; }
.later > .label { margin-bottom: 20px; }
.later__list { margin: 0; padding: 0; list-style: none; }
.later__entry { display: flex; gap: 28px; }
.later__mark {
  flex: 0 0 9px;
  position: relative;
  margin-top: 8px;
}
.later__mark::before {
  content: "";
  display: block;
  width: 9px; height: 9px;
  border: 1px solid var(--clay);
  border-radius: 50%;
}
.later__mark::after {
  content: "";
  position: absolute;
  left: 4px; top: 15px; bottom: -8px;
  width: 1px;
  background: var(--rule);
}
.later__entry--latest .later__mark::before { background: var(--clay); }
.later__entry--latest .later__mark::after { display: none; }
.later__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 36px; }
.later__entry--latest .later__body { padding-bottom: 0; }
.later__date { font-size: 13px; color: var(--muted); }
.later__text { font-family: var(--serif); font-size: var(--size-h4); line-height: 1.5; color: var(--ink); }

/* Where it was taken */
.where {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.where__map { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.where__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.where__frame { position: relative; border: 1px solid var(--rule); background: #EFEAE0; }
.where__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.where__credit {
  position: absolute;
  right: 0; bottom: 0;
  font-size: 11px;
  color: var(--body);
  background: rgba(251, 249, 244, 0.92);
  padding: 3px 8px;
}
.where__credit a { text-underline-offset: 2px; }
.caption--map { font-family: var(--sans); font-size: 13px; color: var(--secondary); }
.where__note { flex: 1 1 260px; max-width: 320px; }
.where__line { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--ink); }

/* ---------- Tiles: Hangs near, Collection, tag pages ---------- */

.hangs-near { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--rule); padding-top: 32px; }
.linked-from { font-size: 13px; line-height: 1.8; color: var(--muted); }
.linked-from__key { margin-right: 4px; }
.linked-from a { font-family: var(--serif); font-size: 16px; }
.linked-from__item { white-space: nowrap; }
.linked-from__num { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.tiles { display: grid; gap: 28px; }
/* auto-fill keeps empty tracks, so one or two near notes stay tile-sized instead of filling the row. */
.tiles--near { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tiles--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 32px; }

.tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.tile__work { position: relative; display: flex; overflow: hidden; }
.tiles--near .tile__work { aspect-ratio: 3 / 2; }
.tiles--grid .tile__work { aspect-ratio: 4 / 5; box-shadow: 0 14px 16px -14px rgba(60, 50, 30, 0.24); }
.tiles--grid .mat--tile { padding: 14px; }
.tile__crop, .tile__screen { flex: 1; display: flex; min-width: 0; background: var(--fill); }
.tile__screen { position: relative; background: var(--screen); align-items: center; justify-content: center; }
.tile__screen img { position: absolute; inset: 0; opacity: 0.8; }
.tile__screen .play { position: relative; width: 52px; height: 52px; }
.tile__text {
  align-items: center;
  padding: 24px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
}
.tiles--grid .tile__text { padding: 28px; font-size: 24px; }
.tile__text--thought { font-style: italic; }
.tile__text--link { font-size: 20px; color: var(--clay); }
.tiles--grid .tile__text--link { font-size: 18px; }
.tile__glyph { display: none; }
.tile__case {
  flex-direction: column;
  align-items: center;
  padding: 18px 0 0;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.tiles--grid .tile__case { padding-top: 28px; }
.tile__book {
  flex: 1;
  aspect-ratio: 2 / 3;
  max-width: 70%;
  min-height: 0;
  background: var(--fill);
  box-shadow: 0 12px 14px -10px rgba(60, 50, 30, 0.42);
  display: flex;
}
.tile__case .shelf { height: 8px; margin: 0; }
.tile__album-wrap { align-items: center; justify-content: center; padding: 18px; }
.tile__album { position: relative; height: 82%; aspect-ratio: 1 / 1; display: flex; }
.tiles--grid .tile__album { height: auto; width: 72%; }
.tile__album--record { margin-right: 14%; }
.tile__album .disc {
  position: absolute;
  top: 3%; bottom: 3%; left: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fill) 0 15%, var(--ink) 15.5% 16.5%, #2B2824 17% 100%);
}
.tile__sleeve { position: relative; flex: 1; display: flex; background: #DCD5C6; box-shadow: 0 12px 14px -10px rgba(60, 50, 30, 0.42); }
.tile__meta { display: flex; gap: 10px; align-items: baseline; }
.tiles--grid .tile__meta { flex-direction: column; gap: 4px; }
.tiles--grid .tile__num { display: none; }
.tile__line { display: none; }
.tiles--grid .tile__line { display: block; font-size: 12px; color: var(--muted); }
.tile__num { font-size: 12px; color: var(--muted); }
.tile__kind { display: none; }

.tile__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.tiles--grid .tile__title { font-size: 19px; }
.tile--book .tile__title, .tile--album .tile__title { font-style: italic; }
.tile:hover .tile__title { color: var(--clay); text-decoration-color: var(--clay); }

/* ---------- Browse ---------- */

.browse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-family: var(--serif);
  font-size: 18px;
}
.browse a { padding: 10px 0; }
.browse__prev { justify-self: start; }
.browse__random { justify-self: center; }
.browse__next { justify-self: end; text-align: right; }
.browse .accent-link { font-size: 18px; }

/* ---------- Home ---------- */

.is-home { min-height: 100vh; display: flex; flex-direction: column; }
.is-home main { flex: 1; }
.home { width: 100%; justify-content: center; gap: 40px; padding-top: 32px; padding-bottom: 48px; max-width: 1200px; }
.home__stage { display: flex; }
.home-card { flex: 1; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; }
.home-card__work { flex: 999 1 560px; min-width: 0; }
.mat--home { padding: 18px; box-shadow: var(--shadow); }
.mat--home img { width: 100%; }
.mat--album-home img { width: 100%; height: 100%; }
.mat--album-home { min-height: 0; }
.home-quote .quote-mark { display: none; }
.home-quote__text::before { content: "“"; }
.home-quote__text::after { content: "”"; }
@media (min-width: 641px) {
  .mat--home.mat--portrait img { width: 72%; margin: 0 auto; }
}
.mat--album-home { display: flex; justify-content: center; padding: 40px; }
.panel--book-home { box-shadow: var(--shadow); }
.home-card__thought {
  font-family: var(--serif);
  font-style: italic;
  font-size: 46px;
  line-height: 1.22;
}
.home-card__link {
  font-family: var(--serif);
  font-size: var(--size-note-title);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.wall-label--home { gap: 12px; }
.wall-label__line { display: none; }
.wall-label__title--home { font-size: 22px; line-height: 1.2; }
.home-card .wall-label__list { padding-top: 10px; }
.near-link { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 8px 0; text-decoration: none; }
.wall-label__list a.near-link { font-family: var(--sans); }
.near-link__num { font-size: 12px; color: var(--muted); }
.near-link__title {
  font-family: var(--serif);
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.near-link:hover .near-link__title { color: var(--clay); text-decoration-color: var(--clay); }
.wall-label__full { display: flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration: none; }
.home__another { display: flex; justify-content: center; }
.home__another a { display: inline-block; padding: 10px 0; }
.home-card [data-card-title]:focus { outline: none; }

/* ---------- Collection ---------- */

.page-title--large { font-size: max(var(--size-page-title), 64px); }
.collection__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filter__tabs {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.filter__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.filter__tab:hover { color: var(--clay); }
.filter__tabs input:checked + .filter__tab { color: var(--ink); border-bottom-color: var(--ink); }
.filter__tabs input:focus-visible + .filter__tab { outline: 1px solid var(--clay); outline-offset: 3px; }
.filter__select { display: none; position: relative; }
.filter__select {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.filter__select label { font-size: 13px; color: var(--muted); }
.filter__select-box { position: relative; display: flex; align-items: center; }
.filter__select select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 26px 10px 8px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  text-align: right;
  cursor: pointer;
}
.filter__select .chevron {
  position: absolute;
  right: 2px;
  width: 12px; height: 8px;
  pointer-events: none;
}
.filter__select .chevron path { fill: none; stroke: var(--clay); stroke-width: 1.3; }
.collection__count { font-size: 14px; color: var(--secondary); }
.count { display: none; }
.tag-description { max-width: var(--measure); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tag-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
.tag-list a { font-family: var(--serif); font-size: 22px; }
.tag-list__count { font-size: 12px; color: var(--muted); }
.tag-list__desc { flex-basis: 100%; font-size: 15px; color: var(--secondary); }
.random-list { font-family: var(--serif); font-size: 18px; line-height: 2; }

/* The filter, in CSS only: a radio tab on wide screens, the <select> on phones. */
.collection:has(#kind-all:checked) .count--all,
.collection:has(#kind-quote:checked) .count--quote,
.collection:has(#kind-image:checked) .count--image,
.collection:has(#kind-thought:checked) .count--thought,
.collection:has(#kind-link:checked) .count--link,
.collection:has(#kind-video:checked) .count--video,
.collection:has(#kind-book:checked) .count--book,
.collection:has(#kind-album:checked) .count--album { display: inline; }
.collection:has(#kind-quote:checked) .tile:not(.tile--quote),
.collection:has(#kind-image:checked) .tile:not(.tile--image),
.collection:has(#kind-thought:checked) .tile:not(.tile--thought),
.collection:has(#kind-link:checked) .tile:not(.tile--link),
.collection:has(#kind-video:checked) .tile:not(.tile--video),
.collection:has(#kind-book:checked) .tile:not(.tile--book),
.collection:has(#kind-album:checked) .tile:not(.tile--album) { display: none; }

@media (max-width: 640px) {
  .filter__tabs { display: none; }
  .filter__select { display: flex; }
  .count { display: none !important; }
  .collection:has(option[value="all"]:checked) .count--all,
  .collection:has(option[value="quote"]:checked) .count--quote,
  .collection:has(option[value="image"]:checked) .count--image,
  .collection:has(option[value="thought"]:checked) .count--thought,
  .collection:has(option[value="link"]:checked) .count--link,
  .collection:has(option[value="video"]:checked) .count--video,
  .collection:has(option[value="book"]:checked) .count--book,
  .collection:has(option[value="album"]:checked) .count--album { display: inline !important; }
  .collection .tile { display: flex !important; }
  .collection:has(option[value="quote"]:checked) .tile:not(.tile--quote),
  .collection:has(option[value="image"]:checked) .tile:not(.tile--image),
  .collection:has(option[value="thought"]:checked) .tile:not(.tile--thought),
  .collection:has(option[value="link"]:checked) .tile:not(.tile--link),
  .collection:has(option[value="video"]:checked) .tile:not(.tile--video),
  .collection:has(option[value="book"]:checked) .tile:not(.tile--book),
  .collection:has(option[value="album"]:checked) .tile:not(.tile--album) { display: none !important; }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .note, .home { padding: 4px var(--gutter) 48px; gap: 32px; }
  .collection { padding-top: 24px; gap: 24px; }
  .work-row, .work-row--thought { gap: 24px; }
  .work { flex-basis: 100%; }
  .wall-label { max-width: none; flex-basis: 100%; padding: 18px; font-size: 13px; gap: 8px; }
  .mat--work { padding: 12px; }
  .panel--quote { padding: 36px 24px; gap: 20px; }
  .quote-mark { font-size: 64px; }
  .panel--link { padding: 24px; gap: 20px; }
  .panel--book { padding: 36px 24px 0; }
  .shelf { margin: 0 -24px; }
  .mat--album { padding: 28px 16px; min-height: 0; }
  .play { width: 56px; height: 56px; }
  .label { font-size: 11px; }
  .gallery__grid,
  .gallery--2 .gallery__grid,
  .gallery--3 .gallery__grid,
  .gallery--4 .gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mat--body { padding: 10px; }
  .caption--inset { padding: 0 11px; }
  .later__text { font-size: 19px; }
  .where { gap: 16px; }

  /* Hangs near becomes a list with small thumbnails. */
  .hangs-near { gap: 4px; padding-top: 14px; }
  .tiles--near { display: flex; flex-direction: column; gap: 0; }
  .tiles--near .tile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule-light);
  }
  .tiles--near .tile__work { flex: 0 0 52px; height: 52px; aspect-ratio: auto; padding: 5px; box-shadow: none; }
  .tiles--near .tile__text { padding: 0; justify-content: center; }
  .tiles--near .tile__words { display: none; }
  .tiles--near .tile__glyph { display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--rule-strong); }
  .tiles--near .tile__text--thought { background: none; }
  .tiles--near .tile__text--thought .tile__glyph { font-size: 20px; color: var(--muted); }
  .tiles--near .tile__glyph svg { width: 18px; height: 18px; overflow: visible; }
  .tiles--near .tile__glyph svg path { fill: none; stroke: var(--clay); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .tiles--near .tile__case { padding: 4px 0 0; }
  .tiles--near .tile__album-wrap { padding: 5px; }
  .tiles--near .tile__album { height: 100%; margin-right: 0; }
  .tiles--near .tile__album .disc { display: none; }
  .tiles--near .tile__screen .play { width: 24px; height: 24px; }
  .tiles--near .tile__meta { flex-direction: column; gap: 0; }
  .tiles--near .tile__num { font-size: 11px; }
  .tiles--near .tile__kind { display: inline; }
  .tiles--near .tile__title { font-size: 17px; text-decoration: none; }

  /* Collection on a phone: two small tiles across, as on the Mobile board. */
  .page-title--large { font-size: 40px; }
  .collection__head { flex-wrap: nowrap; }
  .collection__count { font-size: 12px; }
  .count__word { display: none; }
  .tiles--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .tiles--grid .tile { gap: 8px; }
  .tiles--grid .tile__work { box-shadow: none; }
  .tiles--grid .mat--tile { padding: 8px; }
  .tiles--grid .tile__text { padding: 14px; font-size: 17px; }
  .tiles--grid .tile__text--link { font-size: 14px; }
  .tiles--grid .tile__case { padding-top: 14px; }
  .tiles--grid .tile__album-wrap { padding: 10px; }
  .tiles--grid .tile__screen .play { width: 36px; height: 36px; }
  .tiles--grid .tile__title { font-size: 15px; text-decoration: none; }
  .tiles--grid .tile__line { font-size: 11px; margin-top: -4px; }
  .browse { grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 16px; }
  .browse > span:empty { display: none; }
  .browse__prev, .browse__random, .browse__next { justify-self: start; text-align: left; }
  .rows--passages .row { flex-direction: column; gap: 4px; }
  .row__key { flex-basis: auto; }
  .panel--link { padding: 20px; }
  .link-card__title { font-size: 28px; }
  .linked-from a { font-size: 15px; }
  /* Home on a phone: the compact label. */
  .wall-label--home { padding: 18px; gap: 6px; font-size: 13px; }
  .wall-label--home .wall-label__rows { display: none; }
  .wall-label--home .wall-label__line { display: block; border-top: 1px solid var(--rule-light); padding-top: 8px; margin-top: 2px; font-size: 12px; color: var(--muted); }
  .wall-label--home .wall-label__list { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; border-top: 0; padding-top: 0; }
  .wall-label--home .near-link { min-height: 0; padding: 0; }
  .wall-label--home .near-link ~ .near-link { display: none; }
  .wall-label--home .near-link__title { font-size: 13px; font-family: var(--sans); text-decoration: none; color: var(--ink); }
  .wall-label--home .wall-label__key { font-size: 12px; }
  .wall-label--home .wall-label__full { min-height: 0; padding-top: 8px; margin-top: 4px; font-size: 16px; }
  .home-card { gap: 28px; }
  .home-card__thought { font-size: 32px; }
  .home-quote {
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 14px 16px -14px rgba(60, 50, 30, 0.26);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .home-quote .quote-mark { display: block; font-size: 56px; }
  .home-quote__text::before, .home-quote__text::after { content: none; }
  .home-quote .featured-quote { font-size: 30px; }
  .home-card__link { font-size: 36px; }
  .mat--home { padding: 12px; }
}

/* ---------- Lightbox ---------- */

.has-lightbox { overflow: hidden; }
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lightbox);
  color: #EDE8DF;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: var(--lightbox); }
.lightbox button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.lightbox svg path { fill: none; stroke: #EDE8DF; stroke-width: 1.2; }
.lightbox :focus-visible { outline: 1px solid #EDE8DF; outline-offset: 2px; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; }
.lightbox__count { font-size: 13px; color: #A8A29A; font-variant-numeric: tabular-nums; }
.lightbox__hint { font-size: 12px; color: #8C867D; }
.lightbox__close { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lightbox__close svg { width: 14px; height: 14px; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; }
.lightbox__arrow { flex: 0 0 64px; height: 120px; display: flex; align-items: center; justify-content: center; }
.lightbox__arrow svg { width: 18px; height: 36px; }
.lightbox__frame { flex: 1; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 18px 112px 24px; }
.lightbox__words { display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.lightbox__caption { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; }
.lightbox__credit { font-size: 12px; color: #A8A29A; }
.lightbox__thumbs { display: flex; gap: 8px; }
.lightbox__thumb { width: 44px; height: 44px; padding: 0; opacity: 0.55; border: 1px solid transparent !important; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: #EDE8DF !important; }
.lightbox__phone-nav { display: none; }
.lightbox--single .lightbox__arrow,
.lightbox--single .lightbox__thumbs,
.lightbox--single .lightbox__count { visibility: hidden; }

@media (max-width: 640px) {
  .lightbox__top { padding: 14px 20px; }
  .lightbox__hint, .lightbox__close { font-size: 0; }
  .lightbox__close svg { width: 16px; height: 16px; }
  .lightbox__stage { padding: 0 12px; gap: 0; }
  .lightbox__arrow { display: none; }
  .lightbox__foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 20px; }
  .lightbox__caption { font-size: 17px; }
  .lightbox__credit { font-size: 11px; }
  .lightbox__thumbs { display: none; }
  .lightbox__phone-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 -12px -8px; }
  .lightbox__step { min-width: 56px !important; min-height: 56px !important; display: flex; align-items: center; justify-content: center; }
  .lightbox__step svg { width: 12px; height: 24px; }
  .lightbox__step svg path { stroke-width: 1.5; }
  .lightbox__swipe { font-size: 11px; color: #8C867D; text-align: center; }
}
