:root {
  --moss: #5a5e27;
  --moss-deep: #3f4320;
  --burgundy: #640017;
  --burgundy-soft: #7a1a2e;
  --chocolate: #2f1b1a;
  --night: #1a100f;
  --ivory: #efefc9;
  --ivory-dim: rgba(239, 239, 201, 0.72);
  --ivory-faint: rgba(239, 239, 201, 0.42);
  --gold: #c4a35a;
  --gold-bright: #e8d48b;
  --gold-line: rgba(196, 163, 90, 0.38);
  --display: "Yeseva One", "Times New Roman", serif;
  --italic: "Cormorant Garamond", "Times New Roman", serif;
  --text: "Old Standard TT", "Iowan Old Style", Georgia, serif;
  --small: "Cormorant SC", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(100, 0, 23, 0.22), transparent 42%),
    var(--night);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ivory);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  font-family: var(--small);
  font-size: 0.92rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.18;
}

h3 {
  font-family: var(--italic);
  font-weight: 500;
  line-height: 1.2;
  font-size: 1.5rem;
  color: var(--gold-bright);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.4rem 0 1rem;
}

.lead {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ivory-dim);
  max-width: 38rem;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 5vw;
  background: rgba(26, 16, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
}

.nav-brand {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  list-style: none;
  font-family: var(--small);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.nav-links li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem 0 0.35rem;
  color: var(--gold);
}

.nav-links a {
  color: var(--ivory-dim);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5rem 1.25rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 16, 15, 0.55) 0%, rgba(47, 27, 26, 0.72) 45%, rgba(26, 16, 15, 0.88) 100%),
    url("img/hero-larzec.jpg") center 62% / cover no-repeat,
    var(--chocolate);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 7%;
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 7px rgba(26, 16, 15, 0.25);
  pointer-events: none;
}

.hero .corner {
  position: absolute;
  width: 72px;
  height: 72px;
  background: url("img/corner.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

.hero .corner.tl { top: 10%; left: 7%; }
.hero .corner.tr { top: 10%; right: 7%; transform: scaleX(-1); }
.hero .corner.bl { bottom: 10%; left: 7%; transform: scaleY(-1); }
.hero .corner.br { bottom: 10%; right: 7%; transform: scale(-1); }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7.4vw, 5rem);
  margin: 1rem 0 0.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-lid {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}

.hero-arc {
  font-family: var(--italic);
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  color: var(--ivory);
  margin-bottom: 1.4rem;
}

.hero .dot {
  color: var(--gold);
}

.ab {
  display: grid;
  gap: 0.7rem;
  text-align: left;
  margin: 0 auto;
  max-width: 28rem;
}

.ab p {
  color: var(--ivory-dim);
  font-size: 1.05rem;
}

.ab b {
  font-family: var(--display);
  font-weight: 400;
  color: var(--gold);
  margin-right: 0.45rem;
}

.hero p {
  color: var(--ivory-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.55rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--small);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
}

.btn:hover {
  background: var(--burgundy);
  color: var(--ivory);
}

.btn-solid {
  background: var(--burgundy);
  border-color: var(--burgundy-soft);
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--small);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

section {
  padding: 5.5rem 0;
  scroll-margin-top: 4.5rem;
}

.section-ink {
  background: var(--chocolate);
}

.section-moss {
  background: linear-gradient(180deg, var(--moss-deep), #2a2c16 70%);
}

.section-lid {
  background:
    linear-gradient(180deg, rgba(47, 27, 26, 0.2), rgba(47, 27, 26, 0.55)),
    var(--burgundy);
}

.ornament {
  width: min(280px, 72%);
  height: 28px;
  margin: 0 auto 1.4rem;
  background: url("img/ornament.svg") center / contain no-repeat;
  opacity: 0.9;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split p + p,
.prose p + p {
  margin-top: 1rem;
}

.prose {
  max-width: 40rem;
}

.drop::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.15rem;
  line-height: 0.82;
  padding: 0.12em 0.14em 0 0;
  color: var(--gold);
}

.muted {
  color: var(--ivory-dim);
}

/* lid card */
.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-line);
  outline-offset: 5px;
  background: var(--night);
}

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

.frame.tall img {
  min-height: 28rem;
  object-position: center 40%;
}

.map-frame {
  margin: 1.8rem 0 0;
}

.map-frame img {
  max-height: 28rem;
  width: 100%;
  object-fit: cover;
}

.lid-stack {
  display: grid;
  gap: 1rem;
}

.lid-card {
  margin: 0;
  max-width: none;
  background: var(--night);
  border: 1px solid var(--gold);
  padding: 2.2rem 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.lid-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}

.lid-card .inside {
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.95rem;
  color: var(--gold-bright);
  line-height: 1.3;
}

.lid-card .outside {
  margin-top: 1.4rem;
  font-family: var(--small);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* layers */
.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.layer {
  padding: 1.4rem 1.2rem 1.5rem;
  background: rgba(26, 16, 15, 0.45);
  border: 1px solid var(--gold-line);
}

.photo-layer {
  padding: 0 0 1.2rem;
  overflow: hidden;
}

.photo-layer img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.photo-layer span,
.photo-layer p {
  padding: 0 1.1rem;
}

.layer span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

/* path */
.path {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.step {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: rgba(26, 16, 15, 0.35);
  align-items: center;
}

.step b {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--gold);
  font-weight: 400;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.step small {
  display: block;
  font-family: var(--small);
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.step.has-photo {
  grid-template-columns: 4.2rem 1fr 7.5rem;
}

.step.has-photo img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.hands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.hands img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.quote {
  margin: 2.6rem 0 0;
  padding: 2rem 1.8rem;
  border: 1px solid var(--gold);
  background: rgba(26, 16, 15, 0.45);
  position: relative;
}

.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  background: url("img/corner.svg") center / contain no-repeat;
  opacity: 0.8;
}

.quote::before { top: 8px; left: 8px; }
.quote::after { bottom: 8px; right: 8px; transform: scale(-1); }

.quote-tale {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-bright);
  line-height: 1.35;
}

.quote-why {
  margin-top: 0.9rem;
  color: var(--ivory-dim);
  font-size: 1rem;
}

/* palette */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.swatch {
  flex: 1 1 140px;
  min-height: 92px;
  padding: 0.8rem;
  display: flex;
  align-items: flex-end;
  font-family: var(--small);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
}

.swatch.moss { background: var(--moss); color: var(--ivory); }
.swatch.burgundy { background: var(--burgundy); }
.swatch.chocolate { background: var(--chocolate); }
.swatch.ivory { background: var(--ivory); color: var(--chocolate); }
.swatch.gold { background: var(--gold); color: var(--night); }

/* medals */
.medals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.medal {
  text-align: center;
  padding: 1.4rem 0.8rem;
  border: 1px solid var(--gold-line);
}

.medal .sign {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(196, 163, 90, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: var(--gold-bright);
  font-size: 1.2rem;
}

.medal strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.medal p {
  font-size: 0.88rem;
  color: var(--ivory-dim);
  margin-top: 0.35rem;
}

.medal.current {
  background: rgba(100, 0, 23, 0.35);
}

/* faq */
.faq {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

details {
  border: 1px solid var(--gold-line);
  padding: 1rem 1.2rem;
  background: rgba(26, 16, 15, 0.3);
}

summary {
  cursor: pointer;
  font-family: var(--italic);
  font-size: 1.3rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 0.7rem;
  color: var(--ivory-dim);
}

.note {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--ivory-faint);
}

footer {
  padding: 2.2rem 5vw 2.8rem;
  border-top: 1px solid var(--gold-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--ivory-faint);
  font-family: var(--small);
  letter-spacing: 0.06em;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .split,
  .layers,
  .hands,
  .medals {
    grid-template-columns: 1fr 1fr;
  }

  .hero::before {
    inset: 5% 4%;
  }

  .hero .corner.tl { top: 5%; left: 4%; }
  .hero .corner.tr { top: 5%; right: 4%; }
  .hero .corner.bl { bottom: 5%; left: 4%; }
  .hero .corner.br { bottom: 5%; right: 4%; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0.15rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .layers,
  .hands,
  .medals,
  .split {
    grid-template-columns: 1fr;
  }

  .step,
  .step.has-photo {
    grid-template-columns: 2.6rem 1fr;
  }

  .step.has-photo img {
    grid-column: 1 / -1;
    width: 100%;
    height: 10rem;
  }

  section {
    padding: 3.6rem 0;
  }
}
