/* storyteller.lk. A dark room with the artwork lit: ink surfaces, paper-coloured type, one pillar-box red and a
   little gilt. The page follows the reader's system theme. In the light theme the reading surfaces turn to paper,
   while the "scenes" (masthead, hero, reader, the news band and the footer) stay dark, so the artwork always sits
   against ink. Fonts are the comic's own OFL fonts, served from /fonts as WOFF2 (tools/site.py subsets them). */

@font-face { font-family: "EB Garamond"; src: url("/fonts/ebgaramond-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-017F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2193; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/ebgaramond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0020-007E, U+00A0-017F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2193; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/ebgaramond-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-017F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2193; }
@font-face { font-family: "Noto Sans Sinhala"; src: url("/fonts/notosanssinhala-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Sinhala"; src: url("/fonts/notosanssinhala-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Abhaya Libre"; src: url("/fonts/abhayalibre-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* Georgia cut down to EB Garamond's width, so the text barely moves when the web font arrives. */
@font-face { font-family: "Garamond Fallback"; src: local("Georgia"); size-adjust: 87%; ascent-override: 104%; descent-override: 30%; }

/* ---- tokens ---- */

:root, .scene {
  --bg: #12100e;
  --surface: #1b1815;
  --surface-2: #26221d;
  --field: #0e0c0b;
  --text: #f5edda;
  --muted: #b9ad97;
  --line: rgba(245, 237, 218, .14);
  --line-strong: #8a8072;
  --accent: #b3261e;
  --accent-hover: #c9342b;
  --on-accent: #fff;
  --accent-text: #f0857c;
  --gilt: #d2a94a;
  --danger: #ff9d94;
  --danger-bg: rgba(179, 38, 30, .18);
  --whatsapp: #1b7d58;
  --focus: #e3bd5f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-2: 0 0 0 1px rgba(245, 237, 218, .08), 0 28px 70px rgba(0, 0, 0, .6);
  --veil: rgba(18, 16, 14, .84);
}
:root {
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2.5rem;
  --s-7: 4rem;
  --radius: 8px;
  --radius-lg: 14px;
  --gutter: 16px;
  --max: 1160px;
  --narrow: 720px;
  --body: "EB Garamond", "Garamond Fallback", Georgia, "Times New Roman", serif;
  --display: "EB Garamond", "Garamond Fallback", Georgia, serif;
  --display-weight: 600;
  --leading: 1.55;
  --tight: 1.08;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6efdf;
    --surface: #fdf9ef;
    --surface-2: #ece1c8;
    --field: #fff;
    --text: #1d1a17;
    --muted: #544b41;
    --line: rgba(29, 26, 23, .16);
    --line-strong: #7a6f60;
    --accent-text: #8a1b15;
    --gilt: #7a5a12;
    --danger: #8a1b15;
    --danger-bg: #fbe9e6;
    --focus: #1f5fbf;
    --shadow-1: 0 1px 2px rgba(29, 26, 23, .1), 0 6px 18px rgba(29, 26, 23, .1);
    --shadow-2: 0 0 0 1px rgba(29, 26, 23, .08), 0 24px 60px rgba(29, 26, 23, .28);
    color-scheme: light;
  }
}
.scene { color: var(--text); background-color: var(--bg); color-scheme: dark; }
.lang-si {
  --body: "Noto Sans Sinhala", "Iskoola Pota", system-ui, sans-serif;
  --display: "Abhaya Libre", "Noto Sans Sinhala", "Iskoola Pota", serif;
  --display-weight: 800;
  --leading: 1.8;
  --tight: 1.32;
}

/* ---- base ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: var(--leading);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.lang-si { font-size: 1.0625rem; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: var(--tight); margin: 0 0 var(--s-3); letter-spacing: -.012em; text-wrap: balance; }
.lang-si h1, .lang-si h2, .lang-si h3 { letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3, .h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.lead { font-size: 1.14em; color: var(--text); }
.small { font-size: .88em; color: var(--muted); }
.center { text-align: center; }
.meta { color: var(--muted); }
.credit { font-style: italic; color: var(--muted); margin-bottom: var(--s-5); }
.lang-si .credit { font-style: normal; }
.kicker {
  margin: 0 0 var(--s-3);
  color: var(--gilt);
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lang-si .kicker { letter-spacing: .02em; font-size: .9em; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: var(--s-3) var(--s-4); border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }

/* ---- masthead ---- */

.masthead { position: sticky; top: 0; z-index: 40; background-color: var(--veil); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.masthead__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-2) var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "brand lang menu" "nav nav nav";
  align-items: center;
  column-gap: var(--s-2);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; justify-self: start; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}
.brand__name { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; }
.lang-si .brand__name { letter-spacing: .14em; }

.lang-switch {
  grid-area: lang;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: "Noto Sans Sinhala", "EB Garamond", system-ui, sans-serif;
  font-size: .95rem;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--text); color: var(--text); }
.menu-button {
  grid-area: menu;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.menu-button .icon { width: 1.35rem; height: 1.35rem; }
.menu-button .icon--close, .masthead.is-open .menu-button .icon--menu { display: none; }
.masthead.is-open .menu-button .icon--close { display: block; }

.nav { grid-area: nav; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius); color: var(--muted); font-size: 1rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gilt); border-radius: 0; }
.nav a.nav__cta { margin-left: var(--s-2); padding: 0 var(--s-4); background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: 999px; box-shadow: none; }
.nav a.nav__cta:hover { background: var(--accent-hover); color: var(--on-accent); }

/* With scripts on, small screens fold the links behind the menu button. Without, they stay in a row below. */
@media (max-width: 899px) {
  .js .menu-button { display: inline-flex; }
  .js .nav { display: none; }
  .js .masthead.is-open .nav { display: block; padding: var(--s-2) 0 var(--s-4); }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav li + li { border-top: 1px solid var(--line); }
  .js .nav a { width: 100%; min-height: 52px; font-size: 1.15rem; color: var(--text); border-radius: 0; }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gilt); }
  .js .nav li:last-child { border-top: 0; padding-top: var(--s-3); }
  .js .nav a.nav__cta { margin: 0; justify-content: center; border-radius: 999px; }
}
@media (min-width: 900px) {
  .masthead__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav lang"; column-gap: var(--s-5); padding-block: var(--s-3); }
  .nav ul { justify-content: flex-end; }
}

/* ---- buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:active { transform: scale(.98); }
.button--red { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(179, 38, 30, .35); }
.button--red:hover { background: var(--accent-hover); color: var(--on-accent); }
.button--ink, .button--quiet { border-color: var(--line-strong); }
.button--ink:hover, .button--quiet:hover { border-color: var(--text); color: var(--text); background: var(--line); }
.button--whatsapp { background: var(--whatsapp); color: #fff; }
.button--whatsapp:hover { color: #fff; filter: brightness(1.1); }
.button--big { min-height: 54px; padding: 0 1.9rem; font-size: 1.08em; }
.button[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-3); }

/* ---- bands ---- */

.band { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.band--alt { background: var(--surface); border-block: 1px solid var(--line); }
.band--feature { background: radial-gradient(80% 120% at 50% 0%, rgba(179, 38, 30, .3), transparent 70%), var(--bg); border-block: 1px solid var(--line); }
.band--tight { padding-block: var(--s-6); }
.band__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band__inner--narrow { max-width: var(--narrow); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.band__head h2 { margin: 0; }
.band__note { margin: var(--s-2) 0 0; color: var(--muted); font-size: .92em; }
.band__more { color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; }
.band__more:hover { text-decoration: underline; }

/* ---- hero (home and album) ---- */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__backdrop { position: absolute; inset: -12%; z-index: -2; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(48px) saturate(1.25); opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 16, 14, .55), rgba(18, 16, 14, .8) 55%, var(--bg)); }
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-areas: "head" "cta" "art" "body";
  gap: var(--s-5);
}
.hero__head { grid-area: head; }
.hero__head .credit { margin-bottom: 0; }
.hero__body { grid-area: body; }
.hero__body > :last-child { margin-bottom: 0; }
.hero__cta { grid-area: cta; }
.hero__cta .small { margin: 0; }
.hero__art { grid-area: art; justify-self: center; width: min(100%, 440px); }
.hero__title { font-size: clamp(2.2rem, 6vw, 4.1rem); margin-bottom: var(--s-4); }
.lang-si .hero__title { font-size: clamp(1.95rem, 4.9vw, 3.3rem); }
@media (max-width: 559px) {
  .hero__cta .button { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "head art" "body art" "cta art" ". art";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(2rem, 6vw, 5rem);
    row-gap: var(--s-5);
    align-items: start;
  }
  .hero__art { justify-self: end; align-self: center; }
}

.cover { margin: 0; }
.cover__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); }
.cover__placeholder { aspect-ratio: 210 / 297; display: grid; place-content: center; gap: var(--s-3); padding: var(--s-5); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); text-align: center; box-shadow: var(--shadow-2); }
.cover__placeholder-kicker { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.cover__placeholder-title { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.8rem; line-height: 1.15; }

.stories { margin: 0 0 var(--s-4); border-top: 1px solid var(--line); }
.stories li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.stories__title { font-weight: 600; }
.tag { display: inline-block; padding: .1rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .82em; white-space: nowrap; }
.tag--drawn { border-color: var(--gilt); color: var(--gilt); }

/* ---- the sample filmstrip ---- */

.strip { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x proximity; padding: var(--s-1) var(--gutter) var(--s-4); margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; counter-reset: page; }
.strip__item { flex: 0 0 clamp(190px, 24vw, 264px); scroll-snap-align: start; counter-increment: page; }
.strip__item a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-1); transition: transform .18s ease, box-shadow .18s ease; }
.strip__item a::after { content: counter(page); position: absolute; left: var(--s-2); bottom: var(--s-2); min-width: 1.9rem; padding: 0 .5rem; border-radius: 999px; background: rgba(18, 16, 14, .82); color: #f5edda; font-family: "EB Garamond", Georgia, serif; font-size: .95rem; line-height: 1.9rem; text-align: center; }
.strip__item a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.strip__item img { width: 100%; }
.strip--small { gap: var(--s-3); justify-content: safe center; }
.strip--small .strip__item { flex-basis: 84px; }
.strip--small .strip__item a::after { content: none; }
.strip--small .strip__item a { opacity: .6; }
.strip--small .strip__item a:hover, .strip--small .is-current a { opacity: 1; }
.strip--small .is-current a { outline: 2px solid var(--gilt); outline-offset: 2px; }

/* ---- the colour panel ---- */

.band--colour { border-block: 1px solid var(--line); }
.feature { margin: 0 0 var(--s-5); }
.feature img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); }
.feature figcaption { max-width: 62ch; margin-top: var(--s-4); }
.feature blockquote { margin: 0; padding-left: var(--s-4); border-left: 2px solid var(--gilt); color: var(--text); font-style: italic; }
.lang-si .feature blockquote { font-style: normal; }

/* ---- steps and editions ---- */

.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.steps__item { position: relative; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.steps__n { display: block; margin-bottom: var(--s-2); color: var(--gilt); font-family: "EB Garamond", Georgia, serif; font-size: 2.6rem; font-weight: 400; line-height: 1; }
.steps__item p { margin: 0; color: var(--muted); }
.editions { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.edition { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.band:not(.band--alt) .edition { background: var(--surface); }
.edition h3, .edition p { margin: 0; }
.edition p { color: var(--muted); }
.edition__inks { display: flex; gap: 6px; margin-bottom: var(--s-2); }
.edition__inks span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
.edition__inks span:nth-child(1) { background: #b3261e; }
.edition__inks span:nth-child(2) { background: #d2a94a; }
.edition__inks span:nth-child(3) { background: #3c6e8f; }
.edition__inks span:nth-child(4) { background: #1d1a17; }
.edition .edition__price { margin-top: auto; padding-top: var(--s-3); color: var(--accent-text); font-size: .92em; font-weight: 600; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .editions { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---- forms ---- */

.panel { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.band--alt .panel { background: var(--bg); }
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 560px) { .form__row--two { grid-template-columns: 2fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend, .field__label { padding: 0; font-weight: 600; }
.field__hint { margin: 0; color: var(--muted); font-size: .88em; }
.field__static { margin: 0; color: var(--muted); }
.field__error { display: flex; gap: .4rem; margin: 0; color: var(--danger); font-size: .92em; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%;
  min-height: 50px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
}
input::placeholder { color: var(--muted); opacity: .7; }
input:hover, select:hover { border-color: var(--text); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--text); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
input[type="radio"], input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin: 0; flex: none; accent-color: var(--accent); }
.field--choices { gap: var(--s-2); }
.field--choices legend { margin-bottom: var(--s-2); }
.choices { display: grid; gap: var(--s-2); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem var(--s-3); min-height: 54px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--text); }
.choice:has(input:checked) { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); background: var(--danger-bg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { grid-row: span 2; }
.choice--inline input { grid-row: auto; }
.choice__name { font-weight: 600; }
.choice__meta { grid-column: 2; color: var(--muted); font-size: .88em; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { margin-top: .25em; }
.form__note { margin: 0; color: var(--muted); font-size: .88em; }
.form__error { margin: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--danger); border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.form__closed { padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.form__submit { display: grid; gap: var(--s-3); justify-items: start; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 559px) { .form__submit .button { width: 100%; } }

/* ---- the reader ---- */

.reader { max-width: 900px; margin: 0 auto; padding: var(--s-4) var(--gutter) var(--s-7); }
.reader__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 var(--s-4); margin-bottom: var(--s-3); }
.reader__back { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--muted); font-size: .95em; text-decoration: none; }
.reader__back:hover { color: var(--text); }
.reader__title { margin: 0; font-size: clamp(1.15rem, 3vw, 1.5rem); }
.reader__position { margin: 0; color: var(--muted); font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader__progress { grid-column: 1 / -1; display: flex; gap: 5px; margin-top: var(--s-3); }
.reader__progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); opacity: .5; }
.reader__progress .is-read { background: var(--gilt); opacity: 1; }
.reader__page { position: relative; margin: 0 calc(var(--gutter) * -1); touch-action: pan-y pinch-zoom; }
.reader__zoom { display: block; cursor: zoom-in; text-decoration: none; }
.reader__page img { width: 100%; background: #fff; box-shadow: var(--shadow-2); }
/* Under the picture, never on it: the art and the band at its foot stay clear. */
.reader__zoom-hint { display: none; width: max-content; align-items: center; gap: var(--s-2); min-height: 44px; margin: var(--s-1) var(--gutter) 0 auto; color: var(--muted); font-size: .9rem; font-weight: 600; }
.reader__zoom:hover .reader__zoom-hint { color: var(--text); }
.js .reader__zoom-hint { display: flex; }
@media (min-width: 600px) { .reader__zoom-hint { margin-right: 0; } }
@media (min-width: 600px) {
  .reader__page { margin-inline: 0; }
  .reader__page img { border-radius: var(--radius); }
}
.reader__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.reader__nav .button:last-child { grid-column: 2; }
.reader__hint { display: none; margin: var(--s-3) 0 0; text-align: center; }
@media (hover: none) and (pointer: coarse) { .js .reader__hint { display: block; } }
.reader__end { margin-top: var(--s-6); padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(90% 140% at 50% 0%, rgba(179, 38, 30, .32), transparent 70%), var(--surface); text-align: center; }
.reader__end p:last-child { margin: 0; }
.reader .share { margin-top: var(--s-6); }
.reader .strip { margin-top: var(--s-5); }

.zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0a09; color: #f5edda; }
.zoom::backdrop { background: #0b0a09; }
.zoom__pan { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; cursor: zoom-in; }
.zoom__pan img { width: 100%; max-width: none; margin: 0 auto; background: #fff; }
.zoom--2 .zoom__pan img { width: 180%; }
.zoom--3 .zoom__pan img { width: 280%; }
.zoom--3 .zoom__pan { cursor: zoom-out; }
@media (min-width: 900px) {
  .zoom__pan img { width: auto; height: 100%; }
  .zoom--2 .zoom__pan img { width: 100%; height: auto; }
  .zoom--3 .zoom__pan img { width: 170%; height: auto; }
}
.zoom__bar { position: fixed; top: var(--s-3); right: var(--s-3); z-index: 2; display: flex; gap: var(--s-2); }
.zoom__bar button { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(245, 237, 218, .4); border-radius: 50%; background: rgba(18, 16, 14, .86); color: #f5edda; cursor: pointer; }
.zoom__bar button:hover { border-color: #f5edda; }
.zoom__bar .icon { width: 1.4rem; height: 1.4rem; }

/* ---- share and follow ---- */

.share__heading { margin: 0 0 var(--s-3); color: var(--gilt); font-size: .82em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lang-si .share__heading { letter-spacing: .02em; font-size: .9em; }
.share__list, .follow { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.center .share__list, .center .follow { justify-content: center; }
.share__link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 46px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .95em; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.share__link:hover { border-color: var(--text); background: var(--line); color: var(--text); }
.share__link--whatsapp { border-color: transparent; background: var(--whatsapp); color: #fff; }
.share__link--whatsapp:hover { border-color: transparent; background: var(--whatsapp); color: #fff; filter: brightness(1.1); }
.share__status { min-height: 1.5em; margin: var(--s-2) 0 0; color: var(--muted); font-size: .9em; }
.follow { margin: var(--s-4) 0 0; }

/* ---- the reservation-done page ---- */

.done { text-align: center; }
.done__card { margin: var(--s-5) 0; padding: var(--s-5); border: 1px solid var(--gilt); border-radius: var(--radius-lg); background: var(--surface); }
.band--alt .done__card { background: var(--bg); }
.done__ref-label { margin: 0 0 var(--s-1); color: var(--muted); font-size: .92em; }
.done__ref { margin: 0 0 var(--s-4); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(1.7rem, 7vw, 2.5rem); font-weight: 700; letter-spacing: .08em; }
.done__status { min-height: 1.5em; margin: var(--s-2) 0 0; color: var(--muted); font-size: .9em; }
.done .share { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }

/* ---- documents ---- */

.doc h1 { margin-bottom: var(--s-4); }
.doc section { margin-top: var(--s-6); }
.doc h2 { font-size: 1.5rem; }
.doc p { max-width: 62ch; }
.doc a { color: var(--accent-text); }

/* ---- the Reserve bar on small screens ---- */

.reservebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background-color: var(--veil); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.reservebar.is-shown { transform: none; visibility: visible; }
.reservebar__text { flex: 1; min-width: 0; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.reservebar .button { flex: none; box-shadow: none; }
@media (min-width: 900px) { .reservebar { display: none; } }
@media (max-width: 899px) { body:has(.reservebar) .colophon { padding-bottom: 6.5rem; } }

/* ---- footer ---- */

.colophon { border-top: 1px solid var(--line); padding: var(--s-6) 0; }
.colophon__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: var(--s-4); }
.colophon__brand { display: flex; align-items: center; gap: .6rem; margin: 0; font-family: var(--display); font-weight: var(--display-weight); letter-spacing: .2em; text-transform: uppercase; }
.colophon__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.colophon__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.colophon__links a:hover { color: var(--text); }
.colophon__small { margin: 0; color: var(--muted); font-size: .85em; }
.colophon .follow { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
