:root {
  --ink: #161b20;
  --ink-soft: #252c32;
  --paper: #f4f1eb;
  --white: #fffdf9;
  --light: #f7f3e9;
  --muted: #b9b9b1;
  --body: #515451;
  --accent: #f3b65d;
  --accent-dark: #825012;
  --line: #ded9ce;
  --rule: #ffffff29;
  --section-space: clamp(58px, 8vw, 106px);
  font-family: "Aptos", "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { letter-spacing: -.045em; line-height: 1.05; }
h2 { font-size: clamp(37px, 5.5vw, 69px); font-weight: 800; }
h3 { font-size: clamp(22px, 2.6vw, 31px); font-weight: 750; }
p { line-height: 1.65; }
section[id] { scroll-margin-top: 18px; }
.wrap { width: min(100% - 76px, 1260px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 20px; transform: translateY(-160%); background: var(--white); padding: 12px 16px; z-index: 3; }
.skip:focus { transform: translateY(0); }
.flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }

.header, .hero, footer { background: var(--ink); color: var(--light); }
.header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.wordmark strong, .footer-inner strong { display: block; font-size: 17px; letter-spacing: -.025em; }
.wordmark small, .footer-inner small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mark { display: grid; place-items: center; width: 41px; height: 41px; background: var(--accent); color: var(--ink); font-size: 21px; font-weight: 900; border-radius: 5px; }
nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px clamp(15px, 2.55vw, 34px); }
nav a, .nav-contact { font-size: 14px; text-decoration: none; font-weight: 650; }
nav a:hover, footer a:hover { text-decoration: underline; }
.nav-contact { white-space: nowrap; padding: 10px 14px; border: 1px solid #f3b65d88; border-radius: 5px; }
.nav-contact span { margin-left: 5px; color: var(--accent); }
.nav-contact:hover { background: var(--ink-soft); }

.hero { padding-block: clamp(34px, 5.6vw, 78px); }
.hero-inner { display: grid; grid-template-columns: .95fr 1.18fr; gap: clamp(24px, 5vw, 76px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { flex: 0 0 18px; height: 2px; background: var(--accent); }
.hero .eyebrow { color: var(--accent); }
h1 { font-size: clamp(54px, 6.9vw, 104px); font-weight: 820; line-height: .95; letter-spacing: -.077em; margin-block: 15px 21px; }
h1 span { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { max-width: 370px; font-size: clamp(16px, 1.6vw, 20px); color: #dfdfd8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: 25px; }
.button, .registration-form button, #enquiry-form button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--accent); color: var(--ink); border: 1px solid transparent; border-radius: 5px; padding: 13px 17px; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover, .registration-form button:hover, #enquiry-form button:hover { background: #ffd08d; }
.hero-secondary { font-size: 14px; font-weight: 650; }
.hero-visual { position: relative; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--ink-soft); }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; object-position: 53% 55%; }
.hero-visual figcaption { display: flex; align-items: center; gap: 7px; position: absolute; bottom: 13px; left: 13px; background: #161b20ee; color: var(--light); border-radius: 4px; padding: 6px 10px; font-size: 12px; }
.quick-links { background: var(--white); border-bottom: 1px solid var(--line); }
.quick-links-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-links a { min-width: 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 21px 22px; text-decoration: none; border-left: 1px solid var(--line); }
.quick-links a:last-child { border-right: 1px solid var(--line); }
.quick-links a:hover { background: var(--paper); }
.quick-links strong, .quick-links small { display: block; }
.quick-links strong { font-size: 16px; }
.quick-links small { margin-top: 3px; color: var(--body); font-size: 12px; }
.quick-links b { color: var(--accent-dark); font-size: 19px; }

.history, .training, .team, .boxing-gallery, .competitions, .tournaments, .records, .registration, .admissions, .visit, .contact { padding-block: var(--section-space); }
.history, .team, .competitions, .records, .admissions { background: var(--paper); }
.training, .boxing-gallery, .tournaments, .visit { background: var(--white); }
.section-intro { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px 36px; align-items: end; margin-bottom: clamp(26px, 4vw, 46px); }
.section-intro p { color: var(--body); max-width: 360px; }
.history-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.history-grid article, .grid article, .team-member, .coach { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(19px, 3vw, 31px); }
.history-grid h3, .grid h3 { margin-bottom: 12px; }
.history-grid p, .grid p { color: var(--body); }
.history-grid article > a { display: block; width: fit-content; margin-top: 10px; }
.history-grid a, .coach a, .team-member a, .event a, .record-list a, .record-note a, .admissions-grid > div > a, .contact a { font-weight: 700; }
.alumni-list { margin: 0; padding-left: 20px; color: var(--body); line-height: 1.6; }
.alumni-list li + li { margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article { background: var(--paper); }
.category, .coach-role { display: block; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .095em; font-weight: 800; font-size: 11px; margin-bottom: 12px; }
.team h2 { margin-bottom: 25px; }
.coach { display: grid; grid-template-columns: 145px minmax(0, 750px); gap: 18px 30px; }
.coach img { display: block; width: 126px; max-width: 100%; height: auto; border-radius: 5px; }
.coach figcaption { margin-top: 8px; font-size: 12px; color: var(--body); }
.coach h3 { margin-bottom: 10px; }
.coach p:not(.coach-role) { color: var(--body); }
.coach p + p { margin-top: 8px; }
.coach-links { display: flex; flex-wrap: wrap; gap: 9px 21px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.coach-links a span, .team-member a span { color: var(--accent-dark); }
.team-member { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: space-between; margin-top: 12px; }
.team-member p { color: var(--body); margin-top: 3px; }
.team-update { font-size: 14px; color: var(--body); margin-top: 13px; }

.club-photos, .training-photos, .competition-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.club-photos figure, .competition-gallery figure { border: 1px solid var(--line); background: var(--paper); border-radius: 7px; overflow: hidden; }
.club-photos a { display: block; overflow: hidden; background: var(--ink-soft); }
.club-photos img, .training-photos img, .competition-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.club-photos img { object-position: center 36%; transition: transform .2s ease; }
.club-photos a:hover img { transform: scale(1.04); }
.club-photos a:focus-visible { outline-offset: -5px; outline-color: white; }
.club-photos figcaption, .competition-gallery figcaption { font-size: 14px; font-weight: 650; padding: 11px 14px; color: var(--ink); }
.training-gallery { margin-top: 28px; }
.training-photos { padding-bottom: 20px; }
.training-photos img { border-radius: 6px; }
.training-photos figcaption { padding-top: 8px; }
.training-photos figcaption p { padding: 0; color: var(--body); font-size: 14px; }
.competition-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.competition-gallery figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.competition-gallery figcaption span { font-size: 12px; font-weight: 500; color: var(--body); }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 21px; padding: 0; }
.country-list li { padding: 6px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; font-size: 14px; font-weight: 650; }
.competition-next { margin-top: 23px; }
.competition-next p { color: var(--body); margin-top: 8px; max-width: 600px; }

.event-list, .record-list { border-top: 1px solid var(--line); }
.event, .record-list li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 145px 1.15fr 1fr; gap: 9px 23px; padding-block: 20px; }
.event h3 { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 6px; }
.event p, .record-list li span, .record-note { color: var(--body); }
.event .event-date { font-size: 14px; color: var(--accent-dark); font-weight: 800; }
.event a { display: inline-block; margin-top: 6px; font-size: 14px; }
.record-list { list-style: none; padding: 0; margin: 0; }
.record-list li { grid-template-columns: 1fr 1.8fr auto; align-items: baseline; }
.record-list li strong { font-size: 17px; }
.record-list li a { font-size: 14px; justify-self: start; }
.record-note { margin-top: 15px; font-size: 14px; }

.registration { background: var(--ink); color: var(--light); }
.admissions-grid, .visit-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(23px, 7vw, 96px); align-items: start; }
.registration h2, .admissions h2, .visit h2, .contact h2 { margin-bottom: 17px; }
.admissions h3 { margin-block: 16px 7px; }
.admissions-grid > div > p + p, .contact p + p { margin-top: 8px; }
.admissions-grid > div > a { display: inline-block; margin-top: 17px; }
.registration .admissions-grid > div p { color: var(--muted); }
.admissions p, .visit p:not(.eyebrow), .contact p { color: var(--body); }
.registration-form, #enquiry-form { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: clamp(16px, 3.4vw, 35px); }
.registration-form label, #enquiry-form label { display: block; font-size: 14px; font-weight: 700; margin-block: 13px 5px; }
.registration-form > label:first-child { margin-top: 0; }
.registration-form label span, #enquiry-form label span { color: var(--body); font-weight: 400; }
.registration-form input, .registration-form select, #enquiry-form input, #enquiry-form select, #enquiry-form textarea { width: 100%; min-width: 0; padding: 10px; font: inherit; font-size: 16px; background: var(--white); color: var(--ink); border: 1px solid #a7a393; border-radius: 5px; }
.registration-form p, #enquiry-form p { font-size: 14px; margin-top: 9px; color: var(--body); }
.registration-form button, #enquiry-form button { margin-top: 13px; }
.registration-form button:disabled { opacity: .65; cursor: wait; }
#enquiry-form textarea { resize: vertical; }
#enquiry-form .secondary { background: var(--white); border-color: #a7a393; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.visit .eyebrow { margin-bottom: 10px; color: var(--accent-dark); }
details { border-block: 1px solid var(--line); }
details + details { border-top: 0; }
summary { cursor: pointer; padding-block: 15px; font-weight: 700; }
details p { padding: 0 14px 15px 0; white-space: pre-line; }
.contact { background: #f4dbb7; }
.contact ul { list-style: none; padding: 0; margin: 0; overflow-wrap: anywhere; }
.contact li + li { margin-top: 8px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 22px; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--muted); }

#photo-viewer { width: min(760px, 100% - 28px); max-height: 94vh; padding: 15px; border: 1px solid var(--rule); border-radius: 8px; background: var(--ink); color: var(--light); }
#photo-viewer::backdrop { background: #0b0e11e8; }
#photo-viewer img { width: 100%; height: min(70vh, 560px); display: block; object-fit: contain; }
#photo-viewer figcaption { margin-top: 8px; text-align: center; }
.photo-viewer-controls { display: flex; gap: 7px; margin-bottom: 12px; }
.photo-viewer-controls button { border: 1px solid var(--rule); background: var(--ink-soft); color: inherit; border-radius: 4px; padding: 8px 11px; font: inherit; font-size: 14px; cursor: pointer; }
.photo-viewer-controls button:last-child { margin-left: auto; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { grid-template-columns: 1fr auto; padding-block: 12px; gap: 13px; }
  nav { order: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .hero-inner { gap: 26px; }
  h1 { font-size: clamp(44px, 8.3vw, 77px); }
}
@media (max-width: 760px) {
  .hero-inner, .section-intro, .history-grid, .grid, .admissions-grid, .visit-grid, .contact-grid, .event, .record-list li { grid-template-columns: 1fr; }
  .hero-visual img { aspect-ratio: 1.5; }
  .quick-links-inner, .club-photos, .training-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links a { padding: 10px 9px; border: 0; }
  .quick-links a:last-child { border: 0; }
  .event, .record-list li { gap: 6px; }
}
@media (max-width: 520px) {
  .quick-links-inner { grid-template-columns: 1fr; }
  .quick-links a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 30px); }
  .mark { width: 34px; height: 34px; }
  .wordmark { gap: 7px; }
  .wordmark strong { font-size: 14px; }
  .nav-contact { padding: 7px 8px; }
  nav { gap: 7px 12px; }
  nav a { font-size: 12px; }
  .coach, .form-row, .competition-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .club-photos img { transition: none; }
}
