/* Local fonts (self-hosted from Google Fonts, latin subset) */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-normal.woff2') format('woff2');
}

:root {
  --bg: #15130f;
  --bg-elev: #1e1b15;
  --bg-soft: #1a1710;
  --fg: #e0d8c8;
  --fg-muted: #998f78;
  --accent: #c9a84c;
  --accent-soft: #8a7430;
  --border: rgba(0, 0, 0, 0.5);
  --border-soft: rgba(201, 168, 76, 0.12);
  --display: "Cinzel", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
#about { scroll-snap-align: start; }
footer { scroll-snap-align: end; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}
/* Touch devices: disable snap (fights touch inertia scrolling) */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: none; }
}

body {
  background-color: var(--bg);
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%23EAEAEA" fill-opacity="0.03" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-status {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}
.nav-status.fading { opacity: 0; }

/* Hero */
.hero {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem 5rem;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 168, 99, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(138, 117, 71, 0.06), transparent 50%),
    var(--bg);
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-art {
  display: block;
  width: 100%;
  max-width: min(460px, 52vh);
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border),
    0 0 80px rgba(200, 168, 99, 0.08);
}
.sr-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-muted);
  text-decoration: none;
  animation: scroll-bounce 2.4s ease-in-out infinite;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  line-height: 1;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue-arrow {
  font-size: 1.4rem;
  opacity: 0.7;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* Buttons */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
section {
  padding: 2rem 0;
}
section::before {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
/* Drop separator on sections that follow another section (waitlist after about) */
section + section::before { display: none; }
section + section { padding-top: 1rem; }
section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.about .container {
  text-align: center;
  max-width: 780px;
}
.about p {
  font-size: 1.1rem;
  margin: 0 auto 1.2rem;
  color: var(--fg);
}
.about p:last-child {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* Waitlist */
.waitlist .container {
  text-align: center;
  max-width: 620px;
}
.waitlist p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input[type="email"]::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.waitlist-form button {
  padding: 0.9rem 1.6rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.waitlist-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 1.25rem;
}
.waitlist-note a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.waitlist-note a:hover { color: var(--accent); }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-inner a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.logo-link { text-decoration: none; }

/* Prose pages (privacy, terms) */
.prose {
  padding: 5rem 0 4rem;
}
.prose .container { max-width: 720px; }
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}
.prose p {
  color: var(--fg);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose .muted {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.prose .back { margin-top: 3rem; }
.prose .prose-center { text-align: center; }
.muted {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Responsive */

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .container { padding: 0 1.75rem; }
  section { padding: 2.5rem 0; }
  .hero { padding: 4rem 1.75rem 6rem; }
  .hero-art { max-width: 460px; }
}

/* Short viewports (e.g. 1366x768 laptops) — shrink hero art so full hero fits above the fold */
@media (max-height: 820px) and (min-width: 641px) {
  .hero { padding: 3rem 2rem 5rem; }
  .hero-art { max-width: 380px; margin-bottom: 1.75rem; }
  .tagline { margin-bottom: 1.75rem; }
}
@media (max-height: 700px) and (min-width: 641px) {
  .hero-art { max-width: 320px; margin-bottom: 1.25rem; }
  .scroll-cue { bottom: 2rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-inner { padding: 0.9rem 1.25rem; }
  .logo { font-size: 1.15rem; letter-spacing: 0.14em; }

  .hero {
    padding: 2.5rem 1.25rem 5rem;
  }
  .scroll-cue { bottom: 2.5rem; }
  .hero-art {
    max-width: 100%;
    margin-bottom: 2rem;
    border-radius: 6px;
  }
  .tagline { font-size: 1rem; margin-bottom: 2rem; }

  .cta-row { gap: 0.75rem; flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary {
    padding: 0.85rem 1.25rem;
    width: 100%;
    text-align: center;
  }

  section { padding: 2.5rem 0; }
  section::before { width: 80px; margin-bottom: 1.5rem; }
  section h2 { font-size: 2rem; }

  .container { padding: 0 1.25rem; }

  .about .container { max-width: 100%; }
  .about p { font-size: 1rem; }
  .about p:last-child { font-size: 1.15rem; }

  .waitlist p { font-size: 1rem; }
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }
  .waitlist-form input[type="email"] {
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem;
    font-size: 1rem; /* >=16px prevents iOS zoom on focus */
  }
  .waitlist-form button {
    width: 100%;
    padding: 0.7rem 1.25rem;
  }

  footer { padding: 2.5rem 0; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

/* Small mobile (≤380px) — iPhone SE and similar */
@media (max-width: 380px) {
  .hero h1, section h2 { font-size: 1.75rem; }
  .logo { font-size: 1.05rem; letter-spacing: 0.12em; }
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 1rem 3.5rem; }
}

/* Landscape mobile — keep hero short, hide scroll cue (no room) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 2rem 1.5rem; }
  .hero-art { max-width: 220px; margin-bottom: 1rem; }
  .scroll-cue { display: none; }
}
