/* Shared styles for RSVP, admin, privacy and terms pages.
   Palette and type are taken from the save-the-date artwork:
   bronze-gold engraving on parchment, crimson and gold lei. */

:root {
  --parchment: #fde4be;
  --parchment-deep: #f6d4a2;
  --ivory: #fff7ea;
  --ink: #3b2405;          /* body text */
  --bronze: #6e4206;       /* headings, engraved text */
  --gold: #b58a3a;         /* rules and borders */
  --gold-soft: #d9b670;
  --crimson: #8c1414;
  --crimson-deep: #5c0a0a;
  --green: #2f5d2a;
  --muted: #6b5233;

  /* Cinzel and Pinyon Script have no ʻokina, so the browser borrows it from EB Garamond */
  --font-display: 'Cinzel', 'EB Garamond', Georgia, serif;           /* small-caps headings */
  --font-script: 'Pinyon Script', 'EB Garamond', Georgia, cursive;  /* couple's names only */
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --radius: 6px;
  --tap: 52px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.page {
  text-wrap: pretty;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 248, 232, 0.9), rgba(255, 248, 232, 0) 60%),
    radial-gradient(ellipse at 50% 110%, rgba(200, 150, 80, 0.18), rgba(200, 150, 80, 0) 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 14px 32px;
}

/* Engraved double-rule frame, like the save-the-date border */
.frame {
  position: relative;
  background: rgba(255, 247, 234, 0.72);
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  padding: 30px 18px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px rgba(110, 66, 6, 0.08);
}
.frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.frame > * { position: relative; }

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
}
.corner.tl { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.corner.tr { top: -1px; right: -1px; border-width: 3px 3px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* Pinyon Script's "&" looks like "+t", so use a plain Garamond ampersand */
.couple .amp {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.62em;
  vertical-align: 0.08em;
  margin: 0 0.06em;
}

/* The ʻokina comes from EB Garamond (Pinyon Script has none). Scale it down,
   tuck it between "La" and "a" at the height of the a's, and tilt it to the script's slant. */
.couple .okina {
  display: inline-block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65em;
  line-height: 1;
  position: relative;
  top: -0.06em;
  transform: skewX(-16deg);
  margin: 0 0.035em 0 0.025em;
}

.couple {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--bronze);
  font-size: clamp(2.7rem, 13vw, 3.8rem);
  line-height: 1.15;
  text-align: center;
  margin: 6px 0 4px;
}

h1.title, h2.title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.25;
  margin: 0 0 8px;
}
h1.title { font-size: 1.55rem; }
h2.title { font-size: 1.15rem; }

.details {
  text-align: center;
  font-size: clamp(1rem, 4.7vw, 1.2rem);
  line-height: 1.45;
  color: var(--bronze);
  margin: 6px 0 0;
}
.details .line { display: block; }

.eyebrow, .title, .details, .lede, .hint, .center, .footer-note p, .notice p { text-wrap: balance; }
.lede {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bronze);
  margin: 12px 0 0;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto;
  max-width: 220px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.divider span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

a { color: var(--crimson); text-underline-offset: 3px; }

/* ------------------------------------------------ buttons */

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: var(--ivory);
  color: var(--bronze);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn.primary {
  background: var(--crimson);
  border-color: var(--crimson-deep);
  color: #fff7ea;
}
.btn.primary:hover { background: var(--crimson-deep); }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 44px; font-size: 0.98rem; padding: 8px 12px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--crimson); border-color: var(--crimson); }

/* ------------------------------------------------ forms */

.field { display: block; margin: 0 0 6px; font-weight: 600; color: var(--bronze); }
.hint { font-size: 0.95rem; color: var(--muted); margin: 4px 0 0; }

input[type=text], input[type=tel], input[type=password], input[type=search], textarea, select {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1rem; /* 16px+ stops iOS zooming in */
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(140, 20, 20, 0.35); border-color: var(--crimson); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  accent-color: var(--crimson);
}

.notice {
  border: 1.5px solid var(--gold);
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.notice .eyebrow { text-align: left; font-size: 0.75rem; margin-bottom: 4px; }
.notice p { margin: 0; white-space: pre-wrap; }

.error {
  color: var(--crimson);
  font-weight: 600;
  margin: 10px 0 0;
}

/* ------------------------------------------------ footer */

.site-footer {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 18px 14px 28px;
}
.site-footer a { color: var(--bronze); margin: 0 10px; display: inline-block; padding: 8px 0; }

/* ------------------------------------------------ legal pages */

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bronze);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 26px 0 6px;
}
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 10px; }

@media (min-width: 700px) {
  .wrap { padding-top: 48px; }
  .frame { padding: 44px 44px 38px; }
}
