/* BC Clear website. Editorial, minimal: white paper, bold display headlines, quiet sans text,
   small letter-spaced labels, square corners, no shadows, full-width green bands.
   Two typefaces and a four-step type scale:
     XL  hero headline and the goal statement
     L   section headings
     M   everything you read: body text, names, form fields, buttons, comparison rows
     S   labels, captions, meta text
   Colours and type live in the variables below; change them here and the whole site follows. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/bricolagegrotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/sourcesans3-latin.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --surface: #F3F6F4;
  --ink: #10201A;
  --muted: #5B6B64;
  --line: #DCE3DF;
  --green: #0F4D3A;
  --green-deep: #0A3628;
  --blue: #1D4ED8;
  --on-band: #F4F7F5;
  --on-band-muted: #B9CCC3;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --size-xl: clamp(2.6rem, 7.2vw, 4.9rem);
  --size-l: clamp(1.7rem, 3.6vw, 2.3rem);
  --size-m: 1.0625rem;
  --size-s: .75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 62ch;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--size-m); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--on-band-muted); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--size-xl); line-height: 1.02; }
h2 { font-size: var(--size-l); }
h3, h4 { font-size: var(--size-m); letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; }
.visually-hidden, .honeypot {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* S: one label style for every small uppercase line */
.label, .row-title, .team-role, .tl-when, .tl-phase-name, .slot-day, .progress, .arrow, .compare-head p, .tl-current, .draft {
  font-family: var(--font-body); font-size: var(--size-s); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5;
}
.label { color: var(--blue); margin: 0 0 1.1rem; max-width: none; }
.band .label { color: var(--on-band-muted); }
.draft { display: inline-block; margin-left: .8em; color: var(--muted); border: 1px solid currentColor; padding: 2px 7px; vertical-align: middle; }
.meta { font-size: var(--size-s); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }

/* buttons and arrow links (M) */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: var(--size-m); font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: 2px; border: 1px solid var(--green); background: var(--green); color: var(--on-band);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { text-decoration: none; color: var(--ink); display: inline-block; padding: 10px 0; }
.arrow::after { content: " →"; }
.band .arrow { color: var(--on-band); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 1.6rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.wordmark img { width: 28px; height: 28px; }
.nav-toggle { font-family: var(--font-body); font-size: var(--size-s); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; cursor: pointer; color: var(--ink); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; flex-direction: column; }
.site-nav.is-open { display: flex; }
.site-nav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.site-nav a:last-child { border-bottom: 0; }
.site-nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; border: 0; }
  .site-nav a { padding: 0; border: 0; }
  .site-nav a:hover { text-decoration: underline; }
  .site-nav .btn { margin: 0 0 0 6px; padding: 12px 20px; }
  .site-nav .btn:hover { text-decoration: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 8vw, 6.5rem); }
.hero .label { color: var(--on-band-muted); }
.hero h1 { max-width: 17ch; margin-bottom: 1.2rem; color: var(--on-band); }
.hero-text { max-width: 44ch; color: var(--on-band); }
.hero-spots { color: var(--on-band); margin: 1.2rem 0 0; }
.hero .actions { margin-top: 1.6rem; }
.court { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(62vw, 640px); height: auto; color: var(--on-band); opacity: .14; pointer-events: none; }
@media (max-width: 899px) { .court { width: 120%; right: -60%; top: auto; bottom: -8%; transform: none; opacity: .1; } }

/* statement + two points with icons */
.statement { font-size: var(--size-xl); line-height: 1.02; max-width: 17ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.point { min-width: 0; }
.point-icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.point .label { margin-bottom: .6rem; }
.point-text { max-width: 36ch; margin: 0; }
@media (min-width: 900px) { .points { gap: 4rem; padding-top: 2.5rem; } .point-icon { width: 64px; height: 64px; margin-bottom: 1.2rem; } }

/* sections and bands */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-tint { background: var(--surface); }
.band { background: var(--green); color: var(--on-band); }
.band h2, .band h3, .band h4 { color: var(--on-band); }
.band p { color: var(--on-band); }
.intro { color: var(--muted); margin-bottom: 2.5rem; max-width: 74ch; }

/* team */
.team-grid { display: grid; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; max-width: 880px; } }
.team-photo { width: 100%; max-width: 240px; height: auto; border-radius: 2px; margin-bottom: 1.4rem; background: var(--line); }
.team-name { margin-bottom: .2rem; }
.team-name a { text-decoration-color: var(--blue); }
.team-name a::after { content: " ↗"; color: var(--blue); font-weight: 400; }
.team-role { color: var(--blue); margin: 0 0 .9rem; }
.team-bio { color: var(--muted); margin: 0; }

/* program list */
.rows { border-top: 1px solid var(--line); margin-top: 1rem; }
.row { display: grid; gap: .3rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.row-title { color: var(--blue); padding-top: .3rem; }
.row p { margin: 0 0 .6rem; }
.row p:last-child { margin-bottom: 0; }
@media (min-width: 700px) { .row { grid-template-columns: 160px 1fr; } }

/* venue: full-width photo band with the text on top of it */
.venue { position: relative; display: flex; align-items: flex-end; min-height: 440px; color: var(--on-band); overflow: hidden; }
.venue-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.venue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,30,22,.9) 0%, rgba(10,30,22,.55) 45%, rgba(10,30,22,.15) 100%); }
.venue-overlay { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.venue .label { color: var(--on-band-muted); }
.venue h2 { color: var(--on-band); margin-bottom: .3rem; }
.venue-address { color: var(--on-band-muted); margin-bottom: 1.2rem; }
.venue-text { color: var(--on-band); max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .venue { min-height: 480px; } }

/* comparison */
.compare { margin-top: 1.5rem; border-top: 1px solid rgba(244,247,245,.35); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid rgba(244,247,245,.2); }
.compare-head { padding: .8rem 0; }
.compare-head p { margin: 0; }
.compare-head .compare-us { color: var(--on-band); }
.compare-head .compare-them { color: var(--on-band-muted); }
.compare-row p { margin: 0; }
.compare-row .compare-us { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--on-band); }
.compare-row .compare-them { color: var(--on-band-muted); }
@media (min-width: 700px) { .compare-head, .compare-row { grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 1.25rem 0; } }

/* timeline: vertical line, numbered dots, one highlighted current step */
.tl { margin-top: 1rem; }
.tl-phase-name { color: var(--blue); margin: 2rem 0 1rem 56px; }
.tl-phase:first-child .tl-phase-name { margin-top: 0; }
.tl-steps { position: relative; padding-left: 56px; }
.tl-steps::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: .35; }
.tl-step { position: relative; margin-bottom: 1.25rem; }
.tl-dot { position: absolute; left: -56px; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--size-m); }
.tl-when { color: var(--muted); margin: 0 0 .5rem; padding-top: .6rem; }
.tl-card { background: var(--paper); border: 1px solid var(--line); padding: 1.1rem 1.25rem; }
.tl-card h4 { margin-bottom: .3rem; }
.tl-card p { margin: 0; color: var(--muted); }
.tl-current { color: var(--on-band-muted); margin: 0 0 .6rem; }
.is-current .tl-dot { background: var(--green); border-color: var(--green); color: var(--on-band); }
.is-current .tl-card { background: var(--green); border-color: var(--green); }
.is-current .tl-card h4 { color: var(--on-band); }
.is-current .tl-card p { color: var(--on-band); }
.is-current .tl-card p.tl-current { color: var(--on-band-muted); }
@media (min-width: 900px) {
  .tl-phase-name { margin-left: calc(38% + 56px); }
  .tl-steps { padding-left: 0; }
  .tl-steps::before { left: calc(38% + 19px); }
  .tl-step { display: grid; grid-template-columns: 38% 1fr; gap: 0 56px; margin-bottom: 1.5rem; }
  .tl-dot { left: 38%; }
  .tl-when { text-align: right; padding-top: .75rem; }
}

/* faq */
.faq { border-top: 1px solid var(--line); margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--blue); flex: 0 0 auto; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 1.2rem; }

/* in short: other languages */
.inshort { display: grid; gap: 2rem; }
.inshort p { color: var(--muted); margin: 0; }
.inshort p { max-width: 74ch; }

/* closing band */
.closing { text-align: center; }
.closing h2 { margin: 0 auto .8rem; }
.closing p { margin: 0 auto 1.8rem; color: var(--on-band-muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-inner p { margin: 0 0 .3rem; }
.footer-org { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.footer-inner a { color: var(--ink); }
.footer-copy { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: var(--size-s); }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1.3fr 1fr; } }

/* form (register page) */
.form-page { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.form-page h1 { margin-bottom: .6rem; }
.form-page .intro { margin-bottom: 2rem; }
.progress { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--blue); margin-bottom: .6rem; }
.progress-bar { height: 2px; background: var(--line); margin-bottom: 2.2rem; position: relative; }
.progress-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); width: 33.333%; transition: width .25s; }
.step[hidden] { display: none; }
.step h2 { margin-bottom: 1.4rem; }
.field { margin-bottom: 1.4rem; }
.field > label, .group > legend { display: block; font-weight: 600; margin-bottom: .45rem; }
.group { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.group > legend { padding: 0; margin-bottom: .6rem; }
.hint { color: var(--muted); font-size: var(--size-s); margin: -.2rem 0 .6rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #B5C2BB; border-radius: 2px; padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--blue); outline-offset: 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.choices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--green); }
.choices-inline { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.choices-inline .choice { border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; }
.choices-inline .choice:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.slot-day { color: var(--muted); margin: 1rem 0 .4rem; }
.slot-day:first-child { margin-top: 0; }
.consent { padding-top: 4px; border-bottom: 0; }
.req { color: #B42318; }
.footnote { color: var(--muted); font-size: var(--size-s); margin: 0 0 1.2rem; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.6rem; }
.form-error { color: #B42318; font-weight: 600; margin-top: 1rem; }
.form-success { border-top: 1px solid var(--ink); padding-top: 2rem; margin-top: 1rem; }
.form-success h2 { margin-bottom: .6rem; }
.form-success p:last-child { margin: 0; }

/* prose pages (privacy) */
.prose h1 { margin-bottom: .4rem; }
.prose h2 { font-size: var(--size-m); margin-top: 2.2rem; }
.prose .updated { color: var(--muted); font-size: var(--size-s); margin-bottom: 1.6rem; }
.prose .draft { margin-left: 0; }
