/* Theme: "Untitled" from Graphical UI.
   Light mode only. Two deliberate departures from the theme, both for WCAG AA:
   - Focus ring uses --color-4. The theme's --color-1 focus outline is 1.07:1 on white.
   - Muted text uses --neutral-8. The theme's --neutral-7 is 4.1:1 on white. */

@font-face {
  font-family: "Timeless Grotesk";
  src: url("/fonts/TimelessSans-GroteskRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Timeless Grotesk";
  src: url("/fonts/TimelessSans-GroteskMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Timeless Grotesk";
  src: url("/fonts/TimelessSans-GroteskSemibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --font-ui: "Timeless Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: var(--font-ui);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-heavy: 600;

  --size-xs: 13px;  --line-xs: 17px;  --letter-spacing-xs: 0.01em;
  --size-s: 15px;   --line-s: 22px;   --letter-spacing-s: 0.01em;
  --size-m: 17px;   --line-m: 26px;   --letter-spacing-m: 0em;
  --size-l: 26px;   --line-l: 35px;   --letter-spacing-l: -0.01em;
  --size-xl: 39px;  --line-xl: 43px;  --letter-spacing-xl: -0.01em;
  --size-xxl: 52px; --line-xxl: 56px; --letter-spacing-xxl: -0.02em;
  --tracking-l: 0.01em;

  --space-xxs: 5px;
  --space-xs: 10px;
  --space-s: 15px;
  --space-m: 20px;
  --space-l: 29px;
  --space-xl: 39px;
  --space-xxl: 59px;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 17px;

  --shadow-s: 0px 2px 4px 0px #00000000;
  --shadow-m: 0px 2px 6px 0px #0000000d, 0px 8px 24px 0px #00000013;

  --motion-duration: 200ms;
  --motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-press-distance: 1px;

  --color-1: #fbf7f4;
  --color-2: #ecd8a2;
  --color-2-transparent: #ecd8a229;
  --color-3: #d23434;
  --color-4: #4554ec;
  --neutral-1: #ffffff;
  --neutral-3: #f4f4f4;
  --neutral-3-transparent: #f4f4f433;
  --neutral-4: #e7e7e7;
  --neutral-4-transparent: #e7e7e733;
  --neutral-5: #cdcdcd;
  --neutral-8: #555555;
  --neutral-10: #000000;

  --canvas: var(--neutral-1);
  --text: var(--neutral-10);
  --text-muted: var(--neutral-8);
  --focus: var(--color-4);
  --hero-ground: #1b2340;
  --hero-scrim: rgb(10 16 40 / 0.6);
  --hero-button-fill: rgb(10 16 40 / 0.5);
  --hero-button-fill-hover: rgb(10 16 40 / 0.75);

  --content-width: 1120px;
  --narrow-width: 680px;
  --gutter: 16px;
}

@media (min-width: 600px) {
  :root { --gutter: var(--space-l); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: var(--weight-regular);
  font-size: var(--size-m);
  line-height: var(--line-m);
  letter-spacing: var(--letter-spacing-m);
  text-wrap: pretty;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, p, ul, dl, dd) { margin: 0; }
:where(ul) { padding: 0; list-style: none; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; cursor: help; }

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(var(--narrow-width) + 2 * var(--gutter)); }

.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 10;
  padding: var(--space-xs) var(--space-s);
  background: var(--neutral-10);
  color: var(--neutral-1);
  border-radius: var(--radius-s);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-s); }

/* Header: sits on the flag, so it is light-on-dark */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  color: var(--neutral-1);
}
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--neutral-1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 72px;
}
.wordmark {
  font-family: var(--font-brand);
  font-weight: var(--weight-heavy);
  font-size: var(--size-m);
  line-height: var(--line-m);
  text-decoration: none;
  padding-block: var(--space-xs);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav-list a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-xs);
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--letter-spacing-s);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.nav-list a:not(.button):hover { text-decoration: underline; }
.nav-optional { display: none; }
@media (min-width: 600px) {
  .nav-optional { display: list-item; }
}

/* Buttons (theme: radius s, padding s / l, text s, medium, tracking l) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-s) var(--space-l);
  border: 0;
  border-radius: var(--radius-s);
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--tracking-l);
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background-color var(--motion-duration) var(--motion-easing),
              box-shadow var(--motion-duration) var(--motion-easing),
              transform var(--motion-duration) var(--motion-easing);
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(var(--motion-press-distance)); }
.button-primary { background: var(--neutral-10); color: var(--neutral-1); }
.button-primary:hover { box-shadow: var(--shadow-s); }
.button-secondary { background: var(--neutral-3); color: var(--neutral-10); }
.button-secondary:hover { background: var(--neutral-4); }
/* On the gold section, neutral-3 matches the ground, so step the fill up one neutral. */
.section-tint .button-secondary { background: var(--neutral-4); }
.section-tint .button-secondary:hover { background: var(--neutral-5); }
/* On the flag */
.button-inverse { background: var(--neutral-1); color: var(--neutral-10); }
.button-inverse:hover { background: var(--neutral-4); }
.button-on-dark {
  background: var(--hero-button-fill);
  color: var(--neutral-1);
  box-shadow: inset 0 0 0 1px var(--neutral-1);
}
.button-on-dark:hover { background: var(--hero-button-fill-hover); }
.button-light { background: var(--neutral-1); color: var(--neutral-10); }
.button-light:hover { background: var(--neutral-3); }
.button-compact { padding-block: var(--space-xs); padding-inline: var(--space-m); }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-l);
}
.actions + p { margin-top: var(--space-m); }
@media (max-width: 599px) {
  .actions .button { flex: 1 1 auto; }
  .actions-stack .button { flex-basis: 100%; }
}

/* Hero: full-bleed flag with a curved bottom edge */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(760px, 92svh);
  padding-block: calc(72px + var(--space-xl)) calc(var(--space-xxl) * 2);
  color: var(--neutral-1);
  text-align: center;
  background: var(--hero-ground);
  clip-path: ellipse(130% 100% at 50% 0%);
}
@media (min-width: 960px) {
  .hero { clip-path: ellipse(85% 100% at 50% 0%); }
}
.hero picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Overlay sized so white text clears AA even over the brightest white stripe. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
}
.hero-inner { min-width: 0; max-width: calc(820px + 2 * var(--gutter)); }

.hero-title {
  font-family: var(--font-brand);
  font-weight: var(--weight-heavy);
  font-size: var(--size-xl);
  line-height: var(--line-xl);
  letter-spacing: var(--letter-spacing-xl);
  text-wrap: balance;
}
@media (min-width: 600px) {
  .hero-title {
    font-size: var(--size-xxl);
    line-height: var(--line-xxl);
    letter-spacing: var(--letter-spacing-xxl);
  }
}
.hero-meta {
  margin-top: var(--space-m);
  font-size: var(--size-l);
  line-height: var(--line-l);
  letter-spacing: var(--letter-spacing-l);
  font-weight: var(--weight-medium);
  text-wrap: balance;
}
.hero-sub { margin-top: var(--space-s); }
@media (max-width: 599px) {
  .hero { min-height: 0; padding-bottom: calc(var(--space-xxl) + var(--space-l)); }
  .hero-meta .nowrap { display: block; white-space: normal; }
  .hero-meta .sep, .hero-meta br { display: none; }
}
.actions-center { justify-content: center; margin-top: var(--space-xl); }

/* Details */
.details-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 960px) {
  .details-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xxl); }
}
.facts {
  display: grid;
  gap: var(--space-m);
}
.fact dt {
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--letter-spacing-s);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.fact dd { margin-top: var(--space-xxs); }
.fact-callout {
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background: var(--neutral-3);
}
.callout-time {
  display: block;
  font-size: var(--size-l);
  line-height: var(--line-l);
  letter-spacing: var(--letter-spacing-l);
  font-weight: var(--weight-heavy);
  color: var(--color-3);
}
.details-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-l);
}

/* Sections */
.section { padding-block: var(--space-xxl); }
.section-tint { background: var(--color-2-transparent); }
.section-gold { background: var(--color-2); }
.section-lede { margin-top: calc(-1 * var(--space-xs)); margin-bottom: var(--space-l); }

.section-title {
  font-family: var(--font-brand);
  font-weight: var(--weight-heavy);
  font-size: var(--size-l);
  line-height: var(--line-l);
  letter-spacing: var(--letter-spacing-l);
  margin-bottom: var(--space-m);
}
@media (min-width: 600px) {
  .section-title {
    font-size: var(--size-xl);
    line-height: var(--line-xl);
    letter-spacing: var(--letter-spacing-xl);
  }
}

.section p + p { margin-top: var(--space-s); }
.section p + .sponsors, .sponsors + p { margin-top: var(--space-s); }

.label {
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--letter-spacing-s);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-bottom: var(--space-s);
}

/* About (post-event) */
.about-label { margin-top: var(--space-l); }
.about-note { margin-top: var(--space-l); }

/* Guests */
.hosts li {
  font-size: var(--size-m);
  line-height: var(--line-m);
  font-weight: var(--weight-medium);
}
.hosts li + li { margin-top: var(--space-xxs); }

.guests-label { margin-top: var(--space-xl); }
.dignitaries {
  display: grid;
  gap: var(--space-xs) var(--space-l);
}
@media (min-width: 600px) {
  .dignitaries { grid-template-columns: 1fr 1fr; }
}
.dignitaries li {
  position: relative;
  padding-left: var(--space-m);
}
.dignitaries li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--line-m) / 2 - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-3);
}

/* FAQ */
.faq-q {
  font-size: var(--size-m);
  line-height: var(--line-m);
  font-weight: var(--weight-heavy);
}
.faq-q:not(:first-child) { margin-top: var(--space-l); }
.faq-q + p { margin-top: var(--space-xxs); }

/* Disclosures (native details/summary) */
.disclosure { margin-top: var(--space-l); }
.disclosure > summary {
  display: list-item;
  list-style-position: inside;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-s);
  background: var(--neutral-3);
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--tracking-l);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.disclosure > summary:hover { background: var(--neutral-4); }
.more-photos .gallery { margin-top: var(--space-m); }

/* Featured photos */
.featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s) var(--space-xs);
}
.feature { margin: 0; display: flex; flex-direction: column; }
.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  background: var(--neutral-3);
}
.feature-lead { grid-column: 1 / -1; }
.feature-lead img { aspect-ratio: 3 / 2; }
.feature-tall img { object-position: center 30%; }
.feature figcaption {
  margin-top: var(--space-xs);
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--letter-spacing-s);
  color: var(--text-muted);
}
@media (min-width: 960px) {
  .featured { grid-template-columns: repeat(3, 1fr); gap: var(--space-l) var(--space-s); }
  .feature-lead { grid-column: span 2; }
  .feature img { aspect-ratio: 3 / 2; }
  /* The tall photo fills the lead's row height instead of setting its own. */
  .feature-tall img { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
}

/* Gallery */
.gallery {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius-m);
  background: var(--neutral-3);
}

.video-label { margin-top: var(--space-xxl); }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--neutral-3);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Donation amounts: each preset matches a tile on the Anedot form. */
.amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 420px;
}
.amounts .button { position: relative; }
.amounts .amount-other { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .amounts { grid-template-columns: repeat(4, 1fr) auto; max-width: none; width: fit-content; }
  .amounts .amount-other { grid-column: auto; }
}

/* Sponsors */
.sponsors li + li { margin-top: var(--space-xxs); }

/* Footer */
.site-footer {
  background: var(--color-1);
  padding-block: var(--space-xl);
  font-size: var(--size-s);
  line-height: var(--line-s);
  letter-spacing: var(--letter-spacing-s);
}
.footer-inner {
  display: grid;
  gap: var(--space-s);
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: repeat(2, auto); justify-content: space-between; align-items: start; }
}
.site-footer a {
  display: inline-block;
  padding-block: var(--space-xxs);
}
