/* Self-hosted fonts (latin + latin-ext), so the invite doesn't depend on Google being reachable.
   EB Garamond is a variable font: one file serves the 400-700 range. */
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/eb-garamond-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/playfair-display-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/playfair-display-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/playfair-display-700-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/playfair-display-700-italic-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: only light; /* 'only' forbids the browser's forced/auto dark mode - our palette is light-only */
  --paper: #f4f1ea;
  --ink: #3a3a34;
  --muted: #8a8478;
  --line: #d8d1c2;
  --accent: #7a5c6e; /* muted plum, drawn from the foxglove; adjust to taste */
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.invite {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(320px, 2fr) minmax(120px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
/* min-width: 0 lets these shrink below the foxglove's 615px intrinsic width,
   otherwise the grid column is propped wider than a phone and the page overflows. */
.foxglove { width: 100%; min-width: 0; height: auto; max-height: 90vh; object-fit: contain; }
.foxglove-right { transform: scaleX(-1); } /* mirror the same plant for a symmetric pair */
.content { text-align: center; padding: 1rem 2rem; min-width: 0; }

/* Invitation heading + names */
.content h1 {
  font-weight: 400; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .24em; color: var(--muted); margin: 0 0 1rem;
}
.names {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: 3.2rem; line-height: 1.05; margin: .3rem 0 .1rem;
}
.amp { font-style: italic; color: var(--accent); }
.rule { width: 46px; height: 1px; background: var(--line); border: 0; margin: 1.2rem auto; }
.quote {
  font-style: italic; color: var(--accent); font-size: 1.15rem;
  max-width: min(22rem, 100%); margin: 0 auto; line-height: 1.45; opacity: .92;
}
.details { color: var(--muted); font-size: 1.05rem; letter-spacing: .02em; line-height: 1.8; margin: 1.1rem 0 0; }
.seating { font-style: italic; font-size: .9rem; color: var(--muted); opacity: .85; margin: .5rem 0 0; }

/* Reception plan (placeholder until the venue is booked) */
.reception-plan { margin-top: 1.5rem; }
.reception-plan h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; margin: 0 0 .4rem;
}
.reception-plan p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 24rem; margin: 0 auto; }

/* RSVP form */
.rsvp { margin-top: 2rem; text-align: left; display: inline-block; width: 100%; max-width: 22rem; }
.rsvp h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.6rem; text-align: center; margin: 0 0 1rem;
}
.rsvp label, .rsvp legend { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .03em; margin: .8rem 0 .3rem; }
.rsvp fieldset { border: 0; margin: 0; padding: 0; }

.rsvp input[type="text"], .rsvp input[type="email"], .rsvp input[type="tel"] {
  width: 100%; padding: .6rem .8rem; font: inherit; color: var(--ink);
  background: #fbf9f4; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rsvp input::placeholder { color: #b8b1a2; }
.rsvp input[type="text"]:focus, .rsvp input[type="email"]:focus, .rsvp input[type="tel"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 92, 110, .14); background: #fff;
}

.rsvp .field-note { font-size: .75rem; color: var(--muted); margin: .35rem 0 0; line-height: 1.4; }

/* Yes/No questions rendered as a soft segmented control (attending + reception) */
.attending, .reception { margin-top: .4rem; }
.attending legend, .reception legend { margin-bottom: .4rem; }
.choices { display: flex; gap: .5rem; }
.choices label {
  position: relative; /* contain the visually-hidden radio so it can't escape and widen the page */
  flex: 1; text-align: center; margin: 0; padding: .55rem 0;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  background: #fbf9f4; transition: all .15s; font-size: inherit; color: var(--ink);
}
.choices input[type="radio"] { position: absolute; opacity: 0; }
.choices label:has(input:checked) {
  border-color: var(--accent); background: rgba(122, 92, 110, .08);
  color: var(--accent); font-weight: 600;
}

/* Attendee name rows */
.name-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.name-row .attendee { flex: 1; }
#attendees > p { font-size: .8rem; color: var(--muted); letter-spacing: .03em; margin: .8rem 0 .3rem; }

/* Buttons */
.rsvp button {
  font: inherit; cursor: pointer; border-radius: 10px; transition: filter .15s, transform .1s;
}
#add-name {
  margin-top: .2rem; padding: .45rem .9rem; color: var(--accent);
  background: transparent; border: 1px dashed var(--line);
}
#add-name:hover { border-color: var(--accent); }
.name-row .remove {
  flex: 0 0 auto; width: 2.4rem; color: var(--muted);
  background: #fbf9f4; border: 1px solid var(--line);
}
.name-row .remove:hover { color: var(--accent); border-color: var(--accent); }
button[type="submit"] {
  width: 100%; margin-top: 1.2rem; padding: .75rem; font-weight: 600; letter-spacing: .05em;
  color: #fff; background: var(--accent); border: 0;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:active { transform: translateY(1px); }

#rsvp-status { text-align: center; color: var(--muted); margin-top: 1rem; min-height: 1.2em; }

/* Mobile: single column, foxgloves above the text */
@media (max-width: 800px) {
  .invite { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
  .content { padding: .5rem; }
  .foxglove { max-height: 40vh; }
  .foxglove-right { display: none; } /* one stem is enough on mobile */
  /* Scale the names to the viewport so they stay on one line without overflowing */
  .names { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
}
