/* =========================================================================
   camdengeary.com softball profile
   Change the two accent colors below to match her team colors. That is the
   only edit needed to re-skin the whole site.
   ========================================================================= */

:root {
  /* ---- TEAM COLORS ----
     Bombers blue. Two tokens, not one, because no single blue clears WCAG AA on both
     backgrounds this site uses: the brand blue #57a4ff scores 7.40 on the dark sections
     but only 2.57 on white, which is unreadable as link or button text.
       --accent        on white/light  (5.17 on white - AA pass)
       --accent-bright on --night      (7.40 on night - AA pass)  */
  --accent:        #2563eb;   /* light backgrounds - buttons, links, rules, numbers */
  --accent-deep:   #1d4ed8;   /* hover */
  --accent-bright: #57a4ff;   /* Bombers brand blue - dark backgrounds only */

  /* ---- neutrals ---- */
  --ink:           #14171c;
  --ink-soft:      #4a525e;
  --ink-faint:     #8b95a3;
  --paper:         #ffffff;
  --paper-alt:     #f4f6f8;
  --line:          #e2e6eb;
  --night:         #0d1015;

  --wrap:          1140px;
  --radius:        10px;
  --shadow:        0 1px 2px rgba(20,23,28,.06), 0 8px 24px rgba(20,23,28,.07);

  --font-display:  'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* The UA rule for [hidden] is display:none, but any author rule that sets display -
   .awards { display: grid }, .socials { display: flex } - outranks it and the element
   stays visible. Several sections are held back with `hidden` until their content is
   real, so this needs to actually win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--night); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------ nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,16,21,.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }

.nav-brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: .06em; color: #fff; text-decoration: none;
}
/* CG2 is what people actually call her, so it sets tight as one word - the blue
   carries the 2, no gap. */
.nav-brand span { color: var(--accent-bright); }

.nav nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav nav a {
  color: #c8cfd9; text-decoration: none; font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .5rem .7rem; border-radius: 6px;
}
.nav nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .nav-cta { background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }

@media (max-width: 720px) {
  .nav-inner { flex-direction: column; align-items: stretch; padding-block: .6rem; }
  .nav nav { justify-content: center; }
  .nav-brand { text-align: center; }
}

/* ------------------------------ hero ------------------------------ */
.hero { position: relative; background: var(--night); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(13,16,21,.92) 0%, rgba(13,16,21,.72) 45%, rgba(13,16,21,.35) 100%);
}
.hero-body { padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 8vw, 5.5rem); }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600; margin: 0 0 .9rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7.5rem); line-height: .88;
  margin: 0 0 1.1rem; letter-spacing: -.01em; text-transform: uppercase;
}
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.2rem); color: #d5dbe4; margin: 0 0 2rem; max-width: 40ch; }
.hero-team {
  display: block; margin-top: .35rem; color: #fff; font-weight: 600;
  letter-spacing: .01em;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* --------------------------- quick facts -------------------------- */
.facts { background: var(--night); border-top: 3px solid var(--accent-bright); }
.facts-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 0; padding-block: 1.6rem; gap: 1rem;
}
.fact { text-align: center; }
.fact dt {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .3rem;
}
.fact dd {
  margin: 0; font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: #fff; line-height: 1.1;
}
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; } }
@media (max-width: 420px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------- sections ---------------------------- */
.sect { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sect-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

.sect-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.05; letter-spacing: .01em;
  margin: 0 0 1.2rem; padding-bottom: .6rem; position: relative;
}
.sect-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--accent);
}
.sect-note { color: var(--ink-soft); max-width: 68ch; margin: 0 0 2rem; font-size: .95rem; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.3rem; margin: 0 0 1rem;
}

.stack { margin: 0; }
.stack dt {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 1rem;
}
.stack dt:first-child { margin-top: 0; }
.stack dd { margin: .15rem 0 0; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--accent); border-radius: 2px;
}

/* ------------------------------ awards ---------------------------- */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.awards .checklist { margin-top: 0; }
.awards .sub-title { font-size: 1rem; }

/* -------------------------- camps attended ------------------------ */
.attended-title { margin-top: 3rem; }
.attended { list-style: none; padding: 0; margin: 0; }
.attended li { padding: .6rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.attended li:last-child { border-bottom: 1px solid var(--line); }
.attended .yr {
  display: inline-block; min-width: 4.5rem; font-family: var(--font-display);
  font-weight: 700; color: var(--accent); letter-spacing: .04em;
}

/* ------------------------- profile portrait ----------------------- */
/* Sits above the Teams card in the profile column. The section is otherwise a
   wall of text, and a coach scanning the page has nothing to look at. */
.profile-side { display: grid; gap: 1.2rem; align-content: start; }
.profile-shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--line); box-shadow: var(--shadow);
}
.profile-shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
}

/* ---------------------------- headshot ---------------------------- */
.headshot-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.headshot-row h3 { margin-bottom: .2rem; }
.headshot-row p { margin: 0; }
.headshot {
  width: 84px; height: 84px; flex: 0 0 84px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--accent);
}

/* ------------------------------ QR -------------------------------- */
/* Screen readers and coaches on a phone do not need a QR to a page they
   are already on. It exists for the printed one-pager. */
.qr-block { display: none; }

/* ------------------------------ video ----------------------------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--night);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem; margin-top: 2rem;
}
.clip { margin: 0; }
.clip figcaption { margin-top: .7rem; font-size: .9rem; color: var(--ink-soft); }
.clip-date {
  display: block; font-size: .78rem; color: var(--ink-faint);
  letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem;
}
.main-video-date { margin: -1rem 0 1rem; }

/* --------------------------- measurables -------------------------- */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.metric {
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.metric-val { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.metric-key { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.metric-date { font-size: .74rem; color: var(--ink-faint); }

.sub-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pitch-mix { margin-bottom: 2.5rem; }
.pitches {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem .5rem;
}
.pitches li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  padding: .5rem .8rem; background: var(--paper-alt);
  border-radius: 6px; border-left: 3px solid var(--accent); font-size: .92rem;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-scroll + .table-scroll { margin-top: 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
caption {
  text-align: left; padding: 1rem 1.2rem; font-family: var(--font-display);
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}
th, td { padding: .7rem 1.2rem; text-align: left; border-top: 1px solid var(--line); }
thead th {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--paper-alt);
}
tbody tr:hover { background: var(--paper-alt); }

/* ----------------------------- gallery ---------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.shot {
  padding: 0; border: 0; cursor: zoom-in; background: var(--line);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.05); }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 92vw; max-height: 92vh; overflow: visible;
  /* Stop a swipe that runs past the end of the viewer from scrolling the page
     behind it, and kill the iOS rubber-band bounce while it is open. */
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8,10,13,.9); }
/* 80vh, not 92: the close button sits above the image and the counter below it,
   and at 92vh both were pushed off the top and bottom of the viewport. */
.lightbox img {
  max-width: 92vw; max-height: 80vh; width: auto;
  border-radius: var(--radius); display: block;
  /* Hand horizontal drags to the swipe handler while leaving pinch-to-zoom alone -
     a coach looking at pitching mechanics will want to zoom in. */
  touch-action: pan-y pinch-zoom;
}
.lightbox-close {
  position: absolute; top: -2.6rem; right: 0; background: none; border: 0;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* Previous / next. Sized to a 44px touch target - these get used with a thumb
   on a phone far more than with a mouse. */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 3.6rem; padding: 0;
  background: rgba(13,16,21,.62); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  border-radius: var(--radius); transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(13,16,21,.86); }
.lightbox-nav:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.lightbox-prev { left: .6rem; }
.lightbox-next { right: .6rem; }
.lightbox-nav[hidden] { display: none; }

.lightbox-count {
  position: absolute; bottom: -2rem; left: 0; right: 0;
  margin: 0; text-align: center; color: #cbd3dd;
  font-size: .85rem; letter-spacing: .04em;
}

@media (max-width: 34rem) {
  .lightbox-nav { width: 2.6rem; height: 3.2rem; font-size: 1.7rem; }
  .lightbox-prev { left: .2rem; }
  .lightbox-next { right: .2rem; }
}

/* ---------------------------- instagram --------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.ig-post {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--paper-alt);
  border: 1px solid var(--line); text-decoration: none; color: inherit;
}
.ig-post img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .35s ease; }
.ig-post:hover img { transform: scale(1.04); }

.ig-badge {
  position: absolute; top: .55rem; right: .55rem;
  background: rgba(13,16,21,.82); color: #fff;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: .2rem .45rem; border-radius: 4px;
}

.ig-meta { display: block; padding: .7rem .85rem .85rem; }
.ig-caption { display: block; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.ig-date {
  display: block; margin-top: .3rem; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
}

.ig-follow-wrap { margin: 1.6rem 0 0; }
.ig-follow { font-weight: 600; font-size: .95rem; }

/* ---------------------------- schedule ---------------------------- */
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li {
  display: flex; gap: 1.4rem; align-items: center;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: 1px solid var(--line); }
.when {
  flex: 0 0 68px; text-align: center; background: var(--night);
  color: #fff; border-radius: var(--radius); padding: .55rem .2rem;
}
.when .mon {
  display: block; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-bright); font-weight: 600;
}
.when .day { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.what h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.what p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ----------------------------- contact ---------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.contact-card p:last-child { margin-bottom: 0; }
.big-link { font-size: 1.15rem; font-weight: 600; word-break: break-word; }
.socials { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.socials a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.socials a:hover { text-decoration: underline; }

/* ------------------------------ footer ---------------------------- */
.foot { background: var(--night); color: var(--ink-faint); padding: 2rem 0; font-size: .88rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: #c8cfd9; text-decoration: none; }
.foot a:hover { color: #fff; }

/* ------------------------------- print ---------------------------- */
@media print {
  .nav, .hero-actions, .video-grid, .lightbox, .foot, #instagram { display: none; }
  body { font-size: 11pt; }
  .sect { padding: 1rem 0; break-inside: avoid; }
  .hero { color: #000; background: #fff; }
  .hero-media, .hero::after { display: none; }
  .facts, .when { background: #fff; }
  .fact dd, .hero h1 { color: #000; }
  .qr-block { display: block; text-align: center; margin-top: 1rem; break-inside: avoid; }
  .qr-block p { font-size: 10pt; margin: .3rem 0 0; }
  .headshot { border-color: #000; }
  .profile-shot { display: none; }
}
