/* Harvard College Steelpan Ensemble
   ponytail: one stylesheet, no build step, no framework.
   Rebrand by editing the tokens block below and nothing else. */

/* ---------- tokens ---------- */
:root {
  /* Red / white / black, sampled from the ensemble badge.
     Two reds on purpose: the brand red is only 3.4:1 on black, which is fine
     for a button fill but fails as text. --red-text is the accessible one. */
  --red:       #C82030;   /* brand: button and badge fills, with white text on top */
  --red-text:  #FF4655;   /* links, eyebrows, anything red at text size (5.8:1) */

  --ground:    #0D0D0F;   /* page */
  --ground-alt:#17171A;   /* alternating band */
  --ground-deep:#000000;  /* deepest band, for features */
  --ink:       #F4F4F5;
  --ink-soft:  #A9A9B0;
  --steel:     #86868E;
  --line:      #292930;
  --surface:   rgba(255,255,255,.045);   /* cards + inputs, reads on any dark band */

  /* one family throughout, weights doing the work */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    var(--font-display);

  --measure: 62ch;
  --wrap:    1180px;
  --s1: .5rem;  --s2: 1rem;   --s3: 1.5rem;
  --s4: 2.5rem; --s5: 4rem;   --s6: 6.5rem;
  --radius: 2px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh;
  background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  line-height: 1.05; letter-spacing: -.035em;
  overflow-wrap: break-word; margin: 0 0 var(--s3);
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
p  { margin: 0 0 var(--s2); max-width: var(--measure); }
a  { color: var(--red-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; background: #fff; color: #000; padding: var(--s2) var(--s3); z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { left: var(--s2); top: var(--s2); }
::selection { background: var(--red); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }
.section { padding-block: var(--s6); }
.section--tight { padding-block: var(--s5); }
.section--alt { background: var(--ground-alt); }
.section--dark { background: var(--ground-deep); }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--steel); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-text); margin: 0 0 var(--s2);
  display: flex; align-items: center; gap: var(--s2);
}
.eyebrow::after { content: ""; flex: 1; height: 2px; background: var(--red); max-width: 3rem; }
.center .eyebrow { justify-content: center; }
@media (max-width: 620px) { .eyebrow::after { display: none; } }

/* ---------- header ---------- */
.site-header { background: var(--ground); }
.header-inner { position: relative; display: flex; align-items: center; gap: var(--s3); padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 54px; height: 54px; flex: none; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: .82rem; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.nav { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500; padding-block: .35rem; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px var(--red); }
.header-cta { height: 44px; display: inline-flex; align-items: center; flex: none; background: var(--red); color: #fff; padding: 0 1.1rem; border-radius: var(--radius); text-decoration: none; font-size: .93rem; font-weight: 600; }
.header-cta:hover { background: #fff; color: #000; }
.header-cta[aria-current="page"] { outline: 2px solid #fff; outline-offset: 2px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; transition: transform .15s ease, opacity .15s ease; }
@media (max-width: 800px) {
  .header-inner { gap: var(--s2); }
  .brand-name { display: none; }
  .header-cta { margin-left: auto; padding-inline: .8rem; }
  .menu-toggle { display: block; flex: none; }
  .nav {
    display: none; position: absolute; z-index: 20; top: 100%; left: var(--s3); right: var(--s3);
    margin: 0; padding: var(--s2) var(--s3); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground-alt); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .nav[data-open] { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--red); color: #fff; padding: .85rem 1.6rem;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem; border: 1px solid var(--red); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #fff; border-color: #fff; color: #000; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #000; }
.hero .btn--ghost { background: rgba(10,10,12,.5); border-color: #fff; }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }

/* ---------- hero with background video ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(88vh, 780px); display: flex; align-items: center;
  padding-block: var(--s6);
  background: #000;
}
.hero-video {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-video video {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 55%, rgba(13,13,15,.3) 76%, var(--ground) 100%),
    rgba(0,0,0,.08);
}

/* Autoplaying video is motion, so honour the OS setting on every screen size. */
@media (prefers-reduced-motion: reduce) {
  .hero-video, .sound-toggle { display: none; }
  .hero { background: #000; }
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-copy { padding-top: clamp(2rem, 8vh, 6rem); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); max-width: 18ch; margin: 0; line-height: .96; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero .lede { color: rgba(255,255,255,.9); max-width: 38ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero .eyebrow { color: #fff; }

/* ---------- full-bleed media bands ---------- */
.bleed { position: relative; background: #000; }
.bleed img { width: 100%; height: clamp(320px, 56vh, 620px); object-fit: cover; }
.bleed--tall img { height: clamp(520px, 72vh, 820px); object-position: center 35%; }
.bleed::after, .bleed-duo::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #000); pointer-events: none; z-index: 1; }
.bleed--to-alt::after { background: linear-gradient(transparent, var(--ground-alt)); }
.bleed-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s5) var(--s3) var(--s4);
  background: linear-gradient(transparent, rgba(0,0,0,.5) 35%, rgba(0,0,0,.93)); z-index: 2;
}
.bleed-cap .wrap { padding-inline: 0; }
.bleed-cap p { margin: 0; max-width: 52ch; font-size: .95rem; color: rgba(255,255,255,.92); }
/* this band carries the intro copy now, so the lede keeps its own size */
.bleed-cap .lede {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.45;
  color: rgba(255,255,255,.95); max-width: 56ch;
}
/* taller, because there is a lede and two buttons sitting in the gradient */
.bleed--intro img { height: clamp(460px, 72vh, 720px); }
.bleed--intro .bleed-cap { padding-block: var(--s6) var(--s5); }
.bleed-cap h2 { margin-bottom: .4rem; }

/* text beside a photo, sides alternating down the page */
.split--photo { align-items: center; }
.row-photo { margin: 0; }
.row-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .split--photo { grid-template-columns: 1fr 1fr; }   /* both rows crop to the same width */
  .split--flip > :first-child { grid-column: 2; grid-row: 1; }
  .split--flip > .row-photo   { grid-column: 1; grid-row: 1; }
}

.bleed-duo { position: relative; display: grid; grid-template-columns: 1fr; background: #000; }
@media (min-width: 800px) { .bleed-duo { grid-template-columns: 1fr 1fr; } }
.bleed-duo img { width: 100%; height: clamp(280px, 44vh, 460px); object-fit: cover; }

/* ---------- hero sound toggle ---------- */
.sound-toggle {
  position: absolute; right: var(--s3); bottom: var(--s3); z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; font: inherit; font-size: .85rem; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius); cursor: pointer;
}
.sound-toggle:hover { background: #fff; color: #000; border-color: #fff; }
.sound-toggle .cross { display: none; }
.sound-toggle[aria-pressed="false"] .wave { display: none; }
.sound-toggle[aria-pressed="false"] .cross { display: inline; }
@media (max-width: 760px) { .sound-toggle { display: none; } }  /* mobile background stays muted */

/* ---------- editorial rows (used instead of a row of boxes) ---------- */
.rows { border-top: 1px solid var(--line); margin-top: var(--s4); }
.rows > div {
  display: grid; grid-template-columns: 1fr; gap: .35rem var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .rows > div { grid-template-columns: 15rem 1fr; gap: var(--s4); } }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--ink-soft); max-width: 58ch; }
.rows .row-link { display: inline-block; margin-top: var(--s2); font-weight: 600; text-decoration: none; font-size: .95rem; }
.rows .row-link::after { content: " \2192"; }
.rows .row-link:hover { text-decoration: underline; }
.rows .row-n {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; color: var(--red-text); display: block; margin-bottom: .4rem;
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: var(--s3); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: var(--s4) var(--s3); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--s1); }
.card p { flex: 1; color: var(--ink-soft); font-size: .97rem; }
.card .card-link { font-weight: 600; text-decoration: none; font-size: .95rem; }
.card .card-link::after { content: " \2192"; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- split ---------- */
.split { display: grid; gap: var(--s5); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.split--center { align-items: center; }

/* ---------- pull quote ---------- */
.quote { margin: var(--s4) 0; padding-left: var(--s3); border-left: 3px solid var(--red); }
.quote blockquote { margin: 0 0 var(--s1); font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.3; letter-spacing: -.025em; max-width: 34ch; }
.quote cite { font-style: normal; font-size: .88rem; color: var(--steel); font-family: var(--font-body); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); }
.stat-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; display: block; margin-bottom: .3rem; letter-spacing: -.04em; color: #fff; }
.stat-l { font-size: .85rem; letter-spacing: .04em; color: var(--steel); }

/* ---------- photo grid ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s2); }
.photos figure { margin: 0; }
.photos img, .photo-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.photos figcaption { font-size: .85rem; color: var(--steel); margin-top: .45rem; }
.photo-ph { display: grid; place-items: center; text-align: center; padding: var(--s2); border: 1px dashed var(--line); color: var(--steel); font-size: .82rem; }

/* ---------- video ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 560px)); gap: var(--s4) var(--s3); justify-content: start; }
/* two side by side, always, until there is genuinely no room */
.videos--pair { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .videos--pair { grid-template-columns: 1fr; } }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; display: block; }
.video h3 { font-size: 1.02rem; margin: var(--s2) 0 0; }
.video p { font-size: .89rem; color: var(--steel); margin: .2rem 0 0; }
.video--feature { max-width: 720px; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s3); }
.board figure { margin: 0; }
.board img, .board .photo-ph { aspect-ratio: 1; border-radius: 50%; max-width: 150px; }
.board .name { font-weight: 600; margin: var(--s2) 0 0; font-size: 1rem; color: #fff; }
.board .role { font-size: .87rem; color: var(--red-text); margin: 0; font-weight: 600; }
.board .meta { font-size: .82rem; color: var(--steel); margin: .5rem 0 0; line-height: 1.5; }
.board--center { justify-content: center; text-align: center; margin-top: var(--s4); }
.board--center figure { display: flex; flex-direction: column; align-items: center; }
.board--center img, .board--center .photo-ph { margin-inline: auto; }
.board--center p { max-width: none; }

/* ---------- inline figures ---------- */
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius); }
.fig figcaption { font-size: .85rem; color: var(--steel); margin-top: .6rem; max-width: 46ch; }

/* ---------- form ---------- */
.form { max-width: 780px; }
.field { margin-bottom: var(--s3); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s3); }
.field label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: .4rem; color: #fff; }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid #33333B; border-radius: var(--radius);
}
.field input::placeholder, .field textarea::placeholder { color: #74747C; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-text); background: rgba(255,255,255,.07); }
.field select option { background: #17171A; color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--steel); margin: .35rem 0 0; }
/* dark UA widgets (date picker icon, select arrow) instead of black-on-black */
.field input[type="date"], .field select { color-scheme: dark; }
.hidden { position: absolute; left: -9999px; }
.form .btn { width: 100%; margin-top: var(--s2); justify-content: center; }
@media (min-width: 560px) { .form .btn { width: auto; min-width: 260px; } }

/* ---------- FAQ (native details/summary - no JS) ---------- */
.faq { max-width: var(--measure); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s3) 2rem var(--s3) 0; font-weight: 600; color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-text); }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red-text); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: var(--s3); color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ground-deep); border-top: 1px solid var(--line); color: var(--ink-soft); padding-block: var(--s5) var(--s4); }
.footer-inner { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand-row { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--s2); }
.footer-brand-row img { width: 56px; height: 56px; border-radius: 50%; }
.site-footer h2 { font-size: .95rem; color: #fff; margin: 0; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; font-size: .82rem; }
.site-footer p { font-size: .9rem; margin-bottom: .3rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.footer-list li { margin-bottom: .45rem; }
.footer-h { font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--s2); font-weight: 700; }
.footer-base { border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s3); font-size: .83rem; color: var(--steel); }
.footer-base p { margin: 0; max-width: none; }
