:root {
  color-scheme: light;
  --cream: #f8f2e8;
  --ink: #34291f;
  --muted: #6f5e4e;
  --gold: #8d642d;
  --line: rgba(126, 91, 46, 0.19);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    linear-gradient(rgba(248, 242, 232, 0.72), rgba(248, 242, 232, 0.72)),
    url("assets/nelia-logo.png") center / cover fixed,
    var(--cream);
}

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 32px clamp(22px, 6vw, 88px) 25px;
}

.ambient {
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(168, 121, 55, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  border: 1px solid rgba(168, 121, 55, 0.1);
  border-radius: 50%;
  content: "";
}

.ambient::before {
  inset: 22px;
}

.ambient::after {
  inset: 44px;
}

.ambient-left {
  top: 25%;
  left: -245px;
}

.ambient-right {
  right: -260px;
  bottom: 8%;
  width: 420px;
  height: 420px;
}

.topbar,
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #68471f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.17em;
}

.topbar-brand span {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 121, 55, 0.12);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0 38px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: rgba(168, 121, 55, 0.55);
}

h1 {
  margin: 4px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.countdown-wrap {
  margin-top: 38px;
}

.countdown-caption {
  margin: 0 0 19px;
  color: #76572f;
  font-size: 11px;
  letter-spacing: 0.25em;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(15px, 3vw, 30px);
}

.time-unit {
  display: flex;
  min-width: clamp(49px, 7vw, 70px);
  flex-direction: column;
  gap: 9px;
}

.time-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 47px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.time-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.time-separator {
  padding-top: 5px;
  color: #8c704e;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.footer {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration-color: rgba(130, 115, 99, 0.5);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.instagram-link img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--gold);
}

.footer-mark {
  color: #8c6839;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.footer-mark span {
  padding: 0 3px;
  color: #c5a678;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .footer {
  flex-direction: row-reverse;
}

@media (max-width: 560px) {
  body {
    min-height: 100svh;
  }

  .page {
    min-height: 100svh;
    padding: 22px 20px calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .topbar-brand {
    gap: 6px;
    font-size: 14px;
  }

  .topbar-brand span {
    font-size: 8px;
  }

  .topbar-status {
    gap: 7px;
    font-size: 10px;
  }

  .hero {
    padding: 36px 0 42px;
  }

  h1 {
    margin-top: 10px;
  }

  .intro {
    max-width: 330px;
    font-size: 13px;
  }

  .intro br {
    display: block;
  }

  .countdown-wrap {
    margin-top: 34px;
  }

  .countdown {
    gap: clamp(12px, 4vw, 20px);
  }

  .time-unit {
    min-width: clamp(48px, 15vw, 60px);
  }

  .time-label {
    font-size: 10px;
  }

  .footer {
    justify-content: center;
  }

  body {
    background:
      linear-gradient(rgba(248, 242, 232, 0.9), rgba(248, 242, 232, 0.9)),
      url("assets/nelia-logo.png") center top / min(75vw, 300px) auto no-repeat scroll,
      var(--cream);
  }
}

@media (max-height: 500px) {
  .page {
    padding: 12px clamp(16px, 4vw, 40px);
  }

  .hero {
    padding: 12px 0 16px;
  }

  h1 {
    margin-top: 7px;
    margin-bottom: 8px;
    font-size: clamp(32px, 5vw, 42px);
  }

  .intro {
    font-size: 12px;
    line-height: 1.5;
  }

  .countdown-wrap {
    margin-top: 17px;
  }

  .countdown-caption {
    margin-bottom: 9px;
  }

  .time-number {
    font-size: clamp(30px, 4vw, 38px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: arrive 900ms ease-out both;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
