@font-face {
  font-family: "Open Sans";
  src: url("assets/open-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #146693;
  --deep: #0c354c;
  --ink: #143144;
  --muted: #435b68;
  --paper: #f8faf8;
  --wash: #e8f4fa;
  --ice: #a4dff7;
  --line: #c6dbe4;
  --white: #fff;
  --font: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--font); }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .23em; }
a:hover { color: var(--deep); }
a:focus-visible, button:focus-visible { outline: 3px solid #228bd0; outline-offset: 4px; }
button { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header, .footer { background: var(--white); }
.header-inner, .footer-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.header-logo { display: inline-block; padding-block: .45rem; }
.header-logo img { width: 5.1rem; height: auto; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--deep); text-decoration: none; flex-shrink: 0; }
.brand img { width: 3.55rem; height: auto; }
.brand span { line-height: 1.35; }
.brand strong { display: block; font-weight: 750; }
.footer-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .9rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--white); }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto auto 0 0;
  width: min(47rem, 58%);
  height: 11rem;
  background: repeating-radial-gradient(ellipse at 30% 145%, transparent 0 1.75rem, #77caec28 1.78rem 1.84rem, transparent 1.87rem 2.9rem);
  mask-image: linear-gradient(78deg, #000 25%, transparent 92%);
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 47%;
  z-index: -1;
  background: #35594e;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-image figcaption { position: absolute; right: 1rem; bottom: 1rem; background: #0b2637e8; color: var(--white); padding: .18rem .55rem; font-size: .8rem; }
.hero-copy { width: 49%; padding-block: clamp(3.1rem, 8vw, 7rem); }
.eyebrow { margin-bottom: 1.15rem; color: var(--blue); font-size: .88rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ice); }
h1, h2 { font-weight: 700; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 5.3vw, 5.65rem); }
h1 span { color: var(--ice); }
h2 { font-size: clamp(1.95rem, 3.5vw, 3.55rem); }
h3, h4 { font-weight: 650; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.025em; }
.intro { max-width: min(90%, 29.5rem); margin-top: 1.45rem; color: #e0eff8; font-size: clamp(1rem, 1.35vw, 1.19rem); }

.button { display: inline-flex; justify-content: center; align-items: center; width: fit-content; min-height: 3rem; padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: 2rem; font-weight: 750; font-size: .94rem; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.hero-button { margin-top: 1.55rem; background: var(--ice); color: var(--deep); }
.hero-button:hover { background: var(--white); color: var(--deep); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--deep); color: var(--white); }
.button-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.button-outline:hover { background: var(--wash); color: var(--deep); border-color: var(--blue); }

.section { padding-block: clamp(3.75rem, 7.5vw, 6.75rem); }
.club-intro { background: var(--wash); }
.club-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.45rem, 5vw, 5rem); }
.club-intro h2 { font-size: clamp(1.65rem, 2.8vw, 2.7rem); line-height: 1.16; overflow-wrap: anywhere; hyphens: auto; }
.club-intro-copy { color: var(--muted); }
.club-intro-copy h3 { margin: 1.3rem 0 .45rem; color: var(--deep); }
.club-intro-motto { margin-top: 1.25rem; padding-left: .85rem; border-left: .2rem solid var(--blue); color: var(--blue); }
.training-overview { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(2rem, 7vw, 7.5rem); }
.section-heading { max-width: 25rem; }
.section-heading h2 { color: var(--blue); }
.section-heading p, .location-copy > p, .contact p { margin-top: 1.1rem; color: var(--muted); font-size: 1.06rem; }
.course-list { border-top: 2px solid var(--blue); }
.course { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.course h3 { font-size: clamp(1.08rem, 1.45vw, 1.35rem); }
.course p { margin-top: .35rem; color: var(--muted); }

.schedule { margin-top: clamp(3rem, 6vw, 5rem); }
.schedule > h3 { margin-bottom: 1.15rem; font-size: clamp(1.65rem, 2.65vw, 2.55rem); letter-spacing: -.04em; }
.schedule-week { overflow: clip; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.schedule-day { display: grid; grid-template-columns: clamp(7rem, 15vw, 12rem) minmax(0, 1fr); }
.schedule-day + .schedule-day { border-top: 1px solid var(--line); }
.schedule-day h4 { margin: 0; padding: 1rem clamp(.8rem, 2vw, 1.4rem); background: var(--wash); color: var(--deep); font-size: 1.08rem; letter-spacing: -.025em; }
.schedule-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: .3rem .6rem; }
.schedule-events li {
  min-width: 0;
  padding: .65rem .8rem;
}
.schedule-events li + li { border-inline-start: 1px solid var(--line); }
.schedule-events li:only-child { grid-column: 1 / -1; }
.session-time { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-events strong { display: block; font-weight: 700; }
.schedule-events small { display: block; color: var(--muted); font-size: .88rem; }
.schedule-extra { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .8rem; margin-top: .75rem; padding: .8rem 1.15rem; border-inline-start: .2rem solid var(--blue); background: var(--white); }
.schedule-extra span, .schedule-note { color: var(--muted); }
.schedule-note { margin-top: .8rem; max-width: 62rem; font-size: .9rem; }

.training-info { margin-top: clamp(2.2rem, 4vw, 3.8rem); }
.training-notice { padding: clamp(1rem, 2.4vw, 1.65rem); border-inline-start: .22rem solid var(--blue); background: var(--wash); }
.training-notice p { margin-top: .4rem; color: var(--muted); }
.training-info > h3 { margin-top: clamp(2.75rem, 5vw, 4rem); font-size: 1.6rem; }
.training-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem clamp(1.5rem, 4vw, 3.5rem); margin-top: .85rem; }
.training-rules > div { border-top: 1px solid var(--line); padding-top: .85rem; }
.training-rules h4 { margin: 0 0 .45rem; font-size: 1.1rem; }
.training-rules p, .training-rules ul { color: var(--muted); }
.training-rules ul { padding-inline-start: 1.25rem; margin: .65rem 0 0; }
.training-rules li + li { margin-top: .35rem; }
.training-rules li::marker { color: var(--blue); }
.training-motto { margin-top: 1.2rem; color: var(--blue); font-weight: 650; }

.history { background: var(--deep); color: var(--white); }
.history-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 8vw, 8rem); }
.history .eyebrow { color: var(--ice); }
.history p:not(.eyebrow) { color: #d9eaf4; }
.history-grid > div p:last-child { margin-top: 1.3rem; max-width: 25rem; }
.timeline { list-style: none; margin: .35rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(7.5rem, .45fr) 1fr; column-gap: 1.25rem; padding: 1.3rem 0; border-top: 1px solid #6391a7; }
.timeline li:first-child { padding-top: 0; border-top: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { grid-row: 1 / span 2; color: var(--ice); font-size: .89rem; font-weight: 750; }
.timeline p { grid-column: 2; margin-top: .35rem; }

.location { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.location h2 { font-size: clamp(1.85rem, 2.45vw, 2.4rem); }
.location address { padding-left: 1rem; border-left: 3px solid var(--blue); font-style: normal; margin: 1.35rem 0; }
.location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.location-actions > a:last-child { font-size: .94rem; font-weight: 700; }
.map { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--wash); }
.map iframe { display: block; width: 100%; height: clamp(20rem, 33vw, 29rem); border: 0; }

.contact { background: var(--wash); border-block: 1px solid var(--line); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.contact-inner > div { max-width: 46rem; }
.contact-inner .button { flex-shrink: 0; }

.legal { max-width: 48rem; }
.legal h1 { font-size: clamp(2.15rem, 5vw, 3.7rem); }
.legal-section { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.15rem; border-top: 1px solid var(--line); }
.legal-section h2 { margin-top: 1.4rem; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.legal-section p, .legal-section address { margin-top: .55rem; }
.legal-section address { font-style: normal; }
.legal-section dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; }
.legal-section dt { font-weight: 650; }
.legal-section dd { margin: 0; overflow-wrap: anywhere; }
.legal-section ul { padding-inline-start: 1.25rem; }

@media (max-width: 64rem) {
  .wrap { width: min(100% - 3rem, 76rem); }
  .timeline li { grid-template-columns: 1fr; }
  .timeline time, .timeline p { grid-column: auto; grid-row: auto; }
  .timeline time { margin-bottom: .35rem; }
  .schedule-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-events li:nth-child(odd) { border-inline-start: none; }
  .schedule-events li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 47rem) {
  .hero { display: flex; flex-direction: column; }
  .hero::before { width: 95%; bottom: auto; top: 13rem; }
  .hero-copy { width: 100%; padding-block: 2.4rem 2.7rem; }
  .hero-image { position: relative; inset: auto; clip-path: none; aspect-ratio: 1.5; order: 1; }
  .hero-image img { position: absolute; inset: 0; }
  h1 { font-size: clamp(2.65rem, 8.3vw, 4.4rem); }
  .club-intro-grid, .training-overview, .training-rules, .history-grid, .location { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; }
  .header-logo img { width: 4.2rem; }
  .eyebrow { font-size: .81rem; }
  h1 { font-size: clamp(2.1rem, 10.7vw, 2.65rem); }
  .schedule-day { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .schedule-day h4 { padding: .85rem .55rem; font-size: .9rem; }
  .schedule-events { grid-template-columns: minmax(0, 1fr); padding: .15rem .55rem; }
  .schedule-events li { padding: .65rem .22rem; }
  .schedule-events li + li { border-inline-start: none; border-top: 1px solid var(--line); }
  .footer-inner { padding-block: .85rem; flex-wrap: wrap; }
  .footer-links { gap: .9rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
