/* T3 Coaching site styles. You normally never need to edit this file.
   Layout concept: a race-day course card in the T3 shield's colors. Hot pink is the
   feature color (buttons, headings, links), cyan for bands and details, with a
   pink / cyan / yellow stripe under the header and above the footer. */
:root {
  --paper: #f7f9fa;      /* page background, a cool white */
  --surface: #ffffff;    /* cards, header */
  --ink: #15161d;        /* main text, near-black */
  --muted: #5c6370;      /* secondary text */
  --line: #dbe3e8;       /* rules and borders */
  --brand: #b3126a;      /* deep T3 pink: headings, links (readable on white) */
  --brand-tint: #e4f5fc; /* soft cyan bands */
  --accent: #e0167b;     /* hot pink: Ask about coaching buttons */
  --accent-ink: #ffffff;
  --footer: #15161d;     /* near-black footer */
  --silver: #23b9e8;     /* shield cyan, for small details */
  --yellow: #feef35;     /* shield yellow, used only in the stripe */
  --stripe: linear-gradient(90deg, var(--accent) 0 33.3%, var(--silver) 33.3% 66.6%, var(--yellow) 66.6%);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 68rem;
  --radius: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Every band uses .wrap for its side gutter */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); color: var(--brand); }
h3 { font-size: 1.45rem; }
p { margin: 0; max-width: 65ch; }
.eyebrow {
  font: 600 0.8rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }

/* Header and navigation */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--surface);
}
.site-header::after { content: ""; display: block; height: 5px; background: var(--stripe); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: baseline; gap: 0.5rem;
  text-decoration: none; color: var(--ink);
}
.brand { align-items: center; gap: 0.6rem; }
.brand img { height: 52px; width: auto; }
.brand .tagline { font: 700 1.3rem/1.05 var(--display); color: var(--brand); letter-spacing: 0.01em; }
.nav {
  display: flex; gap: 0.25rem; margin-left: auto;
  overflow-x: auto; max-width: 100%;
}
.nav a {
  padding: 0.4rem 0.65rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: var(--brand-tint); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.btn {
  display: inline-block; padding: 0.7rem 1.15rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--body); font-size: 1rem;
}
.btn-go { background: var(--accent); color: var(--accent-ink); }
.btn-go:hover { filter: brightness(0.92); }
.btn-plain { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Page sections */
.section { padding-block: 3.5rem; }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--brand-tint); }
.page-head { padding-block: 3rem 2rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 0.75rem; }

/* Home hero */
.hero { background: var(--surface); padding-block: 3.5rem 3rem; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 1.5rem; }
.transitions {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 0.5rem;
  font: 500 0.9rem/1.3 var(--mono); color: var(--muted);
}
.transitions b { color: var(--ink); }
.transitions .t3 b { color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.75rem; align-content: start; }

/* Numbered steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; border-top: 3px solid var(--brand); padding-top: 0.9rem; }
.steps li::before { content: "Step " counter(step); font: 600 0.8rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Photos: drop a file with the listed name into /images and it appears */
.photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--brand-tint); border-radius: var(--radius); overflow: hidden;
}
.photo.wide { aspect-ratio: 3 / 2; }
.photo::before {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  font: 500 0.8rem/1.4 var(--mono); color: var(--muted); white-space: pre-line;
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* Coach cards */
.coach { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.coach ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
@media (max-width: 40rem) { .coach { grid-template-columns: 1fr; } .coach .photo { max-width: 14rem; } }

/* Rates table */
.rates { width: 100%; border-collapse: collapse; background: var(--surface); }
.rates th, .rates td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates th { font: 600 0.8rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rates td.price { font: 600 1.25rem/1.2 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Athlete of the Month */
.aotm { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 44rem) { .aotm { grid-template-columns: 1fr; } .aotm .photo { max-width: 16rem; } }
.quote { border-left: 3px solid var(--brand); padding-left: 1rem; display: grid; gap: 0.4rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); }
.qa dt { font-weight: 700; margin-top: 1rem; }
.qa dd { margin: 0.25rem 0 0; max-width: 65ch; }

.archive details { border-top: 1px solid var(--line); padding-block: 0.75rem; }
.archive summary { cursor: pointer; font: 700 1.3rem/1.2 var(--display); }
.archive ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.3rem; }
.archive li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.archive li span { font: 500 0.9rem/1.6 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Events */
.event { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.event .when { font: 600 0.95rem/1.4 var(--mono); color: var(--brand); }
.status { display: inline-block; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.5rem; border-radius: 4px; background: var(--brand-tint); color: var(--brand); width: fit-content; }
@media (max-width: 36rem) { .event { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Notes left for editors (remove when the content is filled in) */
.todo { background: #fff4d6; color: #5c4400; border: 1px dashed #c99a1a; border-radius: 4px; padding: 0.15rem 0.4rem; font: 500 0.85rem/1.5 var(--mono); }

/* Form */
form.intake { display: grid; gap: 1rem; max-width: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-note { background: var(--brand-tint); padding: 1rem; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--footer); color: #dfe6ea; padding-block: 0 2.5rem; margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--stripe); margin-bottom: 2.5rem; }
.site-footer .muted { color: #a9b3bb; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer a { color: #ffffff; }
.site-footer h3 { color: #ffffff; font-size: 1.2rem; margin-bottom: 0.4rem; }
.site-footer p { font-size: 0.95rem; }
.copy { user-select: all; font-family: var(--mono); font-size: 0.9rem; }

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

/* Athlete of the Month pages */
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; font-weight: 600; }
.archive li a { text-decoration: none; }
.archive li a:hover { text-decoration: underline; }
.aotm .stack > a .photo { aspect-ratio: auto; }
.aotm .stack > a .photo img { height: auto; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }

/* T3 shield */
.hero .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3rem; }
.hero .wrap > * { grid-column: 1; }
.hero .wrap > .hero-shield { grid-column: 2; grid-row: 1 / span 5; width: 280px; height: auto; }
@media (max-width: 48rem) { .hero .wrap { grid-template-columns: 1fr; } .hero .wrap > .hero-shield { display: none; } }
.btn-go:hover { filter: none; background: #b80f63; }
.transitions .t3 b { color: var(--brand); }
.event ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; max-width: 65ch; }
.event .table-wrap { max-width: 36rem; }
