:root {
  --page: #fbfaf6;
  --surface: #ffffff;
  --ink: #22303a;
  --muted: #65717a;
  --navy: #223f56;
  --navy-deep: #173247;
  --gold: #c69a3a;
  --gold-soft: #f5ead0;
  --blue: #5f8fc4;
  --blue-soft: #eaf2fb;
  --line: #dedbd2;
  --focus: #276da8;
  --shadow: 0 24px 60px rgba(38, 48, 55, 0.10);
  --radius-lg: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 5%, rgba(198, 154, 58, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 32%, rgba(95, 143, 196, 0.08), transparent 26rem),
    var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
  text-align: center;
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--navy-deep);
}

h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero__intro {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 48px;
}

.art-card {
  position: relative;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(34, 63, 86, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.art-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
}

.art-card--gold::before {
  background: linear-gradient(90deg, #b8892d, #e4c16e);
}

.art-card--blue::before {
  background: linear-gradient(90deg, #6e92c7, #8dc9e8);
}

.art-card img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.hero__prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 42px auto 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__prompt p {
  margin: 0;
}

.hero__prompt-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__prompt-line:last-child {
  transform: rotate(180deg);
}

.rsvp-section {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 88px;
}

.rsvp-card {
  position: relative;
  padding: clamp(26px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 63, 86, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(42, 52, 60, 0.11);
}

.rsvp-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(198, 154, 58, 0.18);
  border-radius: 17px;
}

.rsvp-card__header,
.rsvp-form {
  position: relative;
  z-index: 1;
}

.rsvp-card__header {
  margin-bottom: 34px;
  text-align: center;
}

.rsvp-card__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.rsvp-card__header > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.rsvp-form {
  display: grid;
  gap: 25px;
}

.field-group {
  display: grid;
  gap: 9px;
}

.field-group label,
.attendance-fieldset legend {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

.field-group label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #c8ced2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input[type="text"],
input[type="number"],
select {
  padding: 0 15px;
}

textarea {
  min-height: 110px;
  padding: 13px 15px;
  resize: vertical;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: #939ba0;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(39, 109, 168, 0.12);
}

.attendance-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.attendance-fieldset legend {
  margin-bottom: 11px;
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #ccd2d6;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: #9ca9b1;
  box-shadow: 0 8px 20px rgba(46, 57, 65, 0.07);
}

.choice-card:has(input:checked) {
  border-color: var(--navy);
  background: linear-gradient(145deg, #f7fbff, #fffdf9);
  box-shadow: 0 0 0 3px rgba(34, 63, 86, 0.09);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__indicator {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #9ca7ad;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.choice-card:has(input:checked) .choice-card__indicator {
  border-color: var(--navy);
  background: var(--navy);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(39, 109, 168, 0.26);
  outline-offset: 2px;
}

.choice-card__copy {
  display: grid;
  gap: 5px;
  text-align: left;
}

.choice-card__copy strong {
  color: var(--navy-deep);
  font-size: 1.03rem;
  line-height: 1.25;
}

.choice-card__copy small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.conditional-fields {
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(95, 143, 196, 0.23);
  border-radius: var(--radius-md);
}

.conditional-fields[hidden] {
  display: none;
}

.form-message {
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 0.93rem;
}

.form-message--warning {
  border: 1px solid #dbc484;
  background: #fff8e6;
  color: #6e561c;
}

.submit-button {
  width: 100%;
  min-height: 58px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 50, 71, 0.18);
  transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: #20465f;
  box-shadow: 0 13px 28px rgba(23, 50, 71, 0.22);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(39, 109, 168, 0.35);
  outline-offset: 3px;
}


.pageclip-form--success > :not(.pageclip-form__success) {
  display: none;
}

.pageclip-form__success {
  position: static;
  display: block;
  padding: 28px;
  border: 1px solid rgba(95, 143, 196, 0.28);
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy-deep);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}


@media (max-width: 820px) {
  .hero {
    width: min(680px, calc(100% - 28px));
    padding-top: 48px;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 34px;
  }

  .rsvp-section {
    width: min(680px, calc(100% - 28px));
    padding-bottom: 64px;
  }

  .attendance-options {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 38px;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  .hero__intro {
    margin-top: 16px;
    font-size: 1rem;
  }

  .art-grid {
    margin-top: 28px;
  }

  .art-card {
    padding: 5px;
    border-radius: 15px;
  }

  .art-card img {
    border-radius: 10px;
  }

  .hero__prompt {
    gap: 10px;
    margin-top: 30px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .hero__prompt-line {
    width: 34px;
  }

  .rsvp-section {
    padding-top: 12px;
  }

  .rsvp-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .rsvp-card::after {
    inset: 8px;
    border-radius: 12px;
  }

  .rsvp-form {
    gap: 22px;
  }

  input[type="text"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }

  .conditional-fields {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
