/* Three Rivers Marathon Swim — site styles */

:root {
  --black: #0a0a0a;
  --ink: #121212;
  --panel: #1a1a1a;
  --panel-2: #232323;
  --line: #333131;
  --gold: #ffb81c;
  --gold-deep: #e09b00;
  --gold-soft: #ffd97a;
  --white: #ffffff;
  --dim: #b4b0a8;
  --steel: #6f7378;
  --maxw: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.1rem; letter-spacing: .06em; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--gold);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-links a.current { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 13px 28px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); text-decoration: none; color: #000; }

.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  background: #000 center 38% / cover no-repeat;
  border-bottom: 3px solid var(--gold);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.92) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero h1 { margin-bottom: .18em; text-shadow: 0 3px 24px rgba(0,0,0,.8); }
.hero h1 span { color: var(--gold); display: block; }
.hero .kicker { color: var(--gold); }
.hero .lede { font-size: 1.22rem; max-width: 640px; color: #ececec; }

.page-hero {
  border-bottom: 3px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(10,10,10,.62), rgba(10,10,10,.94)),
    #000 center 45% / cover no-repeat;
  padding: 74px 0 56px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); margin-bottom: .2em; }
.page-hero p { color: #dcdcdc; max-width: 720px; margin-bottom: 0; }

.kicker {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .8em;
}

/* ---------- Sections ---------- */

section { padding: 68px 0; }
section.tight { padding: 46px 0; }
.alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gold-band { background: var(--gold); color: #000; }
.gold-band h2, .gold-band .kicker { color: #000; }
.gold-band a { color: #000; text-decoration: underline; }
.gold-band .btn { background: #000; color: var(--gold); border-color: #000; }
.gold-band .btn:hover { background: #1a1a1a; border-color: #1a1a1a; }

.section-head { margin-bottom: 34px; }
.section-head p { color: var(--dim); max-width: 720px; margin-bottom: 0; }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 26px 22px;
}
.stat .val {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat .lbl {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  color: var(--dim);
  margin-top: 8px;
}

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { color: var(--gold); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1em; }
.card ul li { margin-bottom: .35em; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split img { border: 1px solid var(--line); border-radius: var(--radius); }

.figure { margin: 0; }
.figure img { border: 1px solid var(--line); border-radius: var(--radius); background: #101010; }
.figure figcaption { color: var(--dim); font-size: .88rem; margin-top: 10px; }

/* ---------- Legs (course) ---------- */

.leg {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.leg:first-of-type { border-top: 1px solid var(--line); }
.leg .num {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: .9;
}
.leg .num small { display: block; font-size: .8rem; letter-spacing: .16em; color: var(--dim); }
.leg h3 { margin-bottom: .3em; }
.leg p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
caption {
  text-align: left;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-size: 1.2rem;
  padding-bottom: 12px;
}
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--gold);
  color: #000;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .95rem;
  border-bottom: none;
}
tbody tr:nth-child(odd) { background: var(--panel); }
td.time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold); white-space: nowrap; }
td.place { width: 54px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- Roll of honor ---------- */

.honor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.honor div { background: var(--panel); padding: 18px 20px; }
.honor .name { font-weight: 600; }
.honor .meta { color: var(--dim); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Forms ---------- */

form.vform { margin-top: 8px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field .hint { display: block; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .84rem; color: var(--dim); font-weight: 400; margin-top: 3px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,184,28,.28);
}
textarea { min-height: 130px; resize: vertical; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.check { display: flex; align-items: flex-start; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; }
.check label { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .96rem; font-weight: 400; margin: 0; cursor: pointer; }

fieldset { border: none; margin: 0 0 26px; padding: 0; }
legend {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  padding: 0;
  margin-bottom: 14px;
}

.form-note {
  border-left: 3px solid var(--gold);
  background: var(--panel);
  padding: 14px 18px;
  color: var(--dim);
  font-size: .92rem;
  margin-bottom: 26px;
}

/* ---------- TODO / placeholder markers ---------- */

.todo {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 8px, #333 8px, #333 16px);
  border: 1px dashed var(--gold);
  color: var(--gold-soft);
  font-family: "Barlow Condensed", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: 2px 9px;
  border-radius: var(--radius);
}
.gold-band .todo { background: rgba(0,0,0,.12); border-color: #000; color: #000; }

/* ---------- Footer ---------- */

.site-footer {
  background: #050505;
  border-top: 3px solid var(--gold);
  padding: 52px 0 30px;
  font-size: .94rem;
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--gold); letter-spacing: .12em; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--gold); }
.site-footer img.fmark { height: 58px; width: auto; margin-bottom: 16px; }
.colophon {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: .84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}

/* ---------- Utility ---------- */

.dim { color: var(--dim); }
.center { text-align: center; }
.mb0 { margin-bottom: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 11px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: none; }

.pill {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  font-size: .85rem;
  padding: 3px 11px;
  border-radius: 999px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  position: fixed; z-index: 100;
  background: var(--gold); color: #000;
  padding: 10px 16px; border-radius: var(--radius);
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0d0d0d;
    border-bottom: 3px solid var(--gold);
    padding: 10px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .hero { min-height: 66vh; }
  .leg { grid-template-columns: 62px 1fr; gap: 16px; }
  .leg .num { font-size: 2.4rem; }
}

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

.figure.light img { background: #fff; padding: 12px; }
