/* Aperture coming-soon — single-viewport, responsive, photographic */

/* ---------- Self-hosted fonts ---------- */

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

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

:root {
  --bg:        #1a1a19;   /* near-black grey, only a whisper of warmth */
  --bg-elev:   #222221;
  --umber:     #6b4a2b;
  --umber-dim: #3a2a1c;
  --umber-hi:  #8a5d36;
  --fg:        #ece6dc;
  --fg-mute:   #8a8278;
  --fg-dim:    #5a544c;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", Garamond, "Hoefler Text", "Times New Roman", Times, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --maxw:   560px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Body — warm dark grain background ---------- */

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Main centered column ---------- */

main {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Core content + decorative circular frame ---------- */

/* .core wraps the hero through the signup form. A thin off-white circle
   sits behind it as a quiet frame; the footer lives outside the circle. */
.core {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(236, 230, 220, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero-iris {
  width: clamp(96px, 16vw, 132px);
  height: auto;
  margin-bottom: 0.25rem;
  opacity: 0;
  animation: rise 900ms ease-out 100ms forwards;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--fg);
  opacity: 0;
  animation: rise 900ms ease-out 250ms forwards;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--fg-mute);
  margin: 0;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: rise 900ms ease-out 400ms forwards;
}

/* ---------- Body copy ---------- */

.body-copy {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1rem);
  line-height: 1.65;
  color: var(--fg);
  max-width: 48ch;
  margin: 0;
  opacity: 0;
  animation: rise 900ms ease-out 550ms forwards;
}

.body-copy .closer {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1em;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
}

/* ---------- CTA + form ---------- */

.cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0;
  animation: rise 900ms ease-out 700ms forwards;
}

.cta-prompt {
  font-size: 0.95rem;
  color: var(--fg);
  margin: 0;
  max-width: 42ch;
}

.cta-prompt strong {
  font-weight: 600;
  color: var(--fg);
}

.signup-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-field {
  flex: 1 1 220px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--fg-dim);
  border-bottom: 1px solid var(--fg-mute);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  color: var(--fg);
  font: 400 0.95rem/1.2 var(--sans);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.email-field::placeholder { color: var(--fg-dim); }

.email-field:hover { border-color: var(--fg-mute); }

.email-field:focus {
  outline: none;
  border-color: var(--umber-hi);
  background-color: rgba(107, 74, 43, 0.06);
  box-shadow: 0 0 0 2px rgba(138, 93, 54, 0.25);
}

.submit-btn {
  flex: 0 0 auto;
  background: var(--umber);
  color: var(--fg);
  border: 1px solid var(--umber);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font: 500 0.95rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--umber-hi);
  border-color: var(--umber-hi);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--umber-hi);
  outline-offset: 2px;
}

.submit-btn:active:not(:disabled) { transform: translateY(1px); }

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Honeypot — visually hidden but accessible-tree hidden too */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status (success / error) */
.form-status {
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--fg-mute);
  margin: 0;
}

.form-status[data-state="success"] {
  color: var(--umber-hi);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.form-status[data-state="error"] { color: #c98b6b; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 900ms ease-out 850ms forwards;
}

.footer-mark {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--fg-mute);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 44ch;
  letter-spacing: 0.01em;
}

.footer-legal sup {
  font-size: 0.7em;
  vertical-align: super;
}

.footer-legal a {
  color: var(--fg-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--umber-dim);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-legal a:hover {
  color: var(--fg);
  border-bottom-color: var(--umber-hi);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--umber-hi);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ---------- Privacy page ---------- */

.privacy-page {
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
  gap: 0;
}

.privacy-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.35rem;
  color: var(--fg);
}

.privacy-page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1.4rem 0 0.3rem;
  color: var(--fg);
}

.privacy-page p,
.privacy-page li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg);
  margin: 0.4rem 0;
}

.privacy-page ul { padding-left: 1.25rem; }

.privacy-page a {
  color: var(--umber-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--umber-dim);
}

.privacy-page a:hover { border-bottom-color: var(--umber-hi); }

.privacy-page .back-link {
  font-size: 0.85rem;
  color: var(--fg-mute);
  margin-top: 2rem;
  display: inline-block;
}

/* ---------- Animations ---------- */

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

/* ---------- Mobile refinements ---------- */

@media (max-width: 480px) {
  body { padding: 1.25rem; }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .email-field {
    /* The base rule is flex: 1 1 220px — in a row that means a
       220px min width. In the mobile column override, the same rule
       reads 220px as a min HEIGHT, so the field blows up vertically.
       Override to natural height. */
    flex: 0 0 auto;
    width: 100%;
  }

  .submit-btn { width: 100%; }

  /* Circle frame on mobile: keep the desktop behavior (circle diameter
     tracks the core's height, framing iris-to-button). On narrow phones
     this extends horizontally beyond the viewport, which is the intended
     bleed effect — the edges of the circle get cropped by the browser
     chrome, which reads as "the shape continues off-screen" rather than
     as a sizing bug. */
}
