@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #141116;
  --paper: #f6f0e7;
  --gold: #d6b579;
  --lavender: #c4a7df;
  --muted: #b6acb8;
  --line: #d6b57930;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--ink); background: var(--lavender); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 6px; }
.site-shell { max-width: 900px; margin: auto; padding: 0 24px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; z-index: 10; color: var(--ink); background: var(--gold); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.page-section { min-height: 100svh; padding: 64px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 0; }
.hero-art { margin: 0; width: min(100%, calc((100svh - 130px) * .731)); max-width: 680px; }
.artwork-button { display: block; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.artwork-button img { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 16px; }
.hero-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--line); }
.hero-actions a { color: var(--muted); }
.hero-actions a[href="#boys"] { color: var(--gold); }
.hero-actions a[href="#girls"] { color: var(--lavender); }
.hero-actions a:hover { color: var(--paper); text-decoration-color: currentColor; }

.content-section { display: flex; align-items: center; }
.section-content { width: 100%; max-width: 640px; margin: auto; }
.section-title { font-family: var(--serif); font-size: clamp(43px, 6vw, 60px); font-weight: 500; line-height: 1.1; margin: 0 0 32px; }
.event-date { color: var(--muted); font-size: 13px; margin: -16px 0 32px; }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule-stop { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.schedule-time { color: var(--gold); font-size: 15px; line-height: 1.8; padding-top: 5px; }
.schedule-time > span { display: block; color: var(--muted); font-size: 12px; }
.schedule-place h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.2; margin: 0 0 12px; }
.venue-address { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 7px; color: var(--gold); font-size: 12px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.map-link:hover { color: var(--paper); text-decoration-color: currentColor; }
.team-section .section-content { max-width: 820px; }
.team-label { font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
.team-boys .team-label { color: var(--gold); }
.team-girls .team-label { color: var(--lavender); }
.team-section .section-title { margin-bottom: 30px; }
.team-boys .section-title { color: var(--gold); }
.team-girls .section-title { color: var(--lavender); }
.team-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; align-items: start; gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.team-member { min-width: 0; }
.team-member figure { margin: 0; }
.member-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-member figcaption { font-size: 14px; margin-top: 11px; line-height: 1.4; }
.member-featured { grid-row: span 2; }
.member-featured .member-portrait { aspect-ratio: 2 / 3; }
.member-featured figcaption { margin-top: 15px; }
.member-name { display: block; font-family: var(--serif); font-size: 33px; }
.team-boys .member-name { color: var(--gold); }
.team-girls .member-name { color: var(--lavender); }
.section-links { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; }
.section-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 12px; }
.section-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 6px; }

.dialog-open { overflow: hidden; }
.art-dialog { width: min(calc(100vw - 32px), calc((100dvh - 32px) * .731)); max-width: none; max-height: calc(100dvh - 32px); aspect-ratio: 1280 / 1751; padding: 0; border: 0; background: var(--ink); overflow: visible; }
.art-dialog::backdrop { background: #08060bf5; }
.art-dialog img { width: 100%; height: auto; object-fit: contain; }
.dialog-close { position: absolute; z-index: 1; right: 10px; top: 10px; border: 0; background: var(--ink); color: var(--paper); width: 44px; height: 44px; font-size: 29px; line-height: 1; }
.dialog-close:hover { color: var(--gold); }

@media (max-width: 720px) {
  .site-shell { padding: 0 16px; }
  .page-section { padding: 48px 0; }
  .hero { padding: 24px 0; }
  .hero-art { width: 100%; max-width: 520px; }
  .hero-actions { gap: 0 24px; }
  .schedule-stop { grid-template-columns: 82px 1fr; gap: 18px; padding: 26px 0; }
  .schedule-time { font-size: 13px; }
  .schedule-place h3 { font-size: 29px; }
  .venue-address { font-size: 12px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .member-featured { grid-column: 1 / -1; grid-row: auto; width: 80%; max-width: 340px; justify-self: center; margin-bottom: 8px; }
  .member-featured figcaption { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
