:root {
  color-scheme: dark;
  --brand: #111c7b;
  --violet: #7d0cb3;
  --ink: #090a20;
  --paper: #fbf4ff;
  --muted: #c8bfdc;
  --gold: #efcd9d;
  --line: #d8c5ff35;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html.reading { overflow: hidden; overscroll-behavior: none; }
html.reading body { position: fixed; width: 100%; overflow: hidden; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #efcd9d; outline-offset: 5px; }
button { font: inherit; }
.site {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, #090a20 1%, #090a20da 33%, #090a2030 73%, #090a2030),
    linear-gradient(0deg, #090a20 0%, transparent 38%),
    #0b0d29 url('midnight-water.webp') center right / cover no-repeat;
}
.shell { width: min(1280px, 88%); margin-inline: auto; }
.masthead {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; font: 19px var(--serif); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font: 600 8px/1 system-ui, sans-serif; letter-spacing: .19em; }
.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #f3d4ad;
  background: radial-gradient(ellipse at 80% 10%, #7025ac, var(--brand) 74%);
  border: 1px solid #bfb0ff70;
  border-radius: 50%;
  box-shadow: 0 4px 28px #6545e34d;
  font-size: 20px;
}
.site-link, .control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0 16px;
  color: var(--paper);
  background: #d0bfff10;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.site-link span { color: var(--gold); }
.site-link:hover, .control:hover { background: #d0bfff25; }
.archive {
  display: grid;
  grid-template-columns: minmax(280px, 1.06fr) minmax(220px, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 86px);
  padding-block: clamp(40px, 8vh, 112px);
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.eyebrow span { margin-right: 7px; font-size: 17px; vertical-align: -1px; }
h1 {
  margin: 0;
  font: 400 clamp(58px, 8.3vw, 135px)/.86 var(--serif);
  letter-spacing: -.066em;
}
h1 em { font-weight: 400; color: #e3bafb; }
.intro { max-width: 42ch; margin: 26px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.edition-list { max-width: 500px; }
.edition-list h2 { margin: 0 0 11px; color: #dbd0ed; font-size: 11px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.edition-list ul { margin: 0; padding: 0; display: grid; gap: 9px; list-style-type: none; }
.issue {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  min-height: 76px;
  padding: 12px 15px;
  color: var(--paper);
  text-align: left;
  background: linear-gradient(115deg, #34244b80, #171935b0);
  border: 1px solid #c9aafa53;
  border-radius: 12px;
  box-shadow: 0 10px 40px #05061952;
  cursor: pointer;
}
.issue:hover { border-color: #e4bafaab; background: linear-gradient(115deg, #51345f9c, #252751d1); }
.issue-year { font: 30px/1 var(--serif); padding-right: 13px; border-right: 1px solid var(--line); }
.issue-title { display: block; margin-bottom: 4px; font-size: 14px; }
.issue-status { display: block; color: #cfbdde; font-size: 11px; }
.issue-action { display: flex; align-items: center; gap: 6px; color: #f2d6ff; font-size: 12px; white-space: nowrap; }
.issue-action b { color: var(--gold); font-size: 17px; font-weight: 400; }
.showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 24px;
  margin: 0;
}
.showcase::before, .showcase::after {
  position: absolute;
  content: '';
  z-index: -1;
  inset: 5% 6% 12%;
  border: 1px solid #dfb2fe30;
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 38px #b374ed26, inset 0 0 38px #b374ed21;
}
.showcase::after { inset: 10% 1% 17%; transform: rotate(22deg); border-color: #dfb2fe23; }
.feature {
  width: min(76%, 335px);
  aspect-ratio: .78;
  padding: 0;
  display: block;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--paper);
  text-align: left;
  transform: perspective(900px) rotateY(-12deg) rotateZ(4deg);
  transition: transform 320ms ease;
}
.feature:hover, .feature:focus-visible { transform: perspective(900px) rotateY(-4deg) rotateZ(1deg) translateY(-5px); }
.cover-art {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dac4ee73;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 2px 2px 0 #b59dc8, 5px 5px 0 #554369, 8px 7px 0 #272648, 18px 27px 46px #050418d4, 0 0 50px #ad72ef3b;
}
.cover-art img, .cover-paper { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art img { object-fit: cover; }
.cover-paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(90deg, #04031577, transparent 7%), linear-gradient(#0b0b25c9, transparent 64%, #0b0b25d9);
  padding: 8%;
}
.cover-tag { width: 100%; padding-bottom: 8px; border-bottom: 1px solid #edcffb6b; color: #f6d3a8; font-size: clamp(7px, .9vw, 10px); letter-spacing: .18em; font-weight: 600; }
.cover-tag:last-child { margin-top: auto; border-top: 1px solid #edcffb6b; border-bottom: 0; padding: 8px 0 0; }
.cover-type { margin: 6% 0 5%; font: 400 clamp(27px, 4.9vw, 62px)/.84 var(--serif); letter-spacing: -.055em; }
.cover-subtitle { font-size: clamp(6px, .8vw, 10px); letter-spacing: .2em; }
.showcase figcaption { font: italic 13px var(--serif); color: #ebd6f3; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; padding-block: 16px; }
.reader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(11px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(ellipse at 55% 36%, #251c4a, #090b25 72%);
  color: var(--paper);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
}
.reader[open] { display: grid; }
.reader-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}
.reader-header h2 { margin: 0; font: 400 clamp(16px, 2.5vw, 26px) var(--serif); text-align: center; }
.back { justify-self: start; }
.control { cursor: pointer; touch-action: manipulation; }
.control[aria-pressed="true"] { border-color: #e8b0f086; background: #7d0cb37a; }
.control:disabled { opacity: .4; cursor: default; }
.tools { justify-self: end; display: flex; gap: 6px; }
.stage { display: grid; place-items: center; min-height: 0; min-width: 0; overflow: hidden; padding: 8px 8px 12px; }
.book {
  position: relative;
  margin: auto;
  width: 0;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  border-radius: 4px 7px 7px 4px;
  box-shadow: 0 14px 42px #050513b0, 2px 3px 0 #9d8ca5, 3px 5px 0 #463551, 4px 7px 0 #18163a;
}
.book.dragging { cursor: grabbing; }
.book canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
.reader-footer { text-align: center; color: var(--muted); }
.navigation { display: flex; align-items: center; justify-content: center; gap: 14px; }
.navigation button { width: 44px; font-size: 18px; padding: 0; }
#position { min-width: 114px; color: var(--paper); font-size: 12px; font-variant-numeric: tabular-nums; }
#gesture-copy { margin: 6px 0 0; font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 690px) {
  .site { background-position: 64% center; }
  .shell { width: min(91%, 510px); }
  .masthead { min-height: 67px; }
  .brand { gap: 8px; font-size: 16px; }
  .monogram { width: 34px; height: 34px; }
  .site-link { padding: 0 11px; font-size: 12px; }
  .archive { grid-template-columns: 1fr; gap: 33px; padding-block: 42px 32px; }
  h1 { font-size: clamp(51px, 12.6vw, 75px); }
  .eyebrow { margin-bottom: 17px; }
  .intro { margin: 19px 0 23px; font-size: 14px; }
  .feature { width: min(58%, 230px); }
  .cover-type { font-size: clamp(29px, 8.5vw, 42px); }
  .showcase { gap: 17px; }
  .showcase::before, .showcase::after { inset-inline: 18%; }
  .reader-header { grid-template-columns: 1fr auto; gap: 4px 8px; }
  .reader-header h2 { grid-row: 2; grid-column: 1 / -1; }
  .tools .control, .back { padding-inline: 9px; font-size: 11px; }
  .tools .control span:first-child { display: none; }
}
@media (max-height: 465px) and (min-width: 550px) {
  .reader-header { grid-template-columns: 1fr auto 1fr; }
  .reader-header h2 { grid-row: 1; grid-column: 2; }
  .reader { gap: 3px; }
  #gesture-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
}
.printed-cover .cover-paper { display: none; }
.printed-cover .cover-art img { object-fit: contain; background: #151641; }
