:root {
  --ivory: #EDE8DA;
  --linen: var(--ivory) url("images/linen.jpeg") repeat top left / 736px auto;
  --ink: #1E261F;
  --forest: #1F3026;
  --accent: #5C6541;
  --pale-yellow: #DDD3AE;
  --alt: #C4C6A8;
  --blue-bg: #AFBCC0;
  --overlay: linear-gradient(180deg, rgba(31,48,38,.72) 0%, rgba(31,48,38,.55) 50%, rgba(31,48,38,.82) 100%);
  --font-display: "ivypresto-display", "IvyPresto Display", "Playfair Display", Georgia, serif;
  --font-body: "neue-haas-grotesk-display", "Neue Haas Grotesk Display Pro", "Inter Tight", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  background: var(--linen); color: var(--ink);
  font-family: var(--font-body); font-weight: 300;
  letter-spacing: -0.012em;
  font-size: 1.125rem; line-height: 1.6;
}
img { display: block; width: 100%; }

.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: lowercase; line-height: 1; color: var(--forest); }
.display em { color: var(--accent); }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  padding: 1.75rem var(--gutter);
  background: var(--linen);
  border-bottom: 1px solid rgba(31,48,38,.15);
}
.wordmark { font-size: 1.3rem; text-decoration: none; white-space: nowrap; }
.outline { display: flex; flex-wrap: wrap; gap: .75rem; }
.outline a {
  font-size: .85rem; font-weight: 500; color: var(--forest); text-decoration: none;
  background: var(--pale-yellow); padding: .5rem 1.1rem; border-radius: 999px;
  white-space: nowrap; transition: background .2s, color .2s;
}
.outline a:hover { background: var(--forest); color: var(--pale-yellow); }

.hero {
  position: relative; isolation: isolate; min-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 6rem var(--gutter);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay); }
.hero h1 { font-size: clamp(4.5rem, 14vw, 8rem); color: var(--pale-yellow); }
.hero__sub { color: var(--ivory); margin-top: 1.5rem; max-width: 30rem; font-size: 1.2rem; }

.section { padding: 6rem var(--gutter); }
.section > p, .two-col p { max-width: 40rem; }
.section--alt { background: var(--alt); }
.section--blue { background: var(--blue-bg); }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.6rem; margin: 1.25rem 0 .4rem; }

.stat__frame, .season__frame, .dress-up__frame, .map__frame { position: relative; aspect-ratio: 4 / 3; }
.map__frame { aspect-ratio: 1000 / 640; }
.stat__frame::before, .season__frame::before, .dress-up__frame::before, .map__frame::before {
  content: attr(data-file); position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 2px dashed rgba(31,48,38,.45); border-radius: 16px;
  font-size: .9rem; opacity: .7;
}
.stat__img, .season__img, .dress-up__img, .map__img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; border-radius: 16px;
}
.map__img { object-fit: contain; border-radius: -5; border: 1px solid var(--forest); }
.stat__img, .season__img, .dress-up__img { filter: saturate(.7) contrast(.95); }

.map { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.map__list { list-style: none; display: grid; gap: 1rem; }
.map__list li { display: flex; gap: 1rem; align-items: flex-start; border-bottom: 1px solid rgba(31,48,38,.2); padding-bottom: 1rem; }
.map__list h3 { font-size: 1.5rem; margin: 0 0 .2rem; }
.map__list p { font-size: .95rem; }
.map__num {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--pale-yellow); color: var(--forest); font-size: .85rem; font-weight: 500;
}
.map__source { margin-top: 2rem; font-size: .85rem; opacity: .7; }

.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); align-items: start; }
.lede { font-size: 1.35rem; max-width: 32rem; }
.facts { display: grid; gap: 1.25rem; }
.facts div { border-top: 1px solid var(--forest); padding-top: .9rem; }
.facts dt { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); margin-bottom: .2rem; }

.stats, .seasons, .cousins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.stat figcaption { margin-top: 1rem; }
.stat .display { display: block; font-size: clamp(2.5rem, 4.5vw, 3.75rem); margin-bottom: .2rem; }

.season p { max-width: 24rem; }
.sorting { margin-top: 4rem; max-width: 40rem; }
.funfact {
  margin-top: 3rem; max-width: 40rem;
  border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.5rem;
}
.funfact__label { font-size: 1.8rem; color: var(--accent); margin-bottom: .3rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.two-col p + p { margin-top: 1rem; }

.party-list {
  list-style: none; display: flex; flex-wrap: wrap; row-gap: .75rem; margin-top: 3rem;
}
.party-list li { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.party-list li + li::before { content: "·"; margin: 0 1.5rem; color: var(--accent); }

.carousel { overflow: hidden; padding: 0 0 6rem; }
.carousel__track { display: flex; gap: 1.25rem; width: max-content; animation: scroll 45s linear infinite; }
.carousel__track img { width: 420px; height: 300px; object-fit: cover; border-radius: 16px; flex: none; }
.carousel:hover .carousel__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - .625rem)); } }

.list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--forest); }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--forest); font-size: .95rem; }
.list .display { font-size: 1.8rem; }
.note { margin-top: 2rem; font-size: 1rem; }

.cousin { border-top: 1px solid var(--forest); padding-top: .5rem; }
.cousin h3 { font-size: 2rem; }
.cousin__where { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }

.footer {
  background: var(--forest); color: var(--ivory);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 3.5rem var(--gutter);
}
.footer__mark { font-size: clamp(2rem, 4vw, 3rem); color: var(--pale-yellow); text-decoration: none; }
.footer__credit { font-size: .95rem; }
.footer__credit a { color: var(--pale-yellow); text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--ivory); }

.card img, .hero__img, .carousel__track img { filter: saturate(.7) contrast(.95); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { animation: none; }
  .carousel { overflow-x: auto; }
}

@media (max-width: 1100px) {
  .topbar { justify-content: center; text-align: center; }
  .outline { justify-content: center; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 5rem; }
  .outline { display: none; }
  .topbar { padding: 1.25rem var(--gutter); }
  .section { padding: 4rem var(--gutter); }
  .intro, .two-col, .stats, .seasons, .cousins, .map { grid-template-columns: 1fr; }
  .list li { flex-direction: column; gap: .25rem; }
  .party-list { flex-direction: column; row-gap: .5rem; }
  .party-list li + li::before { display: none; }
  .carousel { padding-bottom: 4rem; }
  .carousel__track img { width: 280px; height: 200px; }
  .footer { flex-direction: column; align-items: flex-start; }
}