:root {
  --ink: #10202b;
  --muted: #5d6a73;
  --navy: #0b2336;
  --navy-2: #123a57;
  --water: #dcebf0;
  --foam: #f7f5ef;
  --paper: #fffdf8;
  --line: #d9dee1;
  --accent: #a6342b;
  --accent-dark: #7f261f;
  --white: #ffffff;
  --success: #2f6f4e;
  --shadow: 0 20px 60px rgba(11, 35, 54, .10);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--navy-2); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  background: var(--white);
  color: var(--navy);
  padding: .7rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }

.site-header {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; }
.brand small { color: var(--muted); font-size: .78rem; }
.site-header nav, .site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { text-decoration: none; font-weight: 650; }

main > section {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.hero {
  min-height: 640px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, var(--navy), #154762);
  color: var(--white);
  padding: clamp(2rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin: .35rem 0 1.4rem;
  max-width: 900px;
}
.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.hero .eyebrow { color: #f4b6ae; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 760px; color: #edf5f7; }
.hero-actions, .featured-actions, .film-links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.independence-note { max-width: 740px; margin-top: 1.2rem; color: #bdced8; font-size: .82rem; }
.hero-art svg { width: 100%; min-width: 360px; opacity: .92; }
.water-line { fill: none; stroke: #91c8d7; stroke-width: 7; stroke-linecap: round; opacity: .8; }
.water-line-2 { opacity: .45; }
.oars line { stroke: #ead9aa; stroke-width: 11; stroke-linecap: round; }
.boat { fill: #f5eee1; stroke: rgba(255,255,255,.7); stroke-width: 2; }

.button {
  border: 0;
  border-radius: 999px;
  padding: .78rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 780;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .icon-button:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 3px;
}
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-dark); color: var(--white); }
.button-secondary { background: var(--white); color: var(--navy); }
.button-secondary:hover { color: var(--accent); }
.button-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(11,35,54,.18); }
.button-small { padding: .55rem .85rem; font-size: .9rem; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.featured, .directory, .film, .about { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.section-heading h2, .film h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: .3rem 0 .8rem;
}
.section-heading > p:last-child, .directory-heading p { color: var(--muted); }

.featured-card {
  background: var(--foam);
  border: 1px solid #e2ded3;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  box-shadow: 0 12px 35px rgba(36, 44, 48, .05);
}
.featured-card h3 { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .7rem 0; }
.featured-card p { max-width: 760px; color: var(--muted); }
.badge {
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #f1d8d4;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
}
.badge-small { font-size: .68rem; padding: .22rem .5rem; }

.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.data-status { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.search-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(180px, 1fr));
  gap: .8rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  position: sticky;
  top: .6rem;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(11, 35, 54, .06);
}
.search-panel label, #contact-form label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 750; color: var(--muted); }
.search-panel input, .search-panel select, #contact-form input, #contact-form textarea {
  width: 100%;
  border: 1px solid #cfd7db;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  padding: .75rem .85rem;
}
.search-panel input { font-size: 1.02rem; }
.result-summary { margin: 1.5rem 0 .9rem; color: var(--muted); }
.club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.club-card {
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(11,35,54,.035);
}
.club-card-featured { border-color: #d6a39d; background: #fff9f7; }
.club-card-topline { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.club-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.club-card h3 { font-size: 1.12rem; line-height: 1.3; margin: .7rem 0 .45rem; }
.club-location { color: var(--muted); margin: 0; }
.club-route { font-size: .83rem; color: var(--success); margin: .55rem 0 1rem; }
.club-card-actions { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.text-links { font-size: .82rem; }
.load-more { margin: 1.5rem auto 0; }
.notice { background: #fff4cf; padding: 1rem; border-radius: 12px; }

.film {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 28px;
  background: var(--water);
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 2rem;
  align-items: end;
}
.film p { max-width: 760px; }
.film-links { justify-content: flex-end; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.principles article { border-top: 3px solid var(--navy); padding-top: 1rem; }
.principles h3 { margin: .2rem 0 .5rem; }
.principles p { color: var(--muted); }

.contact-dialog {
  width: min(680px, calc(100% - 2rem));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 100px rgba(3, 18, 28, .34);
}
.contact-dialog::backdrop { background: rgba(4, 17, 26, .66); backdrop-filter: blur(3px); }
.dialog-close-form { position: absolute; right: 1rem; top: 1rem; z-index: 2; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #edf1f3; font-size: 1.5rem; }
.dialog-content { padding: clamp(1.5rem, 5vw, 3rem); }
.dialog-content h2 { font-family: Georgia, serif; font-size: 2.3rem; margin: .2rem 0 .4rem; }
.contact-target { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.routing-note { color: var(--muted); font-size: .84rem; }
#contact-form { display: grid; gap: .85rem; margin-top: 1.2rem; }
#contact-form textarea { resize: vertical; min-height: 130px; }
#contact-form .consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; line-height: 1.4; }
#contact-form .consent input { width: 18px; height: 18px; margin-top: .15rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.4em; color: var(--muted); margin: 0; }

.site-footer {
  width: min(calc(100% - 2rem), var(--content));
  margin: 6rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin: .3rem 0 0; max-width: 600px; }

.legal-page { width: min(calc(100% - 2rem), 820px); margin: 0 auto; padding: 4rem 0 7rem; }
.legal-page h1 { font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; }
.legal-page h2 { margin-top: 2.4rem; }
.legal-page .missing-config { background: #fff1d6; border: 1px solid #e3bb69; padding: 1rem; border-radius: 12px; }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .club-grid, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film { grid-template-columns: 1fr; }
  .film-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  main > section, .site-header, .site-footer { width: min(calc(100% - 1rem), var(--content)); }
  .brand small { display: none; }
  .hero { padding: 2rem 1.25rem; border-radius: 22px; }
  .hero-art svg { min-width: 0; }
  .featured-card, .directory-heading, .site-footer { display: block; }
  .featured-actions { margin-top: 1rem; }
  .search-panel { position: static; grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .data-status { white-space: normal; margin-top: 1rem; }
  .club-grid, .principles { grid-template-columns: 1fr; }
  .film { border-radius: 20px; }
  .club-card { min-height: 220px; }
  .site-footer nav { margin-top: 1rem; }
}

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