/* ==========================================================================
   Maya Barnes - recruiting site
   Simple, clean, white. Edit colours in the :root block below.
   ========================================================================== */

:root {
  --ink:        #14161a;   /* main text */
  --ink-soft:   #5b6270;   /* secondary text */
  --line:       #e6e8ec;   /* borders / rules */
  --bg:         #ffffff;   /* page background */
  --bg-soft:    #f7f8fa;   /* panel background */
  --accent:     #c2410c;   /* single accent colour */
  --maxw:       1080px;
  --radius:     10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); }

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
}

.brand span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

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

.hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0 56px;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 700;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 46ch;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn:hover { opacity: 0.88; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Vitals list ---------- */

.vitals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
  margin: 0;
}

.vitals div {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.vitals dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.vitals dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
}

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

section { padding: 56px 0; border-top: 1px solid var(--line); }

h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 28px;
}

h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }

/* ---------- Stat tiles ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: #fff;
  padding: 22px 18px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.note { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

tbody tr:hover { background: var(--bg-soft); }

/* ---------- Fixture list ---------- */

table.games {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

table.games th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

table.games td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.games tbody tr:hover { background: var(--bg-soft); }

.g-date { white-space: nowrap; font-weight: 600; }
.g-time { white-space: nowrap; color: var(--ink-soft); }
.g-opp strong { display: block; font-weight: 600; }
.g-loc  { color: var(--ink-soft); }

.g-tags { display: inline-block; margin-top: 6px; }

.pill-game {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 5px;
  white-space: nowrap;
}

.pill-game.home    { background: #e8f3ec; color: #166534; }
.pill-game.away    { background: var(--bg-soft); color: var(--ink-soft); }
.pill-game.neutral { background: #eef2fb; color: #1e40af; }
.pill-game.comp    { background: #fdf1e8; color: var(--accent); }

/* ---------- Video / link cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--ink); transform: translateY(-2px); }

.card .kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.card .go {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Awards ---------- */

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.award {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.award-photo {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
}

.award-photo img { width: 100%; height: 100%; object-fit: cover; }

.award .kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.award p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Two column text ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.cols h3 { font-size: 17px; }
.cols p  { margin: 0; color: var(--ink-soft); font-size: 15px; }
.cols ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.cols li { margin-bottom: 6px; }

/* ---------- Contact ---------- */

.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-box p { margin: 0 0 6px; }
.contact-box a { font-weight: 600; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;   /* most of her photos are portrait */
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 24px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--ink); }

.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--ink-soft);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }
  .hero-photo { max-width: 320px; }
  section { padding: 40px 0; }
  body { font-size: 16px; }
}

@media print {
  .site-header, .btn-row, .lightbox { display: none; }
  section { break-inside: avoid; }
}
