@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}

:root {
  --navy: #16283a;
  --navy-2: #22394f;
  --sea: #5f7f95;
  --mist: #e4ebef;
  --cream: #fbf8f2;
  --sand: #f1e9db;
  --gold: #c99a46;
  --gold-dark: #8c6722;
  --ink: #1f2832;
  --muted: #56626e;
  --line: #ded5c4;
  --bad: #9b2c2c;
  --ok: #24583b;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 40 58 / 8%), 0 8px 28px rgb(22 40 58 / 10%);
  --tabbar: 64px;
  --topbar: 58px;
}

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

/* Pages are separate documents; this cross-fades between them where supported. */
@view-transition { navigation: auto; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  background: var(--cream);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 7.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.8rem); }
h3, .h3 { font-size: 1.45rem; }

/* On its own page a section's heading is the h1; keep it at section-heading size. */
.inner h1 { font-size: clamp(2.1rem, 5.6vw, 3rem); }

p { margin: 0 0 1.05em; }

a { color: var(--navy); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy);
}

.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.narrow { max-width: 760px; }
.centre { text-align: center; }

.band { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 44rem;
}

.lead.centre { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d6aa5b; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgb(255 255 255 / 70%); color: #fff; backdrop-filter: blur(4px); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar);
  padding: 0.4rem max(1.25rem, env(safe-area-inset-left));
  background: rgb(22 40 58 / 94%);
  color: #fff;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
}

.brand-name { font: 600 1.55rem/1 var(--serif); }

.brand-post {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.topnav { display: none; gap: 1.6rem; }

.topnav a {
  color: #e8edf1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.topnav a:hover,
.topnav a[aria-current='page'] { color: var(--gold); }

.call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(86svh, 760px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(22 40 58 / 35%) 0%, rgb(22 40 58 / 45%) 35%, rgb(16 29 43 / 94%) 100%);
}

.hero-inner {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
  padding: 5rem 0 clamp(2.2rem, 6vw, 4.5rem);
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  max-width: 17ch;
  color: #fff;
  text-shadow: 0 2px 18px rgb(0 0 0 / 35%);
}

.hero-name {
  margin: 0 0 0.6rem;
  font: italic 500 1.5rem/1.2 var(--serif);
}

.hero-name span {
  margin-left: 0.3rem;
  color: var(--gold);
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
}

.hero-text {
  max-width: 34rem;
  color: #e7edf2;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.actions .btn { flex: 1 1 15rem; max-width: 22rem; }
.centre-actions { justify-content: center; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  gap: 2rem;
}

.portrait {
  position: relative;
  width: min(72%, 300px);
  margin: 0 auto;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.portrait::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: 999px 999px calc(var(--radius) + 10px) calc(var(--radius) + 10px);
}

.prose p:last-child { margin-bottom: 0; }
.prose .btn { margin-top: 1.6rem; }

/* ---------- Credentials ---------- */
.creds {
  background: var(--navy);
  color: #dfe7ee;
}

.creds h2 { color: #fff; margin-bottom: 2rem; }

.cred-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.cred-list svg {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  stroke-width: 2.6;
}

.cred-list h3 { margin: 0 0 0.2rem; color: #fff; font-size: 1.35rem; }
.cred-list p { margin: 0; font-size: 0.97rem; line-height: 1.5; }

/* ---------- Lessons ---------- */
.lesson-list {
  display: grid;
  gap: 0.9rem;
  margin: 2.2rem 0;
}

.lesson {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgb(22 40 58 / 5%);
}

.lesson h2 { margin: 0; padding: 1.2rem 1.3rem 0.7rem; font-size: 1.6rem; }
.lesson .prose { padding: 0 1.3rem 1.4rem; }

/* ---------- Gallery ---------- */
.gallery-band { background: var(--sand); }

.gallery {
  columns: 2;
  column-gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  margin-bottom: 0.7rem;
  break-inside: avoid;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  transition: transform 0.35s ease;
}

.shot:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(10 18 27 / 96%);
  color: #fff;
}

.lightbox::backdrop { background: rgb(10 18 27 / 96%); }

.lightbox figure {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  margin: 0;
  padding: 3.5rem 0.75rem 1rem;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 0.9rem 3rem 0.4rem;
  text-align: center;
  font: italic 500 1.2rem/1.3 var(--serif);
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover { background: rgb(255 255 255 / 28%); }
.lb-close { top: 0.6rem; right: 0.6rem; }
.lb-prev { left: 0.5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 0.5rem; top: 50%; translate: 0 -50%; }

/* ---------- About ---------- */
.about .lead { margin-bottom: 1.6rem; }

/* ---------- Find us ---------- */
.find {
  padding-bottom: 0;
  background: var(--mist);
}

.find-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.map { margin: 1.8rem 0 0; }

.map-canvas {
  display: grid;
  place-items: center;
  height: clamp(280px, 56vw, 400px);
  background: var(--mist);
  font: inherit;
  z-index: 0; /* keeps Leaflet's layers under the sticky header */
}

/* The teardrop is drawn on ::before because Leaflet positions .map-pin itself with a transform. */
.map-pin::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--navy);
  box-shadow: 0 3px 10px rgb(0 0 0 / 35%);
  rotate: -45deg; /* point faces down */
}

/* The form field styles further down would blow up the Satellite / Street map radios. */
.leaflet-control-layers label {
  display: block;
  margin: 0;
  font: 500 0.85rem/1.9 inherit;
  font-family: inherit;
  cursor: pointer;
}

.leaflet-control-layers input {
  width: auto;
  min-height: 0;
  margin: 0 0.4rem 0 0;
  padding: 0;
  vertical-align: middle;
  accent-color: var(--navy);
}

/* Landmark name written straight onto the satellite photo. */
.leaflet-tooltip.map-label {
  border: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0 0 0 / 90%);
}

.map figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
}

.venue img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.venue-body { padding: 1.4rem; }

address {
  margin-bottom: 1rem;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.venue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.venue-links .btn { flex: 1 1 auto; }

.view {
  width: 100%;
  height: clamp(200px, 38vw, 420px);
  object-fit: cover;
  object-position: 50% 45%;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-list svg { margin-top: 0.2rem; color: var(--gold-dark); }

.form { padding: clamp(1.25rem, 4vw, 2rem); }
.field { margin-bottom: 1.1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.opt { color: var(--muted); font-weight: 400; }

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #c9c0ae;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming on focus */
}

textarea { min-height: 8.5rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgb(201 154 70 / 45%);
  outline-offset: 0;
}

[aria-invalid='true'] { border-color: var(--bad); }

.field-error {
  margin: 0.35rem 0 0;
  color: var(--bad);
  font-size: 0.92rem;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn { width: 100%; }

.notice {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.notice.ok { background: #e3f1e8; color: var(--ok); }
.notice.bad { background: #f8e4e4; color: var(--bad); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 1.25rem;
  background: var(--navy);
  color: #cdd7df;
  text-align: center;
  font-size: 0.95rem;
}

.footer a { color: #fff; }
.footer-nav { font-size: 0.95rem; }
.footer strong { color: #fff; font: 600 1.3rem var(--serif); }
.small { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* ---------- Tab bar (phones) ---------- */
.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--tabbar);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.tabbar svg { width: 1.5rem; height: 1.5rem; }

.tabbar a[aria-current='page'] { color: var(--navy); }
.tabbar a[aria-current='page'] svg { color: var(--gold-dark); }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .cred-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; column-gap: 0.9rem; }
  .gallery li { margin-bottom: 0.9rem; }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar { padding-inline: 2rem; }
  .hero { align-items: center; }
  .hero::after {
    background: linear-gradient(90deg, rgb(16 29 43 / 92%) 0%, rgb(16 29 43 / 72%) 42%, rgb(22 40 58 / 12%) 100%);
  }
  .actions .btn { flex: 0 0 auto; }
  .intro-grid { grid-template-columns: 340px 1fr; gap: 4.5rem; align-items: center; }
  .portrait { width: 100%; }
  .cred-list { grid-template-columns: repeat(3, 1fr); }
  .lesson-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .gallery { columns: 4; }
  .find-grid { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .lightbox figure { padding: 3.5rem 5rem 1rem; }
}

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