/* Calliope Art & Literary Magazine — site styles
   Type: EB Garamond for headlines and reading text; Instrument Sans for navigation, buttons, bylines and labels. Color: the nameplate navy. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #55504c;
  --rule: #d9d4cf;
  --accent: #101538;       /* nameplate navy; overwritten per issue from issues.js */
  --accent-deep: #0A0D26;
  --warm: #B4552F;
  --display: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header .wrap {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 1.25rem;
}
.wordmark {
  display: block; width: clamp(8.5rem, 16vw, 11.5rem); aspect-ratio: 1053 / 425;
  background: currentColor;
  -webkit-mask: url("calliope-wordmark.png") center / contain no-repeat;
          mask: url("calliope-wordmark.png") center / contain no-repeat;
}
.wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 1.0625rem; padding-bottom: 0.35rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Latest-issue band (home) */
.latest {
  background: var(--accent);
  color: #fff;
}
.latest .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.book {
  position: relative; display: block; max-width: 25rem; justify-self: end; width: 100%;
  box-shadow: -1px 0 0 rgba(255,255,255,.25), 0 1.5rem 3rem -1rem rgba(0,0,0,.45);
}
.book::before { /* spine crease */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4%;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.06) 55%, transparent);
  pointer-events: none;
}
.latest-kicker { font-style: italic; font-size: 1.1875rem; margin: 0 0 .25rem; opacity: .85; }
.latest h1, .latest .latest-title {
  font-family: var(--display); font-weight: 500; line-height: .95; letter-spacing: -0.01em;
  font-size: clamp(3.25rem, 8vw, 6.5rem); margin: 0 0 1.25rem;
}
.latest-facts { margin: 0 0 1.75rem; max-width: 30rem; }
.cover-credit { font-size: 1rem; opacity: .85; margin: 1.5rem 0 0; }
.cover-credit a { color: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .55rem 1.3rem;
  font: inherit; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: #fff; color: var(--accent-deep); border-color: #fff; }
.btn-solid:hover { background: rgba(255,255,255,.88); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.on-paper .btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.on-paper .btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.on-paper .btn-line:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05; margin: 0;
}
.lede { color: var(--ink-soft); margin: 0; max-width: var(--measure); }

/* Archive grid */
.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
}
.shelf a { display: block; text-decoration: none; }
.shelf img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; box-shadow: 0 .75rem 1.5rem -.75rem rgba(0,0,0,.35); }
.shelf .t { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-top: .9rem; line-height: 1.15; }
.shelf .m { color: var(--ink-soft); font-size: 1rem; }
.shelf a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; }
.shelf-note {
  border: 1px dashed var(--rule); aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; text-align: center; color: var(--ink-soft); font-style: italic; font-size: 1rem;
}

/* About strip */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.about p { margin: 0 0 1rem; max-width: var(--measure); }

/* Issue page hero: full wraparound cover */
.spread { background: var(--accent-deep); }
.spread img { width: 100%; max-width: 90rem; margin: 0 auto; }
.issue-head { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.issue-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.issue-head h1 {
  font-family: var(--display); font-weight: 500; margin: 0;
  font-size: clamp(3rem, 8vw, 6rem); line-height: .95; letter-spacing: -0.01em;
}
.issue-head .sub { font-style: italic; color: var(--ink-soft); margin: .5rem 0 0; }
.issue-head .actions { justify-content: flex-end; }

/* Editor's note */
.note blockquote { margin: 0; max-width: var(--measure); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; }
.note blockquote p { margin: 0 0 1rem; }
.note .sig { font-style: italic; color: var(--ink-soft); font-size: 1.0625rem; }

/* Contents */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font: inherit; font-size: 1rem; cursor: pointer;
  padding: .35rem 1rem; min-height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .n { color: inherit; opacity: .6; margin-left: .3em; }

.toc { list-style: none; margin: 0; padding: 0; columns: 2 24rem; column-gap: 4rem; }
.toc li { break-inside: avoid; }
.toc a {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.toc .pg { color: var(--ink-soft); font-size: 1rem; padding-top: .2rem; font-variant-numeric: lining-nums tabular-nums; }
.toc .ti { font-family: var(--display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.toc .by { color: var(--ink-soft); font-size: 1rem; grid-column: 2; }
.toc .by .md { white-space: nowrap; }
.toc a:hover .ti { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.toc li[hidden] { display: none; }
.toc-note { color: var(--ink-soft); font-size: 1rem; margin: 1.5rem 0 0; }

/* Masthead */
.masthead { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.75rem 2.5rem; margin: 0; }
.masthead dt { font-style: italic; color: var(--ink-soft); font-size: 1rem; }
.masthead dd { margin: .15rem 0 0; }

/* Footer */
.site-footer { background: #000; color: #fff; margin-top: 0; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding-top: 3rem; padding-bottom: 3rem;
}
.site-footer .wordmark { color: #fff; width: 9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: 1.0625rem; }
.site-footer small { display: block; width: 100%; color: #aaa; font-size: .9375rem; }

@media (max-width: 760px) {
  .latest .wrap, .issue-head .wrap, .about { grid-template-columns: 1fr; }
  .book { justify-self: start; max-width: 15rem; }
  .issue-head .actions { justify-content: flex-start; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .book { animation: settle .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(1.25rem) rotate(-1.5deg); } }
}

/* ---------- Home: full-bleed nameplate + carousel strip ---------- */
/* --strip-max: the tallest the carousel photos get */
.home-top { --plate-w: 64vw; --plate-h: calc(var(--plate-w) * 2277 / 5717); --strip-max: 22.5rem; --cap-h: 2.9rem; --plate: #101538;
  position: relative; overflow: hidden;
  /* Fill the first screen exactly and center the nameplate + photos in it, so the next section starts below the fold */
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 5vh, 4rem) 0;
}
.plate-wrap { position: relative; }
.nameplate {
  display: block; width: var(--plate-w); aspect-ratio: 5717 / 2277; margin: 0 auto;
  background: var(--plate);
  -webkit-mask: url("calliope-nameplate.png") top center / 100% 100% no-repeat;
          mask: url("calliope-nameplate.png") top center / 100% 100% no-repeat;
}
.nameplate span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Nav sits in the open space right of the p's descender; the tagline holds the space under "Ca" */
.home-top .site-nav {
  position: absolute; right: var(--gutter); top: calc(var(--plate-h) * .876); transform: translateY(-50%); line-height: 1.2; z-index: 2;
  padding: 0; font-size: clamp(.95rem, 1.6vw, 1.25rem); color: var(--plate);
}
@media (max-width: 600px) {
  .home-top { --plate-w: 90vw; }
  .home-top .site-nav { position: static; transform: none; justify-content: flex-end; padding: .5rem var(--gutter) 0; }
}
.strip {
  position: relative; z-index: 1;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  height: min(var(--strip-max), max(11rem, calc(100svh - var(--plate-h) - 9rem)));
  padding: 0 0 clamp(.75rem, 2vw, 1.5rem);
  overflow: hidden;
}
.track { display: flex; height: 100%; width: max-content; }
.slide { height: 100%; flex: none; margin: 0 clamp(1.25rem, 2.5vw, 2.25rem) 0 0; }
.slide { display: flex; flex-direction: column; }
.slide a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.slide img { height: calc(100% - var(--cap-h)); width: auto; object-fit: cover; transition: opacity .2s; }
.slide figcaption {
  height: var(--cap-h); width: 0; min-width: 100%; padding-top: .45rem; line-height: 1.25; overflow: hidden;
}
.cap-t { display: block; font-style: italic; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-m { display: block; font-size: .875rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide a:hover img, .slide a:focus-visible img { opacity: .82; }
.slide a:hover .cap-t, .slide a:focus-visible .cap-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
@media (prefers-reduced-motion: no-preference) {
  .strip.moving .track { animation: drift var(--dur, 60s) linear infinite; }
  .strip.moving:hover .track, .strip.moving:focus-within .track, .strip.paused .track { animation-play-state: paused; }
  @keyframes drift { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip .dup { display: none; }
  .strip-toggle { display: none; }
}
.strip-toggle {
  position: absolute; right: var(--gutter); bottom: calc(clamp(.75rem, 2vw, 1.5rem) + var(--cap-h) + .75rem); z-index: 2;
  font: inherit; font-size: .9375rem; cursor: pointer;
  padding: .3rem .9rem; min-height: 2.25rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .strip { height: min(16rem, 64vw); margin-top: 1.25rem; }
}

/* Latest issue with a photographed mockup. The photo's studio backdrop was extended
   to the right so the text can sit on it; on phones the photo stacks above the text. */
.latest.has-mock { --backdrop: #E1E1E2; background: var(--backdrop); color: #000; display: block; position: relative; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.latest.has-mock .mock { display: block; }
.latest.has-mock .mock img { display: block; width: 100%; height: auto; }
.latest.has-mock .latest-text { padding: 1rem var(--gutter) 2.75rem; }
@media (max-width: 899px) {
  .latest.has-mock { --backdrop: #D9D9DA; }
  .latest.has-mock .mock img {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
            mask-image: linear-gradient(to bottom, #000 78%, transparent);
  }
}
.latest.has-mock .latest-kicker { opacity: 1; color: #3d3d3d; }
.latest.has-mock .cover-credit { opacity: 1; color: #3d3d3d; }
.latest.has-mock .cover-credit a { color: #000; }
.latest.has-mock .btn-solid { background: #000; color: #fff; border-color: #000; }
.latest.has-mock .btn-solid:hover { background: #2a2a2a; border-color: #2a2a2a; }
.latest.has-mock .btn-line { border-color: #000; color: #000; }
.latest.has-mock .btn-line:hover { background: rgba(0,0,0,.06); }
.latest.has-mock .latest-title { color: #000; white-space: nowrap; }
@media (min-width: 900px) {
  .latest.has-mock .mock img { aspect-ratio: 3000 / 1134; object-fit: cover; object-position: left center; }
  .latest.has-mock .latest-text {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 66%; right: var(--gutter); padding: 0;
  }
  .latest.has-mock .latest-title { font-size: clamp(2.75rem, 4.6vw, 5.25rem); }
  .latest.has-mock .latest-facts { font-size: clamp(1rem, 1.3vw, 1.1875rem); }
}

/* ---------- Functional text in Instrument Sans ---------- */
.site-nav, .btn, .latest-kicker, .cover-credit, .issue-head .sub, .note .sig,
.filters button, .toc .pg, .toc .by, .toc-note, .masthead dt,
.site-footer ul, .site-footer small, .cap-m, .strip-toggle, .lede {
  font-family: var(--sans);
}
.site-nav { font-size: 1rem; letter-spacing: .01em; }
.btn { font-size: .9375rem; font-weight: 500; }
.latest-kicker, .issue-head .sub, .note .sig { font-style: normal; font-size: .9375rem; letter-spacing: .01em; }
.cover-credit, .toc-note, .masthead dt, .cap-m, .filters button { font-size: .875rem; }
.toc .by { font-size: .875rem; }
.toc .pg { font-size: .875rem; padding-top: .25rem; }
.masthead dt { font-style: normal; }
.lede { font-size: 1rem; }
.home-top .site-nav { font-size: clamp(.875rem, 1.3vw, 1.0625rem); }

/* ---------- Refinement: wider margins, smaller type, more sans ---------- */
:root { --gutter: clamp(1.5rem, 7vw, 7rem); }
body { font-size: 1.0625rem; line-height: 1.6; }
.wrap { max-width: 80rem; }

/* Section headings and structural titles in the sans */
h2, .shelf .t, .masthead dd, .latest-facts, .lede {
  font-family: var(--sans);
}
h2 { font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.01em; line-height: 1.2; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { margin-bottom: 2.25rem; }
#masthead .section-head { margin-bottom: 3rem; }

/* Issues shelf */
.shelf { gap: 3rem clamp(1.25rem, 3vw, 2.5rem); }
.shelf .t { font-weight: 500; font-size: 1rem; margin-top: .85rem; }

/* Issue page */
.issue-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.note blockquote { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); max-width: 36rem; }
.toc { column-gap: clamp(2.5rem, 6vw, 5rem); }
.toc a { grid-template-columns: 2.25rem 1fr; padding: .6rem 0; }
.toc .ti { font-size: 1rem; line-height: 1.3; }
.toc .by, .toc .pg { font-size: .8125rem; }
.masthead { gap: 2rem 3rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.masthead dt { font-size: .8125rem; }
.masthead dd { font-size: .9375rem; line-height: 1.55; margin-top: .3rem; }

/* About */
.about p { font-size: 1.0625rem; }

/* Footer */
.site-footer ul { font-size: .9375rem; }

/* ---------- In-page reader ---------- */
.spread { position: relative; }
.reader-cover { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.reader-cover img { width: 100%; max-width: 90rem; margin: 0 auto; }
.reader-cue {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--sans); font-size: .9375rem; font-weight: 500;
  background: #fff; color: #000; padding: .7rem 1.4rem; border-radius: 999px;
  box-shadow: 0 .5rem 1.5rem -.5rem rgba(0,0,0,.4); transition: transform .2s;
}
.reader-cover:hover .reader-cue, .reader-cover:focus-visible .reader-cue { transform: translate(-50%, calc(-50% - 2px)); }
.reader[hidden], .reader-cover[hidden], .reader-msg[hidden] { display: none; }
.reader { background: var(--accent-deep); color: #fff; padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 1.25rem; }
.reader-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 12rem; cursor: pointer; user-select: none; }
.reader-book { display: flex; justify-content: center; }
.leaf { position: relative; }
.leaf canvas { display: block; width: 100%; height: 100%; background: #fff; }
.is-spread .leaf canvas { box-shadow: 0 1rem 2.5rem -1rem rgba(0,0,0,.6); }
.is-spread .leaf.left::after, .is-spread .leaf.right::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none;
}
.is-spread .leaf.left::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.12)); }
.is-spread .leaf.right::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0,0,0,.14)); }
.leaf:empty::after { display: none; }
.reader-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-family: var(--sans); font-size: .9375rem; color: rgba(255,255,255,.85); }
.reader-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem;
  max-width: 80rem; margin: 1.25rem auto 0; font-family: var(--sans);
}
.reader-nav { display: flex; align-items: center; gap: .75rem; }
.reader-where { margin: 0; min-width: 9.5rem; text-align: center; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.rb {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.rb:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.rb:disabled { opacity: .35; cursor: default; }
.reader-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.rt {
  font: inherit; font-size: .875rem; color: #fff; background: transparent; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .45rem 1rem; min-height: 2.5rem; display: inline-flex; align-items: center;
}
.rt:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.reader :focus-visible { outline-color: #fff; }
@media (max-width: 760px) {
  .reader-bar { justify-content: center; }
}

/* ---------- Carousel credits on the photo, shown on hover ---------- */
.home-top { --cap-h: 0rem; }
.slide a, .slide > img { position: relative; }
.slide figcaption {
  position: absolute; inset: 0; width: auto; min-width: 0; height: auto; padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem;
  color: #fff; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.slide { position: relative; }
.slide img { transition: filter .25s; }
.cap-t { font-size: 1.0625rem; white-space: normal; }
.cap-m { color: rgba(255,255,255,.9); white-space: normal; }
.slide:hover img, .slide a:focus-visible img { filter: grayscale(1) brightness(.55); opacity: 1; }
.slide:hover figcaption, .slide a:focus-visible figcaption { opacity: 1; }
.slide a:hover .cap-t, .slide a:focus-visible .cap-t { text-decoration: none; }
/* Phones and tablets can't hover, so the credit sits on the photo over a soft shade */
@media (hover: none) {
  .slide figcaption { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); padding: .75rem; }
  .cap-t { font-size: .9375rem; }
}

/* Balanced line breaks, no one-word last lines */
p { text-wrap: pretty; }

/* Submissions-open banner (home page) */
.announce[hidden] { display: none; }
.announce { margin: 0; background: var(--plate, #101538); background: #101538; text-align: center; font-family: var(--sans); font-size: .875rem; }
.announce a { display: block; padding: .6rem var(--gutter); color: #fff; text-decoration: none; }
.announce span { text-decoration: underline; text-underline-offset: .2em; margin-left: .35em; }
.announce a:hover span { text-decoration-thickness: 2px; }

/* ---------- Carousel sizing that works in Safari ----------
   Safari collapses images sized with percentage heights inside a flex row,
   so every level gets the same definite height instead. */
.home-top { --strip-h: min(var(--strip-max), max(11rem, calc(100svh - var(--plate-h) - 9rem))); }
@media (max-width: 760px) { .home-top { --strip-h: min(16rem, 64vw); } }
.strip { height: auto; padding-bottom: 0; margin-bottom: clamp(.75rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .strip { height: auto; } }
.track { height: var(--strip-h); align-items: stretch; }
.slide, .slide a { height: var(--strip-h); flex: none; }
.slide img { height: var(--strip-h); width: auto; max-width: none; flex: none; }

/* Reader message: readable on its own, never over a blank page */
.reader-msg { font-size: 1rem; line-height: 1.5; color: #fff; }

/* ---------- Previous / next issue ---------- */
.issue-nav { border-top: 1px solid var(--rule); }
.issue-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.issue-step { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.issue-step.next { flex-direction: row-reverse; text-align: right; margin-left: auto; }
.step-arrow {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.6rem; line-height: 1; padding-bottom: .15rem; transition: background .15s, color .15s;
}
.issue-step:hover .step-arrow, .issue-step:focus-visible .step-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-text { display: flex; flex-direction: column; }
.step-label { font-family: var(--sans); font-size: .8125rem; color: var(--ink-soft); }
.step-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.issue-step:hover .step-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
@media (max-width: 760px) {
  .step-arrow { width: 2.6rem; height: 2.6rem; font-size: 1.4rem; }
  .step-title { font-size: 1.2rem; }
}
