:root {
  --cream: #fdf6e6;
  --cream-deep: #fbf1dc;
  --paper: #fffdf7;
  --gold: #e8b84b;
  --gold-dark: #c99a2e;
  --comb: #b5471b;
  --comb-dark: #8f3512;
  --ink: #3d2b17;
  --muted: #8a6d3b;
  --line: #f0e2c8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(61, 43, 23, 0.08);
}

* { box-sizing: border-box; }

/* Several blocks below set `display`, which would otherwise beat the UA
   stylesheet's rule for [hidden] and leak toggled-off sections onto the page. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend, summary { font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }

a { color: var(--comb); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}

/* ---------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 20px 96px;
  background:
    radial-gradient(circle at 50% 0%, #fbe3a8 0%, transparent 60%),
    linear-gradient(180deg, var(--gold) 0%, #f3d489 55%, var(--cream) 100%);
  overflow: hidden;
}

.hero__coop { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.hero__chicken { display: inline-block; animation: bob 3s ease-in-out infinite; }
.hero__chicken--sm { font-size: 34px; opacity: .9; }
.hero__chicken--sm:nth-of-type(2) { animation-delay: .4s; }
.hero__chicken--sm:nth-of-type(3) { animation-delay: .8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__chicken { animation: none; }
}

.hero__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--comb-dark);
  font-family: "Trebuchet MS", sans-serif;
}

.hero__title {
  margin: 8px 0 4px;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.05;
  color: #4a3210;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .45);
}

.hero__tagline {
  margin: 0 0 18px;
  font-style: italic;
  font-size: clamp(17px, 3.4vw, 22px);
  color: var(--comb-dark);
}

.hero__meta { margin: 0 0 26px; color: #5c421f; }
.dot { margin: 0 8px; opacity: .5; }

.hero__fence {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--comb) 0 8px, transparent 8px 30px);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  opacity: .18;
}

/* --------------------------------------------------------------- layout --- */
.section {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px;
}
.section--alt {
  max-width: none;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: 740px; margin-left: auto; margin-right: auto; }

.section__title {
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 auto 6px;
  text-align: center;
  color: var(--comb);
}
.section__title::after {
  content: "🐓";
  display: block;
  font-size: 20px;
  margin-top: 6px;
  opacity: .55;
}
.section__lede { text-align: center; margin: 0 auto 32px; max-width: 560px; color: var(--muted); }

/* ---------------------------------------------------------------- cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.card__icon { font-size: 32px; }
.card h3 { margin: 10px 0 2px; font-size: 18px; }
.card__time { margin: 0 0 8px; color: var(--comb); font-weight: bold; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card__link { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ----------------------------------------------------------------- form --- */
.form { display: grid; gap: 20px; }

.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label, legend {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e0cda3;
  border-radius: 10px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, .choice input:focus-visible + .choice__box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold-dark);
}
textarea { resize: vertical; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .choices { grid-template-columns: 1fr; } }

.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--paper);
  border: 2px solid #e0cda3;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.choice__box:hover { transform: translateY(-1px); }
.choice input:checked + .choice__box {
  border-color: var(--comb);
  background: #fff4e2;
}
.choice__emoji { font-size: 24px; }
.choice__label { font-family: "Trebuchet MS", sans-serif; font-weight: 600; font-size: 15px; }

/* --------------------------------------------------------------- guests --- */
.guests {
  background: var(--paper);
  border: 1px dashed #ddc79a;
  border-radius: var(--radius);
  padding: 20px;
}
.guests__head h3 { margin: 0; font-size: 17px; }
.guests__head p { margin: 2px 0 14px; }

.guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.guest-remove {
  border: 1px solid #e0cda3;
  background: var(--cream);
  color: var(--comb);
  border-radius: 10px;
  height: 44px;
  width: 44px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.guest-remove:hover { background: #f7e6c6; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .1s, background .15s, box-shadow .15s;
  display: inline-block;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--comb);
  color: #fff8ec;
  box-shadow: 0 4px 0 var(--comb-dark);
}
.btn--primary:hover { background: #c14e1e; }
.btn--primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--comb);
  color: var(--comb);
}
.btn--ghost:hover { background: #fff2e0; }
.btn--wide { width: 100%; }
.hero__cta { font-size: 17px; }

/* --------------------------------------------------------- misc / state --- */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}
.alert--error { background: #fdeceb; border: 1px solid #f0b6ae; color: #8c2718; }

.lookup__row { display: flex; gap: 10px; }
.lookup__row input { flex: 1; }

.success {
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success__emoji { font-size: 52px; }
.success h3 { margin: 8px 0 10px; font-size: 24px; color: var(--comb); }
.success p { margin: 0 0 8px; }

/* ------------------------------------------------------------------ faq --- */
.faq { display: grid; gap: 10px; margin-top: 26px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.footer {
  text-align: center;
  padding: 40px 20px 56px;
  color: var(--muted);
  font-size: 15px;
}
.footer__fine { font-style: italic; opacity: .8; }
