/* ============================================================
   CAPTURED ISLE
   Fine art landscape photography, Peter Nutkins
   Shared stylesheet. Tokens, layout primitives, and components.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:      #F4F1EA;   /* primary background */
  --paper-2:    #EFEBE2;   /* alternate band background */
  --ink:        #211C15;   /* near-black, primary text + dark sections */
  --slate:      #5E6A72;   /* muted blue-grey accent */
  --mute:       #9A958A;   /* light label grey */
  --body:       #3F3A31;   /* body copy on paper */
  --body-2:     #544F45;   /* secondary body copy */
  --body-3:     #6A655B;   /* tertiary / captions */
  --ink-soft:   #2C261D;   /* large serif lead paragraphs */
  --rule:       rgba(33, 28, 21, 0.10);
  --rule-2:     rgba(33, 28, 21, 0.13);
  --rule-strong:rgba(33, 28, 21, 0.18);
  --paper-trans:rgba(244, 241, 234, 0.88);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --maxw-wide: 1280px;
  --maxw-read: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Series marks (colour follows currentColor) ---------- */
/* Detailed mask definitions live in series-marks.css */

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow--slate { color: var(--slate); }

.rule-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rule-label span:first-child,
.rule-label span:last-child { width: 34px; height: 1px; background: var(--slate); }
.rule-label .eyebrow { color: var(--slate); white-space: nowrap; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--paper-trans);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}
.brand .series-mark { --series-mark-size: 32px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span { display: block; width: 26px; height: 1.4px; background: var(--ink); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--paper);
  display: none;
  flex-direction: column;
  animation: ciFade .25s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu__bar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu__close {
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ink); font-weight: 300; padding: 4px 8px;
}
.mobile-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 clamp(28px, 9vw, 56px);
}
.mobile-menu nav a {
  text-decoration: none;
  padding: 11px 0;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.02em;
  color: var(--slate);
  border-bottom: 1px solid rgba(33, 28, 21, 0.08);
}
.mobile-menu nav a.is-active { color: var(--ink); }

@media (max-width: 1040px) {
  .masthead .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 5vw, 52px); }
.wrap--read { max-width: var(--maxw-read); margin: 0 auto; padding: 0 clamp(24px, 6vw, 32px); }
.section { padding: clamp(56px, 9vh, 104px) 0; }
.section--top-rule { border-top: 1px solid var(--rule); }
.band-2 { background: var(--paper-2); border-top: 1px solid var(--rule); }
.fade-in { animation: ciFade .4s ease; }

@keyframes ciFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ciRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Type ---------- */
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.lead-italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--slate);
}
.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--body);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
  color: var(--ink);
}
.page-head { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 7vh, 76px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { margin: 0 0 24px; }
.page-head p { font-size: 14.5px; line-height: 1.85; color: var(--body-2); margin: 0; text-wrap: pretty; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  padding: 15px 34px;
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease;
}
.btn:hover { opacity: 0.85; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-underline--slate { color: var(--slate); border-bottom-color: transparent; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: clamp(540px, 88vh, 940px);
  overflow: hidden;
  background: var(--ink);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,12,0.34) 0%, rgba(20,17,12,0.04) 32%, rgba(20,17,12,0.12) 64%, rgba(20,17,12,0.62) 100%);
}
.hero__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 72px) clamp(48px, 8vh, 88px);
}
.hero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero__kicker span:first-child { width: 34px; height: 1px; background: rgba(244,241,234,0.7); }
.hero__kicker .eyebrow { color: rgba(244,241,234,0.82); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.18; letter-spacing: 0.01em;
  color: var(--paper); margin: 0; max-width: 760px; text-wrap: balance;
  animation: ciRise .9s ease both;
}

/* page hero (shorter, centred) */
.page-hero {
  position: relative; height: clamp(440px, 64vh, 720px);
  overflow: hidden; background: var(--ink);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,12,0.2), rgba(20,17,12,0.55)); }
.page-hero__body {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 24px;
}
.page-hero__body .eyebrow { color: rgba(244,241,234,0.82); margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 48px);
  color: var(--paper); margin: 0; max-width: 620px; text-wrap: balance;
}

/* ---------- Latest work ---------- */
.latest__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.latest__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.04em; margin: 0; }
.feature {
  display: block; text-decoration: none; color: inherit;
}
.feature__figure { position: relative; overflow: hidden; background: var(--ink); }
.feature__figure img { width: 100%; height: clamp(280px, 52vh, 620px); object-fit: cover; transition: transform .9s ease; }
.feature:hover .feature__figure img { transform: scale(1.02); }
.badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(244,241,234,0.92); color: var(--slate);
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 13px;
}
.feature__body { margin-top: 22px; max-width: 680px; }
.feature__body h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 12px; }
.feature__body p { font-size: 14px; line-height: 1.8; color: var(--body-2); margin: 0 0 16px; }

/* ---------- Series grid (home) ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.series-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); text-decoration: none; color: inherit;
}
.series-card__media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--ink); }
.series-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.series-card:hover .series-card__media img { transform: scale(1.03); }
.series-card__mark { position: absolute; top: 13px; left: 13px; color: var(--paper); }
.series-card__mark .series-mark { --series-mark-size: 34px; }
.series-card__status {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 9px 14px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(0deg, rgba(20,17,12,0.78), transparent);
}
.series-card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.series-card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 10px; }
.series-card__body p { font-size: 12.5px; line-height: 1.75; color: var(--body-3); margin: 0 0 16px; flex: 1; text-wrap: pretty; }
.series-card__link { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }

/* ---------- Series index (rows) ---------- */
.series-rows { display: flex; flex-direction: column; }
.series-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  border-top: 1px solid var(--rule-2);
  padding: clamp(26px, 4vh, 40px) 0;
  text-decoration: none; color: inherit;
}
.series-rows .series-row:last-of-type { border-bottom: 1px solid var(--rule-2); }
.series-row__media { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--ink); }
.series-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.series-row:hover .series-row__media img { transform: scale(1.03); }
.series-row__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.series-row__head .series-mark { --series-mark-size: 38px; color: var(--ink); }
.series-row h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 14px; }
.series-row p { font-size: 14px; line-height: 1.8; color: var(--body-2); margin: 0 0 20px; max-width: 560px; text-wrap: pretty; }
.status { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.status--current { color: var(--slate); }
.status--soon { color: var(--mute); }
@media (max-width: 720px) { .series-row { grid-template-columns: 1fr; } }

/* ---------- Coming-soon series page ---------- */
.series-intro { max-width: var(--maxw-read); margin: 0 auto; padding: clamp(48px,8vh,96px) clamp(24px,6vw,32px); text-align: center; }
.series-intro .series-mark { --series-mark-size: 64px; color: var(--ink); margin: 0 auto 28px; }
.series-intro h1, .series-intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.4vw,50px); margin: 18px 0 0; color: var(--ink); }
.series-intro__sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2vw,22px); color: var(--slate); margin: 14px 0 0; }
.series-intro__lede { font-family: var(--serif); font-size: clamp(20px,2.4vw,25px); line-height:1.55; color: var(--ink-soft); margin: 34px 0 0; text-wrap: pretty; }
.series-intro .prose { margin-top: 28px; text-align: left; }

/* ---------- About ---------- */
.about-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.about-figs figure { margin: 0; }
.about-figs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--ink); }
.about-figs figcaption { font-size: 11.5px; line-height: 1.6; color: var(--body-3); margin-top: 10px; }
.about-figs figcaption em { color: var(--ink); font-style: italic; }
.hr { border: none; border-top: 1px solid var(--rule-2); margin: clamp(40px,6vh,64px) 0; }

/* ---------- Collect ---------- */
.editions { border: 1px solid var(--rule-strong); }
.editions__head { padding: 18px 24px; border-bottom: 1px solid var(--rule); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--body-3); }
.editions__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.edition { padding: 26px 24px; border-right: 1px solid var(--rule); }
.edition:last-child { border-right: none; }
.edition__name { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.edition__spec { font-size: 12px; color: var(--body-3); line-height: 1.7; }
.edition__price { margin-top: 14px; font-size: 13px; color: var(--ink); }
.note { font-size: 12px; line-height: 1.7; color: var(--body-3); font-style: italic; }
.collect-cta {
  text-align: center; padding: clamp(28px,4vh,40px) 0;
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
}
.collect-cta .lead-italic { margin: 0 auto 22px; max-width: 520px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--body-3); }
.field input, .field textarea {
  font-size: 15px; color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid rgba(33,28,21,0.25);
  padding: 10px 0; outline: none; letter-spacing: 0; text-transform: none;
}
.field textarea { border: 1px solid rgba(33,28,21,0.25); padding: 12px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 20px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 6vw, 80px);
}
.contact-email {
  font-family: var(--serif); font-size: 21px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(33,28,21,0.3); padding-bottom: 2px;
}
.legal { font-size: 11.5px; line-height: 1.9; color: var(--body-3); }
.legal strong { color: var(--body); font-weight: 500; }
.thanks-card { border: 1px solid var(--rule-strong); padding: clamp(32px,5vw,48px); text-align: center; }
.thanks-card .series-mark { --series-mark-size: 44px; color: var(--slate); margin: 0 auto 20px; }
.thanks-card h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 12px; }
.thanks-card p { font-size: 13.5px; line-height: 1.8; color: var(--body-2); margin: 0; }

/* ---------- Document pages (privacy, terms) ---------- */
.doc { max-width: var(--maxw-read); margin: 0 auto; padding: clamp(48px,8vh,96px) clamp(24px,6vw,32px) clamp(56px,9vh,104px); }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.4vw,46px); margin: 0 0 10px; color: var(--ink); }
.doc__intro { font-size: 15px; line-height: 1.85; color: var(--body-2); margin: 0 0 8px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 40px 0 12px; color: var(--ink); }
.doc p { font-size: 14.5px; line-height: 1.85; color: var(--body); margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; color: var(--body); font-size: 14.5px; line-height: 1.85; }
.doc a { color: var(--slate); }
.doc strong { color: var(--ink); font-weight: 500; }

/* Centred utility page (thanks) */
.utility { min-height: calc(100vh - 66px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(80px,16vh,180px) clamp(24px,6vw,40px); }
.utility .series-mark { --series-mark-size: 60px; color: var(--ink); margin-bottom: 30px; }
.utility h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.4vw,48px); margin: 0 0 18px; color: var(--ink); }
.utility p { font-size: 15px; line-height: 1.85; color: var(--body); margin: 0 0 14px; max-width: 460px; }

/* ---------- Quiet Notes band ---------- */
.quiet {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.quiet__inner { max-width: 680px; margin: 0 auto; padding: clamp(48px,8vh,92px) clamp(24px,6vw,32px); text-align: center; }
.quiet h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px,3.2vw,36px); margin: 0 0 16px; color: var(--ink); }
.quiet p { font-size: 13.5px; line-height: 1.8; color: var(--body-2); margin: 0 auto 30px; max-width: 460px; text-wrap: pretty; }
.quiet form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.quiet input {
  flex: 1; min-width: 200px; font-size: 14px; color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid rgba(33,28,21,0.3); padding: 12px 2px; outline: none;
}
.quiet button { background: var(--ink); color: var(--paper); border: none; cursor: pointer; padding: 13px 26px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.quiet__thanks { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--slate); }
.is-hidden { display: none !important; }

/* ---------- Sentinels viewer ---------- */
.viewer { display: flex; flex-direction: column; min-height: calc(100vh - 66px); }
.viewer__bar {
  max-width: var(--maxw-wide); width: 100%; margin: 0 auto;
  padding: clamp(18px,3vh,30px) clamp(20px,4vw,48px) 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.viewer__chap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.viewer__chap .series-mark { --series-mark-size: 30px; color: var(--ink); }
.viewer__chap-name { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); }
.viewer__chap-sub { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--slate); line-height: 1.3; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__bar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.viewer__readchap { background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); padding: 8px 16px; transition: background .2s ease, color .2s ease; }
.viewer__readchap:hover { background: transparent; color: var(--ink); }
.viewer__pos { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; color: var(--ink); }
.viewer__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(10px,2vh,26px) clamp(56px,8vw,120px); min-height: 0; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 18px; color: var(--ink); opacity: 0.55; transition: opacity .2s ease; }
.viewer__nav:hover { opacity: 1; }
.viewer__nav--prev { left: clamp(8px,2vw,32px); }
.viewer__nav--next { right: clamp(8px,2vw,32px); }
.viewer__fig { position: relative; margin: 0; max-width: 100%; max-height: 72vh; display: flex; flex-direction: column; align-items: center; transition: opacity .34s ease; }
.viewer__fig img { max-width: 100%; max-height: 72vh; object-fit: contain; box-shadow: 0 22px 60px -28px rgba(20,17,12,0.6); }
/* Transparent shield: a right-click / long-press / "save image as" lands on this div, not the photograph */
.viewer__fig::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* Discourage casual copying of every photograph on the site */
img { -webkit-user-drag: none; -khtml-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer__cap { max-width: 680px; margin: 0 auto; padding: 6px clamp(20px,5vw,40px) 4px; text-align: center; transition: opacity .34s ease; }
.viewer__cap h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px,2.6vw,27px); margin: 0 0 8px; color: var(--ink); }
.viewer__cap-place { font-size: 12px; letter-spacing: 0.04em; color: var(--slate); margin-bottom: 14px; }
.viewer__cap-text { font-family: var(--serif); font-size: clamp(15px,1.7vw,18px); line-height: 1.7; color: var(--body); margin: 0 auto 16px; max-width: 560px; text-wrap: pretty; }
.viewer__cap-meta { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--body-3); }
.viewer__cap-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #C9C3B6; }
.viewer__strip { max-width: var(--maxw-wide); width: 100%; margin: 0 auto; padding: 14px clamp(20px,4vw,48px) 6px; display: flex; gap: 8px; overflow-x: auto; justify-content: center; }
.viewer__thumb { flex: none; width: 74px; height: 54px; padding: 0; border: none; cursor: pointer; background: var(--ink); overflow: hidden; opacity: 0.42; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .25s ease; }
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb.is-active { opacity: 1; outline-color: var(--ink); }
.viewer__controls { border-top: 1px solid var(--rule); margin-top: 10px; }
.viewer__controls-inner { max-width: var(--maxw-wide); margin: 0 auto; padding: 14px clamp(20px,4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.viewer__toggles { display: flex; align-items: center; gap: 10px; }
.viewer__toggle { background: transparent; border: 1px solid var(--rule-strong); cursor: pointer; padding: 9px 16px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.viewer__toggle.is-on { background: var(--ink); color: var(--paper); }
.viewer__backlink { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--body-3); text-decoration: none; }

/* Modal (chapter intro) */
.modal { position: fixed; inset: 0; background: rgba(20,17,12,0.5); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: clamp(16px,4vw,40px); animation: ciFade .3s ease; }
.modal.is-hidden { display: none; }
.modal__panel { background: var(--paper); max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: clamp(34px,5vw,56px); position: relative; box-shadow: 0 30px 80px -30px rgba(20,17,12,0.7); animation: ciRise .35s ease both; }
.modal__close { position: absolute; top: 18px; right: 18px; background: none; border: none; cursor: pointer; color: #7A766C; padding: 6px; }
.modal__head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.modal__head .series-mark { --series-mark-size: 34px; color: var(--ink); }
.modal__panel h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px,4vw,40px); margin: 0 0 8px; color: var(--ink); }
.modal__sub { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--slate); margin-bottom: 26px; }
.modal__body p { font-size: 15px; line-height: 1.9; color: var(--body); margin: 0 0 18px; text-wrap: pretty; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,7vh,80px) clamp(24px,5vw,52px) clamp(34px,5vh,52px); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(32px,5vw,64px); align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; color: var(--paper); }
.footer__brand .series-mark { --series-mark-size: 36px; }
.footer__brand span { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer p.footer__blurb { font-size: 12.5px; line-height: 1.8; color: rgba(244,241,234,0.62); margin: 0; max-width: 300px; }
.footer__label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,241,234,0.5); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { text-decoration: none; font-size: 12.5px; letter-spacing: 0.04em; color: rgba(244,241,234,0.82); }
.footer__links a:hover { color: var(--paper); }
.footer__email { font-size: 12.5px; color: rgba(244,241,234,0.82); text-decoration: none; display: block; margin-bottom: 14px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: rgba(244,241,234,0.7); }
.footer__social a:hover { color: var(--paper); }
.footer__base {
  margin-top: clamp(36px,5vh,56px); padding-top: 24px; border-top: 1px solid rgba(244,241,234,0.13);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: 0.04em; color: rgba(244,241,234,0.45);
}
.footer__base a { color: rgba(244,241,234,0.45); text-decoration: none; }
.footer__base a:hover { color: rgba(244,241,234,0.75); }
.footer__base-links { display: flex; gap: 20px; }
