/* Róisín & Dara: seaside romance with a playful edge.
   Palette: warm sand, sea-glass teal, deep sea ink, coral rose. */
:root {
  color-scheme: light;
  --rst-bg: #f6efe4;
  --rst-surface: #fffaf3;
  --rst-surface-2: #f3e7d6;
  --rst-text: #1f3a3d;
  --rst-text-muted: #4a5f61;
  --rst-line: #e4d6c2;
  --rst-line-strong: #8f8270;
  --rst-accent: #b03f55;
  --rst-accent-soft: #f7dfe2;
  --rst-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rst-radius: 18px;
  --rst-radius-sm: 10px;
  --rst-depth-ambient: rgba(31, 58, 61, 0.08);
  --rst-depth-contact: rgba(31, 58, 61, 0.14);

  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --script: "Snell Roundhand", "Apple Chancery", "Segoe Script", "URW Chancery L", cursive;
  --sea: #2f6f6b;
  --glass: #7fb7ae;
  --peach: #f6c9a8;
}

html { background: var(--rst-bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 40%, rgba(127, 183, 174, 0.14) 0 2px, transparent 3px) 0 0 / 28px 28px,
    var(--rst-bg);
  color: var(--rst-text);
  font-family: var(--rst-font);
  overflow-x: hidden;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fde6d3 0%, #f9dccb 38%, #f2e4d2 100%);
  padding: 2.5rem 1rem 0;
  text-align: center;
}
.hero-inner { margin: 0 auto; max-width: 46rem; }
.kicker {
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}
.names {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 11vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}
.names-sm { font-size: clamp(2.5rem, 8vw, 3.5rem); }
.amp {
  color: var(--rst-accent);
  display: inline-block;
  font-family: var(--script);
  font-weight: 400;
  transform: rotate(-8deg) translateY(0.04em);
}
.tagline {
  color: var(--rst-accent);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  font-style: italic;
  margin: 0.9rem 0 0.6rem;
}
.when {
  align-items: center;
  color: var(--rst-text);
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.25rem 0.6rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.when .dot { color: var(--glass); }
.scene { display: block; height: auto; margin: 0 auto -1px; max-width: 100%; width: 40rem; }
.sea { display: block; height: 46px; margin: -14px -1rem 0; width: calc(100% + 2rem); }
.hero { padding-bottom: 0; }

/* Scalloped sea-foam band between hero and content, drawn with gradients. */
.wave-band {
  background:
    radial-gradient(circle at 50% 0, var(--sea) 0 13px, transparent 14px) 0 0 / 28px 16px repeat-x,
    var(--rst-bg);
  height: 16px;
}

/* ---------- RSVP card ---------- */
.rst-page { box-sizing: border-box; margin: 0 auto; max-width: 36rem; padding: 2rem 1rem 1rem; }
.rst-page.wide { max-width: 44rem; }
.card {
  background: var(--rst-surface);
  border-radius: 24px;
  box-shadow: 0 1px 2px var(--rst-depth-contact), 0 18px 40px -18px rgba(31, 58, 61, 0.35);
  padding: 2rem 1.25rem 1.5rem;
  position: relative;
}
@media (min-width: 560px) { .card { padding: 2.5rem 2.25rem 2rem; } }

.stamp {
  align-items: center;
  border: 2px dashed var(--rst-accent);
  border-radius: 50%;
  color: var(--rst-accent);
  display: flex;
  flex-direction: column;
  height: 5rem;
  justify-content: center;
  position: absolute;
  right: -0.4rem;
  top: -1.6rem;
  transform: rotate(12deg);
  width: 5rem;
  background: radial-gradient(circle, #fff6f2 0 60%, var(--rst-accent-soft) 61%);
  box-shadow: 0 6px 14px -6px rgba(176, 63, 85, 0.5);
}
.stamp span { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; }
.stamp small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 600;
  margin: 0 4.5rem 0.4rem 0;
}
.lede { color: var(--rst-text-muted); line-height: 1.55; margin: 0 0 1rem; }

.oops {
  background: var(--rst-accent-soft);
  border-radius: var(--rst-radius-sm);
  color: #7d2236;
  font-weight: 500;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}

.thanks {
  align-items: center;
  background: linear-gradient(135deg, #e3f1ee, #fbe7e3);
  border-radius: var(--rst-radius);
  display: flex;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
}
.thanks svg { flex: none; }
.thanks h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.15rem; }
.thanks p { color: var(--rst-text-muted); margin: 0; }

/* Form */
.rsvp-form .rst-field-label { display: block; margin-bottom: 0.35rem; }
.rsvp-form .rst-field-label, .rst-choice > legend { color: var(--rst-text); font-size: 0.95rem; font-weight: 600; }
.rst-input, .rst-textarea { min-height: 2.75rem; }
.party-input { max-width: 7rem; }
.choice-pair .rst-choice__cards { grid-template-columns: 1fr; }
@media (min-width: 480px) { .choice-pair .rst-choice__cards { grid-template-columns: 1fr 1fr; } }
.choice-pair label {
  background: var(--rst-surface);
  min-height: 2.75rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.choice-pair label:has(input:checked) {
  background: var(--rst-accent-soft);
  border-color: var(--rst-accent);
  transform: rotate(-0.6deg);
}
/* No need to count heads when someone can't come. */
.rsvp-form:has(input[value="no"]:checked) .party { display: none; }

.rsvp-form [rst-btn~="primary"] {
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.5rem;
  min-height: 3rem;
}

input:is([type=date], [type=time], [type=datetime-local]) {
  min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; display: block; min-height: 2.75rem;
}

.foot { color: var(--rst-text-muted); font-size: 0.9rem; padding: 1rem 1rem 2.5rem; text-align: center; }
.foot span { color: var(--rst-accent); }

/* ---------- Private guest list ---------- */
.mini-hero {
  background: linear-gradient(180deg, #fde6d3, #f2e4d2);
  padding: 2rem 1rem 1.25rem;
  text-align: center;
}
.mini-hero a { color: var(--sea); font-weight: 600; }
.mini-hero p:last-child { margin: 0.6rem 0 0; }

.tally { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.5rem; }
.tally-box {
  background: var(--rst-surface);
  border-radius: var(--rst-radius);
  box-shadow: 0 1px 2px var(--rst-depth-contact);
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.tally-box:first-child { background: var(--sea); color: #fffaf3; }
.tally-box:first-child .tally-label { color: #e3f1ee; }
.tally-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.tally-label { color: var(--rst-text-muted); font-size: 0.85rem; }

.reply-list { list-style: none; margin: 0; padding: 0; }
.reply { border-top: 1px solid var(--rst-line); padding: 0.9rem 0; }
.reply:first-child { border-top: 0; }
.reply-top { align-items: center; display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; justify-content: space-between; }
.reply-name { font-size: 1.05rem; overflow-wrap: anywhere; }
.pill { border-radius: 999px; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.7rem; white-space: nowrap; }
.pill-yes { background: #dcefeb; color: #1d4f4b; }
.pill-no { background: var(--rst-surface-2); color: var(--rst-text-muted); }
.reply-food { margin: 0.4rem 0 0; overflow-wrap: anywhere; }
.reply-food span { color: var(--rst-accent); font-weight: 600; }
.reply-when { color: var(--rst-text-muted); font-size: 0.8rem; margin: 0.3rem 0 0; }

/* Example mode: one-line note at the top of the showcase copy. */
.example-note { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0.5rem 1rem; text-align: center; font-family: var(--rst-font, system-ui, sans-serif); font-size: 0.875rem; line-height: 1.4; font-weight: 400; letter-spacing: normal; text-transform: none; background: var(--rst-accent-soft); color: var(--rst-text); }
.example-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
