:root {
  --ink: #14241c;
  --ink-soft: #3e5248;
  --forest: #0e3a2c;
  --forest-deep: #08261c;
  --green: #1c6b49;
  --leaf: #e7f3ec;
  --gold: #c6a15a;
  --gold-soft: #e4d0a4;
  --gold-ink: #7a5a22;
  --cream: #f6f1e6;
  --paper: #fbf8f2;
  --card: #fffcf7;
  --line: rgba(20, 36, 28, 0.1);
  --shadow: 0 24px 50px rgba(14, 58, 44, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% -10%, rgba(198, 161, 90, 0.16), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(28, 107, 73, 0.1), transparent 36%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; }

h1, h2, h3, .brand-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.15rem); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.45rem; margin: 0; }

p { margin: 0 0 0.9rem; }

a { color: var(--green); }

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

::selection { background: var(--gold-soft); color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-rule {
  height: 5px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--gold) 48%, var(--forest-deep) 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  padding: 0.7rem 0;
}

.brand-name { font-size: 1.2rem; }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  border-radius: 12px;
}

.nav-toggle-label span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

.nav { display: none; width: 100%; padding: 0 0 0.9rem; }

.nav-toggle:checked ~ .nav { display: flex; flex-direction: column; gap: 0.2rem; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.nav a[aria-current="page"] { color: var(--green); }

.hero {
  display: grid;
  gap: 1.8rem;
  padding: 1.6rem 0 1rem;
}

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

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.2rem; }

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--forest);
  cursor: pointer;
}

.button-secondary {
  background: transparent;
  color: var(--forest);
}

.text-link { font-weight: 600; text-underline-offset: 0.22em; }

.hero-frame {
  margin: 0;
  border-radius: 140px 140px 28px 28px;
  overflow: hidden;
  background: var(--leaf);
  border: 1px solid rgba(198, 161, 90, 0.55);
  box-shadow: var(--shadow);
}

.hero-frame img { display: block; width: 100%; height: auto; }

.section { padding: 2.6rem 0; }

.points, .steps, .cards, .footer-forms {
  display: grid;
  gap: 0.9rem;
}

.points article,
.step,
.steps li {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem 1.15rem 0.4rem;
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding-bottom: 1rem; }
.step-num { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--gold-ink); margin-bottom: 0.3rem; }

.section-head, .toolbar, .pager {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2, .pager strong { margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-soft);
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(14, 58, 44, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card h3 a, .mini { color: inherit; text-decoration: none; }
.card h3 a:hover, .mini:hover { color: var(--green); }
.card-sub, .card-copy, .quiet, .count, .filter-note { color: var(--ink-soft); }
.card-copy { flex: 1; }
.count { margin: 0 0 0.8rem; font-weight: 600; }

.facts, .detail-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.facts { grid-template-columns: 1fr; }
.detail-facts { grid-template-columns: 1fr 1fr; }

.facts div, .detail-facts div {
  background: var(--leaf);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
}

.facts dt, .detail-facts dt, .day-head span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd, .detail-facts dd { margin: 0.15rem 0 0; font-weight: 600; }

.band { background: var(--forest); color: var(--cream); padding: 3rem 0; }
.band .eyebrow, .band p { color: #f3ecdf; }
.band .button { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.band-inner { display: grid; gap: 1rem; }

.page-intro { padding-top: 1.8rem; }
.prose { max-width: 44rem; }
.prose .form-card { max-width: none; }

.filter-card, .empty, .panel, .form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
}

.filter-card { margin-bottom: 1rem; }

.filters { display: grid; gap: 0.75rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(20, 36, 28, 0.16);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  min-height: 3rem;
}

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

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(14, 58, 44, 0.06);
  padding: 0.28rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.view-toggle a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.view-toggle a[aria-current="page"] { background: var(--forest); color: var(--cream); }

.week {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 78vw);
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem;
}

.day {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
  min-height: 12rem;
}

.day.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.day.is-past { opacity: 0.72; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.day-head strong { font-family: var(--serif); font-size: 1.4rem; }

.mini {
  display: block;
  background: var(--leaf);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
}

.mini span, .mini small { display: block; }
.mini small { color: var(--ink-soft); }

.pager a { font-weight: 600; white-space: nowrap; }
.pager strong { font-family: var(--serif); text-align: center; font-size: 1.25rem; }
.pager-extra { min-height: 1.4rem; }
.swipe-hint { color: var(--ink-soft); font-size: 0.92rem; }

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.cal-head {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cal-cell {
  background: var(--card);
  border-radius: 12px;
  min-height: 3.4rem;
  padding: 0.3rem;
  border: 1px solid transparent;
}

.cal-cell.is-today { border-color: var(--gold); }
.cal-cell.is-outside { opacity: 0.38; }
.cal-num { display: block; font-size: 0.78rem; font-weight: 600; }
.cal-pill {
  display: none;
  margin-top: 0.25rem;
  color: var(--forest);
  background: var(--leaf);
  border-radius: 8px;
  padding: 0.15rem 0.3rem;
  font-size: 0.72rem;
  text-decoration: none;
  line-height: 1.3;
}

.dots { display: flex; gap: 3px; justify-content: center; margin-top: 0.3rem; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: block; }

.agenda { margin: 1rem 0 0; padding: 0; list-style: none; }
.agenda li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

.detail { padding-bottom: 2rem; }
.crumb { display: flex; gap: 0.4rem; align-items: center; color: var(--ink-soft); margin: 1rem 0; font-size: 0.92rem; }
.crumb a { font-weight: 600; }
.detail-grid { display: grid; gap: 1rem; }
.panel h2 { font-size: 1.5rem; }
.where-note { color: var(--ink-soft); }
.link-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.notes { margin-top: 0.5rem; }

.notice {
  background: var(--leaf);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.notice-error { background: #f8ebe3; color: #6b2e1a; }

.form-grid { display: grid; gap: 0.75rem; }
.form-card { position: relative; display: grid; gap: 0.75rem; }
.form-card h2 { font-size: 1.7rem; }
.form-card p { color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.footer {
  background: var(--forest-deep);
  color: #f6f1e6;
  margin-top: 2rem;
  padding: 2.8rem 0 1.6rem;
}

.footer-intro { margin-bottom: 1rem; }
.footer-intro .eyebrow { color: var(--gold-soft); }
.footer a { color: #f6f1e6; }
.form-card a { color: var(--green); }
.footer-meta { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(246, 241, 230, 0.16); }
.footer-meta nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; margin: 0.8rem 0; }
.footer-meta .quiet { color: rgba(246, 241, 230, 0.72); }

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 3rem)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards, .points, .footer-forms { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .cal-cell { min-height: 6.4rem; }
  .cal-pill { display: block; }
  .dots { display: none; }
}

@media (min-width: 800px) {
  .nav-toggle-label { display: none; }
  .nav {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
  }
  .nav a { border: 0; padding: 0.4rem 0; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; padding-top: 2.4rem; }
  .hero-frame { border-radius: 190px 190px 32px 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1.3fr repeat(5, minmax(0, 0.8fr)) auto; align-items: end; }
  .filters-4 { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto; }
  .detail-grid { grid-template-columns: 1.45fr 0.8fr; align-items: start; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1.4fr auto; align-items: center; }
  .section { padding: 4rem 0; }
}

@media (min-width: 1100px) {
  .week {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
  }
  .swipe-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .week { scroll-snap-type: none; }
}

@media print {
  .site-header, .footer, .filters, .view-toggle, .pager, .band { display: none !important; }
  body { background: white; }
}
