/* Indiana Storm Track Club — design system.
   Storm navy + lightning bolt yellow; Barlow Condensed italic display;
   signature motif: staggered lane-stripe diagonal (waterfall start / bolt). */

:root {
  --storm-900: #0E1726;
  --storm-700: #1C2E4A;
  --bolt: #FFD23F;
  --bolt-deep: #E8B70F;
  --cloud: #EEF1F6;
  --ink: #16202E;
  --muted: #5A6A80;
  --line: #D8DFE9;
  --ok: #1F7A43;
  --err: #B3372B;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Barlow Condensed", "Arial Narrow", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }

h1, h2, h3, .disp {
  font-family: var(--font-disp);
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h4 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
p { margin: .6rem 0; }
a { color: var(--storm-700); text-underline-offset: 2px; }
a:hover { color: var(--storm-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bolt); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--bolt-deep); outline-offset: 2px; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
  background: var(--storm-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--bolt);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.brand-text {
  font-family: var(--font-disp);
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
.brand-text em { font-style: italic; color: var(--bolt); }
.brand-bolt {
  width: 1.05rem; height: 1.5rem; flex: none;
  background: var(--bolt);
  clip-path: polygon(62% 0, 12% 58%, 44% 58%, 30% 100%, 88% 40%, 54% 40%);
}
.nav-desktop { display: flex; align-items: center; gap: .95rem; flex-wrap: wrap; }
.nav-desktop a:not(.btn), .nav-mobile nav a:not(.btn) {
  color: #E5EAF2; text-decoration: none;
  font-family: var(--font-disp); font-weight: 600; font-style: italic;
  text-transform: uppercase; font-size: 1.02rem; letter-spacing: .04em;
}
.nav-desktop a:not(.btn):hover { color: var(--bolt); }
.nav-desktop a[aria-current], .nav-mobile a[aria-current] { color: var(--bolt); border-bottom: 2px solid var(--bolt); }
.nav-mobile { display: none; }

@media (max-width: 56rem) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary {
    list-style: none; cursor: pointer;
    font-family: var(--font-disp); font-style: italic; font-weight: 700;
    text-transform: uppercase; color: var(--bolt); padding: .4rem .2rem;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile nav {
    position: absolute; right: 0; top: 2.4rem; min-width: 12rem;
    background: var(--storm-700); border: 1px solid rgba(255,255,255,.15);
    display: flex; flex-direction: column; padding: .8rem 1rem; gap: .55rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--bolt);
  color: var(--ink) !important;
  font-family: var(--font-disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  padding: .55rem 1.15rem;
  transform: skewX(-8deg);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn > span { display: inline-block; transform: skewX(8deg); }
.btn:hover { background: var(--bolt-deep); }
.btn-ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px var(--bolt); }
.btn-ghost:hover { background: rgba(255, 210, 63, .12); }
.btn-quiet { background: var(--cloud); color: var(--storm-700) !important; }
.btn-quiet:hover { background: var(--line); }

/* ── hero (home) ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 24rem at 85% -20%, rgba(255,210,63,.14), transparent 60%),
    linear-gradient(160deg, var(--storm-900) 55%, var(--storm-700));
  color: #fff;
  overflow: hidden;
  padding: 4.2rem 0 4.6rem;
}
.hero .lanes { position: absolute; inset: 0; pointer-events: none; }
.hero .lanes i {
  position: absolute;
  height: .55rem;
  transform: skewX(-32deg);
  background: rgba(255,255,255,.08);
  animation: lane-in .7s cubic-bezier(.2,.7,.2,1) both;
}
/* staggered like a waterfall start; one lane is the bolt */
.hero .lanes i:nth-child(1) { top: 18%; left: 46%; width: 60%; animation-delay: .05s; }
.hero .lanes i:nth-child(2) { top: 34%; left: 56%; width: 60%; background: var(--bolt); opacity: .9; animation-delay: .15s; }
.hero .lanes i:nth-child(3) { top: 50%; left: 64%; width: 60%; animation-delay: .25s; }
.hero .lanes i:nth-child(4) { top: 66%; left: 58%; width: 60%; background: rgba(255,255,255,.14); animation-delay: .35s; }
.hero .lanes i:nth-child(5) { top: 82%; left: 68%; width: 60%; background: rgba(255,210,63,.35); animation-delay: .45s; }
@keyframes lane-in { from { translate: 14rem 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }

.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--bolt); }
.hero p.lede { font-size: 1.2rem; max-width: 34rem; color: #DCE3EE; }
.hero .cta-row { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .3rem;
}

/* announcement bar under hero */
.announce {
  background: var(--bolt);
  color: var(--ink);
  padding: .55rem 0;
  font-weight: 600;
}
.announce .wrap { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.announce .tag { font-family: var(--font-disp); font-style: italic; font-weight: 700; text-transform: uppercase; }
.announce a { color: var(--ink); }

/* ── sections ───────────────────────────────────────────────────────── */
.sec { padding: 3.2rem 0; }
.sec-cloud { background: var(--cloud); }
.sec-dark { background: var(--storm-900); color: #E7ECF5; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { margin-bottom: 1.6rem; }
.rule-lanes { display: flex; gap: .5rem; margin-top: .6rem; }
.rule-lanes i { height: .38rem; width: 3.4rem; transform: skewX(-32deg); background: var(--bolt); }
.rule-lanes i:nth-child(2) { width: 2.1rem; background: var(--storm-700); }
.rule-lanes i:nth-child(3) { width: 1.1rem; background: var(--line); }
.sec-dark .rule-lanes i:nth-child(2) { background: #fff; }

/* scoreboard (achievements) */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.4rem; }
.board .cell { border-left: 3px solid var(--bolt); padding-left: .9rem; }
.board .num {
  font-family: var(--font-disp); font-style: italic; font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--bolt);
}
.board .lbl { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #B9C4D6; }

/* cards (programs, coaches, events) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--storm-700);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem;
}
.card:hover { border-top-color: var(--bolt); }
.card .price {
  font-family: var(--font-disp); font-style: italic; font-weight: 700;
  font-size: 2.1rem; color: var(--storm-700);
}
.card .price small { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-style: normal; font-weight: 400; }
.card ul { margin: .4rem 0; padding-left: 1.2rem; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* event/date block */
.evt-row { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.evt-date {
  font-family: var(--font-mono); text-align: center; min-width: 4.2rem; flex: none;
  background: var(--storm-900); color: #fff; padding: .45rem .3rem; line-height: 1.25;
}
.evt-date .m { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bolt); }
.evt-date .d { display: block; font-size: 1.5rem; font-weight: 700; }
.evt-kind {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .1rem .45rem; background: var(--cloud); color: var(--storm-700);
}
.evt-title { font-weight: 600; margin: .15rem 0 .05rem; }
.evt-meta { color: var(--muted); font-size: .95rem; margin: 0; }

/* ── content pages / prose ──────────────────────────────────────────── */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-disp); font-style: italic; text-transform: uppercase; letter-spacing: .04em; background: var(--cloud); }

/* content + admin-editable sidebar */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; align-items: start; }
.sidebar { border-left: 3px solid var(--bolt); background: var(--cloud); padding: 1rem 1.2rem; font-size: .95rem; position: sticky; top: 4.6rem; }
.sidebar h3 { font-size: 1.05rem; margin-top: .8rem; }
.sidebar h3:first-child { margin-top: 0; }
.sidebar ul { margin: .3rem 0; padding-left: 1.1rem; }
@media (max-width: 56rem) { .with-sidebar { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; height: 12rem; object-fit: cover; display: block; }
.gallery figcaption { padding: .4rem .6rem; font-size: .9rem; color: var(--muted); }

.page-head { background: var(--storm-900); color: #fff; padding: 2.4rem 0 2rem; }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 0; }
.page-head .eyebrow { color: var(--bolt); }

/* news archive */
.news-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-item h3 { margin: 0; font-size: 1.25rem; }
.news-item .when { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .06em; }

/* ── forms ──────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; margin: .8rem 0 .2rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
select, textarea {
  width: 100%; max-width: 28rem; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: 0; font: inherit; background: #fff; color: var(--ink);
}
textarea { max-width: 40rem; min-height: 7rem; }
input:focus, select:focus, textarea:focus { border-color: var(--storm-700); }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > div { flex: 1 1 14rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; max-width: 40rem; }
.check input { width: auto; margin-top: .3rem; }
.help { color: var(--muted); font-size: .92rem; margin: .15rem 0 0; }

.flash { padding: .7rem 1rem; margin: 1rem 0; border-left: 4px solid var(--ok); background: #EAF6EE; }
.flash-err { border-color: var(--err); background: #FBEDEA; }

/* signup steps */
.steps { display: flex; gap: .4rem; margin: 1.4rem 0; flex-wrap: wrap; }
.steps span {
  font-family: var(--font-disp); font-style: italic; font-weight: 600; text-transform: uppercase;
  font-size: .95rem; padding: .2rem .8rem; background: var(--cloud); color: var(--muted);
  transform: skewX(-8deg);
}
.steps span i { display: inline-block; transform: skewX(8deg); font-style: normal; }
.steps .on { background: var(--storm-900); color: var(--bolt); }
.steps .done { background: var(--storm-700); color: #fff; }

.agreement-box {
  border: 1px solid var(--line); background: var(--cloud); padding: 1rem 1.2rem;
  max-height: 18rem; overflow-y: auto; margin: .6rem 0 1rem; font-size: .97rem;
}
.summary-box { border: 2px solid var(--storm-900); padding: 1rem 1.2rem; max-width: 28rem; }
.summary-box .row { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.summary-box .total { border-top: 2px solid var(--storm-900); font-weight: 700; margin-top: .4rem; padding-top: .5rem; }

/* calendar month grid */
.cal-grid { table-layout: fixed; }
.cal-grid td { height: 5.2rem; vertical-align: top; font-size: .85rem; padding: .25rem .35rem; border: 1px solid var(--line); }
.cal-grid .daynum { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.cal-grid .today { background: #FFF8E1; }
.cal-grid .evt { display: block; background: var(--storm-700); color: #fff; text-decoration: none; padding: .05rem .3rem; margin-top: .15rem; font-size: .78rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-grid .evt.meet { background: var(--bolt-deep); color: var(--ink); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot { background: var(--storm-900); color: #C6CFDD; margin-top: 3.5rem; padding: 2.6rem 0 1.2rem; border-top: 3px solid var(--bolt); }
.site-foot a { color: #E7ECF5; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem; }
.foot-brand { font-family: var(--font-disp); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.foot-brand em { color: var(--bolt); }
.foot-h { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bolt); }
.foot-sub { display: flex; gap: .5rem; }
.foot-sub input { flex: 1; }
.foot-legal { margin-top: 2rem; font-size: .85rem; color: #8B99AF; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
