/* Dim Lazar — Pre-opening / The Wrapped House v2 */

:root {
  --text: rgba(238, 235, 226, 0.92);
  --muted: rgba(238, 235, 226, 0.68);
  --soft: rgba(238, 235, 226, 0.48);
  --line: rgba(218, 178, 112, 0.34);
  --accent: #d7a15b;
  --bg: #05080b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("assets/wrapped-house.webp");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 46%, rgba(255, 199, 122, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(2, 5, 8, 0.96) 0%, rgba(5, 9, 13, 0.82) 24%, rgba(5, 9, 13, 0.34) 43%, rgba(5, 9, 13, 0.00) 72%),
    linear-gradient(180deg, rgba(2, 5, 8, 0.22) 0%, rgba(2, 5, 8, 0.00) 48%, rgba(2, 5, 8, 0.42) 100%);
}

.content {
  width: min(560px, calc(100% - 48px));
  margin-left: clamp(28px, 7vw, 120px);
  padding: clamp(34px, 6vw, 70px) 0;
}

.identity h1 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.055em;
  font-size: clamp(4.1rem, 8vw, 8.2rem);
  line-height: 0.9;
  color: rgba(239, 237, 230, 0.9);
}

.role {
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
  line-height: 1.35;
  color: var(--muted);
  font-weight: 300;
}

.divider {
  width: min(410px, 100%);
  height: 1px;
  margin: clamp(22px, 3vw, 36px) 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

.statement p,
.fields p {
  margin: 0;
}

.primary {
  max-width: 430px;
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  line-height: 1.55;
  color: rgba(239, 235, 225, 0.78);
  font-weight: 300;
}

.secondary {
  max-width: 430px;
  margin-top: 0.15rem !important;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  color: var(--soft);
  font-weight: 300;
}

.fields {
  margin-top: clamp(26px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  line-height: 1.9;
  color: rgba(215, 191, 154, 0.64);
}

.fields p + p {
  margin-top: 0.14rem;
  color: rgba(238, 235, 226, 0.38);
  letter-spacing: 0.12em;
}

.opening {
  margin: clamp(26px, 4vw, 46px) 0 0;
  color: var(--accent);
  font-size: clamp(1.08rem, 1.55vw, 1.36rem);
  line-height: 1.35;
  font-weight: 300;
}

.opening span {
  color: rgba(215, 161, 91, 0.68);
  font-size: 0.84em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 42px);
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid rgba(215, 161, 91, 0.38);
  background: rgba(5, 8, 11, 0.28);
  color: rgba(238, 235, 226, 0.78);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(6px);
}

.links a:hover,
.links a:focus-visible {
  color: rgba(255, 241, 216, 0.96);
  border-color: rgba(215, 161, 91, 0.72);
  background: rgba(215, 161, 91, 0.10);
  transform: translateY(-1px);
  outline: none;
}

.footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(42px, 6vw, 70px);
  color: rgba(238, 235, 226, 0.38);
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .page {
    align-items: flex-end;
  }

  .background {
    background-position: 67% center;
  }

  .shade {
    background:
      linear-gradient(180deg, rgba(2, 5, 8, 0.14) 0%, rgba(2, 5, 8, 0.30) 36%, rgba(2, 5, 8, 0.88) 100%),
      linear-gradient(90deg, rgba(2, 5, 8, 0.48) 0%, rgba(2, 5, 8, 0.04) 100%);
  }

  .content {
    width: min(650px, calc(100% - 38px));
    margin: 0 auto;
    padding-bottom: 38px;
  }

  .identity h1 {
    font-size: clamp(3.8rem, 14vw, 6.2rem);
  }

  .links a {
    min-width: 0;
    flex: 1 1 120px;
  }
}

@media (max-width: 520px) {
  .background {
    background-position: 72% center;
  }

  .content {
    width: calc(100% - 30px);
    padding-bottom: 28px;
  }

  .identity h1 {
    letter-spacing: -0.06em;
  }

  .fields {
    letter-spacing: 0.11em;
  }

  .links {
    gap: 10px;
  }

  .links a {
    flex: 1 1 100%;
  }

  .footer {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}
