/* ---------------------------------------------------------------------------
   THEME — change these to match your Canva site. Nothing else needs touching.
   The defaults are Walloon bluestone, lime render and a muted hedgerow green.
   Every text/background pair below passes WCAG AA.
   --------------------------------------------------------------------------- */
:root {
  --c-ink: #17262e;
  --c-paper: #eef0ee;
  --c-stone: #5a6b70;
  --c-accent: #5c7355;
  --c-error: #8c5a3c;

  --f-display: "Instrument Serif", Georgia, serif;
  --f-body: "Karla", system-ui, sans-serif;

  --radius: 2px;
}

/* Fonts are bundled with the image: no CDN, no third-party request. --------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: clamp(1.02rem, 3.6vw, 1.1rem);
  line-height: 1.65;
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 9vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem);
  min-height: 100svh;
}

h1 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.muted { color: var(--c-stone); }
.spaced { margin-top: 2rem; }
.hidden { display: none !important; }

/* Form --------------------------------------------------------------------- */
.field { margin: 1.75rem 0 1.5rem; }
.field > label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-stone);
  margin-bottom: 0.5rem;
}

input[type="text"], textarea {
  width: 100%;
  max-width: 24rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--c-stone) 45%, transparent);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
textarea { max-width: none; min-height: 6.5rem; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-paper);
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  padding: 0.85rem 1.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: transparent; color: var(--c-ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--c-ink); margin-left: 0.5rem; }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }

/* Guest blocks -------------------------------------------------------------- */
#guests { margin-top: 2rem; }

.guest {
  border: 1px solid color-mix(in srgb, var(--c-stone) 30%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.guest__name { font-weight: 700; margin-bottom: 0.85rem; }
.guest__name input { margin-top: 0.5rem; }

.choice { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.choice + .choice { margin-top: 0.9rem; }
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  border: 1px solid color-mix(in srgb, var(--c-stone) 45%, transparent);
  border-radius: var(--radius);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  font-size: 0.92rem;
}
.choice input:checked + label {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}
.choice input:focus-visible + label {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.guest .field { margin: 0.9rem 0 0; }
.guest .field input { max-width: none; }

/* Disambiguation ------------------------------------------------------------ */
.choices { display: grid; gap: 0.75rem; margin: 1.75rem 0; }
.choices button {
  text-align: left;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--c-stone) 45%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
}
.choices button:hover { border-color: var(--c-ink); }

/* Feedback ------------------------------------------------------------------ */
.notice {
  border-left: 3px solid var(--c-accent);
  padding: 0.75rem 0 0.75rem 1rem;
  margin-top: 1.5rem;
}
.notice--error { border-left-color: var(--c-error); color: var(--c-error); }

.contact { margin-top: 4rem; font-size: 0.9rem; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Distinguishes the menu choices from the presence choices, which otherwise
   look identical at a glance. */
.sublabel {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-stone);
  margin-bottom: 0.5rem;
}
.menu-block { margin-top: 1.1rem; }
.choice + .choice { margin-top: 0.75rem; }
