/* PORTRETOVY — print-like stylesheet
   Paper, ink, hairlines. Photos come first; type frames them. */

/* ---------- fonts (self-hosted, latin + latin-ext for Czech) ---------- */
@font-face { font-family: "Big Shoulders"; font-weight: 700; font-display: swap;
  src: url(/fonts/big-shoulders-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders"; font-weight: 700; font-display: swap;
  src: url(/fonts/big-shoulders-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders"; font-weight: 900; font-display: swap;
  src: url(/fonts/big-shoulders-latin-ext-900-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders"; font-weight: 900; font-display: swap;
  src: url(/fonts/big-shoulders-latin-900-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-prime-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-prime-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  /* newsprint paper + ink, tinted toward the same warm hue (85) */
  --paper: oklch(0.955 0.008 85);
  --paper-deep: oklch(0.915 0.010 85);
  --ink: oklch(0.19 0.006 85);
  --ink-soft: oklch(0.43 0.008 85);
  --rule: oklch(0.19 0.006 85 / 0.85);
  --loupe: oklch(0.14 0.004 85);
  --loupe-ink: oklch(0.9 0.006 85);

  --f-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --f-text: "Source Serif", Georgia, serif;
  --f-type: "Courier Prime", "Courier New", monospace;

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;

  --edge: clamp(16px, 2.6vw, 44px);
  --gutter: clamp(12px, 1.6vw, 28px);
  --page-gap: clamp(64px, 12vh, 160px);

  --t-small: 0.8125rem;
  --t-label: 1rem;
  --t-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --t-lede: clamp(1.3125rem, 1rem + 1.1vw, 2rem);
  --t-title: clamp(2.75rem, 1.2rem + 6vw, 7rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  /* fine paper grain (SVG noise, very low opacity) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .22 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -100px; background: var(--ink); color: var(--paper); padding: var(--space-xs) var(--space-sm); z-index: 10; font-family: var(--f-type); font-size: var(--t-small); }
.skip:focus { top: var(--space-xs); }

/* photo placeholder: paper-toned plate in the right proportion, fades in when loaded */
picture img { background: var(--paper-deep); }
.js picture img { opacity: 0; transition: opacity 0.9s var(--ease-out); }
.js picture img.is-loaded { opacity: 1; }

.fit { white-space: nowrap; line-height: 0.8; width: max-content; max-width: none; }

/* ---------- top bar (GERM-like hairline grid) ---------- */
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
  padding: var(--space-sm) var(--edge);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bar a { text-decoration: none; }
.bar__name { font-weight: 900; letter-spacing: 0.04em; justify-self: start; }
.bar__issue { margin: 0; font-family: var(--f-type); font-weight: 400; font-size: var(--t-small); letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); }
.bar__nav { justify-self: end; display: flex; gap: var(--space-lg); }
.bar__nav a { padding-block: var(--space-2xs); border-bottom: 1px solid transparent; }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- cover (home) ----------
   One screen = one magazine cover: masthead across the full width,
   cover lines on the left, the photo as large as the window height allows. */
.cover {
  container-type: inline-size;
  padding: var(--space-sm) var(--edge) var(--space-2xl);
}
.cover__mast {
  /* "PETR ZAKRZEWSKI" is 6.94× wider than its font-size → fill the page width exactly */
  font-size: calc(100cqi / 7);
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding-top: 0.04em;
}
.cover__line {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: var(--space-xl);
  margin-top: var(--space-md);
  padding-block: var(--space-xs);
  border-block: 1px solid var(--rule);
  font-family: var(--f-type);
  font-size: var(--t-small);
}
.cover__line-mid { text-align: center; }
/* the masthead already carries the name, so the top bar does not repeat it on the cover */
.is-cover .bar__name { visibility: hidden; }
.cover__line { align-items: center; }
/* the photographer's name: the loudest thing after the masthead */
.cover__byline, .titlepage__byline { font-family: var(--f-type); }
.cover__byline strong, .titlepage__byline strong {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.25rem, 0.8rem + 1.4vw, 2.125rem); letter-spacing: 0.04em; line-height: 1;
  margin-left: 0.4em; vertical-align: -0.12em;
}
.cover__body {
  --above: calc(100cqi / 7 * 0.82 + 186px);
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: var(--gutter);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}
.cover__photo {
  grid-column: 2; grid-row: 1;
  display: block;
  width: min(calc(100cqi - 18rem - var(--gutter)), calc((100svh - var(--above)) * 1.5));
  min-width: 28rem;
}
.cover__photo img { width: 100%; }

/* cover slideshow: frames stacked in one 3:2 plate, cross-fading like a slide projector */
.reel { display: grid; aspect-ratio: 3 / 2; background: var(--paper-deep); cursor: pointer; }
.reel__frame { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s var(--ease-out); }
.reel__frame.is-active { opacity: 1; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__meta {
  display: flex; align-items: center; gap: var(--space-md);
  margin-top: var(--space-sm);
  font-family: var(--f-type); font-size: var(--t-small);
  visibility: hidden;
}
.js .reel__meta { visibility: visible; }
.reel__meta[hidden] { display: none; }
.reel__count { font-variant-numeric: tabular-nums; }
.reel__bar { position: relative; flex: 1; height: 1px; background: oklch(0.19 0.006 85 / 0.18); overflow: hidden; }
.reel__bar span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.reel__bar.is-running span { animation: reel-progress 5s linear forwards; }
@keyframes reel-progress { to { transform: scaleX(1); } }
.cover__lines {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-lg);
}
.cover__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 1rem + 4.4vw, 6.5rem);
  line-height: 1.04; /* when the title wraps, accents on line 2 (É, Ř) need room below line 1 */
  text-transform: uppercase;
  text-wrap: balance;
  margin-top: -0.04em;
}
.cover__title a { text-decoration: none; }
.cover__dek { font-size: var(--t-lede); line-height: 1.2; max-width: 20ch; text-wrap: pretty; }
.cover__chapters { font-family: var(--f-type); font-size: var(--t-small); line-height: 1.8; }
.cover__chapters a { text-decoration: none; }
.cover__chapters a:hover { text-decoration: underline; }
.cover__chapters span { display: inline-block; min-width: 4.5ch; }
.cover__open {
  margin-top: auto;
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: var(--space-2xs);
}
@media (max-width: 900px), (max-aspect-ratio: 5/4) {
  .cover__body { grid-template-columns: 1fr; }
  .cover__photo, .cover__lines { grid-column: 1; grid-row: auto; }
  .cover__photo { width: 100%; min-width: 0; }
  .cover__open { margin-top: var(--space-sm); }
}

/* ---------- issue: title page ---------- */
.page { padding-inline: var(--edge); }
/* cover photo opens the series: whole frame visible on the first screen */
/* cover photo + title = one block of equal width (main.js sizes it so both fit the first screen;
   the fallback assumes the title is ~0.22× as tall as it is wide) */
.titlepage__head { width: min(100%, (100svh - 7rem) / 0.89); margin-inline: auto; }
.titlepage__cover { width: 100%; }
.titlepage__head .titlepage__title { margin-inline: 0; } /* edges line up with the photo */
.titlepage__cover img { width: 100%; cursor: zoom-in; }
.titlepage { padding-top: var(--space-lg); padding-bottom: var(--space-3xl); } /* same 64px below the lede as above it */
.titlepage__kicker {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  font-family: var(--f-type); font-size: var(--t-small);
  padding-bottom: var(--space-xs); border-bottom: 1px solid var(--rule);
}
.titlepage__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 18vw; margin-inline: -0.02em;
  /* tight 0.8 leading only covers capitals; Czech accents (É, Ř, Š) rise above it */
  padding-top: 0.24em;
}
.titlepage__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-2xl) var(--gutter); align-items: start;
  margin-top: var(--space-2xl); padding-top: var(--space-3xl); border-top: 1px solid var(--rule);
}
.facts { font-family: var(--f-type); font-size: var(--t-small); line-height: 1.5; display: grid; gap: var(--space-sm); align-content: start; }
.facts dt { color: var(--ink-soft); }
.lede { grid-column: 1 / 7; font-size: var(--t-lede); line-height: 1.32; text-wrap: pretty; hanging-punctuation: first; }
/* lede and contents: two equal halves, same top and same bottom */
.titlepage .lede { padding-right: var(--space-2xl); }
.toc { grid-column: 7 / 13; align-self: stretch; display: flex; flex-direction: column; }
.toc ol { flex: 1; display: grid; grid-auto-rows: 1fr; }
.toc li { display: flex; align-items: center; }
.toc li a { width: 100%; }
.toc__head { font-family: var(--f-type); font-weight: 400; font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--space-sm); }
.toc li { border-top: 1px solid var(--rule); }
.toc li:last-child { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 3.5ch auto 1fr auto; gap: var(--space-sm); align-items: baseline;
  padding-block: var(--space-sm); text-decoration: none;
}
.toc__num { font-family: var(--f-type); font-size: var(--t-small); }
.toc__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); text-transform: uppercase; line-height: 1; }
.toc__leader { border-bottom: 1px dotted var(--ink-soft); transform: translateY(-0.3em); }
.toc__page { font-family: var(--f-type); font-size: var(--t-small); }
.toc a:hover .toc__title { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- chapter opener ---------- */
.opener {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: end;
  /* keeps the diagonal: numeral top-left, title block lower right (but not a whole empty screen) */
  min-height: min(58svh, 38vw);
  padding-block: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border-top: 1px solid var(--rule);
  position: relative;
}
.opener__numeral {
  grid-column: 1 / 8; align-self: start;
  font-family: var(--f-text); font-weight: 250; font-variation-settings: "opsz" 60;
  font-size: clamp(8rem, 24vw, 24rem); line-height: 0.8;
  margin-left: -0.05em; margin-top: var(--space-md);
}
.opener__kicker { font-family: var(--f-type); font-size: var(--t-small); color: var(--ink-soft); }
.opener__body { grid-column: 8 / 13; display: grid; gap: var(--space-md); }
.opener__title { font-family: var(--f-display); font-weight: 900; font-size: var(--t-title); line-height: 1; text-transform: uppercase; }
.opener__text { max-width: 30ch; text-wrap: pretty; }

/* ---------- photo pages ---------- */
.plate { margin-bottom: var(--page-gap); }
.plate img, .spread img { cursor: zoom-in; }

/* full page: as wide as the page allows while the whole frame stays in view */
.plate--full figure { width: min(100%, (100svh - 7rem) * 1.5); margin-inline: auto; }
.plate--full img { width: 100%; }

/* bleed: edge to edge, the loud moments */
.plate--bleed { padding-inline: 0; }
.plate--bleed img { width: 100%; }
.plate--bleed .cap { padding-inline: var(--edge); }

/* inset: photo off-centre, caption sits in the margin (like a book plate) */
.plate--inset-left figure, .plate--inset-right figure {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end;
}
.plate--inset-left picture { grid-column: 1 / 9; }
.plate--inset-left .cap { grid-column: 9 / 13; }
.plate--inset-right picture { grid-column: 5 / 13; grid-row: 1; }
.plate--inset-right .cap { grid-column: 1 / 5; grid-row: 1; text-align: right; }
.plate--inset-left .cap, .plate--inset-right .cap {
  display: grid; grid-template-columns: 1fr; gap: var(--space-2xs); border-top: 1px solid var(--rule); padding-top: var(--space-xs);
}
.plate--inset-left img, .plate--inset-right img { width: 100%; }

/* spread: two pages with a spine */
/* two photos side by side: equal height, tops and bottoms aligned.
   main.js sets --cols from each photo’s aspect ratio (e.g. 1.5fr 1px 1.45fr) */
.spread {
  display: grid; grid-template-columns: var(--cols, 1fr 1px 1fr); gap: var(--gutter);
  margin-bottom: var(--page-gap); align-items: start;
}
.spread__spine { align-self: stretch; background: var(--rule); opacity: 0.5; }
.spread img { width: 100%; }

/* captions: typewriter, figure number + text + folio */
.cap {
  display: grid; grid-template-columns: 4ch 1fr; gap: var(--space-sm);
  padding-top: var(--space-sm);
  font-family: var(--f-type); font-size: var(--t-small); line-height: 1.45;
}
.cap__fig { color: var(--ink-soft); }
.cap__text { max-width: 60ch; }

/* end page */
.endpage { padding-block: var(--space-4xl); border-top: 1px solid var(--rule); display: grid; gap: var(--space-lg); justify-items: start; }
.endpage__mark { font-size: var(--t-lede); line-height: 1; }
.endpage__text { font-size: var(--t-lede); max-width: 30ch; }
/* the issue colophon: facts laid out in a row at the end, like the back page of a photobook */
.endpage .facts { width: 100%; grid-template-columns: repeat(auto-fit, minmax(16ch, 1fr)); gap: var(--space-md) var(--gutter); padding-top: var(--space-md); border-top: 1px solid var(--rule); margin-top: var(--space-xl); }
.endpage__nav {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gutter); margin-top: var(--space-2xl);
  padding-top: var(--space-sm); border-top: 1px solid var(--rule);
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-label);
}
.endpage__nav a { text-decoration: none; }
.endpage__nav a:hover { text-decoration: underline; }
.endpage__nav > :last-child { justify-self: end; }

/* ---------- sheets: archive, colophon, 404 ---------- */
.sheet { padding: var(--space-2xl) var(--edge) var(--space-4xl); }
.archive__head, .colophon__head, .missing__head {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--t-title); line-height: 0.85;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  padding-bottom: var(--space-md); border-bottom: 1px solid var(--rule);
}
.archive__head span, .colophon__head span { font-family: var(--f-type); font-weight: 400; font-size: var(--t-small); text-transform: none; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-2xl) var(--gutter); margin-top: var(--space-2xl); }
.shelf a { display: grid; gap: var(--space-xs); text-decoration: none; }
.shelf__mast { font-family: var(--f-display); font-weight: 900; font-size: 2.25rem; text-transform: uppercase; line-height: 0.8; letter-spacing: -0.01em; }
.shelf__meta { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-sm); align-items: baseline; border-top: 1px solid var(--rule); padding-top: var(--space-xs); }
.shelf__num { font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; }
.shelf__title { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.shelf__date { font-family: var(--f-type); font-size: var(--t-small); color: var(--ink-soft); }
.shelf a:hover .shelf__title { text-decoration: underline; }
.shelf a:hover img { filter: contrast(1.06); }
.archive__next { margin-top: var(--space-4xl); font-family: var(--f-type); font-size: var(--t-small); color: var(--ink-soft); }

.colophon { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-2xl) var(--gutter); }
.colophon__head { grid-column: 1 / -1; }
.colophon__bio { grid-column: 5 / 12; max-width: 34ch; }
.impressum { grid-column: 5 / 12; display: grid; font-family: var(--f-type); font-size: var(--t-small); }
.impressum > div { display: grid; grid-template-columns: 14ch 1fr; gap: var(--gutter); padding-block: var(--space-sm); border-top: 1px solid var(--rule); }
.impressum > div:last-child { border-bottom: 1px solid var(--rule); }
.impressum dt { color: var(--ink-soft); }

.missing { min-height: 60svh; display: grid; align-content: center; gap: var(--space-lg); }
.missing__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(8rem, 30vw, 24rem); line-height: 0.75; }
.missing__head { border: 0; font-size: clamp(2rem, 1rem + 3vw, 4rem); }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--gutter);
  padding: var(--space-sm) var(--edge) var(--space-lg);
  border-top: 1px solid var(--rule);
  font-family: var(--f-type); font-size: var(--t-small); color: var(--ink-soft);
}
.foot p:last-child { justify-self: end; }

/* ---------- loupe (full-screen viewer, like a light table) ---------- */
.loupe {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: var(--loupe); color: var(--loupe-ink);
  font-family: var(--f-type); font-size: var(--t-small);
}
.loupe[open] { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; }
.loupe::backdrop { background: var(--loupe); }
.loupe__img { grid-column: 1 / -1; grid-row: 2; place-self: center; max-width: calc(100vw - 2 * var(--edge)); max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; }
.loupe__cap { grid-column: 2; grid-row: 3; text-align: center; padding: var(--space-md); }
.loupe button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: var(--space-md) var(--edge);
}
.loupe__close { grid-column: 3; grid-row: 1; justify-self: end; }
.loupe__prev { grid-column: 1; grid-row: 3; justify-self: start; font-size: 1.25rem; }
.loupe__next { grid-column: 3; grid-row: 3; justify-self: end; font-size: 1.25rem; }
.loupe button:hover { text-decoration: underline; }
.loupe :focus-visible { outline-color: var(--loupe-ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lede, .toc { grid-column: 1 / -1; }
  .titlepage .lede { padding-right: 0; }
  .titlepage__head { width: 100%; }
  .titlepage__cover { width: calc(100% + 2 * var(--edge)); margin-inline: calc(-1 * var(--edge)); }
  .opener__numeral { grid-column: 1 / -1; }
  .opener__body { grid-column: 1 / -1; }
  .opener { min-height: 0; }
  .colophon__bio, .impressum { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__issue { display: none; }
  .bar__nav { gap: var(--space-md); }
  .cover__line { grid-template-columns: auto 1fr auto; gap: var(--space-md); }
  .cover__line { grid-template-columns: auto 1fr auto; }
  .cover__line-mid { display: none; }
  .is-cover .bar__name { display: none; }
  .is-cover .bar { grid-template-columns: 1fr; }
  .is-cover .bar__nav { justify-self: start; }
  .plate--full figure { width: 100%; }
  .plate--full, .plate--inset-left, .plate--inset-right { padding-inline: 0; }
  .plate--full .cap { padding-inline: var(--edge); }
  .plate--inset-left figure, .plate--inset-right figure { display: block; }
  .plate--inset-left .cap, .plate--inset-right .cap { text-align: left; border-top: 0; margin-inline: var(--edge); grid-template-columns: 4ch 1fr; }
  .spread { grid-template-columns: 1fr; gap: var(--page-gap); padding-inline: 0; }
  .spread .cap { padding-inline: var(--edge); }
  .spread__spine { display: none; }
  .foot { grid-template-columns: 1fr; }
  .foot p:last-child { justify-self: start; }
  .endpage__nav { grid-template-columns: 1fr; }
  .endpage__nav > :last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .reel__frame { transition: none; }
  html { scroll-behavior: auto; }
  .js picture img { opacity: 1; transition: none; }
}
