@font-face {
  font-family: "Congress Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --navy: #222d52;
  --navy-deep: #111a35;
  --gold: #c9a84c;
  --gold-soft: #d2b68a;
  --cream: #eee5d9;
  --paper: #fbf8f2;
  --wine: #512e26;
  --ink: #17213f;
  --muted: #556078;
  --line: rgba(34, 45, 82, 0.18);
  --shadow: 0 28px 60px rgba(9, 17, 41, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Congress Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid rgba(34, 45, 82, 0.1);
}

.header__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo { width: 184px; height: auto; }

.header__event-title,
.section-kicker,
.form-card__step {
  margin: 0;
  letter-spacing: 0.13em;
  font-size: 0.71rem;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
}

.header__event-title {
  color: var(--navy);
  white-space: nowrap;
  font-size: clamp(0.62rem, 0.76vw, 0.74rem);
  letter-spacing: 0.09em;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
}

.anniversary-hero {
  padding: 0;
  background: var(--navy-deep);
}

.anniversary-hero > .shell { width: 100%; max-width: none; }

.anniversary-hero__image {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(210, 182, 138, 0.58);
  border-inline: 0;
  background: transparent;
}

.anniversary-hero__image img {
  width: 100%;
  height: auto;
}

.registration {
  position: relative;
  padding: 96px 0 88px;
  background: linear-gradient(var(--paper), var(--cream));
}

.registration::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background: radial-gradient(circle at 12% 12%, rgba(201, 168, 76, 0.28), transparent 23%);
}

.registration__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.section-kicker { color: var(--navy); }
.section-kicker--gold { color: #9b7623; }

.registration h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3.1vw, 3.55rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.registration h2 { max-width: 590px; }

.registration__lead {
  max-width: 535px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
}

.event-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.event-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.event-facts dt {
  color: #9b7623;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
}

.form-card {
  position: relative;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(201, 168, 76, 0.63);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.form-card__heading { position: relative; z-index: 1; padding-right: 40px; }
.form-card__step { color: #9b7623; }

.form-card h2 {
  margin: 10px 0 7px;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.form-card__heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.mailingboss-form { margin-top: 29px; }

.mailingboss-form label {
  display: block;
  margin: 19px 0 7px;
  color: var(--navy);
  font-size: 0.81rem;
  line-height: 1.4;
  font-weight: 800;
}

.mailingboss-form input,
.mailingboss-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(34, 45, 82, 0.23);
  border-radius: 10px;
  outline: none;
  color: var(--navy);
  background: #fff;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mailingboss-form input::placeholder { color: #7f899d; }

.mailingboss-form input:focus,
.mailingboss-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.17);
}

.phone-field { display: grid; grid-template-columns: 94px 1fr; gap: 10px; }

.phone-field select {
  appearance: none;
  padding-inline: 12px;
  font-weight: 800;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222d52' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 25px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.055em;
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button span { font-size: 1.16rem; line-height: 1; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }

.button--register {
  width: 100%;
  margin-top: 27px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(130deg, var(--wine), #783c30);
  box-shadow: 0 12px 21px rgba(81, 46, 38, 0.22);
}

.button--register:hover { background: linear-gradient(130deg, #68352b, var(--wine)); }

.privacy-note {
  margin: 14px 0 0;
  color: rgba(34, 45, 82, 0.66);
  font-size: 0.72rem;
  line-height: 1.5;
}

.privacy-note__link {
  color: #8b6b25;
  font-weight: 700;
  text-underline-offset: 2px;
}

.site-footer { padding: 24px 0; color: rgba(238, 229, 217, 0.72); background: var(--navy-deep); }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer__logo { width: 144px; height: auto; filter: brightness(0) invert(1) sepia(0.2) saturate(0.5); opacity: 0.95; }
.site-footer p { margin: 0; max-width: none; white-space: nowrap; text-align: right; font-size: 0.72rem; line-height: 1.35; }

@media (max-width: 850px) {
  .registration { padding: 72px 0; }
  .registration__layout { grid-template-columns: 1fr; gap: 42px; }
  .registration__intro { max-width: 650px; }
  .form-card { max-width: 640px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1180px); }
  .header__inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    padding: 10px 0;
  }
  .brand-logo { width: 142px; }
  .header__event-title { max-width: 100%; text-align: center; font-size: 0.48rem; letter-spacing: 0.035em; }
  .anniversary-hero__image { width: 100%; height: auto; }
  .anniversary-hero__image img { width: 100%; height: auto; }
  .registration { padding: 58px 0; }
  .registration__layout { gap: 32px; }
  .form-card { order: 1; }
  .registration__intro { order: 2; }
  .registration h2 { font-size: 2.05rem; letter-spacing: -0.052em; }
  .registration__lead { margin: 17px 0 23px; font-size: 1rem; line-height: 1.62; }
  .event-facts div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .form-card { padding: 29px 22px 27px; border-radius: 20px; }
  .form-card__heading { padding-right: 26px; }
  .form-card h2 { font-size: 1.7rem; }
  .mailingboss-form { margin-top: 23px; }
  .mailingboss-form label { margin-top: 16px; }
  .site-footer { padding: 22px 0; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; gap: 18px; }
  .site-footer__logo { width: 138px; }
  .site-footer p { max-width: 100%; white-space: normal; text-align: left; font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
