/* Camelback Caviar — coming soon */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F1E7;
  --surface: #EAE3D5;
  --ink: #26302A;
  --muted: #6B6F64;
  --line: #DFD3B8;
  --sage: #5A6F53;
  --gold: #9C7A36;
  --foil: linear-gradient(100deg, #8A672A 0%, #E8CD8A 22%, #B08638 42%, #F4E2AE 60%, #A57D35 80%, #E2C47E 100%);
  --dusk-fg: #FBF3E8;
  --dusk-muted: rgba(251, 243, 232, 0.72);
  --peak: #2A1A12;
  --peak-far: #8A5A3A;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  font-optical-sizing: auto;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: #142028;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid #F6C987;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

/* ---------- poster ---------- */
.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--dusk-fg);
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    radial-gradient(ellipse 55% 42% at 74% 62%, rgba(255, 208, 140, 0.48), transparent 68%),
    linear-gradient(
      180deg,
      #142028 0%,
      #2A3E50 22%,
      #5C5868 50%,
      #C8885A 70%,
      #E8A868 84%,
      #F3C989 100%
    );
}

.poster .grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../images/grain.png") repeat;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.poster .stars {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48%;
  z-index: 0;
  pointer-events: none;
}

.star {
  fill: #FFF6E6;
  opacity: 0.55;
}

.star.s2 { animation-delay: -1.2s; }
.star.s3 { animation-delay: -2.4s; }
.star.s4 { animation-delay: -0.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.9; }
}

.star.twinkle { animation: twinkle 4.2s ease-in-out infinite; }

.poster .ridge {
  grid-row: 2;
  position: relative;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(150px, 32svh, 280px);
  z-index: 1;
  pointer-events: none;
}

.ridge-far { fill: var(--peak-far); opacity: 0.55; }
.ridge-main { fill: var(--peak); }

.poster .frame {
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border: 1px solid rgba(232, 205, 138, 0.55);
  pointer-events: none;
  z-index: 3;
}

.poster .frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(232, 205, 138, 0.25);
}

.poster .inner {
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
  min-height: 0;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
  text-shadow: 0 1px 22px rgba(20, 14, 8, 0.45);
}

.topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--dusk-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F6C987;
  box-shadow: 0 0 0 0 rgba(246, 196, 138, 0.6);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  70% { box-shadow: 0 0 0 10px rgba(246, 196, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 196, 138, 0); }
}

.place { letter-spacing: 0.2em; }

.mark {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 0;
}

.monogram {
  width: 58px;
  height: 58px;
}

.mark .word {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  text-transform: uppercase;
}

.mark h1 {
  font-size: clamp(4.4rem, 18vw, 11rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  padding-inline: 0.08em;
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #E8CD8A;
}

.ornament::before,
.ornament::after {
  content: "";
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.ornament i {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

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

.tagline {
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 300;
  color: var(--dusk-fg);
}

.tagline em {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  margin-bottom: 6px;
}

/* ---------- signup ---------- */
.signup {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  text-shadow: none;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(251, 243, 232, 0.14);
  border: 1px solid rgba(251, 243, 232, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.signup-row:focus-within {
  border-color: var(--dusk-fg);
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--dusk-fg);
  font: 400 1rem/1.3 var(--body);
  padding: 14px 18px;
  min-height: 48px;
}

.signup input[type="email"]::placeholder {
  color: rgba(251, 243, 232, 0.65);
}

.signup input[type="email"]:focus { outline: none; }

.signup button[type="submit"] {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  font: 600 0.92rem/1 var(--body);
  letter-spacing: 0.04em;
  background: var(--foil);
  background-size: 160% 100%;
  color: #2A1F0E;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.signup button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
}

.signup button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.signup .note,
.signup .status-msg {
  color: var(--dusk-muted);
  font-size: 0.85rem;
}

.signup .status-msg.is-error {
  color: #F6C987;
}

.signup .status-msg.is-success {
  color: var(--dusk-fg);
  font-size: 1.02rem;
  font-weight: 400;
  max-width: 36ch;
  margin-inline: auto;
}

.signup .status-msg a { color: #F2DEA4; }

.signup.is-success .signup-row,
.signup.is-success .note { display: none; }

/* ---------- ticker ---------- */
.ticker {
  background: #2A1A12;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 18px;
  color: #E8CD8A;
  border-top: 1px solid rgba(232, 205, 138, 0.4);
}

.ticker-track {
  display: inline-flex;
  animation: slide 48s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  will-change: transform;
}

.ticker-set {
  display: inline-flex;
}

.ticker-set span {
  padding-inline: 28px;
  position: relative;
}

.ticker-set span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
main section {
  padding-block: clamp(72px, 10vw, 128px);
}

.tins {
  padding-block: clamp(56px, 8vw, 96px);
}

.tins .wrap {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.lid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 5vw, 48px);
  width: min(100%, 560px);
}

.lid {
  flex: 1 1 0;
  max-width: 240px;
  margin: 0;
}

.lid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 18px 28px rgba(38, 48, 42, 0.22));
}

.lid figcaption,
.tins .caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lid figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- weddings ---------- */
.wedding { background: var(--surface); }

.wedding .wrap {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.invite {
  position: relative;
  background: var(--bg);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -10px;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 10, 0.35);
}

.invite .small {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.invite h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
}

.invite p {
  color: var(--muted);
  max-width: 30ch;
}

.wedding-copy { display: grid; gap: 22px; min-width: 0; }

.wedding-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.wedding-copy .lead {
  color: var(--muted);
  max-width: 46ch;
}

.moments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moments li {
  display: grid;
  gap: 2px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.moments b {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.moments span { color: var(--muted); }

/* ---------- experience ---------- */
.coming {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.coming h2 { font-size: clamp(2.3rem, 5vw, 4rem); }

.coming h2 em {
  color: var(--gold);
  font-style: italic;
  padding-right: 0.06em;
}

.coming .intro { display: grid; gap: 22px; }

.coming .intro p {
  color: var(--muted);
  max-width: 40ch;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.list li:last-child { border-bottom: 1px solid var(--line); }

.list h3 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }

.list p {
  grid-column: 1 / -1;
  color: var(--muted);
  max-width: 52ch;
}

.list .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 2.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- socials ---------- */
.follow { text-align: center; }

.follow .wrap {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.follow h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.handle {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--sage);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.handle:hover { text-decoration: underline; }

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.icons a {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.icons .circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: var(--bg);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.icons a:hover .circle,
.icons a:focus-visible .circle {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: var(--surface);
}

.icons svg { width: 24px; height: 24px; }

.soon-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 0.84rem;
}

footer a {
  color: var(--ink);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ---------- inner pages (thank-you, 404) ---------- */
.page-thin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-thin .poster {
  min-height: 0;
  height: auto;
  grid-template-rows: auto auto;
}

.page-thin .poster .inner {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: 12px;
  gap: 18px;
}

.page-thin .mark h1 {
  font-size: clamp(3.4rem, 14vw, 7rem);
}

.leaf {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

.leaf .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.leaf h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-style: italic;
}

.leaf p {
  color: var(--muted);
  max-width: 36ch;
}

.leaf .back {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.leaf .back:hover { text-decoration: underline; }

/* ---------- breakpoints ---------- */
@media (min-width: 520px) {
  .signup-row {
    flex-direction: row;
    border-radius: 999px;
    align-items: stretch;
  }

  .signup button[type="submit"] {
    padding-inline: 22px;
  }

  .moments li {
    grid-template-columns: 9rem 1fr;
    gap: 16px;
  }
}

@media (min-width: 720px) {
  body { font-size: 17px; }

  .poster .inner { gap: 22px; }
}

@media (min-width: 860px) {
  .wedding .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .invite { transform: rotate(-1.2deg); }

  .coming {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .coming .intro {
    position: sticky;
    top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status::before,
  .ticker-track,
  .mark h1,
  .star.twinkle { animation: none; }

  .signup button,
  .icons .circle { transition: none; }

  .ticker-track { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    overflow: auto;
  }

  .ticker-track {
    animation: none;
    display: flex;
    flex-wrap: nowrap;
  }

  .ticker-set:last-child { display: none; }
}
