@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --black: #050504;
  --ink: #0a0907;
  --panel: #11100d;
  --panel-light: #17140f;
  --gold: #d7aa52;
  --gold-bright: #f2cf7a;
  --gold-dark: #76501f;
  --ivory: #f3ead8;
  --muted: #b7aa92;
  --line: rgba(215, 170, 82, 0.25);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 78% 8%, rgba(180, 122, 38, 0.15), transparent 24rem),
    linear-gradient(180deg, #070706 0%, #0c0a07 45%, #050504 100%);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.17;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.025) 35px, transparent 36px);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: var(--black);
  background: var(--gold-bright);
  font-family: Cinzel, serif;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 3rem), var(--max));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  border: 1px solid var(--gold-bright);
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: .85rem; }
.brand small { color: var(--muted); font-size: .52rem; letter-spacing: .2em; }

.site-header nav { display: flex; align-items: center; gap: 1.3rem; }
.site-header nav a, .site-header nav span {
  color: var(--muted);
  font-family: Cinzel, serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--gold-bright); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .55fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  width: min(calc(100% - 3rem), var(--max));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  right: -8rem;
  width: 34rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(215, 170, 82, .12), inset 0 0 80px rgba(215, 170, 82, .06);
}

.hero-copy, .cover-frame { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(3.4rem, 7.8vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero blockquote {
  max-width: 680px;
  margin: 2rem 0 0;
  padding-left: 1.3rem;
  color: #e8dac1;
  border-left: 2px solid var(--gold);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: italic;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line);
  font-family: Cinzel, serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--gold); background: rgba(215,170,82,.1); }
.button.primary { color: #160e04; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-color: var(--gold-bright); }

.cover-frame {
  justify-self: end;
  width: min(100%, 394px);
  margin: 0;
  padding: .7rem;
  border: 1px solid var(--line);
  background: rgba(18, 15, 10, .72);
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 45px rgba(215,170,82,.09);
  transform: rotate(1.5deg);
}
.cover-frame img { width: 100%; height: auto; }
.cover-frame figcaption { padding: .8rem .2rem .1rem; color: var(--muted); font-family: Cinzel, serif; font-size: .58rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.document-mark { position: absolute; right: 32%; bottom: 1rem; color: rgba(215,170,82,.055); font: 800 clamp(10rem, 24vw, 23rem)/1 Cinzel, serif; }

.overview, .gallery-intro, .closing, .timeline {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.overview {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-block: 1px solid var(--line);
}

.overview h2, .gallery-intro h2, .closing h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
  text-transform: uppercase;
}
.overview > p { align-self: end; max-width: 630px; margin: 0; color: #d2c6b2; font-size: clamp(1rem, 1.6vw, 1.22rem); }

.gallery-intro { padding: clamp(5rem, 10vw, 9rem) 0 3rem; text-align: center; }
.gallery-intro p:last-child { max-width: 660px; margin: 1.3rem auto 0; color: var(--muted); }

.chapter-gallery { padding-bottom: 2rem; }
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  width: min(calc(100% - 3rem), var(--max));
  min-height: 620px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(0rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.chapter:nth-child(even) { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); }
.chapter:nth-child(even) .chapter-copy { grid-column: 2; }
.chapter:nth-child(even) figure { grid-column: 1; grid-row: 1; }
.chapter-copy { position: relative; z-index: 2; }
.chapter-number { position: absolute; top: -3rem; left: -1rem; z-index: -1; color: rgba(215,170,82,.09); font: 800 clamp(7rem, 13vw, 12rem)/1 Cinzel, serif; }
.chapter h2 { margin: 0 0 1.4rem; font: 700 clamp(2.2rem, 5vw, 5.2rem)/1 Cinzel, serif; letter-spacing: -.035em; text-transform: uppercase; }
.chapter-copy > p:not(.eyebrow) { max-width: 720px; color: #cfc3ae; }
.chapter-copy blockquote { margin: 1.8rem 0; padding: 1.1rem 0 1.1rem 1.4rem; color: var(--gold-bright); border-left: 2px solid var(--gold); font-size: 1.05rem; font-style: italic; }
.chapter figure {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(215,170,82,.1), rgba(0,0,0,.55));
  box-shadow: 0 25px 65px rgba(0,0,0,.6);
}
.chapter figure::before, .chapter figure::after { position: absolute; width: 42px; height: 42px; content: ""; pointer-events: none; }
.chapter figure::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.chapter figure::after { right: -1px; bottom: -1px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.chapter figure img { width: 100%; height: auto; background: #0c0a08; }

.closing { padding: clamp(6rem, 12vw, 11rem) 0; border-top: 1px solid var(--line); text-align: center; }
.closing h2 { max-width: 1050px; margin-inline: auto; color: var(--gold-bright); font-size: clamp(2.4rem, 6vw, 6.2rem); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(5rem, 10vw, 9rem);
  border: 1px solid var(--line);
}
.timeline > * { position: relative; min-height: 190px; padding: 2rem; text-decoration: none; }
.timeline > * + * { border-left: 1px solid var(--line); }
.timeline small, .timeline strong, .timeline em { display: block; }
.timeline small { margin-bottom: .8rem; color: var(--gold); font: 700 .65rem/1.4 Cinzel, serif; letter-spacing: .16em; text-transform: uppercase; }
.timeline strong { font: 700 clamp(1.25rem, 2.2vw, 2rem)/1.2 Cinzel, serif; text-transform: uppercase; }
.timeline em { margin-top: 1rem; color: var(--muted); font-size: .75rem; }
.timeline a { transition: background .2s ease; }
.timeline a:hover, .timeline a:focus-visible { background: rgba(215,170,82,.08); }
.timeline .current { background: linear-gradient(135deg, rgba(215,170,82,.16), rgba(215,170,82,.03)); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1.5rem, calc((100vw - var(--max))/2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #030303;
  font-family: Cinzel, serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
footer a { color: var(--gold); text-decoration: none; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; gap: 1.5rem; padding: 1rem 0; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1rem; }
  .hero { grid-template-columns: 1fr .48fr; gap: 2rem; min-height: auto; padding-block: 5rem; }
  .hero h1 { font-size: clamp(3.1rem, 9vw, 5rem); }
  .document-mark { display: none; }
  .overview { grid-template-columns: 1fr; gap: 1.5rem; }
  .chapter, .chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(210px, 300px); min-height: 520px; gap: 2.5rem; }
  .chapter:nth-child(even) .chapter-copy { grid-column: 2; }
  .chapter h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
  .timeline > * { padding: 1.4rem; }
}

@media (max-width: 680px) {
  .site-header { width: min(calc(100% - 2rem), var(--max)); flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  .site-header nav span { display: none; }
  .hero { grid-template-columns: 1fr; width: min(calc(100% - 2rem), var(--max)); padding: 4rem 0; }
  .hero-copy { order: 1; }
  .cover-frame { order: 2; justify-self: center; width: min(82vw, 330px); margin-top: 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .overview, .gallery-intro, .closing, .timeline, .chapter { width: min(calc(100% - 2rem), var(--max)); }
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; min-height: auto; padding-block: 5rem; }
  .chapter:nth-child(even) .chapter-copy, .chapter:nth-child(even) figure { grid-column: auto; grid-row: auto; }
  .chapter figure { width: min(78vw, 300px); }
  .chapter h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .chapter-number { top: -2.1rem; left: -.2rem; }
  .timeline { grid-template-columns: 1fr; }
  .timeline > * + * { border-top: 1px solid var(--line); border-left: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
