/* Sweet Briar neighbors — sweetbriarfishers.com
   Warm, approachable palette. Change the colors here and every page follows. */
:root {
  --cream: #FBF6EE;
  --sand: #F3E9D9;
  --card: #FFFFFF;
  --ink: #2B2420;
  --ink-soft: #5E534B;
  --line: #E6DACA;
  --green: #2F5D50;        /* main brand color: park trees */
  --green-dark: #23463C;
  --sunset: #E07A4F;       /* accent: the sunset over the park */
  --sunset-dark: #C4613A;
  --gold: #F2B66B;
  --sky: #F7D9C4;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(43, 36, 32, 0.08);
  --max: 1080px;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--sunset-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header and nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .site-nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F6C9A8 0%, #F2B98F 35%, #E9A07A 65%, #D98466 100%);
  color: var(--ink);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 150px; }
.hero h1 { color: #2B1E18; max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; max-width: 42ch; color: #3A2A22; }
.hero-trees { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; z-index: 1; }
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 32px; }
.page-hero p { max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-accent { background: var(--sunset); color: #fff; }
.btn-accent:hover { background: var(--sunset-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink); border-color: rgba(43,36,32,0.15); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Sections and cards ---------- */
section { padding: 48px 0; }
section.tint { background: var(--sand); }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--ink-soft); max-width: 60ch; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: #7A3A1E; }
.tag.green { background: #D8E7DF; color: var(--green-dark); }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.event-date {
  text-align: center; background: var(--green); color: #fff; border-radius: 12px; padding: 8px 4px; line-height: 1.1;
}
.event-date .m { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.event-date .d { display: block; font-size: 1.7rem; font-weight: 700; font-family: var(--font-head); }
.event-date.tbd { background: var(--gold); color: var(--ink); }
.event-date.tbd .d { font-size: 1.1rem; padding: 6px 0; }
.event h3 { margin-bottom: 4px; }
.event .meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 8px; }
.event .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.event .actions a, .event .actions button { font-size: 0.9rem; padding: 8px 14px; }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---------- Year calendar table ---------- */
.year { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.year th, .year td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.year th { background: var(--green); color: #fff; font-weight: 600; }
.year td:first-child { font-weight: 700; white-space: nowrap; width: 70px; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend, .label { font-weight: 700; margin-bottom: 8px; display: block; font-size: 1.02rem; }
.hint { color: var(--ink-soft); font-size: 0.92rem; margin: -4px 0 10px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #D6C8B4; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); cursor: pointer; }
.choice input { margin-top: 5px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.choice:hover { border-color: var(--green); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #D8E7DF; color: var(--green-dark); }
.form-status.err { background: #F8DCD0; color: #7A2E14; }
.hp { position: absolute; left: -5000px; }

/* ---------- Notices ---------- */
.notice { background: #FFF6E5; border: 1px solid #F0D7A6; border-radius: var(--radius); padding: 16px 18px; }
.callout { border-left: 4px solid var(--sunset); background: var(--card); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 6px; top: 10px; color: var(--green); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #E9E2D6; padding: 36px 0; margin-top: 24px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .disclaimer { color: #C9BFAF; font-size: 0.88rem; max-width: 70ch; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .event { grid-template-columns: 1fr; }
  .event-date { display: inline-block; padding: 6px 14px; }
  .event-date .m, .event-date .d { display: inline; font-size: 1rem; }
  .hero .wrap { padding-bottom: 120px; }
}
