:root {
  --ink: #0b0b0a;
  --ink-soft: #11110f;
  --paper: #e9e2d4;
  --paper-soft: #b7b0a3;
  --gold: #c9a96e;
  --gold-bright: #e1c38b;
  --line: rgba(233, 226, 212, 0.18);
  --serif: "Prata", "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --pad: clamp(24px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 169, 110, 0.12), transparent 35%),
    var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--gold);
}

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

button {
  color: inherit;
  font: inherit;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-soft);
}

.header-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.header-link {
  justify-self: end;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.header-link:hover {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 110px var(--pad) 44px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(74vw, 1040px);
  height: min(74vw, 1040px);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -49%);
}

.hero::after {
  position: absolute;
  z-index: -3;
  top: 13%;
  left: 50%;
  width: 1px;
  height: 72%;
  background: linear-gradient(transparent, rgba(201, 169, 110, 0.25), transparent);
  content: "";
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(233, 226, 212, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
  content: "";
}

.orbit-one {
  width: min(55vw, 780px);
  height: min(55vw, 780px);
  animation: orbit 32s linear infinite;
}

.orbit-two {
  width: min(42vw, 590px);
  height: min(42vw, 590px);
  animation: orbit-reverse 24s linear infinite;
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-reverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 18px;
  color: var(--paper-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.hero-kicker .line {
  width: 48px;
  height: 1px;
  background: rgba(201, 169, 110, 0.55);
}

.hero-title-wrap {
  margin: auto 0;
  text-align: center;
}

.hero-overline {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 11.7vw, 178px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}

.gold {
  color: var(--gold);
}

.hero-subtitle {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.35;
}

.hero-subtitle em {
  color: var(--gold);
  font-style: italic;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
}

.hero-note {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.7;
}

.round-link {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.65);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.round-link svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.round-link:hover {
  color: var(--ink);
  background: var(--gold);
  transform: translateY(5px);
}

.hero-date {
  display: flex;
  align-items: flex-end;
  justify-self: end;
  gap: 12px;
}

.date-day {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.8;
}

.date-copy {
  color: var(--paper-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section {
  position: relative;
  z-index: 1;
  padding: 120px var(--pad);
}

.section-index {
  margin-bottom: 78px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.3vw, 78px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.muted {
  color: #5f5b54;
}

.manifesto {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(233, 226, 212, 0.07) 50%, transparent 50.04%),
    var(--ink-soft);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(60px, 12vw, 180px);
}

.manifesto-copy {
  align-self: end;
  max-width: 560px;
  color: var(--paper-soft);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.85;
}

.manifesto-copy .lead {
  margin: 0 0 28px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.55;
}

.manifesto-copy strong {
  color: var(--gold);
  font-weight: 400;
}

.principles {
  display: grid;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.principle {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.4s ease,
    transform 0.4s ease;
}

.principle:hover {
  background: rgba(201, 169, 110, 0.06);
  transform: translateY(-6px);
}

.principle-number {
  display: block;
  margin-bottom: 90px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

.principle h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.principle p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.65;
}

.exclusive {
  display: grid;
  max-width: 1120px;
  margin: 140px auto 20px;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.exclusive-seal {
  position: relative;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 50%;
}

.exclusive-seal > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.exclusive-seal svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  overflow: visible;
  animation: orbit 30s linear infinite;
}

.exclusive-seal text {
  fill: var(--paper-soft);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.exclusive h3 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.4;
}

.invitation {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.invitation::before {
  position: absolute;
  top: 0;
  right: -15vw;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(11, 11, 10, 0.09);
  border-radius: 50%;
  content: "";
}

.invitation .section-index,
.invitation .eyebrow {
  color: #8b6834;
}

.invitation-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.event-monogram {
  position: relative;
  display: flex;
  width: 170px;
  height: 170px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 11, 10, 0.25);
  border-radius: 50%;
  font-family: var(--serif);
}

.event-monogram::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(139, 104, 52, 0.25);
  border-radius: 50%;
  content: "";
}

.event-monogram span {
  color: #8b6834;
  font-size: 64px;
}

.event-monogram small {
  margin: 32px 0 0 8px;
  font-size: 13px;
}

.event-card {
  margin-top: 90px;
  border: 1px solid rgba(11, 11, 10, 0.26);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 100px rgba(11, 11, 10, 0.08);
}

.event-card-top {
  display: grid;
  min-height: 500px;
  grid-template-columns: 1fr 1.2fr;
}

.event-venue,
.event-timeline {
  padding: clamp(32px, 5vw, 72px);
}

.event-venue {
  border-right: 1px solid rgba(11, 11, 10, 0.18);
}

.event-venue h3 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
}

.event-venue > p:not(.eyebrow) {
  margin: 0 0 32px;
  color: #5f5a51;
  font-size: 13px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  gap: 20px;
  border-bottom: 1px solid #8b6834;
  padding-bottom: 6px;
  color: #6e5128;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.event-timeline {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-row {
  display: grid;
  grid-template-columns: 110px 1fr 170px;
  align-items: center;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(11, 11, 10, 0.14);
}

.time-row time {
  color: #8b6834;
  font-family: var(--serif);
  font-size: 31px;
}

.time-line {
  height: 1px;
  background: rgba(11, 11, 10, 0.18);
}

.time-row p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contribution {
  padding: clamp(32px, 5vw, 72px);
  border-top: 1px solid rgba(11, 11, 10, 0.18);
}

.contribution-grid {
  display: grid;
  border-top: 1px solid rgba(11, 11, 10, 0.18);
  border-left: 1px solid rgba(11, 11, 10, 0.18);
  grid-template-columns: repeat(4, 1fr);
}

.contribution-grid > div {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 23px;
  border-right: 1px solid rgba(11, 11, 10, 0.18);
  border-bottom: 1px solid rgba(11, 11, 10, 0.18);
}

.contribution-grid span {
  min-height: 44px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contribution-grid strong {
  margin: auto 0 9px;
  color: #8b6834;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 400;
}

.contribution-grid small {
  color: #6d675d;
  font-size: 10px;
  line-height: 1.5;
}

.contribution-grid .contribution-total {
  color: var(--paper);
  background: var(--ink);
}

.contribution-total strong {
  color: var(--gold-bright);
}

.contribution-total small {
  color: var(--paper-soft);
}

.final-cta {
  max-width: 1100px;
  margin: 160px auto 50px;
  text-align: center;
}

.final-cta h2 {
  margin: 0 auto 50px;
  font-family: var(--serif);
  font-size: clamp(35px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.final-cta h2 em {
  color: #8b6834;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  min-width: min(100%, 390px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px 22px 30px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.cta-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.cta-button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-4px);
}

.cta-note {
  margin: 28px 0 0;
  color: #6d675d;
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.7;
  text-transform: uppercase;
}

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 35px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

footer p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

footer p:last-child {
  text-align: right;
}

.rsvp-dialog {
  width: min(540px, calc(100% - 32px));
  padding: 50px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  color: var(--paper);
  background: #11110f;
  box-shadow: 0 40px 150px rgba(0, 0, 0, 0.8);
}

.rsvp-dialog::backdrop {
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(8px);
}

.rsvp-dialog h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
}

.rsvp-dialog > p:not(.eyebrow, .copy-status) {
  color: var(--paper-soft);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  color: var(--paper-soft);
  background: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
}

.copy-button {
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(201, 169, 110, 0.55);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.copy-button:hover {
  background: rgba(201, 169, 110, 0.08);
}

.copy-button span,
.copy-button small {
  display: block;
}

.copy-button span {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-button small {
  color: var(--paper-soft);
  font-size: 11px;
  line-height: 1.5;
}

.copy-status {
  min-height: 18px;
  margin: 15px 0 0;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-meta {
    display: none;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
  }

  .round-link {
    display: none;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    margin-left: 15%;
  }

  .principles,
  .contribution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exclusive {
    grid-template-columns: 150px 1fr;
  }

  .exclusive-seal {
    width: 140px;
    height: 140px;
  }

  .event-card-top {
    grid-template-columns: 1fr;
  }

  .event-venue {
    border-right: 0;
    border-bottom: 1px solid rgba(11, 11, 10, 0.18);
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .header-link {
    font-size: 8px;
  }

  .hero {
    min-height: 820px;
    padding-top: 90px;
  }

  .hero::before {
    width: 120vw;
    height: 120vw;
  }

  .hero-orbit {
    display: none;
  }

  .hero-kicker {
    gap: 10px;
    font-size: 7px;
  }

  .hero-kicker .line {
    width: 22px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.2vw, 48px);
    letter-spacing: -0.055em;
  }

  .hero-note br {
    display: none;
  }

  .date-day {
    font-size: 43px;
  }

  .section {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .section-index {
    margin-bottom: 55px;
  }

  .manifesto-copy {
    margin-left: 0;
  }

  .principles {
    margin-top: 70px;
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 210px;
  }

  .principle-number {
    margin-bottom: 55px;
  }

  .exclusive {
    margin-top: 90px;
    grid-template-columns: 1fr;
  }

  .exclusive-seal {
    width: 120px;
    height: 120px;
  }

  .invitation-head {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .event-monogram {
    width: 110px;
    height: 110px;
  }

  .event-monogram span {
    font-size: 42px;
  }

  .event-card {
    margin-top: 60px;
  }

  .event-card-top {
    min-height: 0;
  }

  .time-row {
    grid-template-columns: 85px 1fr;
  }

  .time-line {
    display: none;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution-grid > div {
    min-height: 160px;
  }

  .final-cta {
    margin-top: 100px;
  }

  .cta-note br {
    display: none;
  }

  .rsvp-dialog {
    padding: 46px 24px 28px;
  }
}

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

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