:root {
  --pink: #ffe4ec;
  --black: #12080b;
  --teal: #006b70;
  --burgundy: #4a1018;
  --border-width: 1.5px;
  --border: var(--border-width) solid var(--black);
  --footer-h: 38px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pink);
  color: var(--black);
  font-family: "Archivo Narrow", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  line-height: 1.08;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.cumple-system {
  display: grid;
  grid-template-columns: minmax(270px, 22vw) minmax(460px, 1fr) minmax(260px, 22vw);
  min-height: calc(100svh - var(--footer-h));
  border-bottom: var(--border);
}

.event-rail,
.confirm-rail,
.invite-panel {
  min-width: 0;
}

.event-rail {
  display: flex;
  min-height: calc(100svh - var(--footer-h));
  flex-direction: column;
  border-right: var(--border);
}

.event-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 54px;
  border-bottom: var(--border);
}

.event-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
}

sup {
  margin-left: 2px;
  font-size: 0.52em;
}

.event-title-block {
  min-height: 42vh;
  border-bottom: var(--border);
  padding: clamp(24px, 2.4vw, 44px);
}

.event-title-block h1 {
  margin: 20px 0 0;
  font-family: "Bungee", "Archivo Black", Impact, sans-serif;
  font-size: clamp(54px, 5.4vw, 112px);
  letter-spacing: -0.07em;
  line-height: 0.82;
  text-transform: uppercase;
}

.event-kicker {
  margin: clamp(22px, 2vw, 34px) 0 0;
  color: var(--teal);
  font-size: clamp(18px, 1.25vw, 27px);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-note {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2vw, 34px);
}

.event-note p:not(.micro-label),
.date-block p:not(.micro-label) {
  margin: 18px 0 0;
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.micro-label {
  margin: 0;
  color: var(--teal);
  font-size: clamp(12px, 0.76vw, 15px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.invite-panel {
  display: flex;
  min-height: calc(100svh - var(--footer-h));
  border-right: var(--border);
}

.invite-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 4vw, 72px);
}

.invite-copy h2 {
  max-width: 780px;
  margin: 0;
  color: var(--burgundy);
  font-size: clamp(42px, 4.7vw, 90px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.ordinal-suffix {
  display: inline-block;
  margin-left: 0.03em;
  font-size: 0.38em;
  line-height: 0;
  transform: translateY(-0.62em);
}

.carnaval {
  margin: 0;
  color: var(--teal);
  font-family: "Bungee", "Archivo Black", Impact, sans-serif;
  font-size: clamp(27px, 3vw, 58px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.confirm-rail {
  display: flex;
  min-height: calc(100svh - var(--footer-h));
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(34px, 7vh, 76px);
  padding: 22px 20px;
}

.rsvp-module {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 16px;
  min-height: 44vh;
  align-items: stretch;
}

.rsvp-box {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  border: var(--border);
  padding: 16px;
}

.rsvp-box strong {
  align-self: center;
  color: var(--burgundy);
  font-family: "Bungee", "Archivo Black", Impact, sans-serif;
  font-size: clamp(28px, 2.2vw, 46px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.rsvp-box:hover {
  background: var(--black);
  color: var(--pink);
}

.rsvp-box:hover .micro-label,
.rsvp-box:hover strong {
  color: var(--pink);
}

.plus {
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.vertical-meta {
  display: flex;
  justify-content: space-between;
  border-left: var(--border);
  padding: 20px 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.event-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  min-height: var(--footer-h);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--black);
  color: var(--pink);
  padding: 0 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .cumple-system {
    display: block;
    min-height: auto;
    padding-bottom: var(--footer-h);
  }

  .event-rail,
  .confirm-rail,
  .invite-panel {
    min-height: auto;
    border-right: 0;
  }

  .event-rail,
  .invite-panel {
    border-bottom: var(--border);
  }

  .event-title-block,
  .event-note,
  .invite-copy {
    min-height: auto;
  }

  .invite-copy {
    min-height: 520px;
  }

  .confirm-rail {
    gap: 40px;
    padding-bottom: 64px;
  }

  .rsvp-module {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .event-nav {
    grid-template-columns: 1fr;
  }

  .event-nav a {
    min-height: 42px;
    border-bottom: var(--border);
  }

  .event-nav a:last-child {
    border-bottom: 0;
  }

  .event-title-block h1 {
    font-size: clamp(52px, 18vw, 92px);
  }

  .invite-copy {
    min-height: 430px;
    padding: 26px 20px;
  }

  .invite-copy h2,
  .carnaval {
    overflow-wrap: anywhere;
  }

  .rsvp-module {
    grid-template-columns: 1fr;
  }

  .rsvp-box strong {
    transform: none;
  }

  .vertical-meta {
    display: none;
  }

  .event-footer {
    position: static;
    display: grid;
    min-height: auto;
    padding: 12px 20px;
  }
}
