/* Abby & Hunter. Palette and type are the design source of truth; see ../CLAUDE.md. */
:root {
  --ink: #391803;
  --olive: #636940;
  --ivory: #FFFDF7;
  --champagne: #F7E7CE;
  --mauve: #94849B;

  --ink-soft: rgba(57, 24, 3, 0.74);
  --rule: rgba(57, 24, 3, 0.2);
  --error: #8a2a14;

  --display: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--ivory); padding: 8px 14px; z-index: 10; }

:focus-visible { outline: 1px solid var(--olive); outline-offset: 4px; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.75rem;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  font: 500 0.78rem/1 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--olive); border-color: var(--olive); }

.text-link {
  background: none;
  border: 0;
  padding: 0;
  font: italic 400 1.05rem var(--body);
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 5px;
  cursor: pointer;
}
.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px var(--gutter) 0;
}
.site-mark img { width: 52px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  width: min(100%, 860px);
}
.site-nav a, .footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--olive); color: var(--olive); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-header { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; }
  .site-mark img { width: 40px; }
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    font: 500 0.75rem var(--body);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 10px 0;
    cursor: pointer;
  }
  .site-nav { display: none; flex-direction: column; align-items: center; gap: 0.25rem; border-bottom: 0; }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; }
}

/* ---------- Home: hero ---------- */
.hero {
  text-align: center;
  padding: clamp(56px, 9vw, 104px) var(--gutter) 0;
}
.names {
  font-size: clamp(3rem, 9.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.names span { display: block; }
.names .amp {
  font-style: italic;
  font-size: 0.6em;
  color: var(--mauve);
  margin: 0.12em 0 0.08em;
}
.hero-meta {
  margin: 2.25rem 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero-meta .sep { color: var(--mauve); margin: 0 0.6em; }
.hero-year { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }
.hero-art {
  margin: clamp(32px, 6vw, 64px) auto 0;
  max-width: 1120px;
}

/* ---------- Home: welcome ---------- */
.welcome {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.welcome .ornament { width: 44px; margin: 0 auto 2rem; opacity: 0.85; }
.welcome .lead { font-family: var(--display); font-style: italic; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; }
.welcome p { color: var(--ink-soft); }
.signature { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--ink) !important; margin-top: 1.75rem; }

/* ---------- Home: events ---------- */
.events {
  background: var(--champagne);
  padding: var(--section) var(--gutter);
  text-align: center;
}
.events h2, .rsvp-band h2, .page-head h1, .placeholder h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 1040px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.event-card {
  background: var(--ivory);
  padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--olive);
  outline: 1px solid var(--rule);
  outline-offset: -10px;
}
.numeral { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--olive); margin-bottom: 0.5rem; }
.event-card h3 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.75rem; }
.event-card dl { margin: 0 0 1.75rem; }
.event-card dl div { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.event-card dl div:last-child { border-bottom: 1px solid var(--rule); }
.event-card dt { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--olive); }
.event-card dd { margin: 0.2rem 0 0; font-size: 1.15rem; }
.event-note { font-style: italic; color: var(--ink-soft); margin: 0; }

/* ---------- Home: RSVP band ---------- */
.rsvp-band {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 28rem) 1fr;
  align-items: end;
  gap: var(--gutter);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.rsvp-band-text { align-self: center; }
.rsvp-band-text p:not(.eyebrow) { color: var(--ink-soft); margin: 1rem 0 2rem; }
.rsvp-band .goose { width: min(100%, 220px); }
.rsvp-band .goose-left { justify-self: end; }
.rsvp-band .goose-right { justify-self: start; }
@media (max-width: 720px) {
  .rsvp-band { grid-template-columns: 1fr 1fr; }
  .rsvp-band-text { grid-column: 1 / -1; grid-row: 1; }
  .rsvp-band .goose { width: 120px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(64px, 9vw, 96px) var(--gutter) 48px;
}
.footer-crest { width: 180px; margin: 0 auto 1.5rem; opacity: 0.92; }
.footer-names { font-family: var(--display); font-style: italic; font-size: 2rem; margin-bottom: 0.25rem; }
.footer-meta { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--champagne); opacity: 0.8; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 253, 247, 0.15); }
.footer-nav a { opacity: 0.75; }
.footer-nav a:hover { opacity: 1; }

/* ---------- Inner pages ---------- */
.page-head {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 48px);
}
.page-head p:not(.eyebrow) { color: var(--ink-soft); font-style: italic; margin-top: 1rem; }

.placeholder {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) var(--section);
}
.placeholder .goose { width: 150px; margin: 0 auto 2rem; }
.placeholder h1 { margin-bottom: 1rem; }
.placeholder p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- RSVP ---------- */
.rsvp {
  padding: 0 var(--gutter) var(--section);
  scroll-margin-top: 24px;
}
.rsvp-card {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--olive);
  outline: 1px solid var(--rule);
  outline-offset: -10px;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 6vw, 64px);
}
.rsvp-card[hidden] { display: none; }
.rsvp-card h2 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); text-align: center; margin-bottom: 2rem; }

.rsvp label:not(.check), .rsvp legend {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 1.5rem 0 0.5rem;
}
.optional { letter-spacing: 0.1em; text-transform: none; font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.rsvp input[type="text"], .rsvp input[type="email"], .rsvp textarea {
  width: 100%;
  font: 400 1.15rem var(--body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  border-radius: 0;
  transition: border-color 0.2s;
}
.rsvp textarea { border: 1px solid var(--rule); padding: 0.6rem 0.75rem; resize: vertical; }
.rsvp input:focus, .rsvp textarea:focus { outline: none; border-color: var(--olive); }
.rsvp input::placeholder { color: rgba(57, 24, 3, 0.4); font-style: italic; }
.hint { font-style: italic; color: var(--ink-soft); font-size: 1rem; margin: 0.6rem 0 0; }
.form-error { color: var(--error); font-style: italic; margin: 1.5rem 0 0; text-align: center; }
#find-form .btn, .form-actions { margin-top: 2.25rem; }
#find-form { text-align: left; }
#find-form .btn { display: block; margin-left: auto; margin-right: auto; }
.form-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.rsvp fieldset { border: 0; padding: 0; margin: 0; }
.reply-event { padding-bottom: 2rem; margin-bottom: 2rem !important; border-bottom: 1px solid var(--rule) !important; }
.rsvp .reply-event legend {
  font: 400 1.75rem/1.1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}
.event-line { font-style: italic; color: var(--ink-soft); margin: 0.35rem 0 1.25rem; }
.guest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.guest-name { font-size: 1.2rem; }
.choices { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp .choices label {
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.rsvp .choices label:hover { border-color: var(--olive); }
.choices input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.choices input[value="no"]:checked + label { background: var(--mauve); border-color: var(--mauve); }
.choices input:focus-visible + label { outline: 1px solid var(--olive); outline-offset: 3px; }

.check { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-style: italic; cursor: pointer; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; }
.plus-name[hidden] { display: none; }

.rsvp-done { text-align: center; }
.geese-pair { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: 2rem; }
.geese-pair img { width: 110px; }
.rsvp-done p { color: var(--ink-soft); margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
