:root {
  --sky: #1f5fa6;
  --sky-deep: #163f72;
  --hill: #cfe5cc;
  --grass: #2f8f4e;
  --grass-deep: #1f6b38;
  --cream: #fbf1cf;
  --paper: #fffaf0;
  --house: #7179c9;
  --rooster: #c3262e;
  --ink: #1d2433;
  --muted: #55607a;
  --line: #e4dcc4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 63, 114, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sky-deep);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.brand {
  font-family: "Caveat", cursive;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 1rem/1.2 "Poppins", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }
.btn-primary { background: var(--rooster); color: #fff; box-shadow: 0 4px 14px rgba(195, 38, 46, 0.35); }
.btn-primary:hover { background: #a91f26; }
.btn-ghost { background: #fff; color: var(--sky-deep); border: 2px solid var(--sky); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 45%, var(--hill) 100%);
  padding: 28px 0 40px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-cta p { margin: 0; font-weight: 600; }
.hero-cta p span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.flyer {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 30, 60, 0.35);
  border: 6px solid #fff;
  background: #fff;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

h1, h2 {
  font-family: "Luckiest Guy", "Poppins", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--sky-deep);
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { margin: 0 0 6px; font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--rooster);
  margin-bottom: 4px;
}
.lead { font-size: 1.15rem; max-width: 62ch; }
.tldr {
  background: var(--cream);
  border-left: 6px solid var(--grass);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  max-width: 75ch;
}
.tldr strong { color: var(--grass-deep); }

/* ---------- Dates ---------- */
.days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.day {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.day .dow { font-weight: 700; color: var(--grass-deep); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.day .date { font-family: "Luckiest Guy", sans-serif; font-size: 2.2rem; color: var(--sky-deep); line-height: 1.2; }
.day .time { font-size: 1.15rem; font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  background: var(--hill);
  color: var(--grass-deep);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.sign {
  font-family: "Caveat", cursive;
  font-size: 2rem;
  line-height: 1.2;
  background: var(--cream);
  border-radius: 6px;
  padding: 26px 22px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.sign + .sign { transform: rotate(2deg); margin-top: 22px; }

/* ---------- Finds ---------- */
.finds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.finds li {
  background: #fff;
  border: 2px solid var(--house);
  color: #3c438f;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: stretch;
}
.visit-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
}
.visit-card address { font-style: normal; font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.map {
  border: 0;
  width: 100%;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Mailing list form ---------- */
.signup {
  background: linear-gradient(180deg, var(--hill), #e9f3e6);
}
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 40px);
  max-width: 820px;
  margin-inline: auto;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, fieldset legend { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--rooster); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], select {
  font: inherit;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(31, 95, 166, 0.15); }
fieldset {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 12px;
  margin: 0 0 16px;
}
fieldset legend { padding: 0 6px; }
.choices { display: flex; gap: 24px; margin-top: 4px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.choices input { width: 20px; height: 20px; accent-color: var(--grass); }
.fine { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-msg.error { display: block; background: #fde8e8; color: #8a1c22; }
.thanks { text-align: center; padding: 20px 0; }
.thanks h3 { font-family: "Luckiest Guy", sans-serif; font-weight: 400; font-size: 2rem; color: var(--grass-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--sky-deep);
  color: #dfe8f5;
  padding: 30px 0;
  font-size: 0.95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: #fff; }

/* ---------- Admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-tools input { width: 260px; max-width: 100%; }
.stat { font-weight: 600; color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--cream); position: sticky; top: 0; }
tbody tr:hover { background: #f7f9fd; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .about-grid, .visit-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { gap: 0; }
  .brand { font-size: 1.5rem; }
  .topbar .btn { padding: 9px 14px; font-size: 0.88rem; }
  .sign { font-size: 1.6rem; }
  section { padding: 40px 0; }
}
