@font-face {
  font-family: "Roller Coaster";
  src:
    url("/fonts/Roller%20Coaster.otf") format("opentype"),
    url("/fonts/Roller%20Coaster.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dream Avenue";
  src: url("/fonts/Dream%20Avenue%20Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f3ead8;
  --color-bg-deep: #ead9bc;
  --color-surface: rgba(111, 13, 13, 0.92);
  --color-surface-soft: rgba(142, 13, 13, 0.1);
  --color-border: rgba(173, 124, 42, 0.42);
  --color-border-strong: rgba(173, 124, 42, 0.72);
  --color-text: #261715;
  --color-text-light: #f8edd8;
  --color-accent: #c99d49;
  --color-accent-strong: #e3bc68;
  --color-accent-deep: #9b6d23;
  --shadow-soft: 0 24px 80px rgba(58, 10, 10, 0.16);
  --font-display: "Roller Coaster", "Times New Roman", serif;
  --font-body: "Dream Avenue", Georgia, serif;
  --container: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top, rgba(201, 157, 73, 0.22), transparent 28%),
    radial-gradient(
      circle at bottom right,
      rgba(142, 13, 13, 0.08),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f8f1e2 0%,
      var(--color-bg) 58%,
      var(--color-bg-deep) 100%
    );
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.5;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(111, 13, 13, 0.024) 0,
      rgba(111, 13, 13, 0.024) 1px,
      transparent 1px,
      transparent 24px
    );
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header,
.site-footer,
.hero,
.page-hero,
.content-panel,
.feature-card,
.venue-card {
  backdrop-filter: blur(8px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 157, 73, 0.32);
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 220, 160, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(255, 180, 80, 0.08),
      transparent 20%
    ),
    linear-gradient(180deg, #820c13 0%, #650a10 46%, #54070d 100%);
  box-shadow: 0 16px 42px rgba(72, 8, 8, 0.22);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-header__mobile-tools {
  display: none;
}

.site-mark {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.site-mark__logo {
  display: block;
  width: clamp(72px, 9vw, 102px);
  height: auto;
  flex: 0 0 auto;
}

.site-mark__text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.site-mark__eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: #d5b067;
}

.site-mark__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 0.95;
  color: #e1bd74;
  text-shadow: 0 1px 0 rgba(71, 28, 5, 0.42);
}

.site-header__aside {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.dev-badge {
  justify-self: end;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--color-border);
  border-radius: 999px;
  background: rgba(201, 157, 73, 0.12);
  font-size: 0.85rem;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #dfbf7d;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  transition: 180ms ease;
  line-height: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(201, 157, 73, 0.55);
  background: rgba(244, 210, 137, 0.1);
  color: #f0d79d;
}

.locale-switcher {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
}

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

.locale-switcher__select {
  min-width: 92px;
  padding: 0.5rem;
  border: 1px solid rgba(201, 157, 73, 0.54);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(118, 12, 18, 0.92),
    rgba(85, 8, 13, 0.92)
  );
  color: #e2c07c;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 226, 164, 0.16);
}

.locale-flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.locale-flags__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 157, 73, 0.32);
  background: rgba(244, 210, 137, 0.06);
  font-size: 1rem;
  line-height: 1;
}

.locale-flags__link[aria-current="true"] {
  border-color: rgba(244, 210, 137, 0.72);
  background: rgba(244, 210, 137, 0.14);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  border: 1px solid rgba(201, 157, 73, 0.44);
  border-radius: 999px;
  background: rgba(244, 210, 137, 0.08);
  color: #e2c07c;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(27, 6, 6, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 240ms ease;
  height: 100vh;
  width: 100vw;
}

.mobile-nav-backdrop[hidden] {
  display: none;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  width: min(86vw, 340px);
  height: 100vh;
  padding: 1.25rem;
  border-left: 1px solid rgba(201, 157, 73, 0.32);
  background:
    radial-gradient(circle at top, rgba(255, 212, 138, 0.08), transparent 22%),
    linear-gradient(180deg, #7c0b12 0%, #5b0710 100%);
  box-shadow: -18px 0 44px rgba(32, 3, 3, 0.34);
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 280ms ease,
    opacity 220ms ease;
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-panel__header p {
  margin: 0;
  color: #e1bd74;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.mobile-nav-panel__close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(201, 157, 73, 0.4);
  border-radius: 999px;
  background: rgba(244, 210, 137, 0.08);
  color: #e6c98d;
  font-size: 1.4rem;
  cursor: pointer;
  padding-top: 6px;
}

.mobile-nav-panel__links {
  display: grid;
  gap: 0.75rem;
}

.mobile-nav-panel__links a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 157, 73, 0.22);
  border-radius: 1rem;
  color: #f3dfb1;
  background: rgba(244, 210, 137, 0.06);
}

.mobile-nav-panel__links a[aria-current="page"] {
  border-color: rgba(244, 210, 137, 0.66);
  background: rgba(244, 210, 137, 0.12);
  color: #fff1cc;
}

main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero,
.page-hero,
.content-panel {
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.poster-home {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top, rgba(201, 157, 73, 0.16), transparent 24%),
    linear-gradient(
      180deg,
      rgba(255, 251, 242, 0.92),
      rgba(247, 237, 218, 0.92)
    );
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.poster-home__crest img {
  display: block;
  width: min(240px, 54vw);
  margin: 0 auto;
}

.poster-home__intro {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.poster-home__intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #7d0f0f;
  margin-bottom: 1rem;
}

.poster-home__date {
  margin: 0;
  color: var(--color-accent-deep);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poster-home__venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.poster-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(173, 124, 42, 0.5);
  background: linear-gradient(
    180deg,
    rgba(255, 251, 242, 0.92),
    rgba(244, 229, 199, 0.78)
  );
  position: relative;
}

.poster-card::before,
.poster-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(173, 124, 42, 0.65);
  border-radius: 50%;
  top: 0.9rem;
}

.poster-card::before {
  left: 0.9rem;
}

.poster-card::after {
  right: 0.9rem;
}

.poster-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-deep);
  font-size: 0.88rem;
}

.poster-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  color: #7d0f0f;
}

.poster-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.poster-ribbon::before,
.poster-ribbon::after {
  content: "";
  flex: 1;
  max-width: 92px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(173, 124, 42, 0.9),
    transparent
  );
}

.poster-ribbon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f1616, #7d0f0f);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1;
  box-shadow: 0 12px 28px rgba(101, 12, 12, 0.22);
}

.poster-home__actions,
.poster-home__footer-action {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.poster-program {
  display: grid;
  gap: 1.2rem;
}

.poster-program__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.poster-program__heading span {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(173, 124, 42, 0.82),
    transparent
  );
}

.poster-program__heading h2 {
  margin: 0;
  color: #7d0f0f;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.04;
}

.poster-program__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-item {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 0.8rem 0.6rem;
}

.program-item__icon {
  color: var(--color-accent-deep);
  font-size: 2rem;
}

.program-item h3 {
  margin: 0;
  color: #7d0f0f;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  background:
    radial-gradient(circle at top, rgba(227, 188, 104, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(142, 13, 13, 0.97), rgba(99, 9, 9, 0.96));
  color: var(--color-text-light);
}

.hero__content,
.hero__card,
.page-hero,
.content-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero__content h1,
.page-hero h1,
.feature-card h2,
.venue-card h2,
.panel-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

.hero__content h1,
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 1.02;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 44rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__card {
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at top, rgba(227, 188, 104, 0.22), transparent 40%),
    rgba(255, 250, 240, 0.06);
  border-left: 1px solid rgba(227, 188, 104, 0.24);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.is-loading,
.button:disabled {
  transform: none;
  opacity: 0.82;
}

.button__spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.button--primary {
  background: linear-gradient(
    180deg,
    var(--color-accent-strong),
    var(--color-accent)
  );
  color: #3a1908;
  box-shadow: inset 0 1px 0 rgba(255, 244, 209, 0.45);
}

.button--ghost {
  background: rgba(255, 250, 240, 0.36);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.venue-card,
.content-panel {
  background:
    linear-gradient(
      180deg,
      rgba(255, 251, 244, 0.86),
      rgba(248, 239, 221, 0.8)
    ),
    linear-gradient(135deg, rgba(142, 13, 13, 0.03), transparent 50%);
  border: 1px solid var(--color-border);
}

.feature-card,
.venue-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.venue-card {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.venue-card__address {
  color: #7a4923;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel-intro--row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.mail-list {
  display: grid;
  gap: 1rem;
}

.mail-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 251, 244, 0.82);
}

.mail-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #8e5b20;
  font-size: 0.95rem;
}

.mail-card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  line-height: 1.05;
}

.mail-card pre {
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
  border-radius: 1rem;
  background: rgba(111, 79, 48, 0.08);
  overflow-x: auto;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: #8e0d0d;
  box-shadow: 0 0 0 2px rgba(142, 13, 13, 0.14);
}

.field-error small {
  color: #8e0d0d;
  font-size: 0.95rem;
}

.form-grid select {
  width: 100%;
  border: 1px solid rgba(122, 73, 35, 0.22);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 246, 0.86);
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(122, 73, 35, 0.22);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 246, 0.86);
}

.notice-box {
  border: 1px dashed rgba(122, 73, 35, 0.4);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(201, 157, 73, 0.1);
}

.notice-box--success {
  background: rgba(167, 122, 41, 0.14);
}

.notice-box--error {
  background: rgba(142, 13, 13, 0.12);
}

.rsvp-form-stack {
  display: grid;
  gap: 1rem;
}

.guest-card {
  margin: 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 246, 0.8),
    rgba(248, 239, 221, 0.72)
  );
}

.guest-card legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.05;
}

.checkbox-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-cluster label {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.extra-guests-list {
  display: grid;
  gap: 1rem;
}

.site-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    rgba(255, 248, 234, 0.9),
    rgba(248, 237, 216, 0.84)
  );
}

[disabled] {
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .hero,
  .feature-grid,
  .form-grid,
  .poster-home__venues,
  .poster-program__grid {
    grid-template-columns: 1fr;
  }

  .venue-card,
  .site-footer {
    flex-direction: column;
  }

  .site-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .site-mark {
    align-items: flex-start;
  }

  .site-mark__logo {
    width: min(50px, 30vw);
  }

  .site-mark__text {
    gap: 0.1rem;
  }

  .site-mark__title {
    font-size: clamp(1.1rem, 6vw, 1.45rem);
  }

  .site-header__mobile-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .site-header__aside {
    display: none;
  }

  .panel-intro--row {
    flex-direction: column;
  }

  .poster-ribbon {
    flex-direction: column;
    gap: 0.75rem;
  }

  .poster-ribbon::before,
  .poster-ribbon::after,
  .poster-program__heading span {
    max-width: 56px;
  }
}

@media (min-width: 901px) {
  .mobile-nav-backdrop,
  .mobile-nav-panel,
  .locale-flags,
  .menu-toggle {
    display: none;
  }
}
