/* ---------- Tokens ---------- */

:root {
  --parchment: #ead8b5;
  --paper: #f1e7d0;
  --sand: #e2cfa9;
  --rule: #c4ae84;
  --tan: #a78467;
  --rust: #9a5735;
  --oxblood: #7e3b2a;
  --forest: #354031;
  --muted: #857f74;

  --font-display: "Playfair Display", serif;
  --font-body: "Libre Caslon Text", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;

  --gutter: 24px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

body {
  margin: 0;
  background: var(--parchment);
  color: var(--forest);
  font-family: var(--font-body);
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.15;
}

a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

/* Keep the `hidden` attribute authoritative over any section's display rule. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  background: var(--oxblood);
  color: var(--parchment);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
}

/* ---------- Shared pieces ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--rust);
}

.label {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--rust);
}

.panel {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--rule);
}

.btn,
.btn:hover {
  background: var(--oxblood);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 3px;
  padding: 20px 52px;
  text-decoration: none;
}

.btn--compact {
  font-size: 15px;
  padding: 16px 36px;
}

.btn--light,
.btn--light:hover {
  background: var(--parchment);
  color: var(--oxblood);
}

/* Line icons: stroke color comes from `color` on the svg. */
.cover__item svg,
.feature svg {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  color: var(--oxblood);
}

.feature {
  border-top: 3px solid var(--tan);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 48px;
  border-bottom: 2px solid var(--rule);
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  display: block;
  width: 68px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}

.prior-summits {
  position: relative;
}

.prior-summits summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 2px;
}

.prior-summits summary::-webkit-details-marker {
  display: none;
}

.prior-summits__menu {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 7;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--rule);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 1px;
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: calc(100svh - 105px); /* viewport minus header */
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter) 12vh;
  text-align: center;
  background: url(assets/art-middleburg-village.jpg) center 70% / cover
    no-repeat var(--parchment);
}

.hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 72px clamp(40px, 7vw, 96px) 64px;
  background: rgba(234, 216, 181, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hero-settle 1.1s var(--ease-out) both;
}

.hero__eyebrow,
.hero__date {
  font-family: var(--font-mono);
  text-shadow: 0 1px 8px rgba(234, 216, 181, 0.7);
}

.hero__eyebrow {
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--oxblood);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7.5vw, 118px);
  line-height: 1.02;
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(234, 216, 181, 0.7);
}

.hero__rule {
  width: 300px;
  height: 3px;
  background: var(--tan);
}

.hero__date {
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 6px;
}

.hero .btn {
  margin-top: 6px;
}

/* ---------- Countdown ---------- */

.countdown {
  background: var(--forest);
  color: var(--parchment);
  padding: 56px var(--gutter);
}

.countdown__units {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 90px);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  animation: count-in 0.7s ease 0.5s both;
}

.countdown__unit:nth-child(2) {
  animation-delay: 0.62s;
}
.countdown__unit:nth-child(3) {
  animation-delay: 0.74s;
}
.countdown__unit:nth-child(4) {
  animation-delay: 0.86s;
}

.countdown__value {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: 4px;
}

.countdown__label {
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--rule);
}

/* ---------- Intro ---------- */

.intro {
  position: relative;
  overflow: hidden;
  padding: 110px var(--gutter);
}

.intro__body {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.intro__mark {
  width: 210px;
  height: auto;
}

.intro__lede {
  max-width: 62ch;
  font-size: 22px;
  line-height: 1.7;
}

.leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.leaf {
  position: absolute;
  top: 0;
  border-radius: 0 50% 0 50%;
  animation: leaf-fall linear infinite;
  will-change: transform;
}

/* ---------- What we'll cover ---------- */

.cover {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.cover__text {
  display: flex;
  justify-content: center;
  padding: 90px 72px 110px;
}

.cover__inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.cover__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cover__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 22px;
  padding: 22px 0 6px;
  border-top: 3px solid var(--tan);
}

.cover__item svg {
  margin-top: 4px;
}

.cover__item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover__copy {
  font-size: 20px;
  line-height: 1.6;
}

.cover__art {
  position: relative;
  overflow: hidden;
  min-height: 640px;
}

.cover__art-drift {
  position: absolute;
  inset: 0;
  background: url(assets/art-great-falls.jpg) center / cover no-repeat;
  animation: art-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---------- Featured attendees ---------- */

.attendees {
  padding: 130px var(--gutter);
}

.attendees__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

/* Photo fills a 4:5 tile; the name sits on a forest band along the bottom. */
.attendee {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    var(--sand),
    var(--sand) 12px,
    #d9c49c 12px,
    #d9c49c 24px
  );
  box-shadow: inset 0 0 0 2px var(--rule);
}

.attendee__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.attendee__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 10px;
  background: rgba(53, 64, 49, 0.9);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--parchment);
}

/* ---------- Signature moments ---------- */

.moments {
  background: var(--oxblood);
  color: var(--parchment);
  padding: 130px var(--gutter);
}

.moments .container {
  gap: 64px;
}

.moments .grid-3 {
  gap: 56px;
}

.moments .feature svg {
  color: var(--sand);
}

.moments h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
}

.moments .feature p {
  font-size: 20px;
  line-height: 1.7;
}

/* ---------- The setting ---------- */

.setting {
  box-sizing: border-box;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter);
  background: url(assets/art-salamander-lodge.jpg) center / cover no-repeat;
}

.setting__card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 64px 56px;
  background: var(--parchment);
  box-shadow: 0 0 0 3px var(--oxblood);
}

.setting__lede {
  font-size: 22px;
  line-height: 1.65;
}

/* ---------- Agenda ---------- */

.agenda {
  padding: 130px var(--gutter);
  background: var(--oxblood);
  color: var(--parchment);
}

/* The agenda runs wider than the standard 1100px column. */
.agenda .container {
  max-width: min(1500px, calc(100vw - 64px));
}

.agenda .eyebrow {
  color: var(--sand);
}

.agenda .grid-3 {
  gap: 28px;
}

.agenda-day {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 32px 60px;
  color: var(--forest);
}

.agenda-day__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda-day__label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--rust);
}

.agenda-day h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
}

.agenda-day__rule {
  width: 60px;
  height: 3px;
  background: var(--tan);
}

.agenda-day__summary {
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- Travel ---------- */

.travel {
  padding: 130px var(--gutter);
}

.travel svg {
  stroke-width: 3.5;
}

.travel h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 3px;
}

.travel .feature p {
  font-size: 20px;
  line-height: 1.7;
}

.airports {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.airports li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
}

.airports li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.airports__code,
.airports__time {
  font-family: var(--font-mono);
  font-size: 15px;
}

.airports__code {
  color: var(--rust);
}

/* ---------- Accommodations ---------- */

.rooms {
  padding: 0 var(--gutter) 130px;
}

.rooms__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.rooms__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rooms__lede {
  font-size: 21px;
  line-height: 1.7;
}

.rates {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each rate is a booking link to Salamander's reservation site. */
.rate {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--oxblood);
  text-decoration: none;
  transition: background 0.2s;
}

.rate:hover {
  background: var(--sand);
}

.rate__name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1.5px;
  color: var(--forest);
}

.rate__cta {
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--oxblood);
}

.rooms__art {
  min-height: 456px;
  background: url(assets/art-salamander-portico-vertical.jpg) center / cover no-repeat;
}

/* ---------- Participation (CTA + quotes) ---------- */

.cta {
  box-sizing: border-box;
  min-height: calc(100svh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 100px var(--gutter);
  text-align: center;
  color: var(--parchment);
  background: url(assets/art-salamander-grounds.jpg) center / cover no-repeat;
}

.cta__card {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 72px;
  background: var(--forest);
}

.cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--rule);
}

.cta h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}

.cta__date {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 5px;
}

.cta__lede {
  font-size: 21px;
  line-height: 1.7;
}

.quotes__grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: left;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 44px 40px;
  background: var(--forest);
  color: var(--parchment);
}

.quote__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.5;
  color: var(--rule);
}

.quote blockquote {
  flex: 1;
  font-style: italic;
  font-size: 23px;
  line-height: 1.65;
}

.quote figcaption {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--rule);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: center;
  padding: 40px 48px;
}

.site-footer a,
.site-footer a:hover {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--oxblood);
}

/* ---------- Motion ---------- */

/* main.js adds .is-hidden to below-the-fold [data-reveal] elements, then
   removes it as each scrolls into view. --reveal-delay staggers siblings. */
[data-reveal] {
  transition:
    opacity 0.9s ease var(--reveal-delay, 0s),
    transform 0.9s var(--ease-out) var(--reveal-delay, 0s);
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes count-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes art-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.04) translateY(-2.2%);
  }
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -80px, 0) rotate(0deg);
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  50% {
    transform: translate3d(70px, 430px, 0) rotate(170deg);
  }
  74% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translate3d(-30px, 900px, 0) rotate(330deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__card,
  .countdown__unit,
  .cover__art-drift {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cover {
    grid-template-columns: 1fr;
  }
  .cover__art {
    min-height: 420px;
  }
  .attendees__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .moments .grid-3 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .travel .grid-3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .agenda .grid-3 {
    grid-template-columns: 1fr;
  }
  .rooms__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .quotes__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .attendees__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  h2,
  .cta h2 {
    font-size: 36px;
  }

  .site-header {
    padding: 18px 20px;
  }
  .hero {
    min-height: 480px;
  }
  .countdown__units {
    gap: 28px;
  }
  .intro,
  .attendees,
  .moments,
  .travel {
    padding-block: 72px;
  }
  .cover {
    padding-inline: var(--gutter);
  }
  .cover__text {
    padding: 64px 20px 72px;
  }
  .cover__art {
    min-height: 320px;
  }
  .rooms,
  .agenda {
    padding-bottom: 80px;
  }
  .rate__name {
    white-space: normal;
    font-size: 20px;
  }
  .cta__card {
    padding: 56px 24px;
  }
  .quote {
    padding: 36px 28px 32px;
  }
}
