/* "Map and grimoire" (the owner's pick, 2026-12-03): the game's own pixel language. Headings in the game's UI pixel
   font (built from engine/render/src/font5.rs), reading text in Alegreya, vellum and iron-gall ink, frames stepped
   like the game's pixel frames (a dark outline with its corner pixels cut, a light and a dark bevel), art drawn in
   pixels. */

@font-face { font-family: "Skyroot Pixel"; src: url("fonts/SkyrootPixel.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Alegreya"; src: url("fonts/Alegreya.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/Alegreya-Italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --vellum: #ecdfc1;
  --vellum-2: #e2d2ae;
  --vellum-3: #d5c197;
  --ink: #2b2017;        /* iron-gall ink */
  --ink-2: #57452f;      /* 7:1 on vellum */
  --moss: #46702e;
  --lapis: #2b5682;
  --gold: #a26e18;
  --ember: #c4501f;
  --frame: #3a2a1c;
  --light: #faf3df;
  --shade: #b9a47a;
  --leather: #34261d;
  --leather-2: #463327;
  --on-leather: #f3e8cf;
  --on-leather-2: #d8c7a3;
  --px: 4px;             /* one pixel of frame art */

  --pixel: "Skyroot Pixel", ui-monospace, monospace;
  --text: "Alegreya", Georgia, serif;
  --gutter: clamp(18px, 5vw, 64px);
  --wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: var(--ink); font: 400 1.25rem/1.62 var(--text); font-variant-numeric: oldstyle-nums; overflow-x: hidden;
  background-color: var(--vellum);
  /* vellum, flecked in 4 px texels like the game's own block faces */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Cg fill='%23806640' fill-opacity='.07'%3E%3Crect x='4' y='0' width='4' height='4'/%3E%3Crect x='20' y='8' width='4' height='4'/%3E%3Crect x='12' y='16' width='4' height='4'/%3E%3Crect x='28' y='20' width='4' height='4'/%3E%3Crect x='0' y='28' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.18'%3E%3Crect x='16' y='0' width='4' height='4'/%3E%3Crect x='8' y='24' width='4' height='4'/%3E%3Crect x='24' y='28' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lapis); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 4px solid var(--lapis); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--light); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* the pixel font only at whole-pixel sizes: 1 glyph pixel = font-size / 10 */
.px1 { font: 120px/1 var(--pixel); }
.px2 { font: 50px/1.1 var(--pixel); }
.px3 { font: 30px/1.15 var(--pixel); }
.px4 { font: 20px/1.2 var(--pixel); }
@media (max-width: 1000px) { .px1 { font-size: 90px; } }
@media (max-width: 640px) { .px1 { font-size: 60px; } .px2 { font-size: 40px; } .px3 { font-size: 30px; } }
.shadow { text-shadow: 0.1em 0.1em 0 var(--frame); }

/* ---------- the game's pixel frame ---------- */
.pf {
  --c: var(--px);
  position: relative; border: var(--px) solid var(--frame); background: var(--light);
  box-shadow: inset var(--px) var(--px) 0 var(--light), inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--shade);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, calc(100% - var(--c)) var(--c), 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, var(--c) calc(100% - var(--c)), 0 calc(100% - var(--c)), 0 var(--c), var(--c) var(--c));
}
.pf.dark { background: var(--leather); box-shadow: inset var(--px) var(--px) 0 var(--leather-2), inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 #20160f; color: var(--on-leather); }
.pf.gold { border-color: var(--gold); }
.plate { margin: 0; padding: var(--px); background: var(--frame); }
.plate.pf { box-shadow: none; }
.plate img { width: 100%; height: auto; aspect-ratio: 1280 / 714; object-fit: cover; image-rendering: auto; }
.plate figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px 6px; background: var(--frame); color: var(--on-leather-2); font: italic 400 1.05rem/1.35 var(--text); }
.plate figcaption .tag { font: 20px/1.3 var(--pixel); color: #e8c27a; white-space: nowrap; font-style: normal; }
@media (max-width: 640px) { .plate figcaption { flex-direction: column; gap: 4px; } }

.pbtn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; font: 20px/1 var(--pixel); color: var(--ink); text-decoration: none; }
.pbtn:hover { background: #fffaea; color: var(--ink); }
.pbtn:active { box-shadow: inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 var(--light), inset var(--px) var(--px) 0 var(--shade); }
.badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; margin: 0; }
.badge .t { font: 20px/1 var(--pixel); display: block; }
.badge .s { font: italic 400 1.05rem/1.3 var(--text); color: var(--on-leather-2); display: block; margin-top: 6px; }
.ico { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.ico.big { width: 48px; height: 48px; }

/* ---------- header ---------- */
.top { border-bottom: var(--px) solid var(--frame); background: var(--vellum-2); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.top .home { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 30px/1 var(--pixel); }
.top nav { display: flex; gap: clamp(14px, 3vw, 30px); font: 20px/1 var(--pixel); }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.top nav .short { display: none; }
@media (max-width: 480px) { .top nav .long { display: none; } .top nav .short { display: inline; } }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -4px var(--gold); }
@media (max-width: 560px) { .top .home span { display: none; } .top nav { gap: 16px; } }

/* ---------- hero: drawn in pixels ---------- */
.hero { position: relative; border-bottom: var(--px) solid var(--frame); }
.hero .scene { position: relative; height: clamp(360px, 58vw, 780px); overflow: hidden; background: #2f3a6b; }
.hero .px-hero { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero h1 { position: absolute; left: 0; right: 0; top: clamp(24px, 6vw, 80px); text-align: center; color: #fbf1d6; }
.hero .drawn { position: absolute; right: 12px; bottom: 10px; font: 20px/1 var(--pixel); color: #8a6a63; }
.plaque { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 860px); margin: clamp(-120px, -9vw, -60px) auto 0; padding: clamp(24px, 4vw, 40px); text-align: center; }
.plaque .tagline { font: italic 500 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.3 var(--text); margin: 0 auto 22px; max-width: 26ch; text-wrap: balance; }
.plaque .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-tail { height: clamp(40px, 6vw, 80px); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 130px) 0; }
.sec.alt { background-color: var(--vellum-2); border-block: var(--px) solid var(--frame); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.sec-head .ttl { display: flex; align-items: center; gap: 16px; }
.sec-head p { font-size: 1.3rem; color: var(--ink-2); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; font: 20px/1 var(--pixel); }

.intro { text-align: center; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.intro p { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.55; max-width: 40rem; margin: 0 auto; }

.spread { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.spread + .spread { margin-top: clamp(56px, 8vw, 110px); }
@media (min-width: 900px) { .spread { grid-template-columns: 7fr 5fr; } .spread.flip { grid-template-columns: 5fr 7fr; } .spread.flip .plate { order: 2; } }
.spread h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.spread p { color: var(--ink); }

/* runes */
.rune-panel { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .rune-panel { grid-template-columns: 4fr 7fr; } }
.rune-panel .glyph { display: grid; place-items: center; }
.rune-panel .glyph svg { width: clamp(130px, 20vw, 220px); height: auto; color: #ff9a5a; filter: drop-shadow(0 0 16px rgb(255 120 60 / 0.65)); }
.rune-panel .glyph svg path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: ink 2.4s steps(24) 0.3s forwards; }
.rune-panel .glyph svg circle { opacity: 0; animation: dot 0.3s steps(2) 2.1s forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes dot { to { opacity: 1; } }
.rune-panel h2 { color: #f6dfae; margin-bottom: 16px; }
.rune-panel p { color: var(--on-leather-2); }
.rune-panel .said { font: italic 500 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.15 var(--text); color: #ffb27e; display: block; margin: 20px 0 6px; }
.rune-panel .means { color: var(--on-leather); }

/* trailer */
.tv { padding: var(--px); background: var(--frame); }
.tv .screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(#2a3366 0%, #4a4f8a 34%, #9a7ea8 56%, #e8a98f 72%, #f8d9a8 84%); }
.tv .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .c-islet { fill: #6c6d9b; } .scene .c-far { fill: #e7b9a8; } .scene .c-mid { fill: #f5d7c4; } .scene .c-near { fill: #fff3e8; }
.tv .island { position: absolute; left: 50%; top: 6%; width: min(42%, 500px); transform: translateX(-50%); animation: bob 4s steps(4) infinite alternate; }
@keyframes bob { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -2%); } }
.island .i-grass { fill: #79b04f; } .island .i-soil { fill: #7b5838; } .island .i-rock { fill: #5a5679; } .island .i-lit { fill: #7a7493; }
.island .i-strata { fill: #4a4668; } .island .i-roots { fill: #6b4f33; } .island .i-fall { fill: #d7eef6; } .island .i-trees { fill: #2f6a35; }
.tv .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; padding: 12px 12px 8px; color: var(--on-leather); }
.tv .cap b { font: 30px/1 var(--pixel); font-weight: 400; color: #f6dfae; }
.tv .cap span { font: italic 400 1.1rem/1.35 var(--text); color: var(--on-leather-2); }
.ledger { margin-top: 28px; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); counter-reset: n; }
.ledger li { counter-increment: n; display: grid; grid-template-columns: 2.4em 1fr; padding: 10px 0; border-top: 2px dashed var(--shade); font-size: 1.12rem; line-height: 1.4; }
.ledger li::before { content: counter(n); font: 20px/1.3 var(--pixel); color: var(--gold); }

/* alpha 1 */
.pack { display: grid; gap: 22px; }
@media (min-width: 700px) { .pack { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pack { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.pack li { padding: 20px 20px 18px; }
.pack h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pack p { margin: 0; font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.maybe { margin-top: 26px; padding: 18px 22px; border: 3px dashed var(--shade); font-size: 1.15rem; }
.maybe b { font-weight: 700; }

.founder { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(48px, 7vw, 90px); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 4fr 7fr; } }
.seal { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 30px; }
.seal .n { font: 120px/1 var(--pixel); color: #f6dfae; text-shadow: 0.1em 0.1em 0 #20160f; display: block; }
.seal .l { font: 20px/1.3 var(--pixel); color: var(--on-leather-2); display: block; margin-top: 18px; }
@media (max-width: 640px) { .seal .n { font-size: 90px; } }
.founder h3 { margin-bottom: 14px; }
.specs { margin: 22px 0 0; display: grid; }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 10px 0; border-top: 2px dashed var(--shade); font-size: 1.12rem; }
.specs dt { font: 20px/1.6 var(--pixel); color: var(--ink-2); } .specs dd { margin: 0; }
.not { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); }

.slots { margin-top: clamp(56px, 8vw, 100px); }
.slot-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 22px; }
.slot { margin: 0; padding: var(--px); background: var(--frame); }
.slot .empty { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.slot .empty svg { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: crispEdges; }
.slot figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 10px 6px; color: var(--on-leather); font: italic 400 1.05rem/1.3 var(--text); }
.slot figcaption .tag { font: 20px/1.3 var(--pixel); color: #e8c27a; font-style: normal; white-space: nowrap; }

/* the map */
/* the map sits in the sky it floats in: a soft blue with pixel clouds drifting by */
.mapbox { position: relative; padding: clamp(14px, 3vw, 28px); width: 100%; max-width: 980px; margin-inline: auto;
  background-color: #a9cde3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' shape-rendering='crispEdges'%3E%3Cg fill='%23fff' fill-opacity='.55'%3E%3Cpath d='M20 20h40v8H20zM28 12h20v8H28zM150 70h56v8h-56zM162 62h28v8h-28zM90 104h30v6H90z'/%3E%3C/g%3E%3C/svg%3E"); }
.mapbox > .wrapmap { position: relative; }
.mapbox .px-map { width: 100%; height: auto; }
/* the pin's point is halfway down its 16-pixel icon */
.pin { --ps: 48px; position: absolute; transform: translate(-50%, calc(-100% + var(--ps) / 2)); display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.pin .lbl { font: 20px/1 var(--pixel); background: var(--light); border: 4px solid var(--frame); padding: 6px 9px 4px; white-space: nowrap; box-shadow: 4px 4px 0 rgb(58 42 28 / 0.35); }
.pin:hover .lbl { background: #fff; }
.pin svg { width: var(--ps); height: var(--ps); }
/* a label under its pin, where pins sit close together */
.pin.below { transform: translate(-50%, calc(var(--ps) / -2)); }
.pin.below .lbl { order: 2; }
@media (max-width: 640px) { .pin { --ps: 32px; } .pin .lbl { padding: 4px 6px 2px; border-width: 3px; } }
.stages { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stages li { padding: 20px 22px; }
.stages h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.stages .t { font: italic 500 1.15rem/1.3 var(--text); color: var(--gold); display: block; margin-bottom: 10px; }
.stages p { margin: 0; font-size: 1.12rem; line-height: 1.5; }

/* ---------- footer ---------- */
.foot { border-top: var(--px) solid var(--frame); background: var(--leather); color: var(--on-leather-2); padding: 40px 0 52px; font-size: 1.05rem; }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 2fr 1fr; align-items: end; } }
.foot p { margin: 0; max-width: 62ch; }
.foot .home { font: 30px/1 var(--pixel); color: #f6dfae; text-decoration: none; display: inline-block; margin-bottom: 12px; }

/* ---------- roadmap ---------- */
.r-top { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
@media (min-width: 980px) { .r-top { grid-template-columns: 5fr 7fr; } }
.r-top p { font-size: 1.3rem; color: var(--ink-2); margin-top: 18px; }
.chapter { padding: clamp(56px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); scroll-margin-top: 20px; }
.chapter + .chapter { border-top: 0; }
.ch-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); }
.ch-head .ttl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-head .when { font: italic 500 1.5rem/1.2 var(--text); color: var(--gold); }
.ch-head p { font-size: 1.3rem; color: var(--ink-2); margin: 0; max-width: 40rem; }
.trail { height: 40px; background-image: radial-gradient(circle, var(--frame) 0 3px, transparent 3.5px); background-size: 28px 40px; background-position: center; background-repeat: repeat-x; width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; image-rendering: pixelated; }
.sec-head.flat { margin-bottom: 0; }
.more { margin-top: 28px; }
.tv { margin: 0; }
.rune-panel .means { margin: 0; }
.row-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.r-title { font-size: 80px; }
@media (max-width: 1000px) { .r-title { font-size: 60px; } }
@media (max-width: 640px) { .r-title { font-size: 40px; } }
.narrow { max-width: 46rem; }
.narrow h2 { margin-bottom: 14px; }
.narrow .last { margin: 0; }

/* a theme: its heading, then each item with its picture beside it (sides alternating), then the items without one */
.theme { padding: clamp(28px, 4vw, 44px) 0 8px; border-top: 3px dashed var(--shade); }
.theme-h { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3vw, 30px); }
.feat { display: grid; gap: 20px clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(30px, 5vw, 56px); }
@media (min-width: 900px) {
  .feat { grid-template-columns: 3fr 2fr; }
  .feat.flip { grid-template-columns: 2fr 3fr; }
  .feat.flip .plate { order: 2; }
}
.feat-text h4 { font: 700 clamp(1.5rem, 1.2rem + 0.9vw, 2rem)/1.2 var(--text); margin: 0 0 10px; }
.feat-text p { font-size: 1.22rem; line-height: 1.6; margin: 0; max-width: 34rem; }
.also { display: grid; gap: 14px 40px; margin: 4px 0 clamp(24px, 4vw, 40px); }
@media (min-width: 720px) { .also { grid-template-columns: 1fr 1fr; } }
.also li { position: relative; padding-left: 22px; font-size: 1.15rem; line-height: 1.5; }
.also li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--moss); box-shadow: 2px 2px 0 var(--frame); }
.also li b { font-weight: 700; }
.also li.maybe-item { color: var(--ink-2); font-style: italic; }
.also li.maybe-item::before { background: transparent; border: 2px solid var(--moss); width: 9px; height: 9px; box-shadow: none; }
#after .also li::before { background: var(--lapis); }

/* a zoomable framed picture */
.plate button, .g-item button { all: unset; display: block; cursor: zoom-in; }
.plate button:focus-visible, .g-item button:focus-visible { outline: 4px solid var(--lapis); outline-offset: 2px; }

/* ---------- gallery ---------- */
.g-jump { position: sticky; top: 0; z-index: 4; background: var(--vellum-2); border-block: var(--px) solid var(--frame); }
.g-jump ul { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; display: flex; gap: 8px 28px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; }
.g-jump a { font: 20px/1 var(--pixel); color: var(--ink); text-decoration: none; white-space: nowrap; }
.g-jump a span { color: var(--gold); }
.g-group { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: 60px; }
.g-title { font: 50px/1.1 var(--pixel); margin-bottom: 26px; }
@media (max-width: 640px) { .g-title { font-size: 40px; } }
.g-head { padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 50px); }
.g-head p { font-size: 1.3rem; color: var(--ink-2); max-width: 42rem; margin-top: 18px; }
.g-end { height: 100px; }
/* larger pictures: two across on a desktop, one on a phone */
.g-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.g-item { margin: 0; padding: var(--px); background: var(--frame); height: 100%; display: flex; flex-direction: column; }
.g-item img { width: 100%; height: auto; aspect-ratio: 1280 / 714; object-fit: cover; }
.g-item figcaption { flex: 1; padding: 12px 12px 8px; color: var(--on-leather); font: italic 400 1.12rem/1.4 var(--text); }
.g-item figcaption .tag { display: block; margin-top: 6px; font: 20px/1 var(--pixel); color: #e8c27a; font-style: normal; }

/* ---------- the picture viewer ---------- */
dialog.zoom { padding: 0; border: 0; background: transparent; width: min(100vw - 24px, 1500px); max-width: none; max-height: none; overflow: visible; }
dialog.zoom::backdrop { background: rgb(26 19 13 / 0.92); }
dialog.zoom figure { margin: 0; padding: var(--px); background: var(--frame); }
dialog.zoom img { width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; background: #20160f; }
dialog.zoom figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; padding: 12px 12px 8px; color: var(--on-leather); font: italic 400 1.15rem/1.4 var(--text); }
dialog.zoom .z-meta { display: inline-flex; gap: 16px; align-items: baseline; font-style: normal; }
dialog.zoom .tag { font: 20px/1 var(--pixel); color: #e8c27a; }
dialog.zoom .z-count { font: 20px/1 var(--pixel); color: var(--on-leather-2); }
dialog.zoom .z-close { position: absolute; top: 14px; right: 14px; font: 20px/1 var(--pixel); background: var(--light); color: var(--ink); border: 4px solid var(--frame); padding: 8px 12px 6px; cursor: pointer; }
dialog.zoom .z-nav { position: absolute; top: calc(50% - 46px); width: 56px; height: 56px; display: grid; place-items: center; background: var(--light); border: 4px solid var(--frame); cursor: pointer; color: var(--ink); padding: 0; box-shadow: inset -4px -4px 0 var(--shade); }
dialog.zoom .z-nav:hover { background: #fff; }
dialog.zoom .z-nav svg { width: 32px; height: 32px; fill: currentColor; shape-rendering: crispEdges; }
dialog.zoom .z-prev { left: 14px; }
dialog.zoom .z-next { right: 14px; }
@media (max-width: 640px) {
  dialog.zoom { width: 100vw; }
  dialog.zoom .z-nav { width: 44px; height: 44px; top: auto; bottom: -60px; }
  dialog.zoom .z-prev { left: 8px; }
  dialog.zoom .z-next { right: 8px; }
  dialog.zoom .z-close { top: -52px; right: 8px; }
}
