/* Faith Fund Rally theme (v0.4.0): matched to the printed flyer.
   Warm off-white paper, deep Christmas green, beige brush band,
   sage ribbon tag, mint offset shadow on the script title, and
   garland frame strips cropped from the flyer itself.
   Fonts are self-hosted (public/fonts) so the page never depends
   on an outside service: Lato for text, Norican for the script. */
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('/fonts/lato-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Norican'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/norican-400.woff2') format('woff2');
}
:root {
  --bg: #faf8f3;
  --surface: #fffdf7;
  --ink: #2e2a24;
  --muted: #6f6a5e;
  --green: #0b6e33;
  --green-dark: #085527;
  --mint: #a9d3ae;
  --beige: #d9d3bd;
  --beige-tint: #f2efe2;
  --sage: #8a9471;
  --red: #c0272d;
  --gold: #c9a227;
  --accent: #0b6e33;
  --accent-ink: #ffffff;
  --border: #e2dbc6;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Lato', 'Open Sans', 'Segoe UI', sans-serif;
  line-height: 1.5;
}
a { color: var(--green); }

/* Header: compact variant (admin pages) */
.site-header { text-align: center; padding: 2.5rem 1rem 1rem; }
.site-header.compact h1 {
  margin: 0.2rem 0; font-size: 2.2rem; font-weight: 900; color: var(--green);
}
.eyebrow {
  color: var(--green); font-weight: 900; font-size: 1rem;
  line-height: 1.45; margin: 0;
}
.event-date { font-size: 1.15rem; color: var(--green); font-weight: 700; margin: 0.2rem 0 0; }

/* Header: flyer hero (public pages) */
.site-header.hero {
  position: relative; max-width: 1020px; margin: 0 auto;
  padding: 0 1rem 0.75rem;
}
.garland { display: block; width: 100%; max-width: 1020px; height: auto; margin: 0 auto; }
.garland-top {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 99%);
}
.garland-bottom {
  -webkit-mask-image: linear-gradient(to top, #000 58%, transparent 99%);
  mask-image: linear-gradient(to top, #000 58%, transparent 99%);
  margin-top: 0.5rem;
}
.hero .eyebrow { margin-top: 0.1rem; }
.script-title {
  font-family: 'Norican', 'Great Vibes', cursive;
  font-weight: 400; color: var(--green);
  font-size: clamp(3.1rem, 12vw, 5.4rem);
  line-height: 1.04; margin: 0.15rem 0 0;
  text-shadow: 0.045em 0.05em 0 var(--mint);
}
.script-the {
  font-size: 0.36em; display: inline-block;
  transform: rotate(-5deg) translateY(-0.85em);
}
.luncheon {
  font-size: clamp(1.55rem, 5.4vw, 2.45rem);
  font-weight: 900; color: var(--green); margin: 0.3rem 0 0;
}
.theme-line {
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-weight: 700; font-style: italic; color: var(--green); margin: 0.4rem 0 0;
}
.date-band {
  background: var(--beige); max-width: 640px;
  margin: 1.05rem auto 0.35rem; padding: 0.8rem 1rem 0.9rem;
  clip-path: polygon(0.5% 18%, 6% 4%, 18% 10%, 32% 2%, 48% 8%, 63% 3%, 79% 9%, 92% 4%, 99.5% 14%, 100% 55%, 99% 86%, 90% 96%, 74% 90%, 58% 98%, 41% 91%, 24% 97%, 9% 90%, 1% 95%, 0% 60%);
}
.date-band span { display: block; color: var(--green); font-weight: 900; }
.date-line { font-size: clamp(1.22rem, 4.6vw, 1.68rem); }
.time-line { font-size: clamp(1.02rem, 3.8vw, 1.28rem); margin-top: 0.12rem; }
.goal-tag {
  position: absolute; top: 46%; right: 1%;
  transform: rotate(-9deg);
  background: var(--sage); color: #fff;
  font-weight: 900; letter-spacing: 0.05em;
  font-size: clamp(0.78rem, 2.4vw, 0.98rem);
  padding: 0.5rem 1.15rem; margin: 0; z-index: 2;
  clip-path: polygon(2% 22%, 12% 4%, 30% 12%, 52% 2%, 74% 10%, 90% 3%, 99% 18%, 100% 60%, 97% 92%, 80% 86%, 58% 98%, 36% 89%, 16% 97%, 3% 88%, 0% 55%);
}
@media (max-width: 700px) {
  .goal-tag {
    position: static; transform: rotate(-3deg);
    width: fit-content; margin: 0.85rem auto 0;
  }
}

main { max-width: 760px; margin: 0 auto; padding: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(101, 90, 50, 0.07);
}
.card h2 { color: var(--green); font-weight: 900; margin-top: 0; }
.card h3 { color: var(--green); font-weight: 900; }
.detail { display: flex; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.detail:last-child { border-bottom: none; }
.detail-label { min-width: 170px; font-weight: 700; color: var(--green); }
form label { display: block; margin-bottom: 0.9rem; font-weight: 700; }
input, textarea, select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem;
  border: 1px solid #d5cfb6; border-radius: 6px; font: inherit; font-weight: 400;
  background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--mint);
}
fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 1rem 0; }
fieldset legend { font-weight: 900; color: var(--green); padding: 0 0.3rem; }
fieldset label.radio { font-weight: bold; margin-top: 0.8rem; }
fieldset label.radio input { display: inline; width: auto; margin-right: 0.4rem; }
.pay-detail { margin: 0 0 0.8rem 1.4rem; }
.pay-box { background: var(--beige-tint); border: 1px solid #ddd5ba; border-radius: 8px; padding: 0.8rem 1rem; }
.pay-box address { font-style: normal; font-weight: bold; }
/* Primary buttons echo the flyer's dark green brush-stroke band. */
.button {
  display: inline-block; background: var(--green); color: var(--accent-ink);
  border: none; border-radius: 4px; padding: 0.75rem 1.7rem; font: inherit;
  font-weight: 700; cursor: pointer; text-decoration: none;
  clip-path: polygon(1% 20%, 10% 5%, 25% 12%, 45% 3%, 65% 10%, 82% 4%, 96% 12%, 100% 30%, 99% 75%, 90% 95%, 70% 88%, 48% 97%, 28% 90%, 10% 96%, 1% 85%, 0% 45%);
}
.button:hover { background: var(--green-dark); }
.note { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.errors { background: #fdf1f1; border: 1px solid #dfa3a6; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.45rem; border-bottom: 1px solid var(--border); vertical-align: top; }
form.inline { display: flex; gap: 0.4rem; }
form.inline select { width: auto; margin-top: 0; }
footer { text-align: center; color: var(--muted); padding: 1rem 1rem 2rem; }
.admin-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1rem; }

/* Day-of check-in sheet: high contrast, roomy rows for handwriting. */
.sheet-body { background: #ffffff; }
.sheet-main { max-width: 960px; margin: 0 auto; padding: 1rem; }
.sheet h2 { margin: 0 0 0.2rem; font-size: 1.7rem; font-weight: 900; color: #000; }
.sheet-date { color: var(--green); font-weight: 700; margin: 0 0 0.6rem; font-size: 1.05rem; }
.sheet-instructions { margin: 0 0 1rem; }
.sheet-totals { margin-bottom: 1rem; }
.sheet-toolbar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
table.checkin { width: 100%; border-collapse: collapse; font-size: 1rem; color: #000; }
table.checkin th, table.checkin td {
  border: 1.5px solid #444; padding: 0.55rem 0.5rem;
  text-align: left; vertical-align: middle;
}
table.checkin thead th { background: #eee; font-size: 0.9rem; }
table.checkin td.name-cell { font-weight: bold; }
table.checkin tr.blank-row td { height: 2.6rem; }
.box-cell { text-align: center; width: 3rem; }
.box {
  display: inline-block; width: 1.15rem; height: 1.15rem;
  border: 2.5px solid #000; border-radius: 2px; vertical-align: middle;
}
.owes { color: #000; letter-spacing: 0.06em; text-decoration: underline; }

@media print {
  .no-print { display: none !important; }
  body, .sheet-body { background: #fff; }
  .sheet-main { max-width: none; padding: 0; }
  table.checkin th, table.checkin td { border-color: #000; }
  @page { margin: 1.4cm; }
}
