@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --bg: #17120f;
  --ink: #eadfd5;
  --muted: rgba(234, 223, 213, .78);
  --line: rgba(234, 223, 213, .42);
  --button: #e7d9cc;
  --button-ink: #211a16;
  --shadow: rgba(0,0,0,.42);
  --hero-brightness: .72;
  --hero-image: url("assets/hero.png");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }

/* ── Hero layout ── */
.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--hero-image) center center / cover no-repeat;
  filter: brightness(var(--hero-brightness)) saturate(.78);
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13,10,8,.55) 0%, rgba(13,10,8,.2) 50%, rgba(13,10,8,.2) 100%),
    linear-gradient(180deg, rgba(13,10,8,.2) 0%, rgba(13,10,8,.08) 45%, rgba(13,10,8,.55) 100%);
}

/* ── Top bar ── */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3.3vw, 54px) clamp(24px, 4vw, 72px);
}

.monogram {
  color: var(--ink);
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4.1vw, 76px);
  font-weight: 400;
  line-height: .76;
  letter-spacing: -.11em;
  text-shadow: 0 6px 22px var(--shadow);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .36em;
  transition: opacity .25s ease, transform .25s ease;
}

.social:hover { opacity: .72; transform: translateY(-1px); }

.social svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* ── Content ── */
.content {
  width: min(1240px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 12.5svh 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(40px, 6vh, 100px);
  font-size: clamp(10px, .9vw, 15px);
  font-weight: 400;
  line-height: 2.08;
  letter-spacing: .46em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 8.7vw, 166px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.rule {
  width: 142px;
  height: 1px;
  margin: clamp(32px, 4vh, 70px) 0;
  background: var(--line);
}

.tagline {
  margin: 0;
  font-size: clamp(11px, 1vw, 17px);
  line-height: 2.05;
  letter-spacing: .42em;
  color: var(--muted);
}

/* ── Signup form ── */
.signup {
  width: min(720px, 100%);
  margin-top: clamp(48px, 7vh, 118px);
  padding: 18px 18px 20px;
  border: 1px solid rgba(234,223,213,.1);
  background: linear-gradient(180deg, rgba(14,11,9,.44), rgba(14,11,9,.68));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}

.signup h2 {
  margin: 0 0 20px;
  font-size: clamp(11px, .86vw, 14px);
  font-weight: 400;
  letter-spacing: .45em;
  color: var(--ink);
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 64px;
  border: 1px solid rgba(234,223,213,.5);
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 22px;
  color: var(--ink);
  background: rgba(10,8,7,.42);
  caret-color: var(--ink);
  letter-spacing: .05em;
}

.field input::placeholder {
  color: rgba(234,223,213,.56);
}

.field input:focus {
  box-shadow: inset 0 0 0 1px rgba(234,223,213,.36);
}

.field button {
  min-width: 200px;
  border: 0;
  padding: 0 28px;
  color: var(--button-ink);
  background: var(--button);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .32em;
  transition: transform .2s ease, filter .2s ease;
}

.field button:hover { filter: brightness(1.06); }
.field button:active { transform: translateY(1px); }
.field button[disabled] { cursor: wait; opacity: .65; }

.form-status {
  min-height: 24px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}

.form-status.success::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.form-status.error { color: #f2c8bf; }

/* ── Footer & controls ── */
footer {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: calc(100% - 170px);
  text-align: center;
  color: rgba(234,223,213,.78);
  font-size: 10px;
  letter-spacing: .34em;
  white-space: nowrap;
}

.theme-toggle,
.scroll-cue {
  position: absolute;
  bottom: 30px;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(234,223,213,.38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(12,9,7,.28);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.theme-toggle {
  left: 34px;
  cursor: pointer;
}

.scroll-cue {
  right: 34px;
  font-size: 26px;
  font-weight: 300;
}

.hero.is-soft {
  --hero-brightness: .9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (portrait)
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content {
    width: min(680px, calc(100% - 40px));
  }

  h1 {
    font-size: clamp(52px, 10vw, 110px);
  }

  .signup {
    width: min(600px, 100%);
  }
}

@media (max-width: 768px) {
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(13,10,8,.35) 0%, rgba(13,10,8,.12) 40%, rgba(13,10,8,.6) 100%),
      rgba(13,10,8,.28);
  }

  .topbar {
    padding: 24px;
  }

  .content {
    width: calc(100% - 32px);
    padding-top: 14svh;
    padding-bottom: 110px;
  }

  .eyebrow {
    margin-bottom: clamp(30px, 5vh, 60px);
  }

  h1 {
    font-size: clamp(48px, 12vw, 90px);
    white-space: normal;
  }

  .rule {
    width: 100px;
  }

  .signup {
    margin-top: 50px;
  }

  footer {
    width: calc(100% - 100px);
    white-space: normal;
    line-height: 1.8;
  }

  .theme-toggle { left: 24px; }
  .scroll-cue { right: 24px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (portrait)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar {
    padding: 20px 16px;
  }

  .monogram {
    font-size: 38px;
  }

  .social span {
    display: none;
  }

  .social svg {
    width: 26px;
    height: 26px;
  }

  .content {
    width: calc(100% - 24px);
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .eyebrow {
    margin-bottom: clamp(20px, 3vh, 40px);
    letter-spacing: .3em;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 72px);
    line-height: .85;
  }

  .rule {
    width: 80px;
    margin: 24px 0;
  }

  .tagline {
    max-width: 320px;
    letter-spacing: .22em;
    font-size: 10px;
  }

  .signup {
    width: 100%;
    padding: 14px;
    margin-top: 36px;
  }

  .signup h2 {
    font-size: 10px;
    letter-spacing: .35em;
  }

  .field {
    grid-template-columns: 1fr;
  }

  .field input,
  .field button {
    min-height: 54px;
  }

  .field button {
    width: 100%;
    min-width: 0;
  }

  footer {
    position: static;
    transform: none;
    width: calc(100% - 48px);
    margin: 24px auto 20px;
    font-size: 9px;
    letter-spacing: .25em;
  }

  .theme-toggle,
  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
