/*
 * Public websites. Every colour comes from the club's theme (injected as
 * custom properties in base.html), so one stylesheet serves every club.
 *
 * The language is straight lines: no rounded corners anywhere, 1px rules,
 * rectangular blocks of colour, one geometric typeface.
 */

:root {
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 55%, transparent);
  --muted: color-mix(in srgb, var(--ink) 66%, var(--ground));
  --font: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--ground); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; }

/* The one flourish: a band of the brand colour across the very top. */
.bar { height: 6px; background: var(--primary); }

/* -- type ---------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--primary-deep); flex: none; }
.eyebrow a { text-decoration: none; }

.h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 36ch; font-weight: 300; }
.lede.small { font-size: 17px; margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 22px; margin: 2em 0 0.6em; font-weight: 500; }
.prose { max-width: 62ch; }

/* -- buttons ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-fill { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-fill:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-ink { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }

/* -- header ------------------------------------------------------------------------------ */

.top { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark-main { font-size: 22px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; }
.mark-sub { font-size: 9.5px; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; margin-top: 7px; color: var(--muted); }
.logo { max-height: 48px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-desk { display: flex; gap: 30px; }
.nav-desk a { text-decoration: none; font-size: 15px; letter-spacing: 0.02em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-desk a:hover { border-bottom-color: var(--primary-deep); }
.nav-mob { display: none; }
.member { padding: 10px 18px; font-size: 14px; }

@media (max-width: 980px) {
  .nav-desk, .top .member { display: none; }
  .nav-mob { display: block; position: relative; }
  .nav-mob summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--ink);
    padding: 9px 16px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-mob summary::-webkit-details-marker { display: none; }
  .nav-mob[open] summary { background: var(--ink); color: var(--ground); }
  .nav-mob ul {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--ground);
    border: 1px solid var(--ink);
    min-width: 240px;
  }
  .nav-mob li + li { border-top: 1px solid var(--line); }
  .nav-mob a { display: block; padding: 14px 18px; text-decoration: none; }
}

/* -- hero ----------------------------------------------------------------------------------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 108px); line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* A photo sits inside an offset hairline frame - the straight-line motif. */
.frame { position: relative; margin: 0; }
.frame::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--ink); pointer-events: none; }
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-art .frame { margin: 0 16px 16px 0; }

/* With no photo yet, the hero is a composition of the club's own colours. */
.compose { position: relative; aspect-ratio: 4 / 5; }
.compose span { position: absolute; display: block; }
.c-a { left: 0; top: 0; width: 64%; height: 72%; background: var(--primary); }
.c-b { right: 0; bottom: 0; width: 58%; height: 46%; background: var(--secondary); }
.c-c { left: 12%; bottom: 8%; width: 22%; height: 16%; background: var(--primary-soft); }
.c-h { left: 0; right: 0; top: 72%; height: 1px; background: var(--ink); }
.c-v { top: 0; bottom: 0; left: 64%; width: 1px; background: var(--ink); }
.c-sq { right: 9%; top: 11%; width: 18%; aspect-ratio: 1; border: 1px solid var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .compose { aspect-ratio: 16 / 10; }
  .frame img { aspect-ratio: 4 / 3; }
}

/* -- highlights --------------------------------------------------------------------------------- */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.hl { padding: 40px 32px 44px; border-left: 1px solid var(--line); }
.hl:first-child { border-left: none; padding-left: 0; }
.hl h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.hl p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .highlights { grid-template-columns: 1fr; }
  .hl { border-left: none; border-top: 1px solid var(--line); padding: 28px 0; }
  .hl:first-child { border-top: none; }
}

/* -- sections ------------------------------------------------------------------------------------ */

.sec { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.band + .sec { border-top: none; }
.tint-secondary { background: var(--secondary-soft); }
.tint-primary { background: var(--primary-soft); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.split-body { display: grid; gap: 48px; align-content: start; }
.about-img { max-width: 520px; margin-right: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* -- classes --------------------------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line-strong); margin: 0 -1px -1px 0; padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 26px; letter-spacing: -0.015em; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

/* -- timetable -------------------------------------------------------------------------------------- */

.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.board-day { border-left: 1px solid var(--line); min-width: 0; }
.board-day:first-child { border-left: none; }
.board-day h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.board-day .date { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-day:first-child h3 { background: var(--primary); color: var(--primary-ink); }
.board-day:first-child h3 .date { color: inherit; opacity: 0.8; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { padding: 16px 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.board li:last-child { border-bottom: none; }
.board .time { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.board .what { font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 4px; }
.board .who, .board .spots { font-size: 13px; color: var(--muted); }
.board .book { margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; justify-self: start; border-bottom: 1px solid var(--primary-deep); }
.board .is-cancelled .time, .board .is-cancelled .what { text-decoration: line-through; color: var(--muted); }
.board-day.is-empty { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--line) 9px 10px); }
.empty { color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr; border-bottom: none; }
  .board-day { border-left: none; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 120px 1fr; }
  .board-day h3 { border-bottom: none; border-right: 1px solid var(--line); flex-direction: column; justify-content: flex-start; gap: 4px; }
  .board-day.is-empty { display: none; }
  .board li { grid-template-columns: 72px 1fr auto; column-gap: 16px; align-items: baseline; }
  /* Fixed cells, so the spots count sits in the same place whether or not
     a coach is listed. */
  .board .time { grid-column: 1; grid-row: 1 / span 3; }
  .board .what { grid-column: 2; grid-row: 1; margin-top: 0; }
  .board .who { grid-column: 2; grid-row: 2; }
  .board .spots { grid-column: 2; grid-row: 3; }
  .board .book { grid-column: 3; grid-row: 1; margin-top: 0; }
}
@media (max-width: 560px) {
  .board-day { grid-template-columns: 1fr; }
  .board-day h3 { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-between; }
}

/* -- pricing ------------------------------------------------------------------------------------------- */

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.price { padding: 32px 28px 36px; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; }
.price:first-child { border-left: none; padding-left: 0; }
.price h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.amount { font-size: clamp(40px, 4vw, 54px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 22px 0 22px; font-variant-numeric: tabular-nums; }
.amount span { font-size: 0.45em; letter-spacing: 0; margin-left: 2px; }
.price ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.price li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price .desc { margin-top: 14px; font-size: 14px; color: var(--muted); }
.price .offer { align-self: flex-start; margin: 14px 0 -8px; padding: 4px 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: var(--primary); color: var(--primary-ink); }
.amount s { display: block; font-size: 0.4em; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.after { margin-top: 40px; }
@media (max-width: 700px) {
  .price { border-left: none; border-top: 1px solid var(--line-strong); padding-left: 0; }
  .price:first-child { border-top: none; }
}

/* -- team --------------------------------------------------------------------------------------------------- */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 40px; }
.person h3 { font-size: 24px; margin-top: 28px; letter-spacing: -0.01em; }
.person .role { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 6px 0 12px; color: var(--primary-text); font-weight: 500; }
.person p:last-child { font-size: 15.5px; color: var(--muted); }
.portrait { margin-right: 16px; }
.portrait img { aspect-ratio: 4 / 5; }
/* Same offset frame as a photo: the block sits on top, the line shows only
   where it steps out past the block's edge. */
.initials { aspect-ratio: 4 / 5; position: relative; }
.initials::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--ink); }
.initials span {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: var(--secondary);
  font-size: 64px; font-weight: 300; letter-spacing: 0.08em; color: var(--secondary-ink);
}

@media (max-width: 560px) {
  .team { gap: 32px; }
  .person { display: grid; grid-template-columns: 104px 1fr; column-gap: 28px; align-items: start; }
  .person > .portrait { grid-row: span 3; margin-right: 10px; }
  .person .frame::after, .person .initials::after { inset: 10px -10px -10px 10px; }
  .person h3 { margin-top: 0; font-size: 21px; }
  .person .role { margin: 4px 0 8px; }
  .initials span { font-size: 28px; }
}

/* -- gallery ------------------------------------------------------------------------------------------------ */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.gallery figure { margin: 0; background: var(--ground); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}

/* -- contact ---------------------------------------------------------------------------------------------------- */

.info { margin: 40px 0 0; }
.info > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.info dt { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }
.info dd { margin: 0; font-size: 16px; }
.info .socials { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0 24px 4px 0; color: var(--muted); }
.hours td { padding: 0 0 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .info > div { grid-template-columns: 1fr; gap: 4px; } }

.form { border: 1px solid var(--ink); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px; background: var(--ground); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label:not(.choice), .field legend {
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 0;
}
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  outline: none;
}
.field textarea { border: 1px solid var(--line-strong); padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.has-error input, .has-error textarea { border-color: #A3392C; }
.err { font-size: 14px; color: #A3392C; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 8px; width: 100%; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 14.5px; transition: background-color 0.15s; }
.choice input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.check label { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { background: var(--primary-soft); border-left: 3px solid var(--primary-deep); padding: 12px 16px; font-size: 15px; }
.form .btn { justify-self: start; }

.sent { border: 1px solid var(--ink); padding: 44px; background: var(--primary-soft); }
.sent-title { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }

/* -- footer ---------------------------------------------------------------------------------------------------- */

.foot { background: var(--primary); color: var(--primary-ink); margin-top: 0; }
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.foot a:hover { border-bottom-color: currentColor; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 56px; }
.foot-name { display: flex; flex-direction: column; line-height: 1; }
.foot-main { font-size: clamp(34px, 4vw, 52px); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
.foot-sub { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; margin-top: 12px; }
.foot-col p { font-size: 15px; }
.foot-col p + p { margin-top: 8px; }
.foot-legal { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 18px; padding-bottom: 24px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-name { grid-column: 1 / -1; } }

.legal .h2 { margin-bottom: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
