/* =====================================================
   Fauquier Wrestling — design system
   Colors from school identity: red, pewter, white.
   ===================================================== */
:root {
  --red: #7a0010;        /* falcon red — primary */
  --red-bright: #c1121f; /* accent, used sparingly */
  --pewter: #55585e;     /* school pewter — secondary */
  --pewter-line: #c9cbce;
  --ink: #17181a;
  --paper: #f5f4f1;
  --white: #ffffff;
  --focus: #1a56c4;
  --max: 1120px;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 5.5vw, 3.75rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p, ul, ol { margin: 0 0 1em; max-width: 72ch; }

/* section heading with the red bar — carried over from the
   old site's red header bands, redrawn as a mark not a box */
.rule-head { position: relative; padding-top: .75rem; }
.rule-head::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4.5rem; height: .375rem; background: var(--red);
}

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--pewter-line); }
.section--tint { background: var(--white); }

.cols-2 { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- header / nav ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); }
.masthead {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 0;
}
.masthead img { width: 44px; height: auto; }
.masthead .name {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700; font-size: 1.55rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.masthead .name small {
  display: block; font-family: "Barlow", sans-serif;
  font-weight: 400; font-size: .78rem; color: var(--pewter);
  letter-spacing: .02em;
}

.nav-toggle {
  margin-left: auto;
  font: 600 1rem "Barlow", sans-serif;
  background: var(--red); color: #fff; border: 0;
  padding: .55rem 1rem; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--ink); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }

@media (max-width: 899px) {
  .site-nav { display: none; border-top: 1px solid var(--pewter-line); }
  .site-nav.open { display: block; }
  .site-nav > ul > li { border-bottom: 1px solid var(--pewter-line); }
  .site-nav a {
    display: block; padding: .8rem 1.25rem;
    font-weight: 600; color: var(--ink);
  }
  .nav-sub { background: var(--paper); }
  .nav-sub a { padding-left: 2.25rem; font-weight: 400; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav > ul { display: flex; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a {
    display: block; padding: .75rem 1rem;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-weight: 600; font-size: 1.15rem; color: var(--ink);
  }
  .site-nav > ul > li > a:hover,
  .site-nav > ul > li > a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
  .nav-sub {
    position: absolute; left: 0; top: 100%; min-width: 15rem;
    background: var(--white); border: 1px solid var(--pewter-line);
    border-top: 3px solid var(--red);
    display: none; z-index: 40;
  }
  li:hover > .nav-sub, li:focus-within > .nav-sub { display: block; }
  .nav-sub a { display: block; padding: .55rem .9rem; color: var(--ink); }
  .nav-sub a:hover { background: var(--paper); color: var(--red); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__inner { position: relative; padding: 4.5rem 0 3.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: var(--step-1); max-width: 52ch; color: #e8e8e6; }
.hero .btn-row { margin-top: 1.5rem; }

/* championship banner strip — the gym wall */
.banner-wall {
  background: var(--pewter);
  padding: 0 0 1.5rem;
}
.banner-wall__rail {
  display: flex; gap: .9rem; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 0 1.25rem;
}
.pennant {
  background: var(--red); color: #fff;
  font-family: "Barlow Condensed", Arial, sans-serif;
  text-align: center; line-height: 1.15;
  padding: .9rem .9rem 1.4rem; min-width: 7.2rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .9rem), 50% 100%, 0 calc(100% - .9rem));
  border-top: 4px solid #fff;
}
.pennant b { display: block; font-size: 1.5rem; font-weight: 700; }
.pennant span { font-size: .8rem; font-family: "Barlow", sans-serif; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font: 600 1.05rem "Barlow", sans-serif;
  padding: .7rem 1.4rem; border: 2px solid var(--red);
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn--ghost { color: var(--red); background: transparent; }
.btn--ghost:hover { background: var(--red); color: #fff; }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- pathway panels (home) ---------- */
.pathways { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .pathways { grid-template-columns: 1fr 1fr; } }
.pathway {
  background: var(--white); border: 1px solid var(--pewter-line);
  border-top: 5px solid var(--red); padding: 1.75rem;
}
.pathway h3 { margin-bottom: .35em; }
.pathway .who { color: var(--pewter); margin-bottom: 1em; }

/* ---------- news ---------- */
.news-item { border-left: 4px solid var(--pewter-line); padding-left: 1.1rem; margin-bottom: 1.6rem; }
.news-item:hover { border-left-color: var(--red); }
.news-item .date { color: var(--pewter); font-size: .9rem; }
.news-item h3 { font-size: var(--step-1); margin-bottom: .2em; }
.news-item p { margin-bottom: .3em; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.records { border-collapse: collapse; width: 100%; background: var(--white); }
table.records caption {
  text-align: left; font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: var(--step-1); font-weight: 700; padding-bottom: .5rem;
}
table.records th {
  background: var(--red); color: #fff; text-align: left;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem; letter-spacing: .01em;
  padding: .55rem .8rem;
}
table.records td { padding: .45rem .8rem; border-bottom: 1px solid var(--pewter-line); }
table.records tr:nth-child(even) td { background: var(--paper); }
table.records .yr { white-space: nowrap; font-weight: 600; }

/* ---------- figures ---------- */
figure { margin: 1.5rem 0; }
figcaption { font-size: .9rem; color: var(--pewter); padding-top: .4rem; }
.frame img { border: 1px solid var(--pewter-line); }

/* ---------- callout ---------- */
.callout {
  background: var(--red); color: #fff; padding: 2rem 1.75rem;
  margin: 2rem 0;
}
.callout h3, .callout h2 { color: #fff; }
.callout a { color: #fff; }
.callout .btn { border-color: #fff; color: #fff; }
.callout .btn:hover { background: #fff; color: var(--red); }

/* ---------- archive index ---------- */
.season-list { display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); list-style: none; padding: 0; }
.season-list a { display: block; padding: .55rem .8rem; background: var(--white); border: 1px solid var(--pewter-line); text-decoration: none; font-weight: 600; }
.season-list a:hover { border-color: var(--red); }

/* ---------- fb embed ---------- */
.fb-embed { max-width: 500px; }
.fb-embed iframe { border: 1px solid var(--pewter-line); width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d5d5d3; margin-top: 3.5rem; }
.site-footer .container { padding-top: 2.75rem; padding-bottom: 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-legal { border-top: 1px solid #3a3b3e; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #a9a9a7; }

/* ---------- utilities ---------- */
.muted { color: var(--pewter); }
.lead { font-size: var(--step-1); }
.placeholder-note {
  background: #fff8e0; border: 1px dashed #b98d00; color: #6a5200;
  padding: .7rem 1rem; font-size: .95rem; margin: 1rem 0;
}

/* ---------- youth group photos ---------- */
.group-photos { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .group-photos { grid-template-columns: repeat(3, 1fr); } }
.group-photos figure { margin: 0; }
.group-photos img { width: 100%; }
.group-photos figcaption {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem; color: var(--ink); font-weight: 600;
  border-left: 3px solid var(--red); padding-left: .6rem; margin-top: .5rem;
}
