/* ==========================================================================
   AEPi Sigma Beta — design tokens
   Edit this file to retheme the whole site. Nothing elsewhere hardcodes a color.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Cormorant+SC:wght@500;600;700&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* ---- color ------------------------------------------------------------
     The ground is AEPi blue crushed to near-black, not a neutral black.
     That is what keeps this from reading as generic dark mode. */
  --ground:    #060B1A;   /* AEPi blue crushed to near-black */
  --ground-2:  #0D1630;   /* alternating bands, the composite mat */
  --blue:      #2448B4;   /* the actual crest blue, sampled from the coat of arms */
  --gold:      #F0B414;   /* the actual crest gold, sampled from the coat of arms */
  --bone:      #E8E4DA;
  --slate:     #6B7386;

  --rule:      color-mix(in srgb, var(--gold) 30%, transparent);
  --blue-dim:  color-mix(in srgb, var(--blue) 45%, transparent);
  --rule-dim:  color-mix(in srgb, var(--slate) 26%, transparent);
  --bone-dim:  color-mix(in srgb, var(--bone) 62%, transparent);

  /* ---- type -------------------------------------------------------------
     Display: American industrial signage condensed.
     Plates:  engraved small caps, the typography of a composite name plate.
     Body:    neutral, gets out of the way. */
  --display: 'Big Shoulders Display', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --plate:   'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --body:    'Instrument Sans', system-ui, -apple-system, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.25rem;
  --t-lg:   1.75rem;
  --t-xl:   2.5rem;
  --t-2xl:  4rem;
  --t-3xl:  6rem;
  --t-4xl:  clamp(4rem, 13vw, 8.75rem);
  --t-5xl:  clamp(5rem, 19vw, 12.5rem);

  /* ---- layout ----------------------------------------------------------- */
  --max:    72rem;
  --gutter: 1.5rem;
  --band:   clamp(4.5rem, 11vh, 8rem);

  /* ---- motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1100ms;
  --med:  560ms;
  --fast: 240ms;
}

/* ==========================================================================
   base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ==========================================================================
   type roles
   ========================================================================== */

/* Oversized caps. The only place the display face is allowed. */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.01em;
  margin: 0;
}

.display--hero { font-size: var(--t-5xl); }
.display--big  { font-size: var(--t-4xl); }
.display--mid  { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* Jake, 4 Sep 2026, on his phone: "the fonts kinda condensed on mobile." Big
   Shoulders is a condensed face by design and reads as intended at desktop
   scale; at phone sizes the 800 weight with negative tracking and a .82 line
   height stacks into a wall. Below 40rem the display roles get a hair of air:
   tracking opens, lines breathe, and the weight drops one step so the counters
   stay open. Same face, same voice, less squeeze. */
@media (max-width: 40rem) {
  .display { letter-spacing: 0.02em; line-height: 0.9; font-weight: 700; }
}

/* Engraved name plate. Names, officer titles, years. */
.plate {
  font-family: var(--plate);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

/* Letterspaced utility label. Eyebrows, section markers, meta. */
.label {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--bone-dim);
  max-width: 46ch;
}

/* ==========================================================================
   layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--band); }
.section--alt { background: var(--ground-2); }

/* Hairline rules, the mat lines of a composite frame. */
.section--ruled {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   controls
   ========================================================================== */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: var(--gold);
  color: var(--ground);
}

.cta--solid { background: var(--gold); color: var(--ground); }

.cta--solid:hover,
.cta--solid:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
