@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #f6f1ea;
  --ink-soft: rgba(246, 241, 234, 0.78);
  --ink-faint: rgba(246, 241, 234, 0.62);
  --serif: "Cormorant", "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --pad-top: max(1.75rem, env(safe-area-inset-top));
  --pad-bottom: max(1.5rem, env(safe-area-inset-bottom));
  --pad-x: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

html, body {
  margin: 0;
  height: 100%;
  background: #0b0907;
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

p, h1 { margin: 0; }

.gate {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  text-align: center;
  overflow: hidden;
}

/* Background photograph + cinematic overlay */
.gate__bg,
.gate__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gate__bg { z-index: -2; }
.gate__bg img {
  object-fit: cover;
  /* Keep Ivy's face in frame: it sits right of centre in the wide desktop shot. */
  object-position: 68% 30%;
}
@media (max-aspect-ratio: 4/5) {
  .gate__bg img { object-position: 50% 25%; }
}
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.7) 100%);
}

/* Top: wordmark */
.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.8rem + 1.1vw, 1.6rem);
  letter-spacing: 0.42em;
  /* Balance the trailing letter-spacing so the wordmark sits optically centred */
  margin-right: -0.42em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

/* Centre: tagline, CTA, notice */
.gate__center {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 34rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  padding: 0 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.enter:hover { background: #161310; border-color: rgba(255, 255, 255, 0.32); }
.enter:focus-visible,
.leave:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.notice {
  margin-top: 1rem;
  max-width: 22rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.leave {
  margin-top: 0.6rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-decoration: underline;
  text-decoration-color: rgba(246, 241, 234, 0.3);
  text-underline-offset: 3px;
  border-radius: 4px;
}
.leave:hover { color: var(--ink); }

/* Bottom: disclaimer */
.gate__bottom p {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .logo { letter-spacing: 0.34em; margin-right: -0.34em; }
  .gate__bottom p { letter-spacing: 0.14em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .enter { margin-top: 1rem; min-height: 2.9rem; }
  .notice { margin-top: 0.6rem; }
}

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