/* MB Racing XC — colors taken from the team jersey: off-white top fading into navy, with topo-map lines. */
:root {
  --white: #f7f6f3;
  --mist: #d9d9df;
  --navy: #1d2a4d;
  --navy-deep: #141d38;
  --blue: #2f4a8a;
  --ink: #1b2440;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--white);
}

/* Fixed wallpaper: white → navy fade (like the jersey) with topo lines on top. */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    url("topo.svg?v=1") center / 900px 900px repeat,
    linear-gradient(180deg, var(--white) 0%, #ecebe9 30%, #b9bccb 55%, var(--navy) 82%, var(--navy-deep) 100%);
}

.hero {
  text-align: center;
  padding: 72px 20px 40px;
}
.peaks { width: 180px; height: 36px; display: block; margin: 0 auto 6px; }
.peaks path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  line-height: 1;
}
h1 span { color: var(--blue); }
.sub {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--blue);
  margin: 12px 0 0;
}

main { max-width: 900px; margin: 0 auto; padding: 0 16px 60px; display: grid; gap: 22px; }
.card {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 5px solid var(--navy);
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(20, 29, 56, .18);
}
h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.soon { color: #6b7390; font-style: italic; margin: 0; }

footer { text-align: center; padding: 10px 0 40px; }
footer a { color: var(--white); text-decoration: none; font-family: "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* Content (2026-10-13: Maiya's text) */
.tagline { max-width: 620px; margin: 18px auto 0; font-size: 1.08rem; color: var(--ink); }
.btn {
  display: inline-block; margin-top: 22px; padding: 12px 26px; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.btn:hover { background: var(--blue); }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
h3 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue); font-size: 1.15rem; margin: 18px 0 8px;
}
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.results li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 8px; background: #eef0f5; }
.results b {
  flex: 0 0 58px; text-align: center; padding: 4px 0; border-radius: 6px;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; background: #c9cedb; color: var(--navy);
}
.results .podium b { background: var(--navy); color: #fff; }
.results .win { background: #dfe6f6; }
.results span { font-weight: 600; line-height: 1.3; }
.results em { display: block; font-style: normal; font-weight: 400; font-size: .9rem; color: #5d6683; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { position: relative; padding-left: 28px; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
.support + .support { margin-top: 18px; padding-top: 6px; border-top: 1px solid #dde0e8; }
.support h3 { margin-top: 10px; }
.note { font-weight: 600; color: var(--blue); }
.label { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: #5d6683; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border: 1.5px solid var(--navy); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.card.dark { background: rgba(20, 29, 56, .92); color: #e8eaf2; border-top-color: #9aa6bf; }
.card.dark h2 { color: #fff; }
.card.dark h3, .card.dark .checks li::before { color: #aebce0; }
.kicker { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .18em; color: #aebce0; font-weight: 600; margin: 0 0 4px !important; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contact a {
  display: block; padding: 14px 16px; border-radius: 8px; background: #eef0f5; color: var(--navy);
  text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
}
.contact a:hover { background: #dfe6f6; }
.contact small { display: block; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: #5d6683; font-weight: 600; }
@media (max-width: 520px) { .card { padding: 22px 18px; } }

/* Photos (2026-10-13) */
.banner { max-width: 1100px; margin: 0 auto 28px; padding: 0 16px; }
.banner img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: 30% 50%; border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 29, 56, .28); }
.headshot { float: right; width: 190px; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; margin: 0 0 12px 20px; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--navy); }
#about::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .banner img { aspect-ratio: 4 / 3; object-position: 22% 50%; }
  .headshot { float: none; display: block; width: 170px; margin: 4px auto 16px; }
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; grid-auto-flow: dense; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; }
.gallery a.wide { grid-column: span 2; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .3s; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 10px; }
}
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(12, 17, 34, .94); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox button { position: absolute; top: 10px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* Instagram reels (2026-10-13): one player per reel, side by side on wide screens */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; justify-items: center; }
.reel { width: 100%; max-width: 400px; }
.reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
