/* ============================================================
   HOSA WESTERN
   Palette is pulled directly from the chapter logo:
   ink ground, cream disc, maroon heart, teal ECG trace.

   To rebrand, change the values in :root below. Nothing else
   in this file hardcodes a colour.
   ============================================================ */

:root {
  --ink:        #141821;
  --ink-2:      #1E2531;
  --ink-3:      #313A4B;
  --paper:      #F4EDE2;
  --paper-2:    #EBE0CF;
  --paper-3:    #DCCEB8;
  --maroon:     #8C1D24;
  --maroon-dk:  #6E1319;
  --crimson:    #B0202C;
  --teal:       #2C7A8C;
  --teal-dk:    #1F5C6B;

  --shell: 1180px;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --pad-y: clamp(4.5rem, 9vw, 8rem);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-text: "Newsreader", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: inherit; }

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

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- section frame ---------- */

.band { padding-block: var(--pad-y); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--warm { background: var(--paper-2); }

.band-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.band-head h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
}
.band-head p {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  max-width: 60ch;
  color: var(--ink-3);
}
.band--ink .band-head p { color: var(--paper-3); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 24, 33, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 237, 226, .12);
}
.nav-in {
  display: flex; align-items: center; gap: 1.5rem;
  height: 76px;
}
.nav-brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--paper);
  margin-right: auto;
}
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; }
.nav-brand span {
  font-family: var(--f-display);
  font-weight: 800; font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--f-display);
  font-size: .93rem; font-weight: 500;
  color: var(--paper-3); text-decoration: none;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--paper); border-bottom-color: var(--crimson); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700; font-size: .96rem;
  letter-spacing: -0.01em;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--crimson); color: var(--paper); }
.btn--primary:hover { background: var(--maroon); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--maroon); }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 7.4vw, 5.2rem);
  letter-spacing: -0.04em;
}
.hero-kicker {
  font-family: var(--f-display);
  font-weight: 600; font-size: .95rem;
  color: var(--teal);
  margin-bottom: 1.4rem;
  letter-spacing: .01em;
}
.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--paper-3);
  margin: 1.6rem 0 2.2rem;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-mark img {
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: 50%;
}

/* the ECG trace — the one loud moment on the page */
.ecg { display: block; width: 100%; height: 92px; margin-top: clamp(2.5rem, 6vw, 4rem); }
.ecg path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: trace 3.4s cubic-bezier(.5,.05,.35,1) .3s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

.rule {
  height: 34px; width: 100%;
  opacity: .45;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.rule path { fill: none; stroke: var(--maroon); stroke-width: 2; stroke-linecap: round; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.about-grid p:last-child { margin-bottom: 0; }
.about-note {
  border-left: 4px solid var(--crimson);
  padding: .3rem 0 .3rem 1.4rem;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 2px solid var(--paper-3);
  padding-top: 2.5rem;
}
.pillar h3 {
  font-size: 1.45rem;
  color: var(--maroon);
  margin-bottom: .55rem;
}
.pillar p { font-size: 1rem; margin: 0; color: var(--ink-3); }

/* ---------- people ---------- */

.pres-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 640px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.pres {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.pres .avatar { width: 82px; height: 82px; flex: 0 0 82px; }
.pres h3 { font-size: 1.3rem; }
.pres span {
  display: block; margin-top: .25rem;
  font-family: var(--f-display); font-weight: 600;
  font-size: .88rem; color: var(--maroon);
}

.tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  border-bottom: 2px solid var(--paper-3);
  padding-bottom: 1.1rem;
  margin-bottom: 1.6rem;
}
.tab {
  font-family: var(--f-display);
  font-weight: 600; font-size: .97rem;
  background: none; border: 2px solid transparent;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  cursor: pointer; color: var(--ink-3);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-count {
  font-size: .8rem; opacity: .65; margin-left: .3rem;
}

.portfolio-blurb {
  font-size: 1.08rem; color: var(--ink-3);
  margin-bottom: 2rem; max-width: 58ch;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem) var(--gap);
}
.person { text-align: left; }
.person h4 {
  font-size: 1.03rem; font-weight: 700;
  margin-top: .85rem;
}
.person span {
  display: block; margin-top: .2rem;
  font-family: var(--f-display); font-weight: 500;
  font-size: .85rem; line-height: 1.35;
  color: var(--ink-3);
}
.person--lead h4 { color: var(--maroon); }
.person--lead span { color: var(--maroon); font-weight: 600; }

.avatar {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  background: var(--paper-2);
  border: 2px solid var(--ink);
}
.avatar--fallback {
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--paper);
  background: var(--maroon);
}
.person--lead .avatar--fallback { background: var(--ink); }

/* ---------- get involved ---------- */

.involve {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.card {
  background: var(--ink-2);
  border: 1px solid rgba(244,237,226,.16);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  height: 100%;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.55rem; margin-bottom: .9rem; }
.card p { color: var(--paper-3); font-size: 1rem; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card--accent { background: var(--maroon-dk); border-color: rgba(244,237,226,.28); }

.fee {
  font-family: var(--f-display);
  font-weight: 800; font-size: 2.6rem;
  letter-spacing: -0.04em;
  color: var(--paper);
  display: block; line-height: 1;
  margin-bottom: .5rem;
}
.fee-note {
  font-family: var(--f-display); font-weight: 500;
  font-size: .88rem; color: var(--paper-3);
  display: block; margin-bottom: 1.3rem;
}

/* ---------- events ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.feature-body { padding: clamp(1.75rem, 4vw, 3rem); }
.feature-tag {
  font-family: var(--f-display); font-weight: 700;
  font-size: .8rem; color: var(--paper);
  background: var(--crimson);
  display: inline-block; padding: .3rem .8rem;
  border-radius: 999px; margin-bottom: 1.1rem;
}
.feature h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.feature-meta {
  font-family: var(--f-display); font-weight: 600;
  font-size: .97rem; color: var(--maroon);
  margin: .9rem 0 1.4rem;
}
.feature-meta em { display: block; font-style: normal; color: var(--ink-3); font-weight: 500; }
.feature ul { margin: 0 0 1.6rem; padding-left: 0; list-style: none; }
.feature li {
  padding-left: 1.5rem; position: relative; margin-bottom: .5rem;
}
.feature li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.feature-img {
  background: var(--paper-2) url("images/logo.png") center/44% no-repeat;
  min-height: 260px;
  border-left: 2px solid var(--ink);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

.slot {
  border: 2px dashed var(--paper-3);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.slot h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.slot p { color: var(--ink-3); margin-bottom: 0; }

.upcoming { display: grid; gap: 1rem; }
.upcoming article {
  border-left: 4px solid var(--crimson);
  padding-left: 1.3rem;
}
.upcoming h4 { font-size: 1.25rem; }
.upcoming .meta {
  font-family: var(--f-display); font-weight: 600;
  font-size: .9rem; color: var(--maroon); margin: .3rem 0 .5rem;
}
.upcoming p { margin: 0; color: var(--ink-3); font-size: 1rem; }

.prog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.prog article { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.prog h4 { font-size: 1.3rem; margin-bottom: .5rem; }
.prog p { font-size: 1rem; color: var(--ink-3); margin-bottom: .7rem; }
.prog .cadence {
  font-family: var(--f-display); font-weight: 600;
  font-size: .82rem; color: var(--teal-dk);
}

.social-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 2px solid var(--paper-3);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem 1rem;
}
.social-strip .lead {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.05rem; margin-right: .5rem;
}
.social-strip span:not(.lead) {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem;
  background: var(--paper); border: 1px solid var(--paper-3);
  border-radius: 999px; padding: .35rem 1rem;
  color: var(--ink-3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 2px solid var(--ink); }
.gallery figcaption {
  font-family: var(--f-display); font-weight: 500;
  font-size: .88rem; color: var(--ink-3); margin-top: .6rem;
}

/* ---------- resources ---------- */

.resource {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  border: 2px solid var(--ink);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--paper);
}
.resource h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.resource p { margin: 0; color: var(--ink-3); }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--paper-3); padding-block: 3.5rem 2.5rem; }
.foot-in {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.foot-brand { display: flex; align-items: center; gap: .85rem; }
.foot-brand img { width: 56px; height: 56px; border-radius: 50%; }
.foot-brand strong {
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
  color: var(--paper); display: block;
}
.foot-brand span { font-size: .92rem; }
.foot nav { display: grid; gap: .5rem; }
.foot nav a {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem;
  color: var(--paper-3); text-decoration: none;
}
.foot nav a:hover { color: var(--paper); text-decoration: underline; }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(244,237,226,.14);
  font-family: var(--f-display); font-size: .85rem;
  max-width: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .about-grid, .feature { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 200px; }
  .feature-img { border-left: 0; border-top: 2px solid var(--ink); min-height: 200px; }
  .involve, .pillars { grid-template-columns: 1fr; }
  .pres-grid { grid-template-columns: 1fr; max-width: none; }

  .nav-toggle {
    display: block; background: none; border: 0; cursor: pointer;
    color: var(--paper); font-family: var(--f-display);
    font-weight: 600; font-size: .95rem; padding: .5rem;
  }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink); padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(244,237,226,.14);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid rgba(244,237,226,.1); }
}

@media (max-width: 520px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecg { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ecg path { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}
