:root {
  --ink: #14231b;
  --forest: #1c4a37;
  --forest-dark: #12332a;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --line: #e2dccd;
  --muted: #5d6a62;
  --gold: #f0b429;
  --red: #c8402f;
  --blue: #2f7fb8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 27, .06), 0 8px 24px rgba(20, 35, 27, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img, iframe { max-width: 100%; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.auth { max-width: 460px; }
.muted, .meta { color: var(--muted); font-size: .95rem; }
.pre { white-space: pre-line; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--gold); margin-bottom: .75rem; }

/* Buttons */
.btn { display: inline-block; background: var(--forest); color: #fff; font: 600 1rem var(--sans); padding: .75rem 1.3rem; border: 2px solid var(--forest); border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc94d; border-color: #ffc94d; color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-small { padding: .45rem .95rem; font-size: .92rem; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; }
button.link.danger, .danger { color: var(--red); }

/* Header */
.site-header { background: var(--forest-dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font: 700 1.6rem var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.brand-mark { width: 64px; height: 64px; border-radius: 50%; flex: none; background: url(/img/badge.png) center / contain no-repeat; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.member-card .brand-mark { width: 44px; height: 44px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; padding: .55rem .7rem; border-radius: 6px; display: block; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); margin-left: 6px; }
.nav .btn:hover { background: #ffc94d; color: var(--ink); }
.has-sub { position: relative; }
.has-sub > ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.has-sub > ul a { color: var(--ink); }
.has-sub > ul a:hover { background: var(--cream); color: var(--ink); }
.nav-toggle { display: none; background: none; color: #fff; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .4rem 1rem; font: 600 1rem var(--sans); cursor: pointer; }

.subnav { background: var(--cream); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; align-items: center; }
.subnav a, .subnav button { padding: .8rem .75rem; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a[aria-current] { border-bottom-color: var(--gold); color: var(--ink); }
.subnav b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }
.subnav form { margin-left: auto; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--forest-dark), var(--forest) 70%); color: #fff; padding: clamp(48px, 8vw, 104px) 0; overflow: hidden; }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: min(78%, 1000px); height: 100%;
  background: url(/img/hero-target.jpg) left 35% / cover no-repeat; opacity: .8;
  -webkit-mask-image: radial-gradient(120% 130% at 0 0, #000 25%, transparent 72%); mask-image: radial-gradient(120% 130% at 0 0, #000 25%, transparent 72%); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(10, 32, 25, .55), rgba(10, 32, 25, .15) 60%, transparent); }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 2px 14px rgba(8, 26, 20, .9), 0 0 3px rgba(8, 26, 20, .8); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
.lead { font-size: 1.2rem; max-width: 58ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75rem 0 0; }
.hero-badge { display: block; width: min(100%, 380px); height: auto; aspect-ratio: 1; justify-self: center; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .45); }

/* Sections */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-tint { background: var(--cream); }
.page-head { background: var(--forest-dark); color: #fff; padding: clamp(36px, 6vw, 68px) 0; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.page-head-small { padding: 28px 0; }
.page-head-small h1 { font-size: 2rem; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 0 0 1rem; }
.section-head h1, .section-head h2 { margin: 0; }
.split .section-head:not(:first-child) { margin-top: 2.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.split-wide { grid-template-columns: 1.5fr 1fr; }
.section > .split:has(> .form:first-child), .section > .split:has(> .prose:first-child) { grid-template-columns: 1.5fr 1fr; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink); }
.card p { color: var(--muted); margin-bottom: .75em; }
.card-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; color: var(--red) !important; margin-bottom: .5rem; }
.more { font-weight: 600; color: var(--forest); }
.more::after { content: ' →'; }
.price { font: 700 1.25rem var(--serif); color: var(--forest) !important; }

/* Events */
.event-row { display: flex; align-items: center; gap: 16px; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.event-row:hover { border-color: var(--gold); color: var(--ink); }
.event-date { flex: none; width: 56px; text-align: center; background: var(--forest-dark); color: #fff; border-radius: 8px; padding: 6px 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
.event-date b { display: block; font: 700 1.4rem var(--serif); }
.event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-info span { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: #e6efe9; color: var(--forest-dark); white-space: nowrap; vertical-align: middle; }
.tag-beginners, .tag-have-a-go { background: #fdf0cf; color: #6b4a00; }
.steps li { margin-bottom: .8em; }
.tag-competition { background: #f9dedb; color: #7d2118; }
.tag-coaching { background: #dcebf6; color: #184a70; }
.tag-social, .tag-meeting { background: #ece7f5; color: #45306f; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-nav h2 { margin: 0; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--forest-dark); color: #fff; text-align: center; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 8px 0; }
.cal-cell { background: #fff; min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-empty { background: var(--cream); }
.cal-num { font-weight: 600; font-size: .9rem; color: var(--muted); }
.cal-today { background: #fffbea; }
.cal-today .cal-num { background: var(--gold); color: var(--ink); width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; }
.cal-event { display: block; font-size: .78rem; line-height: 1.3; padding: 4px 6px; border-radius: 5px; text-decoration: none; color: inherit; background: #e6efe9; overflow: hidden; }
.cal-event:hover { outline: 2px solid var(--gold); }
.cal-lists { margin-top: 40px; }

/* Panels, facts, stats */
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3:not(:first-child) { margin-top: 1.25em; }
.panel.item { margin-bottom: 18px; background: #fff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1.25em; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.staff-links { margin: 1.25em 0 0; padding-top: 1em; border-top: 1px solid var(--line); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--gold); color: var(--ink); }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat b { font: 700 1.35rem var(--serif); text-transform: capitalize; }
.status-active { color: #1f7a48; } .status-pending { color: #9a6700; } .status-expired, .status-suspended { color: var(--red); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.5rem; }
.news-item { padding: 0 0 1.1rem; margin: 0 0 1.1rem; border-bottom: 1px solid var(--line); }
.news-item h2, .news-item h3 { margin-bottom: .3em; }
.news-item .meta { margin-bottom: .25em; }
.news-item p:last-child { margin: 0; }

/* Find us */
.find-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.find-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; background: var(--cream); }
.map iframe { display: block; width: 100%; height: clamp(320px, 55vh, 520px); border: 0; }
.w3w a { font: 700 1.2rem var(--sans); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.w3w span { color: #e11f26; }

.cta { background: var(--forest-dark); color: #fff; text-align: center; padding: clamp(44px, 7vw, 80px) 0; }
.cta p { opacity: .9; margin-bottom: 1.5rem; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose .cards { margin: 1.5rem 0; }
.notice { background: #fdf0cf; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.3rem; margin: 1rem 0 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #c9c2b0; border-radius: 8px; padding: .65rem .8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: 3px solid rgba(240, 180, 41, .45); }
input:disabled { background: var(--cream); color: var(--muted); }
textarea { resize: vertical; }
textarea.code { font: .9rem/1.5 ui-monospace, Consolas, monospace; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--forest); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.flash { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid; font-weight: 500; }
.section .flash { margin: 0 0 24px; }
.flash-ok { background: #e4f4ea; border-color: #9fd3b3; color: #14532d; }
.flash-error { background: #fbe6e3; border-color: #eaa9a1; color: #7d2118; }
.flash-info { background: #fdf0cf; border-color: #ecd08a; color: #6b4a00; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
td.actions { justify-content: flex-end; white-space: nowrap; }
.actions form { margin: 0; }

/* Membership card */
.member-card { background: linear-gradient(135deg, var(--forest-dark), var(--forest)); color: #fff; border-radius: 18px; padding: 28px; max-width: 480px; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.member-card-top { display: flex; align-items: center; gap: 12px; font: 700 1.1rem var(--serif); }
.member-name { font: 700 1.9rem var(--serif); margin: 1.5rem 0 1rem; }
.member-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.member-card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.member-card dd { margin: 0; font-weight: 600; text-transform: capitalize; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd8d2; padding: 56px 0 0; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { font: 700 1.4rem var(--serif); color: #fff; margin-bottom: .4rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: .88rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--forest-dark); padding: 8px 20px 20px; max-height: calc(100vh - 82px); overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .has-sub > ul { display: block; position: static; background: none; box-shadow: none; padding: 0 0 6px 14px; }
  .has-sub > ul a { color: #cfe0d6; padding: .35rem .7rem; }
  .has-sub > ul a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-grid, .split, .split-wide, .section > .split:has(> .form:first-child), .section > .split:has(> .prose:first-child) { grid-template-columns: 1fr; }
  .hero-badge { display: none; } /* the photo takes its place on small screens; the badge is in the header */
  .hero::before { width: 100%; -webkit-mask-image: linear-gradient(160deg, #000 20%, transparent 85%); mask-image: linear-gradient(160deg, #000 20%, transparent 85%); }
  .form .row { grid-template-columns: 1fr; }
  .cal, .cal-nav h2 { font-size: 1rem; }
  .cal { display: none; }
  .cal-lists { margin-top: 0; }
  .cal-nav h2 { font-size: 1.3rem; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.3rem; gap: 10px; }
  .brand-mark { width: 50px; height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-row .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
