:root {
  --bg: #050706;
  --bg-2: #090b09;
  --panel: #11100d;
  --panel-2: #18130f;
  --line: rgba(214, 177, 108, 0.22);
  --line-strong: rgba(214, 177, 108, 0.46);
  --gold: #d6b16c;
  --gold-2: #f0dcae;
  --cream: #f1e4c8;
  --muted: #958979;
  --dim: #62584c;
  --bad: #d27254;
  --ok: #74d081;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 14%, rgba(214, 177, 108, 0.07), transparent 28%),
    linear-gradient(180deg, #070908 0%, #030504 100%);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 68px;
  display: grid;
  grid-template-columns: 280px auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(48px, 5vw, 88px);
  background: #050706;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.brand, .reader-brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__icon, .reader-brand img, .footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: sepia(1) saturate(1.4) brightness(1.08);
}

.brand__text, .reader-brand span, .footer-brand span {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 0.96;
  color: var(--gold-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: flex-start;
  justify-self: start;
}

.nav__link {
  position: relative;
  color: #f4eee4;
  font-weight: 600;
  font-size: 14px;
}

.nav__link--active,
.nav__link:hover { color: var(--gold-2); }

.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 1px;
  background: var(--gold);
}

.account-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(12, 12, 10, 0.86);
  color: var(--gold-2);
}

.account-button img,
.button img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  opacity: 0.88;
}

.hero {
  position: relative;
  width: 100%;
  height: clamp(500px, 49vw, 520px);
  display: grid;
  grid-template-columns: 53.5% 46.5%;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(214, 177, 108, 0.08), transparent 34%),
    linear-gradient(90deg, #060807, #0a0b09 60%, #080907);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      transparent 0%,
      transparent 34%,
      rgba(5, 7, 6, 0.12) 43%,
      rgba(5, 7, 6, 0.58) 55%,
      rgba(5, 7, 6, 0.92) 68%,
      transparent 82%
    );
}

.hero__portrait {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #050706;
}

.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(5,7,6,0.14) 72%, rgba(5,7,6,0.72) 100%),
    linear-gradient(180deg, transparent 84%, rgba(5,7,6,0.22));
}

.hero__portrait img {
  position: absolute;
  left: clamp(0px, 2.1vw, 38px);
  top: -8px;
  width: min(56vw, 700px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left top;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, rgba(0,0,0,0.68) 62%, transparent 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, rgba(0,0,0,0.68) 62%, transparent 82%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
  padding: clamp(42px, 5.2vw, 76px) clamp(48px, 7vw, 110px) 34px 18px;
  max-width: 560px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.88;
  font-weight: 600;
  color: var(--gold-2);
  text-shadow: 0 18px 46px rgba(0,0,0,0.48);
}

.ornament {
  position: relative;
  width: 150px;
  height: 10px;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,177,108,0.72));
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
  transform: rotate(180deg);
}

.ornament {
  background: radial-gradient(circle at center, var(--gold) 0 3px, transparent 4px);
}

.quote {
  margin: 0 0 5px;
  color: #c5b79d;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 6px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 13, 11, 0.72);
  color: var(--cream);
  font-weight: 700;
}

.button--primary {
  color: #20160a;
  background: linear-gradient(180deg, #f2dca5, #c99d4e);
  border-color: #f4dca2;
  box-shadow: 0 0 0 2px rgba(214, 177, 108, 0.12), 0 12px 34px rgba(214,177,108,0.18);
}

.button--ghost:hover,
.account-button:hover {
  border-color: var(--gold);
  background: rgba(214, 177, 108, 0.09);
}

.support-panel {
  width: min(422px, 100%);
  min-height: 61px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(13, 13, 11, 0.62);
}

.support-panel p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.currency-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.currency-tabs span {
  min-width: 48px;
  text-align: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ddd0b6;
  font-size: 12px;
  font-weight: 800;
}

.currency-tabs .is-active {
  color: #100d08;
  background: var(--gold-2);
  box-shadow: 0 0 14px rgba(214,177,108,0.5);
}

.support-panel__secure {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: #dbd2c0;
  font-size: 12px;
}

.shield { color: var(--gold); font-size: 24px; }

.stats-strip {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 13, 0.92);
  padding: 0 clamp(48px, 5vw, 88px);
}

body:not(.is-authenticated) .stats-strip {
  display: none;
}

.stat {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  border-right: 1px solid var(--line);
  color: #cfc4ad;
}

.stat[data-auth-only] {
  transition: opacity 0.18s ease;
}

a.stat:hover {
  background: rgba(214,177,108,0.06);
}

.stat:last-child { border-right: 0; }
.stat img { width: 21px; height: 21px; object-fit: contain; filter: sepia(1) saturate(1.5) brightness(1.05); }
.stat__icon { color: var(--gold); font-size: 23px; line-height: 1; }
.stat span { color: #cbbfa8; }
.stat span,
.stat strong { min-width: 0; overflow-wrap: anywhere; }
.stat strong { color: var(--cream); font-weight: 700; }
.stat--status span { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 11px; }
.stat--status strong { font-size: 12px; }
.stat--status i { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--ok); margin-left:5px; }

.content-shell {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 14px 48px 0;
}

.series-section {
  padding: 0 0 25px;
}

.series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 11px;
}

.series-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold-2);
  font-weight: 600;
}

.series-link {
  color: var(--gold-2);
  font-size: 13px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(142px, 1fr));
  gap: 22px 27px;
}

.book-card {
  min-width: 0;
}

.book-cover {
  position: relative;
  aspect-ratio: 0.73;
  border: 1px solid var(--line-strong);
  border-radius: 2px 2px 0 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), transparent 36%),
    var(--cover-bg, #132138);
  box-shadow: 0 16px 35px rgba(0,0,0,0.34);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover--faux {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 16px 20px;
  color: var(--cover-fg, var(--gold));
  text-align: center;
}

.book-cover--light { --cover-fg: #302211; color: #302211; }
.book-num { justify-self: end; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.85; }
.book-symbol { align-self: center; justify-self: center; font-family: var(--font-display); font-size: 70px; opacity: 0.82; }
.book-title { align-self: end; font-family: var(--font-display); font-size: 24px; line-height: 0.98; text-transform: uppercase; }

.book-actions {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 0.85fr;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  background: rgba(14,14,12,0.96);
}

.book-actions button,
.book-actions a {
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #f4ead8;
  font-size: 11px;
  font-weight: 700;
}

.book-actions button:first-child {
  color: #1d1308;
  background: linear-gradient(180deg, #f0dca9, #c49b55);
}

.book-actions a:last-child { border-right: 0; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.story-card {
  min-height: 77px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(214,177,108,0.07), rgba(255,255,255,0.02));
}

.story-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: sepia(1) saturate(1.4) brightness(1.05);
}

.story-card span {
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1.08;
}

.about-band {
  width: min(100%, 1110px);
  margin: 18px auto 0;
  padding: 24px clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-band h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold-2);
}

.about-band > p {
  margin: 0;
  color: #c8bda8;
}

.site-footer {
  margin-top: 0;
  padding: 34px clamp(20px, 4.5vw, 58px) 0;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 1.05fr 1fr 1.2fr;
  gap: 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,14,12,0.96), #060806);
}

.footer-brand {
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-brand p {
  width: 100%;
  margin: 10px 0 0 55px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 5px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-col a,
.footer-col p {
  color: #c8bda8;
  font-size: 13px;
}

.socials { display: flex; gap: 10px; margin-bottom: 10px; }
.socials a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #f1e5ca;
  font-weight: 800;
}

.newsletter {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 10px 12px;
  color: var(--cream);
  background: rgba(255,255,255,0.03);
  outline: 0;
}

.newsletter button {
  width: 48px;
  border: 0;
  color: #1d1308;
  background: linear-gradient(180deg, #f0dca9, #c49b55);
  font-size: 22px;
}

.footer-bottom {
  grid-column: 1 / -1;
  min-height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #8f8576;
  font-size: 12px;
}

.footer-bottom img {
  display: inline-block;
  width: 18px;
  vertical-align: middle;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: 72px auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d0d0b;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}

.modal__panel h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold-2);
}

.modal__hint,
.auth-state {
  color: #b9ad99;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 22px;
}

.auth-form,
.auth-providers {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.telegram-widget-mount {
  min-height: 0;
  display: grid;
  place-items: center;
}

.telegram-widget-mount iframe {
  max-width: 100%;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,0.035);
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c9bea8;
  font-weight: 800;
}

.auth-tabs button.is-active {
  color: #1a1208;
  background: linear-gradient(180deg, #f0dcae, #c99d4e);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  outline: 0;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 88% 18%, rgba(214,177,108,0.15), transparent 34%),
    rgba(255,255,255,0.035);
}

.account-card__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-card strong {
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.account-card small {
  color: #b9ad99;
  font-size: 13px;
}

.account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.account-details div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(214,177,108,0.18);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
}

.account-details dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-details dd {
  margin: 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.account-details dd small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.account-link {
  color: var(--gold-2);
  font-weight: 800;
}

.verify-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(214,177,108,0.055);
}

.verify-panel span,
.verify-panel small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-panel strong {
  display: block;
  margin: 3px 0;
  color: #df9f7f;
}

.verify-panel strong.is-ok {
  color: var(--ok);
}

.verify-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.verify-panel__actions .button {
  min-height: 34px;
  padding-inline: 12px;
}

.library-page {
  min-height: 100vh;
}

.library-shell {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 34px 48px 60px;
}

.library-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

.library-hero h1 {
  margin: 0;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.95;
}

.library-hero p {
  margin: 8px 0 0;
  color: #b9ad99;
}

.library-status {
  min-width: 250px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,0.035);
}

.library-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.library-status strong {
  display: block;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 30px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.library-book {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11,13,12,0.78);
}

.library-book img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.library-book h2 {
  margin: 0;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.library-book p {
  margin: 7px 0;
  color: #b9ad99;
}

.library-book__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.library-book__actions .button {
  min-height: 32px;
  padding-inline: 12px;
}

.library-lock {
  width: min(520px, calc(100vw - 32px));
  margin: 120px auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d0d0b;
  text-align: center;
}

.library-lock img {
  width: 54px;
  margin: 0 auto 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 68px;
    gap: 14px;
    padding: 12px 22px;
  }
  .brand { min-width: 0; }
  .account-button { grid-column: 2; grid-row: 1; }
  .nav { order: 3; grid-column: 1 / -1; width: 100%; gap: 22px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { height: auto; grid-template-columns: 1fr; }
  .hero__portrait { height: 390px; }
  .hero__portrait img {
    left: 50%;
    top: -4px;
    width: min(640px, 126vw);
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 74%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 74%, transparent 100%);
  }
  .hero__portrait::after {
    background:
      linear-gradient(90deg, rgba(5,7,6,0.72) 0%, transparent 18%, transparent 70%, rgba(5,7,6,0.9) 100%),
      linear-gradient(180deg, transparent 78%, rgba(5,7,6,0.9));
  }
  .hero::after { background: linear-gradient(180deg, transparent 0 42%, rgba(5,7,6,0.62) 57%, rgba(5,7,6,0.96) 100%); }
  .hero__content { padding: 28px; }
  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0;
  }
  .stat {
    justify-content: start;
    align-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid, .about-band, .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-bottom { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { padding: 12px 16px; }
  .brand__icon { width: 36px; height: 36px; }
  .brand__text { font-size: 18px; }
  .account-button span { display: none; }
  .account-button {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .nav { justify-content: flex-start; }
  .hero__portrait { height: 315px; }
  .hero__portrait img {
    top: 0;
    width: min(560px, 137vw);
  }
  .hero__content { padding: 24px 16px 26px; }
  .hero h1 { font-size: clamp(42px, 14vw, 54px); }
  .hero__actions, .support-panel { display: grid; grid-template-columns: 1fr; }
  .support-panel__secure { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .stats-strip, .books-grid, .story-grid, .about-band, .site-footer { grid-template-columns: 1fr; }
  .stat,
  .stat:nth-child(odd) { border-right: 0; }
  .stat { padding: 10px 16px; }
  .series-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .series-link {
    width: 100%;
    text-align: left;
  }
  .content-shell { padding-inline: 16px; }
  .modal__panel {
    margin: 28px auto;
    padding: 22px 16px;
  }
  .auth-form__row,
  .account-details,
  .verify-panel { grid-template-columns: 1fr; }
  .verify-panel__actions { justify-content: stretch; }
  .verify-panel__actions .button { width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding: 14px 0; }
}
