/* Wildwood Park & Zoo palette, sampled from the official logo (#8C9F5C sage). */
:root {
  --sage: #8c9f5c;
  --sage-dark: #6f8244;
  --forest: #2f3a1f;
  --forest-2: #3d4b29;
  --cougar: #c08a4e;      /* warm tawny accent */
  --cougar-dark: #9c6b34;
  --cream: #f7f4ec;
  --paper: #ffffff;
  --ink: #26301a;
  --muted: #5f6852;
  --line: #ddd8c8;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(47 58 31 / .06), 0 8px 24px rgb(47 58 31 / .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 "Nunito Sans", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.1; margin: 0; }

/* Masthead */
.masthead { background: var(--sage); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { height: 64px; width: auto; }
.society { margin: 0; color: #fff; font-weight: 800; text-align: right; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }

/* Hero */
.hero { position: relative; background: var(--forest); color: #fff; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='60' cy='76' rx='16' ry='13'/%3E%3Cellipse cx='38' cy='54' rx='6' ry='8'/%3E%3Cellipse cx='52' cy='44' rx='6' ry='8'/%3E%3Cellipse cx='68' cy='44' rx='6' ry='8'/%3E%3Cellipse cx='82' cy='54' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px; transform: rotate(-12deg) scale(1.4);
}
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-inner:has(.hero-figure:not([hidden])) { grid-template-columns: 1.2fr 1fr; }
.eyebrow { margin: 0 0 10px; color: #d9c29f; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.lede { font-size: 1.15rem; max-width: 38em; color: #e7ead9; margin: 16px 0 0; }
.status { display: inline-block; margin: 22px 0 0; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-weight: 600; font-size: 15px; }
.status:empty { display: none; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 12px 40px rgb(0 0 0 / .35); aspect-ratio: 6/5; object-fit: cover; object-position: center 30%; width: 100%; transform: rotate(1.5deg); border: 6px solid #fff; }
.ridge { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--cream); }

/* Steps */
main { padding: 8px 0 64px; }
.step { margin-top: 40px; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 18px; color: var(--forest); }
.num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: #fff; font-family: "Nunito Sans", sans-serif; font-size: 18px; font-weight: 800; }

.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.candidate {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.candidate:hover { border-color: var(--sage); transform: translateY(-2px); }
.candidate:focus-visible { outline: 3px solid var(--cougar); outline-offset: 2px; }
.candidate[aria-checked="true"] { border-color: var(--sage-dark); background: #f3f6ea; }
.candidate[aria-checked="true"]::after {
  content: "✓"; position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage-dark); color: #fff; font-weight: 800; font-size: 14px;
}
.candidate img { width: calc(100% + 36px); margin: -18px -18px 14px; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px 12px 0 0; max-width: none; }
.candidate .name { font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 1.4rem; color: var(--forest); padding-right: 30px; }
.candidate .desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.bar { margin-top: 14px; height: 8px; background: #ebe7da; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--cougar)); border-radius: inherit; transition: width .6s ease; }
.count { margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel-text { margin: 0 0 18px; }

.btn { font: 800 17px/1 "Nunito Sans", sans-serif; border: 0; border-radius: 999px; padding: 16px 28px; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cougar); color: #fff; }
.btn-primary:hover { background: var(--cougar-dark); }
.btn:disabled { background: #cfcabb; color: #6b6656; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }

.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.package {
  position: relative; font: inherit; color: inherit; cursor: pointer; text-align: center;
  background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 16px 10px 14px;
}
.package:hover { border-color: var(--sage); }
.package:focus-visible { outline: 3px solid var(--cougar); outline-offset: 2px; }
.package[aria-checked="true"] { border-color: var(--sage-dark); background: #f3f6ea; }
.package .votes { font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 800; color: var(--forest); line-height: 1; }
.package .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.package .price { margin-top: 8px; font-weight: 800; font-size: 1.1rem; color: var(--cougar-dark); }
.package .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--forest); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }

.paypal-buttons { max-width: 420px; }
.muted { color: var(--muted); }

/* Footer */
.footer { background: var(--forest); color: #e7ead9; padding: 36px 0; font-size: 15px; }
.footer-inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer p { margin: 0 0 8px; }
.footer-logo { height: 70px; width: auto; opacity: .9; }
.muted-light { color: #b4bba3; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10;
  width: min(520px, 100% - 32px); padding: 14px 18px; border-radius: 12px;
  background: var(--forest); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.toast.error { background: #8a2f1f; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 80px; }
  .hero-inner:has(.hero-figure:not([hidden])) { grid-template-columns: 1fr; }
  .logo { height: 48px; }
  .society { font-size: 12px; }
  .btn { width: 100%; }
}

/* Admin page */
.admin main.wrap { padding: 32px 0; }
.admin h1 { margin-bottom: 12px; color: var(--forest); }
.admin h2 { margin: 32px 0 12px; color: var(--forest); }
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15px; display: block; overflow-x: auto; }
.admin th, .admin td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin th { background: var(--sage); color: #fff; }
