:root {
  color-scheme: light;
  --ink: #251934;
  --muted: #564d5f;
  --purple: #462568;
  --line: #e6deeb;
  --paper: #fcfaff;
  --violet-wash: #f0e8f6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #8852ab; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2.3rem, 4.3vw, 3.75rem); letter-spacing: -.045em; }
h3 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5.6rem; padding-block: .85rem; }
.brand { display: inline-block; flex: none; }
.brand img { height: auto; }
.site-header .brand img { width: 12.5rem; }
nav { display: flex; gap: clamp(.75rem, 2.5vw, 2.2rem); align-items: center; }
nav a { text-decoration: none; font-weight: 650; font-size: .91rem; }
nav a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .3em; }
.nav-social { border: 1px solid var(--line); border-radius: 100px; padding: .35rem 1rem; }

.hero { background: linear-gradient(118deg, #f7f0fa 0%, #f8f4fb 56%, #eee4f4 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: clamp(2rem, 5.3vw, 5.25rem); padding-block: clamp(3.3rem, 6.7vw, 6.6rem); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--purple); }
.eyebrow span { display: inline-block; width: 1.9rem; height: 1px; background: #936fac; vertical-align: middle; margin-right: .65rem; }
h1 { margin-top: 1rem; font-size: clamp(2.65rem, 4.75vw, 4.65rem); letter-spacing: -.057em; }
h1 em { display: block; color: var(--purple); }
.intro { color: var(--muted); font-size: 1.075rem; max-width: 31rem; margin-top: 1.45rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.95rem; padding: .55rem 1.18rem; border-radius: 100px; border: 1px solid transparent; font-size: .9375rem; font-weight: 700; text-decoration: none; transition: background-color .18s, color .18s; }
.primary { background: var(--purple); color: white; }
.primary:hover { background: #301749; }
.outline { border-color: #b8a3c9; color: var(--purple); }
.outline:hover { background: #e9ddf1; }
.hero-image { width: min(100%, 27rem); justify-self: center; border: 1px solid #d6c5e0; padding: .5rem; background: #fff; border-radius: .25rem; box-shadow: 0 1.4rem 3rem #38204a21; }
.hero-image img { width: 100%; height: auto; border-radius: .14rem; }

.events { padding-block: clamp(3.5rem, 6.5vw, 6.25rem); }
.section-intro h2, .referral-inner h2 { margin-top: .55rem; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.9rem; }
.event-card { padding: clamp(1.35rem, 3.4vw, 2.65rem); border: 1px solid var(--line); border-radius: .25rem; display: flex; align-items: flex-start; flex-direction: column; }
.agility { background: #f4edf8; }
.shows { background: #eff2eb; border-color: #dce4d8; }
.event-tag { font-size: .875rem; font-weight: 700; color: var(--purple); border-bottom: 1px solid #b8a3c9; padding-bottom: .45rem; margin-bottom: 1.1rem; }
.shows .event-tag { color: #3b5545; border-color: #9eb1a2; }
.event-card p { margin-block: .65rem 1.1rem; color: var(--muted); max-width: 29rem; }
.text-link { color: var(--purple); font-weight: 700; text-underline-offset: .23em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.event-card .text-link { margin-top: auto; }

.gallery { padding-block: clamp(2.1rem, 4vw, 3.4rem) clamp(3.5rem, 6.5vw, 6.25rem); border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: 1.5fr .8fr .81fr 1.12fr; gap: .85rem; margin-top: 1.5rem; }
.gallery-grid img { width: 100%; height: auto; border-radius: .25rem; }

.referrals { border-top: 1px solid var(--line); background: white; }
.referral-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.1rem, 6vw, 5.4rem); }
.referral-copy h2 + p { color: var(--muted); max-width: 34rem; margin-top: 1rem; }
.referral-photo { width: 100%; height: auto; border-radius: .25rem; }
.referral-inner .actions { margin-top: 1.15rem; }

.social { background: #37204f; color: #fff; }
.social-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.75rem; }
.social-inner h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.social-inner p { color: #ede3f3; margin-top: .6rem; }
.light { flex: none; color: var(--purple); background: #fff; }
.light:hover { background: var(--violet-wash); }

footer { background: white; padding-block: 1.45rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; }
.footer-inner .brand img { width: 6.5rem; }
.footer-inner .text-link { font-size: .875rem; white-space: nowrap; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 42rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child, .gallery-grid figure:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .85rem; padding-block: .95rem; }
  .site-header .brand img { width: 10.5rem; }
  nav { gap: .15rem .9rem; flex-wrap: wrap; }
  .nav-social { border: none; padding: 0; }
  .referral-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner { gap: 1.65rem; }
  .event-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: .55rem; }
  .social-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-wrap: wrap; gap: .6rem 1rem; }
  .footer-inner p { flex-basis: 100%; order: 1; }
}

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