:root {
  --navy: #0f75bd;        /* logo blue */
  --navy-deep: #0b3d66;
  --gold: #2bb673;        /* logo green */
  --green-deep: #1d8f58;
  --ink: #26303a;
  --muted: #5c6670;
  --paper: #ffffff;
  --cream: #fbf7ef;
  --wash: #f2efe6;
  --line: #e8e2d4;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(11, 61, 102, .06), 0 10px 26px -14px rgba(11, 61, 102, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; color: var(--navy-deep); }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); color: #fff; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); padding-bottom: .55em; margin-bottom: .8em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M3 8 C 18 1, 30 11, 45 6 S 75 1, 90 6 S 110 10, 117 5' fill='none' stroke='%232bb673' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 120px 12px no-repeat; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.narrow { max-width: 44rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem .75rem; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(251, 247, 239, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4rem; flex-wrap: wrap; padding-block: .45rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy-deep); font-family: var(--serif); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.brand-name span { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 500; font-size: .8em; color: var(--muted); }
.brand-logo { height: 3rem; width: auto; border-radius: 10px; }
.top nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.top nav a:hover { background: #e3f1fa; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #f1f8fd; padding: clamp(3rem, 8vw, 5rem) 0 clamp(5rem, 11vw, 7.5rem);
  background:
    radial-gradient(circle at 8% 115%, rgba(43, 182, 115, .55) 0 17rem, transparent 17.05rem),
    radial-gradient(circle at 96% -8%, rgba(255, 255, 255, .12) 0 15rem, transparent 15.05rem),
    radial-gradient(circle at 62% 120%, rgba(255, 255, 255, .08) 0 12rem, transparent 12.05rem),
    linear-gradient(150deg, #1583cf 0%, var(--navy) 45%, #0b5a94 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(2.2rem, 6vw, 4.5rem);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 160 96, 330 4, 560 40 S 960 96, 1200 30 V90 H0 Z' fill='%23fbf7ef'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.4; max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.9rem 0 0; }
.hero-badge { width: clamp(11rem, 24vw, 16rem); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 .5rem rgba(255, 255, 255, .22), 0 22px 40px -18px rgba(4, 30, 54, .7); }

.hero-badge img { width: 70%; }

.btn { display: inline-block; background: var(--gold); color: #05281a; font-weight: 700; text-decoration: none; padding: .75rem 1.4rem; border-radius: 999px; border: 0; box-shadow: 0 4px 0 var(--green-deep); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-deep); }
.btn-ghost { background: #fff; color: var(--navy-deep); box-shadow: 0 4px 0 rgba(4, 30, 54, .35); }
.btn-ghost:hover { box-shadow: 0 6px 0 rgba(4, 30, 54, .35); }
.btn-ghost:active { box-shadow: 0 2px 0 rgba(4, 30, 54, .35); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Sections */
.band { padding: clamp(2.5rem, 7vw, 4.25rem) 0; }
.band-alt { background: var(--wash); border-radius: clamp(1.5rem, 5vw, 3rem); margin-inline: clamp(0rem, 2vw, 1.5rem); }
#about-text p:first-child { font-size: 1.12rem; }
.section-lede { color: var(--muted); max-width: 40rem; }
.aside { margin-top: 1.75rem; padding: 1.1rem 1.3rem; background: #e6f6ee; border-radius: var(--radius); font-size: .95rem; }

/* Meeting */
.meeting { background: var(--navy-deep); color: #e4eff8; border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 3rem; box-shadow: var(--shadow); transform: rotate(-.6deg); }
.meeting p:last-child { margin-bottom: 0; }
.meeting-when { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: .5em; }
.meeting-next { display: inline-block; background: var(--gold); color: #05281a; font-weight: 700; padding: .25rem .9rem; border-radius: 999px; font-size: .95rem; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event { display: flex; gap: 1.1rem; background: var(--paper); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); }
.event-date { flex: 0 0 3.8rem; height: 4.1rem; border-radius: 14px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transform: rotate(-4deg); }
.event:nth-child(even) .event-date { background: var(--green-deep); transform: rotate(3deg); }
.event-month { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #e2f6ec; }
.event-day { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.event-body { min-width: 0; }
.event-body h3 { margin-bottom: .25em; }
.event-body p { margin-bottom: .35em; overflow-wrap: anywhere; }
.event-meta { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); background: var(--paper); border-radius: var(--radius); padding: 1.35rem; margin: 0; box-shadow: var(--shadow); }

.add-link { margin: 1.4rem 0 0; color: var(--muted); }
.add-link a { font-weight: 600; }

/* Forms (add an event, approvals) */
.page { padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2.5rem, 7vw, 4rem); }
.page h1 { color: var(--navy-deep); font-size: clamp(1.9rem, 5vw, 2.6rem); }
.form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 1.9rem); display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy-deep); margin-bottom: .3rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .65rem .8rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 117, 189, .2); }
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.form legend { font-family: var(--serif); font-weight: 700; color: var(--navy-deep); font-size: 1.15rem; padding: 0; margin-bottom: .2rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: default; }
.btn-plain { background: #fff; color: var(--navy-deep); box-shadow: 0 0 0 2px var(--line); }
.btn-plain:hover, .btn-plain:active { box-shadow: 0 0 0 2px var(--navy); transform: none; }
.msg { border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.msg-ok { background: #e6f6ee; color: #0e4a2c; }
.msg-bad { background: #fdeceb; color: #7a1c15; }
.queue { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.queue li { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.25rem; }
.queue h3 { margin-bottom: .2em; }
.queue p { margin-bottom: .3em; overflow-wrap: anywhere; }
.queue .who { color: var(--muted); font-size: .9rem; }
.queue .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }
.page h2 { margin-top: 1.5rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Causes */
.causes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.4rem; margin-top: 1.75rem; }
.cause { display: flex; flex-direction: column; border-radius: var(--radius); padding: 1.6rem 1.45rem 1.5rem; background: var(--paper); box-shadow: var(--shadow); }
.cause::before { content: ""; width: 3.6rem; height: 3.6rem; border-radius: 50%; margin-bottom: 1rem; background: var(--navy) center / 1.9rem no-repeat; }
#wetherbee::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 3 2.5 11.5h3V21h5v-6h3v6h5v-9.5h3z'/%3E%3C/svg%3E"); }
#friendsgiving::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 21s-8.5-5.6-8.5-11.4A4.6 4.6 0 0 1 12 7.2a4.6 4.6 0 0 1 8.5 2.4C20.5 15.4 12 21 12 21z'/%3E%3C/svg%3E"); }
#toy-drive::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 9h8v4H3zM13 9h8v4h-8zM5 14.5h6V21H5zM13 14.5h6V21h-6zM12 8C10 3.5 5.5 4.5 7 8zM12 8c2-4.500 6.500-3.500 5 0z'/%3E%3C/svg%3E"); }
.cause .btn { margin-top: auto; text-align: center; }
.cause .memo { margin-top: auto; color: var(--muted); font-size: .92rem; }
.cause .memo + .btn { margin-top: 0; }
.apply { background: #e6f6ee; border-radius: 14px; padding: .95rem .9rem; margin-bottom: 1rem; font-size: .93rem; }
.apply h4 { margin: 0 0 .35em; font-size: 1.08rem; }
.apply p { margin-bottom: .4em; overflow-wrap: anywhere; }
.apply p:last-child { margin-bottom: 0; }
.apply .apply-label { margin-bottom: 0; }
.apply-email { display: block; font-weight: 600; font-size: .76rem; margin-bottom: .5em; overflow-wrap: anywhere; }

/* Shown only while something is missing or unapproved; deploy.sh blocks publishing in that state. */
.draft { background: #fff4d6; border: 1px dashed #b98900; color: #5c4300; border-radius: 6px; padding: .45rem .65rem; font-size: .9rem; }

/* Footer */
.foot { background: var(--navy-deep); color: #c5d6e5; padding: 2.25rem 0; font-size: .92rem; margin-top: clamp(1rem, 4vw, 2.5rem); }
.foot p { margin: 0 0 .35em; }
.foot a { color: #fff; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-badge { order: -1; width: 8.5rem; }
  .meeting { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
