@import url('/info/assets/info-fixes.css');

.chronicle-section {
  max-width: none;
  padding-top: clamp(54px, 8vw, 110px);
  padding-bottom: clamp(70px, 10vw, 140px);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 154, 85, .12), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, #f2eadf 100%);
  overflow: hidden;
}

.chronicle-hero {
  max-width: 1050px;
  margin: 0 auto clamp(46px, 7vw, 92px);
  text-align: center;
}

.chronicle-hero h2 {
  margin: .08em 0 .1em;
  font-family: var(--font-script, "Caveat", cursive);
  font-size: clamp(4.2rem, 9vw, 7.6rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--ink);
}

.chronicle-hero > p:not(.kicker) {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.chronicle-jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.chronicle-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 154, 85, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.chronicle-jump a:hover,
.chronicle-jump a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #fff;
}

.chronicle-timeline {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(42px, 6vw, 82px);
}

.chronicle-timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold) 3%, var(--gold) 97%, transparent);
  opacity: .62;
}

.chronicle-era {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: start;
  scroll-margin-top: 145px;
}

.chronicle-era__marker {
  position: sticky;
  top: 132px;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 34px auto 0;
  border: 5px solid #f5eee4;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 10px 26px rgba(92, 74, 34, .22);
  z-index: 2;
}

.chronicle-era__marker span {
  position: absolute;
  top: 32px;
  width: 130px;
  color: var(--gold);
  font-family: var(--font-script, "Caveat", cursive);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.chronicle-era__card {
  grid-column: 3;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(184, 154, 85, .28);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 56px rgba(48, 43, 34, .10);
}

.chronicle-era--reverse .chronicle-era__card {
  grid-column: 1;
  grid-row: 1;
}

.chronicle-era__head p {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-script, "Caveat", cursive);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: .9;
}

.chronicle-era__head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--font-script, "Caveat", cursive);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: .92;
}

.chronicle-era__prose {
  margin-top: 24px;
}

.chronicle-era__prose p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.68;
}

.chronicle-era__prose p + p {
  margin-top: 12px;
}

.chronicle-events {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.chronicle-events li {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.chronicle-events time {
  color: var(--gold);
  font-weight: 900;
  line-height: 1.5;
}

.chronicle-events p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.chronicle-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(88px, 9vw, 132px);
  gap: 9px;
  margin-top: 28px;
}

.chronicle-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #e7dfd3;
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(48, 43, 34, .08);
}

.chronicle-gallery__item--lead {
  grid-column: span 2;
  grid-row: span 2;
}

.chronicle-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.02);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.chronicle-gallery__item span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 34, 31, .78);
  color: #fff;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .24s ease, transform .24s ease;
}

.chronicle-gallery__item:hover img,
.chronicle-gallery__item:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.04);
}

.chronicle-gallery__item:hover span,
.chronicle-gallery__item:focus-visible span {
  opacity: 1;
  transform: none;
}

.chronicle-gallery__item:focus-visible {
  outline: 3px solid rgba(184, 154, 85, .65);
  outline-offset: 3px;
}

.chronicle-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #171917;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
}

.chronicle-lightbox::backdrop {
  background: rgba(18, 19, 18, .82);
  backdrop-filter: blur(8px);
}

.chronicle-lightbox figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 32px);
}

.chronicle-lightbox img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  display: block;
  background: #111;
}

.chronicle-lightbox figcaption {
  padding: 14px 58px 16px 18px;
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  line-height: 1.45;
}

.chronicle-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(20, 22, 20, .76);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Fallback styling for the existing short English timeline. */
.chronicle:not(.chronicle-section) {
  display: grid;
  gap: clamp(42px, 7vw, 90px);
  background: linear-gradient(180deg, #fbf8f2 0%, #f4eee4 100%);
}

.chronicle-intro {
  max-width: 880px;
}

.chronicle-intro h2,
.chronicle:not(.chronicle-section) .section-head h2 {
  font-family: var(--font-script, "Caveat", cursive);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: .95;
  margin: .1em 0;
}

.chronicle-timeline:not(div) {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.chronicle-timeline:not(div) li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.chronicle-timeline:not(div) time {
  color: var(--gold);
  font-weight: 900;
}

.chronicle-timeline:not(div) p {
  margin: 0;
}

@media (max-width: 980px) {
  .chronicle-timeline::before {
    left: 18px;
    transform: none;
  }

  .chronicle-era,
  .chronicle-era--reverse {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .chronicle-era__marker,
  .chronicle-era--reverse .chronicle-era__marker {
    grid-column: 1;
    grid-row: 1;
    top: 112px;
    margin-top: 32px;
  }

  .chronicle-era__marker span {
    display: none;
  }

  .chronicle-era__card,
  .chronicle-era--reverse .chronicle-era__card {
    grid-column: 2;
    grid-row: 1;
  }

  .chronicle-gallery {
    grid-auto-rows: clamp(100px, 18vw, 160px);
  }
}

@media (max-width: 640px) {
  .chronicle-section {
    padding-inline: 14px;
  }

  .chronicle-hero {
    text-align: left;
  }

  .chronicle-hero h2 {
    font-size: clamp(4rem, 22vw, 6.5rem);
  }

  .chronicle-jump {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 2px 10px;
    scrollbar-width: none;
  }

  .chronicle-jump::-webkit-scrollbar {
    display: none;
  }

  .chronicle-timeline {
    gap: 34px;
  }

  .chronicle-era,
  .chronicle-era--reverse {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .chronicle-timeline::before {
    left: 10px;
  }

  .chronicle-era__marker,
  .chronicle-era--reverse .chronicle-era__marker {
    width: 18px;
    height: 18px;
    margin-left: 1px;
    border-width: 4px;
  }

  .chronicle-era__card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .chronicle-era__head p {
    font-size: 2.25rem;
  }

  .chronicle-era__head h2 {
    font-size: 3rem;
  }

  .chronicle-events li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .chronicle-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 112px;
    gap: 7px;
  }

  .chronicle-gallery__item--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .chronicle-gallery__item span {
    display: none;
  }

  .chronicle-lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chronicle-gallery__item img,
  .chronicle-gallery__item span,
  .chronicle-jump a {
    transition: none;
  }
}

.chronicle-source-link{display:inline-flex;align-items:center;justify-content:center;margin-top:20px;padding:11px 17px;border:1px solid var(--gold);border-radius:999px;color:var(--ink);font-weight:800;text-decoration:none}.chronicle-source-link:hover{background:var(--gold);color:#fff}
