.chronicle-page {
  --chronicle-line: rgba(201, 163, 90, 0.28);
  --chronicle-line-strong: rgba(239, 206, 123, 0.64);
  --chronicle-ink: #1a1410;
  --chronicle-paper: #ded0ad;
  --chronicle-paper-light: #efe3c3;
  background:
    radial-gradient(circle at 50% 0, rgba(112, 76, 35, 0.24), transparent 42rem),
    #080706;
}

.chronicle-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  border-bottom: 1px solid var(--chronicle-line);
  background: #050403;
}

.chronicle-hero__image,
.chronicle-hero__veil {
  position: absolute;
  inset: 0;
}

.chronicle-hero__image {
  background-image: url("../../assets/main-screen.jpg");
  background-position: center 35%;
  background-size: cover;
  filter: saturate(0.7) contrast(1.08) brightness(0.64);
  transform: scale(1.025);
}

.chronicle-hero__veil {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.92) 0%, rgba(4, 3, 2, 0.74) 45%, rgba(2, 2, 2, 0.22) 78%),
    linear-gradient(0deg, #080706 0%, transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(209, 165, 80, 0.16), transparent 28rem);
}

.chronicle-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: clamp(7rem, 13vw, 11rem) clamp(1.25rem, 7vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.chronicle-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3.25rem;
  color: #d3c29e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chronicle-backlink::before {
  content: "←";
  color: var(--gold);
  font-size: 1rem;
}

.chronicle-kicker {
  margin: 0 0 0.9rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chronicle-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #f3e4bf;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-shadow: 0 0.35rem 1.8rem rgba(0, 0, 0, 0.82);
}

.chronicle-subtitle {
  max-width: 720px;
  margin: 1.45rem 0 0;
  color: #ddcda9;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.045em;
}

.chronicle-byline {
  margin: 0.7rem 0 0;
  color: #aa9a7d;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chronicle-hero blockquote {
  max-width: 660px;
  margin: 2.3rem 0 2rem;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--gold);
  color: #c9b998;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-style: italic;
  line-height: 1.65;
}

.chronicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chronicle-reader,
.closing-chronicle {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 6vw, 4.5rem);
}

.chronicle-section-heading {
  max-width: 720px;
  margin-bottom: clamp(3.4rem, 7vw, 6rem);
}

.chronicle-section-heading h2,
.closing-chronicle h2 {
  margin: 0;
  color: #f0dfb9;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}

.chronicle-section-heading > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.chronicle-reader {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--chronicle-line);
}

.chronicle-section-heading--reader {
  margin-bottom: 3rem;
}

.age-volumes {
  display: grid;
  gap: 1rem;
}

.age-volume {
  border: 1px solid rgba(201, 163, 90, 0.3);
  background:
    linear-gradient(135deg, rgba(51, 37, 23, 0.32), rgba(10, 8, 6, 0.8)),
    rgba(15, 12, 9, 0.84);
  box-shadow: 0 1.4rem 3.4rem rgba(0, 0, 0, 0.26);
}

.age-volume[open] {
  border-color: rgba(239, 206, 123, 0.58);
  background:
    linear-gradient(145deg, rgba(71, 51, 28, 0.26), rgba(12, 9, 7, 0.93)),
    rgba(15, 12, 9, 0.9);
}

.age-volume summary {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 1.2rem;
  min-height: 7rem;
  padding: 1.3rem clamp(1.2rem, 3vw, 2.2rem);
  list-style: none;
  cursor: pointer;
}

.age-volume summary::-webkit-details-marker {
  display: none;
}

.age-volume summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.age-volume__number {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
}

.age-volume__number::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--chronicle-line-strong);
  transform: rotate(45deg);
}

.age-volume__heading {
  display: grid;
  gap: 0.25rem;
}

.age-volume__heading small {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.age-volume__heading strong {
  color: #eadab6;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
}

.age-volume__toggle {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
}

.age-volume__toggle::before,
.age-volume__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.age-volume__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.age-volume[open] .age-volume__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.age-volume__body {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3.5rem) clamp(1.3rem, 5vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid rgba(201, 163, 90, 0.18);
  color: #d5c7a9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.85;
}

.age-volume__body p {
  margin: 0 0 1.45rem;
}

.age-volume__body h3 {
  margin: 3.6rem 0 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(201, 163, 90, 0.2);
  color: #f0dfb9;
  font-family: "Diphylleia", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.age-volume__body h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.age-volume__body blockquote {
  margin: 2.7rem 0;
  padding: 1.4rem 0 1.4rem clamp(1.2rem, 4vw, 2.3rem);
  border-left: 2px solid var(--gold);
  color: #e7d6b1;
  font-size: 1.15em;
  font-style: italic;
  line-height: 1.65;
}

.age-volume__body cite {
  display: block;
  margin-top: 0.75rem;
  color: #9e8f74;
  font-family: "Diphylleia", Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing-chronicle {
  display: grid;
  grid-template-columns: minmax(5rem, 0.22fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--chronicle-line);
}

.closing-chronicle__seal {
  position: relative;
  z-index: 0;
  width: clamp(4.5rem, 9vw, 7rem);
  height: clamp(4.5rem, 9vw, 7rem);
  display: grid;
  place-items: center;
  align-self: start;
  color: var(--gold-bright);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.closing-chronicle__seal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--chronicle-line-strong);
  box-shadow: 0 0 2.6rem rgba(201, 163, 90, 0.12);
  transform: rotate(45deg);
}

.closing-chronicle > div:last-child {
  max-width: 800px;
}

.closing-chronicle p:not(.section-kicker) {
  color: #cfc0a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.85;
}

.closing-chronicle__final {
  margin-top: 2.5rem;
  color: #f1dfb7 !important;
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  line-height: 1.45 !important;
}

@media (prefers-reduced-motion: reduce) {
  .age-volume__toggle::before,
  .age-volume__toggle::after {
    transition: none;
  }
}

@media (max-width: 760px) {
  .chronicle-hero {
    min-height: 86svh;
  }

  .chronicle-hero__image {
    background-position: 63% center;
  }

  .chronicle-hero__veil {
    background:
      linear-gradient(0deg, #080706 0%, rgba(4, 3, 2, 0.62) 60%, rgba(2, 2, 2, 0.34)),
      linear-gradient(90deg, rgba(3, 3, 3, 0.78), transparent);
  }

  .chronicle-backlink {
    margin-bottom: 4.5rem;
  }

  .age-volume summary {
    grid-template-columns: 3.4rem minmax(0, 1fr) 1.5rem;
    gap: 0.85rem;
    min-height: 6rem;
  }

  .age-volume__number {
    width: 2.65rem;
    height: 2.65rem;
  }

  .closing-chronicle {
    grid-template-columns: 1fr;
  }

  .closing-chronicle__seal {
    margin: 0 0 1rem 1.1rem;
  }
}

@media (max-width: 460px) {
  .chronicle-hero__content {
    padding-bottom: 3.5rem;
  }

  .chronicle-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .chronicle-hero blockquote {
    margin-top: 1.8rem;
  }

  .age-volume summary {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
  }

  .age-volume__number {
    display: none;
  }
}
