/* Plain pages (RSVP, Logistics): the same ink look as Home, built to load fast on a phone abroad. */
:root {
  --paper: #f4eee1;
  --paper-deep: #ebe2d0;
  --ink: #1e2a3b;
  --muted: #5d6470;
  --accent: #2c4f80;
  --rule: rgba(30, 42, 59, 0.45);
  --gold: #b08a3e;
  --night: #13203a;
  --line: color-mix(in srgb, #1e2a3b 16%, transparent);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
/* Paper grain, the same sheet as Home. */
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0.26; mix-blend-mode: multiply; background-size: 280px 280px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.52 0 0 0 0 0.44 0 0 0 0 0.32 0.55 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 56px); background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brand { color: var(--ink); font: 500 clamp(1.4rem, 2.2vw, 1.8rem)/1 var(--display); letter-spacing: .02em; text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.menu a { padding: 4px 0; color: var(--ink); font-size: .95rem; text-decoration: none; border-bottom: 1px solid transparent; }
.menu a:not(.is-primary):hover, .menu a[aria-current="page"] { border-bottom-color: var(--rule); }
.menu a.is-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65em 1.5em; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font-weight: 600; }
.menu a.is-primary:hover { background: var(--accent); border-color: var(--accent); }
.menu a.is-primary[aria-current="page"] { border-bottom-color: var(--ink); }

.hero { position: relative; height: clamp(200px, 38vh, 380px); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, var(--paper)); }

main { width: min(680px, 100%); margin: 0 auto; padding: 8px 20px 96px; }
.page-head { margin: -24px 0 36px; position: relative; z-index: 1; }
.eyebrow { margin: 0; color: var(--muted); font: italic 400 1.3rem/1.2 var(--display); }
h1 { margin: 6px 0 0; font: 500 clamp(2.6rem, 7vw, 4rem)/1.02 var(--display); letter-spacing: 0; }
.lede { margin: 14px 0 0; font-size: 1.12rem; }
h2 { margin: 0 0 12px; font: 500 clamp(1.9rem, 4.4vw, 2.5rem)/1.1 var(--display); }
h3 { margin: 22px 0 6px; font-size: 1rem; font-weight: 600; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
li { margin: 4px 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: .4em 1em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9rem; text-decoration: none; background: color-mix(in srgb, white 30%, transparent); }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
section { padding: 32px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; padding-top: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.facts dt { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.facts dd { margin: 0; }
.coming { display: inline-block; color: var(--muted); font: italic 400 .95em/1 var(--display); text-transform: lowercase; }
.checked { color: var(--muted); font-size: .85rem; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details p { margin: 8px 0 0; }

/* RSVP form */
form { display: grid; gap: 22px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field { display: grid; gap: 6px; }
.field > label, fieldset legend { font-weight: 600; }
.hint { color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: .8em .9em; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 8px;
  background: #fffdf8; color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: .7em 1.3em; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 999px; background: #fffdf8; cursor: pointer; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--accent); }
.if-attending[hidden] { display: none; }
button[type="submit"] { justify-self: start; padding: .85em 2em; border: 1px solid var(--rule); border-radius: 3px; background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--ink); font: 500 1rem/1 var(--body); letter-spacing: .02em; cursor: pointer; transition: background-color .5s, border-color .5s; }
button[type="submit"]:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--ink); }
button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.form-error { color: #a33a2a; font-weight: 500; }
.thanks { padding: 28px 0; }
.thanks[hidden] { display: none; }
.preview-note { margin-top: 18px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--muted); font-size: .9rem; }

.site-footer { padding: 32px 20px 48px; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer strong { display: block; color: var(--ink); font: 500 1.6rem/1.2 var(--display); }

@media (max-width: 520px) {
  .site-header { padding: 12px 16px; }
  .menu { gap: 6px 14px; }
  .menu a { font-size: .88rem; }
  .facts { grid-template-columns: 1fr; gap: 0 0; }
  .facts dd { margin-bottom: 10px; }
}
