/* ==========================================================================
   SCSU Cyber Competition Club — site stylesheet
   One file, no build step. Edit design tokens in :root below.
   ========================================================================== */

:root {
  /* Brand */
  --red:        #b3202c;   /* SCSU cardinal */
  --red-dark:   #7c1620;
  --red-tint:   #f7e7e8;
  --black:      #0b0b0d;
  --ink:        #16181d;   /* body text */
  --ink-soft:   #3d434d;
  --grey:       #6b7076;
  --dragon:     #a9aeb3;   /* logo dragon grey */
  --paper:      #ffffff;
  --paper-alt:  #f5f4f2;   /* warm off-white band */
  --line:       #e4e2df;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11,11,13,.06), 0 12px 32px -12px rgba(11,11,13,.18);
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* contains the off-canvas mobile nav */
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--black); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---- Utilities -------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--black); color: #e8e8ea; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.section--dark .eyebrow { color: var(--dragon); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--grey); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--black); color: #fff; padding: .6rem 1rem; border-radius: 6px;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background-color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--black); }
.section--dark .btn--ghost { color: #fff; }
.btn--ghost:hover { background: rgba(0,0,0,.06); color: var(--black); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---- Header / nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--black); font-weight: 700; }
.brand img { width: 38px; height: 38px; }
.brand span { font-size: 1rem; letter-spacing: -.01em; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5rem .6rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-alt); color: var(--black); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav .btn { margin-left: .4rem; padding: .6rem 1rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: .4rem; cursor: pointer;
  color: var(--black);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); padding: 5rem 1.25rem 2rem;
    box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .2s ease, visibility .2s;
    visibility: hidden;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav a { padding: .8rem .7rem; font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  body[data-nav-open="true"] { overflow: hidden; }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(179,32,44,.35), transparent 60%),
    linear-gradient(180deg, #131317, var(--black));
  color: #ececed;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.hero h1 { color: #fff; }
.hero p { color: #c9cace; font-size: 1.2rem; max-width: 48ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(179,32,44,.9);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero__art {
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__art { order: -1; }
}

/* ---- Cards / grids ---------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.section--alt .card { background: #fff; }
.card__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--red-tint); color: var(--red); border-radius: 10px;
  margin-bottom: .9rem;
}
.card h3 { color: var(--black); }
.card p:last-child { margin-bottom: 0; }

/* ---- Stat band ------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; color: #fff; }
.stat__label { color: var(--dragon); font-size: .95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Logo strip ---------------------------------------------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.logo-strip span {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em;
  color: var(--ink-soft); font-size: 1.05rem;
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

/* ---- People -------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 920px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { text-align: center; }
.person__avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto .7rem;
  background: var(--black); color: #fff; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600;
}
.person strong { display: block; color: var(--black); }
.person span { color: var(--grey); font-size: .92rem; }

/* ---- Tiers (Support Us) ------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  background: #fff; box-shadow: var(--shadow);
}
.tier--featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.tier h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tier__price { font-family: var(--font-mono); color: var(--red); font-size: 1rem; }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.tier li { padding: .4rem 0 .4rem 1.5rem; position: relative; font-size: .95rem; border-top: 1px solid var(--line); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---- Timeline / events ------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-mono); color: var(--red); font-size: .9rem; }
.timeline h3 { margin-bottom: .15rem; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---- Calendar --------------------------------------------- */
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cal__bar h3 { margin: 0; }
.cal__nav { display: flex; gap: .5rem; }
.cal__nav button { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.cal__nav button:hover { background: var(--paper-alt); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { padding: .6rem; text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }
.cal__day { min-height: 92px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .4rem; font-size: .8rem; }
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day--muted { background: var(--paper-alt); color: var(--grey); }
.cal__day--today .cal__date { background: var(--red); color: #fff; border-radius: 50%; }
.cal__date { display: inline-grid; place-items: center; width: 24px; height: 24px; font-family: var(--font-mono); }
.cal__event { display: block; margin-top: .25rem; padding: .2rem .35rem; border-radius: 5px; background: var(--red-tint); color: var(--red-dark); font-weight: 600; line-height: 1.25; text-decoration: none; }
.cal__event:hover { background: var(--red); color: #fff; }
.cal__event--comp { background: var(--black); color: #fff; }
.cal__list { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.cal__list h4 { margin: 0 0 .5rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.cal__list ul { list-style: none; padding: 0; margin: 0; }
.cal__list li { padding: .5rem 0; border-top: 1px solid var(--line); }
.cal__list li:first-child { border-top: 0; }
.cal__list time { font-family: var(--font-mono); color: var(--red); font-size: .85rem; margin-right: .6rem; }

/* ---- Forms ----------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--grey); font-size: .85rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .9rem 1rem; border-radius: 8px; font-weight: 500; }
.form-status[data-state="ok"] { background: #e6f4ea; color: #1c6b34; }
.form-status[data-state="error"] { background: var(--red-tint); color: var(--red-dark); }

/* ---- Callout / CTA band ------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cace; max-width: 52ch; margin-inline: auto; }

/* ---- Prose (About etc.) ---------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }

/* ---- Footer -------------------------------------------- */
.site-footer { background: var(--black); color: #b9babf; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer a { color: #e8e8ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 920px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer__brand { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.site-footer__brand img { width: 40px; height: 40px; }
.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--grey);
}

/* ---- Page header (interior pages) ---------------------- */
.page-head { background: linear-gradient(180deg, #131317, var(--black)); color: #ececed; padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.page-head h1 { color: #fff; margin: 0 0 .5rem; }
.page-head p { color: #c9cace; max-width: 60ch; margin: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dragon); margin-bottom: 1rem; }
.breadcrumb a { color: var(--dragon); }
