/* ================================================================
   Angelina Isabelle Jacob, Class of 2026
   Design system: French Royal — editorial / luxe / refined
   ================================================================ */

[hidden] { display: none !important; }

:root {
  /* Surfaces */
  --ivory: #f4ecd9;          /* warm ivory */
  --ivory-soft: #faf3e3;     /* paper */
  --pearl: #fcf8ee;          /* card surface */
  --shell: #ebe1cb;          /* deeper cream */

  /* Royal blues */
  --royal: #1b2c68;          /* French royal blue (primary) */
  --royal-deep: #0d1644;     /* deepest royal */
  --royal-soft: #2d4198;     /* lighter accent */
  --azure: #4a64bd;          /* hover/accent only */

  /* Ink */
  --ink: #0d1644;
  --ink-2: #2a346b;
  --ink-3: #5a6286;

  /* Champagne / gold */
  --gold: #b48d4f;           /* champagne gold (refined) */
  --gold-soft: #d4b87a;
  --gold-pale: #e8d4a3;

  /* Lines */
  --line: rgba(13, 22, 68, 0.18);
  --line-soft: rgba(13, 22, 68, 0.08);
  --line-gold: rgba(180, 141, 79, 0.5);

  --shadow-sm: 0 6px 18px -8px rgba(13, 22, 68, 0.18);
  --shadow-lg: 0 40px 80px -40px rgba(13, 22, 68, 0.45);

  --font-display: "Cormorant Garamond", "Cormorant", "Cardo", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(13, 22, 68, 0.025) 1px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

main, header, section, footer { position: relative; z-index: 1; }

/* ----- shared atoms ----- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1.25rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  position: relative;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--royal);
  color: var(--ivory-soft);
  border-color: var(--royal);
}
.btn--primary:hover {
  background: var(--royal-deep);
  border-color: var(--royal-deep);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(13, 22, 68, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 236, 217, 0.35);
}
.btn--ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.btn--gold-outline {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.btn--gold-outline:hover {
  background: var(--gold);
  color: var(--ivory-soft);
  border-color: var(--gold);
}

.btn--ink-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(13, 22, 68, 0.25);
}
.btn--ink-ghost:hover {
  border-color: var(--royal);
  color: var(--royal);
}

.btn--cta { box-shadow: 0 14px 36px -14px rgba(27, 44, 104, 0.55); }

.btn--large { padding: 1.05rem 2.4rem; font-size: 0.78rem; }

/* ================================================================
   HERO — editorial cover
   ================================================================ */
.hero {
  padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* Hero photo — featured frame */
.hero__photo {
  position: relative;
  order: 1;
}

.hero__photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--royal-deep);
  box-shadow: var(--shadow-lg);
}

.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 236, 217, 0.15);
  pointer-events: none;
}

.hero__photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.hero__photo-mark {
  position: absolute;
  top: -14px;
  left: -14px;
  background: var(--ivory);
  padding: 0.65rem 1rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border: 1px solid var(--line-gold);
}

/* Hero copy */
.hero__copy {
  order: 2;
  padding: 0;
}

.hero__year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 0.85rem 0;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-3);
  margin: 0 0 1.25rem 0;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  color: var(--royal-deep);
  display: flex;
  flex-direction: column;
}

.hero__name-line {
  display: block;
  white-space: nowrap;
}

.hero__name-line:first-child { font-style: italic; font-weight: 400; }

.hero__name-line:last-child {
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.05em;
}

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem 0;
  max-width: 360px;
}

.hero__ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.hero__ornament-mark {
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin: 0 0 2.25rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.hero__class {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--royal);
}

.hero__sep { color: var(--gold); font-size: 0.95rem; line-height: 1; }

.hero__cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ================================================================
   INVITATION — royal blue editorial band
   ================================================================ */
.invite {
  background: var(--royal);
  color: var(--ivory-soft);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 100, 189, 0.4), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(180, 141, 79, 0.18), transparent 55%);
  pointer-events: none;
}

.invite > * { position: relative; }

.invite__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.5;
  color: var(--ivory-soft);
  margin: 0 auto 2.5rem auto;
  max-width: 780px;
  letter-spacing: 0.005em;
}

.invite__date {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  color: var(--gold-pale);
  position: relative;
  display: inline-block;
  padding: 1.1rem 0;
}

.invite__date::before,
.invite__date::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 90px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}
.invite__date::before { top: 0; }
.invite__date::after { bottom: 0; }

/* ================================================================
   GALLERY — magazine spread
   ================================================================ */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--royal-deep);
  box-shadow: var(--shadow-lg);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}

.gallery__item:hover img { transform: scale(1.025); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 236, 217, 0.12);
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ivory-soft);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(13, 22, 68, 0.85));
}

.gallery__caption-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--gold-pale);
  font-weight: 400;
}

/* ================================================================
   EVENTS — refined royal blue program
   ================================================================ */
.events {
  background: var(--royal-deep);
  color: var(--ivory-soft);
  padding: clamp(5rem, 8vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.events::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(45, 65, 152, 0.5), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(180, 141, 79, 0.18), transparent 55%);
  pointer-events: none;
}

.events > * { position: relative; }

.events__heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.events__heading .eyebrow { color: var(--gold-soft); margin-bottom: 1rem; }

.events__heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  margin: 0;
  letter-spacing: 0.005em;
  color: var(--ivory-soft);
}

.events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: var(--max);
  margin: 0 auto;
}

.event {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 236, 217, 0.12);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.event::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 236, 217, 0.05);
  pointer-events: none;
}

.event:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 184, 122, 0.4);
}

.event--feature {
  background: linear-gradient(150deg, rgba(45, 65, 152, 0.35), rgba(13, 22, 68, 0.1));
  border-color: rgba(180, 141, 79, 0.35);
}

.event__time {
  border-bottom: 1px solid rgba(244, 236, 217, 0.18);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.event__time-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.65rem 0;
  font-weight: 500;
}

.event__time-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ivory-soft);
}

.event__body { flex: 1; display: flex; flex-direction: column; }

.event h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1rem 0;
  color: #fff;
  letter-spacing: 0.005em;
}

.event__address {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(244, 236, 217, 0.78);
  margin: 0 0 1rem 0;
  letter-spacing: 0.01em;
}

.event__note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(244, 236, 217, 0.6);
  margin: 0 0 2rem 0;
  flex: 1;
  font-style: italic;
}

.event__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ================================================================
   RSVP — refined cream form
   ================================================================ */
.rsvp {
  background: var(--ivory-soft);
  padding: clamp(5rem, 8vw, 7rem) var(--gutter);
  position: relative;
  border-top: 1px solid var(--line-gold);
}

.rsvp__heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.rsvp__heading .eyebrow { color: var(--gold); margin-bottom: 1rem; }

.rsvp__heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1rem 0;
  letter-spacing: 0.005em;
  color: var(--royal-deep);
}

.rsvp__deadline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-3);
  margin: 0;
}

.rsvp-form {
  max-width: 660px;
  margin: 0 auto;
  background: var(--pearl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.rsvp-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}

.rsvp-form > * { position: relative; }

.rsvp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field--small { max-width: 240px; }

.field__label {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.field__optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.95em;
  color: var(--ink-3);
  opacity: 0.8;
  margin-left: 0.4em;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--royal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 44, 104, 0.12);
}

.field-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }

.field-group__legend {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  padding: 0;
  margin: 0;
}

.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.choice {
  flex: 1 1 auto;
  min-width: 140px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.95rem 1.1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__text {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.choice__text::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 22, 68, 0.35);
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.choice:hover { border-color: rgba(27, 44, 104, 0.45); background: #fff; }

.choice input[type="radio"]:checked + .choice__text::before {
  border-color: var(--royal);
  background: var(--royal);
  box-shadow: inset 0 0 0 3px var(--ivory);
}

.choice:has(input[type="radio"]:checked) {
  border-color: var(--royal);
  background: rgba(27, 44, 104, 0.04);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rsvp-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.rsvp-form__actions .btn { width: 100%; max-width: 340px; }

.rsvp-form__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  text-align: center;
  min-height: 1.2em;
  font-style: italic;
}

.rsvp-form__status--error { color: #b3261e; font-style: normal; }

.rsvp-success {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  background: var(--pearl);
  border: 1px solid var(--line-gold);
  padding: clamp(3rem, 5vw, 4rem) 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.rsvp-success::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}

.rsvp-success > * { position: relative; }

.rsvp-success__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--royal);
  margin: 0 0 1rem 0;
}

.rsvp-success__msg {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

/* ================================================================
   STICKY mobile RSVP
   ================================================================ */
.sticky-rsvp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  background: var(--royal);
  color: var(--ivory-soft);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1rem 1.7rem;
  box-shadow: 0 18px 35px -12px rgba(13, 22, 68, 0.55), 0 4px 12px rgba(27, 44, 104, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  display: none;
  border: 1px solid var(--gold-soft);
}

.sticky-rsvp:hover { background: var(--royal-deep); transform: translateY(-2px); }
.sticky-rsvp:active { transform: scale(0.97); }

@media (max-width: 880px) {
  .sticky-rsvp { display: inline-flex; align-items: center; }
}

/* ================================================================
   CLOSING
   ================================================================ */
.closing {
  text-align: center;
  padding: clamp(5rem, 8vw, 7rem) var(--gutter);
  max-width: 760px;
  margin: 0 auto;
}

.closing__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.45;
  color: var(--royal-deep);
  margin: 0 0 2.25rem 0;
  letter-spacing: 0.005em;
}

.closing__signoff {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
  font-style: italic;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  text-align: center;
  padding: 2.25rem 1.5rem 3rem;
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  max-width: var(--max);
  margin: 0 auto;
  font-weight: 500;
}

.footer p { margin: 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__photo { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero__copy { text-align: center; }
  .hero__ornament { margin-left: auto; margin-right: auto; }
  .hero__meta { justify-content: center; }
  .hero__cta { justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .events__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .rsvp-form__row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 1.75rem 1.5rem; }
  .choice { min-width: 100%; }
  .choice-row { flex-direction: column; }
  .hero__name { font-size: clamp(2.4rem, 11vw, 4rem); }
  .hero__name-line { white-space: normal; }
}

@media (max-width: 480px) {
  .event__actions { flex-direction: column; align-items: stretch; }
  .gallery__caption { padding: 1rem 1.25rem; }
  .gallery__caption-year { font-size: 1.2rem; }
  .invite__date { font-size: 1.5rem; padding: 0.85rem 0; }
  .invite__date::before, .invite__date::after { width: 60px; }
}
