:root {
  --ink: #2a2420;
  --ink-soft: #5a5048;
  --blush: #f7efe8;
  --sand: #efe2d4;
  --gold: #9a7b4f;
  --gold-deep: #7d623d;
  --white: #fffdfb;
  --line: rgba(154, 123, 79, 0.28);
  --shadow: 0 24px 60px rgba(42, 36, 32, 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  background: var(--sand);
  overflow-x: hidden;
}

body.blank {
  background: #ffffff;
  min-height: 100svh;
}

.ghost-login {
  position: fixed;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
  z-index: 5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  animation: softZoom 20s var(--ease) forwards;
  filter: saturate(0.92) contrast(1.02);
}

.page__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 239, 232, 0.55) 0%, rgba(247, 239, 232, 0.28) 28%, rgba(247, 239, 232, 0.72) 68%, rgba(239, 226, 212, 0.92) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 253, 251, 0.35), transparent 55%);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.1rem, 4vw, 2.5rem);
}

.topbar__mark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
}

.login-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.login-trigger:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

.hero {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 2.5rem) 0 clamp(2rem, 6vh, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 400;
}

.names {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.names span {
  display: block;
}

.names em {
  display: inline-block;
  margin: 0.15rem 0 0.05rem;
  font-style: italic;
  font-size: 0.32em;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.stay {
  margin: 1.35rem 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.lead {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.rule {
  width: 72px;
  height: 1px;
  margin: 1.8rem 0 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.timer__label {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.timer__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(520px, 100%);
}

.timer__box {
  padding: 1rem 0.4rem 0.85rem;
  background: rgba(255, 253, 251, 0.72);
  border: 1px solid rgba(154, 123, 79, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.timer__box strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timer__box span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.signed-in {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 253, 251, 0.75);
  border: 1px solid var(--line);
}

body.blank .signed-in {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 2rem));
  margin: 0;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 4;
}

.signed-in p {
  margin: 0 0 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.signed-in__actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.signed-in__actions a,
.signed-in__actions button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.foot {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}

.foot span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(42, 36, 32, 0.45);
}

.anim {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s var(--ease) forwards;
}

.anim:nth-child(1) { animation-delay: 0.05s; }
.anim:nth-child(2) { animation-delay: 0.18s; }
.anim:nth-child(3) { animation-delay: 0.3s; }
.anim:nth-child(4) { animation-delay: 0.4s; }
.anim:nth-child(5) { animation-delay: 0.5s; }
.anim:nth-child(6) { animation-delay: 0.62s; }
.anim:nth-child(7) { animation-delay: 0.72s; }

.overlay[hidden] {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.overlay__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(42, 36, 32, 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(154, 123, 79, 0.25);
  box-shadow: var(--shadow);
  text-align: center;
}

.card__x {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
}

.card__copy {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card form {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.card label {
  display: grid;
  gap: 0.35rem;
}

.card label span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.card input {
  width: 100%;
  border: 1px solid rgba(154, 123, 79, 0.28);
  background: var(--blush);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  outline: none;
}

.card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.14);
}

.card__submit {
  margin-top: 0.2rem;
  border: 0;
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.card__submit:hover {
  background: var(--gold-deep);
}

.card__status {
  min-height: 1.25em;
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card__status.is-error {
  color: #8b3f36;
}

.card__status.is-success {
  color: #3f5d45;
}

@keyframes softZoom {
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .names {
    font-size: clamp(3.4rem, 18vw, 4.8rem);
  }

  .timer__row {
    gap: 0.45rem;
  }

  .timer__box {
    padding: 0.85rem 0.2rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page__image,
  .anim {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
