/* Light is the default; dark applies when the device prefers it (unless the
   visitor picked light) or when the visitor picks dark with the header toggle. */
:root {
  color-scheme: light;
  --ink: #1d1a16;
  --ink-soft: #4a443c;
  --paper: #fbf8f2;
  --paper-alt: #f3ede1;
  --surface: #ffffff;
  --line: #e2d9c6;
  --gold: #f0a90e;
  --gold-deep: #9a6a00;
  --night: #120f0c;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #ece5d8;
    --ink-soft: #b3a994;
    --paper: #17130f;
    --paper-alt: #201b16;
    --surface: #26201a;
    --line: #3b332a;
    --gold-deep: #f2b843;
    --night: #0b0907;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece5d8;
  --ink-soft: #b3a994;
  --paper: #17130f;
  --paper-alt: #201b16;
  --surface: #26201a;
  --line: #3b332a;
  --gold-deep: #f2b843;
  --night: #0b0907;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2, .h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .6em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night) 94%, transparent);
  backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.site-header nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { color: #f1ebe0; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { background: rgba(240, 169, 14, .18); color: #fff; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 4px; border-radius: 999px;
  border: 1px solid rgba(240,169,14,.5); background: transparent; color: var(--gold); cursor: pointer;
}
.theme-toggle:hover { background: rgba(240, 169, 14, .18); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.site-header nav li { display: flex; align-items: center; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 6px; }
  .site-header { position: static; }
  .site-header nav ul { gap: 0; margin-left: -12px; }
  .site-header nav a { padding: 6px 12px; font-size: .95rem; }
}

/* Hero */
.hero { background: var(--night); color: #f6f1e7; padding: clamp(40px, 7vw, 88px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.lede { font-size: 1.2rem; color: #d9d0c1; max-width: 34em; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.service-card {
  display: grid; gap: 2px; margin: 24px 0;
  padding: 18px 20px; border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0;
}
.service-card strong { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.service-card span { color: #cfc5b4; }
.service-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: #ffbb24; color: var(--night); }
.btn-ghost { border-color: currentColor; color: inherit; }
.hero .btn-ghost { color: #fff; }
.section .btn-ghost { color: var(--ink); }

/* Values strip */
.values { background: var(--gold); color: var(--night); padding: 28px 0; }
.values-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 32px; }
.values-row p { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.values-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.values-row li { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--night); color: #efe8dc; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark a { color: var(--gold); }
.section-dark a:hover { color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.tags li { background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 600; }

/* Calendar */
.calendar-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 24px 0 12px; box-shadow: 0 8px 30px rgba(60, 40, 0, .06);
}
.calendar-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (max-width: 640px) { .calendar-frame iframe { height: 520px; } }
.small { font-size: .95rem; color: var(--ink-soft); }
.section-dark .small { color: #bfb5a4; }

/* Weekly */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin: 24px 0 36px; }
.day.day-sunday { background: var(--night); border-color: var(--gold); color: #f6f1e7; }
.day.day-sunday time { color: var(--gold); }
.day.day-sunday .where { color: #cfc5b4; }
.day .where { display: block; font-size: .85rem; color: var(--ink-soft); }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.day h3 { font-size: 1.05rem; margin-bottom: .6em; padding-bottom: .5em; border-bottom: 2px solid var(--gold); }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day li { line-height: 1.35; }
.day time { display: block; font-size: .85rem; font-weight: 700; color: var(--gold-deep); }
@media (max-width: 960px) { .week-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper-alt); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Visit */
address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin-bottom: 1em; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
#visit h3 { margin-top: 1.5em; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a89d8a; }
.contact-list a { font-size: 1.15rem; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-block; padding: 8px 16px; border: 1px solid rgba(240,169,14,.5); border-radius: 999px; text-decoration: none; font-weight: 600; }
.people { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.people dt { color: #a89d8a; font-weight: 600; }
.people dd { margin: 0; }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; gap: 2px; } .people dd { margin-bottom: 10px; } }

/* Safeguarding */
.callout { background: var(--paper-alt); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 20px 0; }
.callout p:last-child { margin: 0; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; background: var(--surface); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 12px; }
details li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--night); color: #bfb5a4; padding: 40px 0; border-top: 1px solid rgba(240,169,14,.25); font-size: .95rem; }
.footer-inner { display: flex; gap: 24px; align-items: center; }
.footer-text p { margin: 0 0 .4em; }
.legal { color: #efe8dc; font-weight: 600; }
.docs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: .8em !important; }
.docs a { color: var(--gold); }
@media (max-width: 600px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

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