:root {
  --ink: #2b2723;
  --body: #6b655d;
  --muted: #9c948a;
  --paper: #fcfbf8;
  --card: #ffffff;
  --accent: #bd6b4a;
  --accent-dark: #9c5537;
  --sage: #7c8567;
  --line: rgba(43, 39, 35, 0.08);
  --shadow: 0 24px 64px rgba(60, 45, 35, 0.1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a,
button { -webkit-tap-highlight-color: transparent; }

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: clamp(1.35rem, 3vw, 2.6rem) clamp(1.25rem, 5vw, 4.5rem);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 76rem);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img { width: 2.1rem; height: 2.1rem; }

.eyebrow,
.status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 1.25rem; color: var(--muted); }

.status-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(189, 107, 74, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  width: min(100%, 70rem);
  margin: clamp(4.5rem, 11vh, 8rem) auto;
}

.hero-copy {
  max-width: 35rem;
  animation: rise-in 700ms cubic-bezier(.22, 1, .36, 1) both;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  margin-bottom: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 7.5vw, 6.8rem);
  line-height: 0.93;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 1;
}

.subtitle {
  max-width: 33rem;
  margin-bottom: 1.75rem;
  color: var(--body);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-note {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
}

.note-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(189, 107, 74, 0.1);
}

.visual {
  position: relative;
  min-height: 32rem;
  animation: rise-in 700ms 100ms cubic-bezier(.22, 1, .36, 1) both;
}

.moment-card,
.circle-card {
  position: absolute;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.moment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 48%;
  height: 60%;
  padding: 1.3rem;
  color: #fff;
}

.moment-card::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(43, 39, 35, 0.34));
  content: "";
}

.moment-card-primary {
  top: 2%;
  left: 7%;
  background:
    radial-gradient(circle at 26% 20%, #f3d9c4, transparent 48%),
    radial-gradient(circle at 78% 74%, #e8a66b, transparent 54%),
    linear-gradient(145deg, #f3d9c4, #e8a66b);
  transform: rotate(-5deg);
}

.moment-card-sage {
  top: 22%;
  right: 3%;
  width: 43%;
  height: 54%;
  background:
    radial-gradient(circle at 28% 22%, #cfe0c7, transparent 50%),
    linear-gradient(145deg, #cfe0c7, #8fae7e);
  transform: rotate(6deg);
}

.moment-date,
.moment-caption { position: relative; z-index: 1; }

.moment-date { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.moment-caption { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -0.025em; }

.circle-card {
  right: 17%;
  bottom: 0;
  z-index: 2;
  width: 48%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(-2deg);
}

.circle-card img { width: 2.8rem; height: 2.8rem; }

.circle-card p {
  margin: 1rem 0 1.2rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.circle-people { display: flex; }
.circle-people span {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
}
.circle-people span + span { margin-left: -0.55rem; }
.circle-people span:nth-child(2) { background: var(--sage); }
.circle-people span:nth-child(3) { background: #c9a876; }

.site-footer {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.invite-main {
  display: grid;
  place-items: center;
  padding-block: clamp(4rem, 10vh, 7rem);
}

.invite-card {
  width: min(100%, 39rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(43, 39, 35, 0.08);
  animation: rise-in 650ms cubic-bezier(.22, 1, .36, 1) both;
}

.invite-mark {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 2rem;
  place-items: center;
  border-radius: 1.35rem;
  background: rgba(189, 107, 74, 0.1);
}

.invite-mark img { width: 2.6rem; height: 2.6rem; }
.invite-card .subtitle { margin-bottom: 1.6rem; }
.actions { display: grid; gap: 0.8rem; }

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(189, 107, 74, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover { background: var(--accent-dark); box-shadow: 0 8px 20px rgba(189, 107, 74, 0.34); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { color: var(--muted); background: rgba(43, 39, 35, 0.06); box-shadow: none; cursor: not-allowed; transform: none; }

.button:focus-visible,
.brand:focus-visible { outline: 3px solid rgba(189, 107, 74, 0.3); outline-offset: 4px; }

.privacy-note,
.invite-status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.privacy-note { margin: 1.2rem 0 0; }
.invite-status { margin: 0; }
.invite-status:empty { margin: 0; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; margin-block: 4.5rem; }
  .hero-copy { max-width: 39rem; }
  .visual { width: min(100%, 34rem); margin-inline: auto; }
}

@media (max-width: 520px) {
  .site-shell { padding-inline: 1.1rem; }
  .status-pill { display: none; }
  .hero { margin-block: 4rem 2.5rem; }
  h1 { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .visual { min-height: 25rem; }
  .circle-card { right: 11%; width: 55%; }
  .moment-card { left: 3%; width: 53%; }
  .moment-card-sage { right: 1%; left: auto; width: 46%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .invite-card { border-radius: 1.5rem; }
}

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