:root {
  --ink: #0C1A2E;         /* navy-black, base for dark sections */
  --navy: #13294B;
  --blue: #1E56A4;        /* klubski dres – links, small accents */
  --track: #A0412F;       /* tartan steza */
  --paper: #FFFFFF;
  --grey: #F3F5F8;
  --muted: #5B6778;
  --line: #E1E6ED;
  --lane: rgba(255,255,255,.8);

  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  --section: clamp(80px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible, .results :focus-visible, .hero :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Type scale */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.2; }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 50ch; margin: 1.25rem 0 0; line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons: square, quiet */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 .9875rem/1 var(--f);
  padding: 1rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--grey); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.link {
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10; color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height .3s;
}
.site-header.scrolled .wrap { height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand span { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; font-weight: 400; font-size: .8125rem; opacity: .7; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a { text-decoration: none; font-size: .9375rem; font-weight: 450; opacity: .88; }
.nav a:not(.btn):hover { opacity: 1; }
.nav .btn { opacity: 1; padding: .7rem 1.15rem; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.55); color: #fff; border-radius: 3px; padding: .5rem .9rem; font: 500 .9rem var(--f); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink);
  overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,26,46,.6) 0%, rgba(12,26,46,0) 20%),
    linear-gradient(90deg, rgba(12,26,46,.85) 0%, rgba(12,26,46,.55) 38%, rgba(12,26,46,0) 62%),
    linear-gradient(0deg, rgba(12,26,46,.75) 0%, rgba(12,26,46,0) 45%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.5rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; max-width: 12ch; }
.hero p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 300; max-width: 44ch; margin: 1.5rem 0 2.25rem; color: rgba(255,255,255,.85); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Straight lane lines */
.lanes {
  height: 40px;
  background: repeating-linear-gradient(180deg, var(--lane) 0 2px, var(--track) 2px 10px);
}

/* ---------- Results (track surface) ---------- */
.results { background: var(--track); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(40px, 5vw, 56px); }
.results-head p { margin: 1rem 0 0; max-width: 44ch; color: rgba(255,255,255,.8); }
.meet + .meet { margin-top: clamp(40px, 5vw, 56px); }
.meet-title {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  font-weight: 500; font-size: .9375rem;
  padding-bottom: .9rem; border-bottom: 1px solid #fff;
}
.meet-title time { color: rgba(255,255,255,.75); font-weight: 400; }
.board { list-style: none; margin: 0; padding: 0; }
.board li {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.35);
}
.place { font-size: 1.5rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.who strong { display: block; font-weight: 500; font-size: 1.0625rem; letter-spacing: -.01em; }
.who span { color: rgba(255,255,255,.75); font-size: .9rem; }
.mark { font-size: clamp(1.5rem, 2.8vw, 2.125rem); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.mark small { font-size: .5em; font-weight: 400; margin-left: .2em; color: rgba(255,255,255,.8); letter-spacing: 0; }

/* ---------- Club intro ---------- */
.intro { padding: var(--section) 0; }
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.paths { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paths li { border-bottom: 1px solid var(--line); }
.paths a {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 2rem; align-items: center;
  padding: 1.75rem 0; text-decoration: none;
}
.paths h3 { transition: color .2s; }
.paths p { grid-column: 1; margin: 0; color: var(--muted); max-width: 52ch; }
.paths .go {
  grid-column: 2; grid-row: 1 / span 2;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s;
}
.paths .go svg { width: 16px; height: 16px; }
.paths a:hover h3 { color: var(--blue); }
.paths a:hover .go { background: var(--ink); border-color: var(--ink); color: #fff; }
.intro-photo { margin: clamp(56px, 8vw, 96px) 0 0; }
.intro-photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: 50% 30%; }
.intro-photo figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

/* ---------- Athletes ---------- */
.athletes { background: var(--grey); padding: var(--section) 0; }
.athletes .lede { margin-bottom: clamp(48px, 6vw, 72px); }
.athlete-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.athlete { margin: 0; }
.athlete img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%; }
.athlete-body { padding-top: 1.75rem; }
.athlete h3 { font-size: clamp(1.625rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.athlete .disc { color: var(--muted); margin: .35rem 0 1.5rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; }
.stats div { border-top: 1px solid var(--ink); padding-top: .9rem; }
.stats dt { font-size: .875rem; color: var(--muted); }
.stats dd { margin: .25rem 0 0; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .45em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: .15em; }
.athlete .note { margin: 1.5rem 0 0; color: var(--muted); max-width: 48ch; }

/* ---------- News ---------- */
.news { padding: var(--section) 0; }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.news-head .link { color: var(--blue); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.story { text-decoration: none; display: block; }
.story .ph { overflow: hidden; }
.story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.story:hover img { transform: scale(1.03); }
.story time { display: block; margin: 1.25rem 0 .5rem; font-size: .875rem; color: var(--muted); }
.story h3 { font-size: 1.375rem; }
.story:hover h3 { color: var(--blue); }

/* ---------- Contact ---------- */
.contact-sec { background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr 1fr; }
.contact-copy { padding: var(--section) clamp(20px, 6vw, 96px) var(--section) var(--edge); }
.contact-copy .lede { color: rgba(255,255,255,.72); }
.contact-list { margin: 2.5rem 0; padding: 0; display: grid; }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list div:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-list dt { color: rgba(255,255,255,.6); font-size: .9375rem; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-sec .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-photo { position: relative; min-height: 420px; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; }

/* ---------- Sponsors ---------- */
.sponsors { padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.sponsors-row { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; align-items: center; }
.sponsors h2 { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); line-height: 1.4; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: center; }
.logos img { height: 56px; width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; font-size: .9375rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h3 { font-size: .875rem; font-weight: 500; letter-spacing: 0; margin: 0 0 1rem; color: rgba(255,255,255,.55); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-brand p { color: rgba(255,255,255,.65); max-width: 32ch; margin: 1.25rem 0 0; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: .8125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid, .contact-sec { grid-template-columns: 1fr; }
  .contact-copy { padding-right: var(--gut); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .story:first-child { grid-column: 1 / -1; }
  .news-grid .story:first-child img { aspect-ratio: 16/9; }
  .sponsors-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .25rem var(--gut) 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: 1.25rem; }
  .site-header .wrap { position: relative; }
  .site-header:has(.nav.open) { background: var(--ink); }
  .hero > img { object-position: 76% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(12,26,46,.55) 0%, rgba(12,26,46,0) 18%), linear-gradient(0deg, rgba(12,26,46,.95) 0%, rgba(12,26,46,.8) 45%, rgba(12,26,46,0) 72%); }
  .board li { grid-template-columns: 2.25rem 1fr auto; gap: .75rem; }
  .who span { display: block; }
  .athlete-grid { grid-template-columns: 1fr; gap: 64px; }
  .intro-photo img { aspect-ratio: 2/1; object-position: 50% 10%; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: .15rem; }
  .logos { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .board li { grid-template-columns: 2rem 1fr; }
  .board .mark { grid-column: 2; text-align: left; margin-top: .25rem; }
}

/* ================= Shared helpers ================= */
a.plain { text-decoration: none; }
a.plain:hover { color: var(--blue); }

/* Header on pages without a photo hero: solid from the start */
.site-header.solid { background: var(--ink); }

/* ================= Athlete profile ================= */
.profile { background: var(--ink); color: #fff; padding: 140px 0 clamp(64px, 8vw, 104px); }
.crumbs { font-size: .875rem; color: rgba(255,255,255,.6); margin-bottom: clamp(32px, 4vw, 48px); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { margin: 0 .5rem; }
.profile-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.profile-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 12%; }
.profile h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.045em; line-height: .95; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin: 1.75rem 0 0; }
.facts div { display: flex; gap: .5rem; }
.facts dt { color: rgba(255,255,255,.55); }
.facts dd { margin: 0; }
.pbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin: clamp(40px, 6vw, 72px) 0 0; }
.pbs div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; }
.pbs dt { color: rgba(255,255,255,.6); font-size: .9375rem; }
.pbs dd { margin: .35rem 0 0; font-size: clamp(3rem, 6.5vw, 5.25rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.pbs dd small { font-size: .32em; font-weight: 400; color: rgba(255,255,255,.7); letter-spacing: 0; margin-left: .2em; }
.pbs .where { display: block; margin-top: .6rem; font-size: .875rem; color: rgba(255,255,255,.55); }

.board .medal {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  margin-right: .45rem; vertical-align: .05em;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.medal.gold { background: #E3C15B; }
.medal.silver { background: #D6DAE0; }
.medal.bronze { background: #C98A56; }

.bio { padding: var(--section) 0; }
.bio-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 112px); }
.bio-text p { margin: 0 0 1.25em; font-size: 1.125rem; line-height: 1.7; max-width: 62ch; }
.bio-text p:first-child { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; letter-spacing: -.01em; }

.more { background: var(--grey); padding: var(--section) 0; }
.more-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.more-head .link { color: var(--blue); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.more-grid.two { grid-template-columns: 1fr 1fr; }
.mate { text-decoration: none; display: block; }
.mate .ph { overflow: hidden; }
.mate img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 0%; transition: transform .5s; }
.mate:hover img { transform: scale(1.03); }
.mate h3 { margin-top: 1.25rem; }
.mate p { margin: .35rem 0 0; color: var(--muted); }
.mate:hover h3 { color: var(--blue); }
.mate-all {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: #fff; padding: 2rem; text-decoration: none; min-height: 100%;
}
.mate-all h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -.035em; }
.mate-all p { margin: .75rem 0 0; color: rgba(255,255,255,.7); }
.mate-all .go { margin-top: 2rem; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.mate-all .go svg { width: 16px; height: 16px; }
.mate-all:hover .go { background: #fff; color: var(--ink); }

.join-band { background: var(--track); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.join-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.join-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.join-band p { margin: .75rem 0 0; color: rgba(255,255,255,.8); max-width: 48ch; }

@media (max-width: 960px) {
  .profile-grid, .bio-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 460px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .profile { padding-top: 104px; }
  .more-grid, .more-grid.two { grid-template-columns: 1fr; }
  .pbs { gap: 1.25rem; }
}
