/* ═══════════════════════════════════════════════════════════════════════
   Theme tokens — cool slate palette, Source Serif 4 + Work Sans
   (from the Claude Design project restyle)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #fcfcfd;
  --color-text: #24272e;
  --color-muted: #6b7079;
  --color-faint: #9a9ea6;
  --color-divider: rgba(36, 39, 46, 0.12);

  --color-accent: #566284;
  --color-accent-strong: #3f4a63;
  --color-accent-mid: #7c8db0;
  --color-accent-soft: #a9b8d6;
  --color-accent-light: #c9d3e6;

  --hero-text: #f7f8fa;

  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 18px;
  --space-6: 28px;
  --space-8: 36px;

  --radius-sm: 2px;
  --radius-md: 3px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }
img { display: block; max-width: 100%; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-text); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(124, 141, 176, 0.3); }

.text-muted { color: var(--color-muted); }

/* ═══════════════════════════════════════════════════════════════════════
   Landing page
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  padding: clamp(10px, 1.6vw, 20px);
  display: flex;
  animation: fadeUp 0.9s ease both;
}

.hero-plate {
  position: relative;
  flex: 1;
  min-height: calc(100vh - clamp(20px, 3.2vw, 40px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 26, 36, 0.62) 0%,
    rgba(21, 26, 36, 0.42) 28%,
    rgba(21, 26, 36, 0.1) 55%,
    transparent 75%
  );
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 28px);
  padding: clamp(18px, 3vw, 30px) clamp(20px, 3.5vw, 40px);
  color: var(--hero-text);
  background: linear-gradient(
    to bottom,
    rgba(21, 26, 36, 0.66),
    rgba(21, 26, 36, 0.28) 70%,
    transparent
  );
  text-shadow: 0 1px 6px rgba(21, 26, 36, 0.5);
}

.hero-nav a {
  color: var(--hero-text);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.hero-nav a:hover {
  border-bottom-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

.hero-nav a.hero-nav-rsvp {
  color: var(--color-accent-light);
  border-bottom-color: var(--color-accent-light);
}

.hero-nav a.hero-nav-rsvp:hover {
  color: var(--hero-text);
  border-bottom-color: var(--hero-text);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px clamp(40px, 6vh, 72px);
  text-align: center;
  color: var(--hero-text);
}

.hero-names {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--hero-text);
}

.hero-and {
  font-style: italic;
  font-size: 0.6em;
  color: var(--color-accent-light);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-venue {
  font-style: italic;
  opacity: 0.85;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-venue:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

.hero-countdown {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-accent-light);
}

.hero-note {
  font-size: 13px;
  margin: 0;
  opacity: 0.75;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── RSVP section ── */

.rsvp-section {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-kicker-rule {
  height: 1px;
  width: 36px;
  background: var(--color-accent-mid);
}

.section-kicker-label {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.rsvp-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.01em;
}

.rsvp-note {
  max-width: 46ch;
  line-height: 1.7;
  margin: 0;
  color: var(--color-muted);
  font-weight: 300;
  text-wrap: pretty;
}

.rsvp-form {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
  text-align: left;
}

.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: transparent;
  border: 1px solid rgba(36, 39, 46, 0.18);
  border-radius: var(--radius-md);
}

.input:hover { border-color: var(--color-accent-mid); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio .dot {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(36, 39, 46, 0.25);
}

.radio:hover .dot { border-color: var(--color-accent); }

.radio input:checked + .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}

.radio input:focus-visible + .dot {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.rsvp-attending {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  background: transparent;
  padding: 11px 26px;
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.btn:hover {
  background: rgba(124, 141, 176, 0.1);
  color: var(--color-accent-strong);
}

.btn:active {
  background: rgba(124, 141, 176, 0.2);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
  margin-top: var(--space-2);
}

/* Honeypot — offscreen for humans, present for bots */
.rsvp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rsvp-status {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.rsvp-status-ok {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-accent-strong);
}

.rsvp-status-error {
  color: #a03d2e;
}

.rsvp-contact {
  font-size: 13px;
  margin: 0;
  font-weight: 300;
}

.rsvp-contact a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: 36px clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-faint);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════
   Gallery page
   ═══════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  padding: 18px clamp(20px, 3.5vw, 40px);
  background: rgba(252, 252, 253, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36, 39, 46, 0.1);
}

.site-nav-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-right: auto;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav-x {
  font-style: italic;
  color: var(--color-accent-mid);
}

.site-nav a:not(.site-nav-brand) {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:not(.site-nav-brand):hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent-soft);
}

.site-nav a[aria-current="page"],
.site-nav a.site-nav-rsvp {
  color: var(--color-accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent-mid);
}

.gallery-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
  animation: fadeUp 0.8s ease both;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.gallery-item {
  margin: 0 0 16px;
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(21, 26, 36, 0.92);
  cursor: zoom-out;
}

.lightbox-photo {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lightbox-controls button {
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(201, 211, 230, 0.5);
  border-radius: var(--radius-md);
  color: var(--color-accent-light);
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-family: var(--font-heading);
}

.lightbox-controls button:hover {
  border-color: var(--color-accent-light);
  color: var(--hero-text);
}
