:root {
  --green: #224e02;
  --green-dark: #173804;
  --ink: #0f172a;
  --muted: #364151;
  --cream: #e7e3d7;
  --paper: #f7f4ee;
  --line: #d9d3c7;
  --footer: #1b1b1b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Open Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
p { color: var(--muted); }
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .4rem .6rem; z-index: 5; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
}
.nav-toggle {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: 999px;
  padding: .4rem .8rem;
  font: inherit;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(247, 244, 238, .97);
  padding: 1rem 6vw 1.4rem;
  flex-direction: column;
  gap: .7rem;
}
.site-nav.is-open {
  display: flex;
  z-index: 20;
  background: #f7f4ee;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
}
.site-nav a, .site-nav .linkish {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
}
.nav-cta {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  padding: .55rem 1rem;
  border-radius: 8px;
  width: fit-content;
}
.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 30%, rgba(0,0,0,.05)),
    url("../img/hero-bg.jpg") center top / cover no-repeat;
  padding: 3.5rem 6vw 4rem;
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .4rem; }
.lede { font-size: 1.25rem; color: var(--ink); }
.hero-portrait {
  margin: 2.2rem auto 0;
  width: min(720px, 100%);
  border: 8px solid #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.btn, .button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: .9rem 1.4rem;
  font: inherit;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover, .button:hover { background: var(--green-dark); }
.wrap { width: min(1120px, calc(100% - 10vw)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 10vw)); }
.band { background: var(--cream); padding: 4.5rem 0; }
.services h2, .invite h2 { text-align: center; }
.rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  margin: .8rem auto 2rem;
}
.cards { display: grid; gap: 1.2rem; }
.card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.card img { width: 92px; margin: 0 auto 1rem; }
.card h3, .card h2 { margin-top: 0; }
.more {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #9aa3b2;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  font-size: 0;
}
.more::after { content: "→"; font-size: 1rem; color: var(--muted); }

.split { padding: 4.5rem 0; }
.split-grid { display: grid; gap: 2rem; align-items: center; }
.split img, .photo-stack img { border-radius: 4px; width: 100%; }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--green); margin-bottom: .4rem; }
.text-link { color: var(--green); }
.reason-list { padding-left: 1.1rem; }
.reason-list li { margin: .8rem 0; color: var(--muted); }
.reason-list strong { color: var(--ink); }
.photo-stack { display: grid; gap: .8rem; }
.invite { padding: 4.5rem 0 5rem; text-align: center; }
.invite p { font-size: 1.15rem; }

.page-hero { padding: 3.5rem 0 1rem; background: var(--paper); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.form-panel { padding: 2rem 0 4rem; }
label { display: block; margin: 0 0 1rem; color: var(--ink); font-size: .95rem; }
input, textarea, select {
  width: 100%;
  margin-top: .35rem;
  padding: .75rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 1rem; padding: 1rem; }
.choice { display: flex; gap: .6rem; align-items: center; }
.choice input { width: auto; margin: 0; }

.book-nav { display: none; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.book-cal.is-ready.has-months .book-nav { display: flex; }
.book-nav button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}
.book-nav button:disabled { opacity: .35; cursor: default; }
.book-month-label { margin: 0; font-family: var(--serif); color: var(--ink); }
.book-cal.is-ready.has-months .book-month > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.book-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.book-dow, .book-date, .book-pad { text-align: center; }
.book-dow { font-size: .78rem; color: var(--muted); padding-bottom: .2rem; }
.book-date, .book-pad { min-height: 2.5rem; }
.book-date {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
}
button.book-date { cursor: pointer; }
button.book-date.is-open { background: #e7f0df; color: var(--green-dark); font-weight: 600; }
button.book-date.is-selected { background: var(--green); color: #fff; }
.book-times { margin-top: 1.2rem; }
.book-times h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.book-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.book-slots .choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .75rem;
  background: #fff;
  color: var(--ink);
}
.book-slots .choice:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.book-slots .choice:has(input:checked) input { accent-color: #fff; }
.book-cal.is-ready .book-times { display: none; }
.book-cal.is-ready .book-times:not([hidden]) { display: block; }
.form-error { color: #8a1f1f; background: #fde8e8; padding: .7rem .9rem; border-radius: 8px; }
.form-success, .flash {
  background: #e7f0df;
  color: var(--green-dark);
  padding: .8rem 6vw;
  margin: 0;
}
.fine { font-size: .95rem; }
.hp { position: absolute; left: -9999px; }
.empty { color: var(--muted); }
.meta { font-size: .9rem; color: #667085; }
.post-list article, .lesson, .comment { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: .2rem 0; }
.post-thumb { display: block; width: min(100%, 420px); border-radius: 10px; margin: .2rem 0 .8rem; }
.post-cover { width: 100%; border-radius: 12px; margin: 1rem 0 1.4rem; }
.article { padding-top: 2.5rem; }
.prose h2, .prose h3 { margin-top: 1.4rem; }
.prose a { text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--green); color: var(--muted); }
.file-list { padding-left: 1.1rem; }
.comments { padding-bottom: 4rem; }
.setup-body { background: var(--paper); }
.setup-card { width: min(560px, calc(100% - 2rem)); margin: 8vh auto; background: #fff; padding: 2rem; border-radius: 16px; }

.site-footer {
  background: var(--footer);
  color: #f4f1ea;
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}
.footer-mail {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-decoration: none;
}
.site-footer p { color: #c8c8c8; }

@media (min-width: 860px) {
  .hero { background-position: center, center 72%; }
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 1.15rem;
    z-index: auto;
  }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-inner {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 3rem;
    align-items: center;
    text-align: left;
  }
  .hero-portrait { margin: 0; width: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
