/* Zleppie Étoile — landing page
   Palette: cream, off-white, espresso, warm brown. No external dependencies. */

:root {
  --cream: #f5f0e8;
  --off-white: #faf7f1;
  --linen: #ece4d6;
  --espresso: #3b2d24;
  --warm-brown: #6f5843;
  --soft-brown: #a08b74;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  font-family: var(--serif);
  color: var(--espresso);
  background-color: var(--cream);
  /* Soft warm-paper grain: inline SVG fractal noise, no visible repeat */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.263 0 0 0 0 0.204 0 0 0 0 0.157 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23p)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: var(--warm-brown); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--warm-brown);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(59, 45, 36, 0.08);
}

.wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--espresso);
}
.wordmark em { font-style: italic; color: var(--warm-brown); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-line {
  width: 26px;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--off-white);
  border-bottom: 1px solid rgba(59, 45, 36, 0.1);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 0.5rem 0; }
.site-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: var(--espresso);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--warm-brown); }
.site-nav .nav-cta { font-style: italic; color: var(--warm-brown); }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
}

/* ---------- Buttons & shared ---------- */

.button {
  display: inline-block;
  padding: 0.95rem 2rem;
  background: var(--espresso);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--espresso);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover { background: var(--warm-brown); border-color: var(--warm-brown); }
.button:disabled { opacity: 0.6; cursor: default; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-brown);
  margin-bottom: 0.9rem;
}

h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.15rem; font-style: italic; margin-bottom: 0.5rem; color: var(--warm-brown); }

.section { padding: 4.5rem 1.25rem; }
.section-narrow { max-width: 40rem; margin-inline: auto; }
.section-wide { max-width: 64rem; margin-inline: auto; }
.section p + p { margin-top: 1rem; }
.section-tinted { background: var(--linen); }

.microcopy {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--warm-brown);
  margin-top: 0.85rem;
}

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

.hero { display: flex; flex-direction: column; }
.hero-media img {
  width: 100%;
  height: 52vh;
  min-height: 320px;
  object-fit: cover;
}
.hero-copy {
  padding: 2.75rem 1.25rem 4rem;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.hero-copy .subhead {
  margin: 1.25rem 0 2rem;
  font-size: 1.15rem;
  color: var(--warm-brown);
}

@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: stretch; min-height: 82vh; }
  .hero-media { flex: 1.15; display: flex; flex-direction: column; }
  .hero-media img { flex: 1; height: auto; min-height: 0; }
  .hero-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 3rem 4rem;
  }
}

/* ---------- Approach ---------- */

.approach-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.75rem;
}
@media (min-width: 720px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.section-media { margin-top: 3rem; }
.section-media img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: 2px;
}

/* ---------- Curated release ---------- */

.release-layout { display: grid; gap: 2.25rem; }
.release-media img { border-radius: 2px; }
.release-copy .button { margin-top: 1.75rem; }

@media (min-width: 860px) {
  .release-layout { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4rem; }
}

/* ---------- Signup ---------- */

.section-signup {
  position: relative;
  overflow: hidden;
  padding-block: 5.5rem;
}
.signup-backdrop {
  position: absolute;
  inset: 0;
}
.signup-backdrop img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.section-signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(245, 240, 232, 0.75), rgba(245, 240, 232, 0.9));
}
.signup-inner {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

#signup-form { margin-top: 1.9rem; text-align: left; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
#signup-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-bottom: 0.45rem;
}
.field-row { display: flex; flex-direction: column; gap: 0.75rem; }
#signup-form input[type="email"] {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--espresso);
  background: var(--off-white);
  border: 1px solid rgba(59, 45, 36, 0.25);
  border-radius: 2px;
}
#signup-form input[type="email"]::placeholder { color: var(--soft-brown); }

@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  #signup-form input[type="email"] { flex: 1; }
  .field-row .button { white-space: nowrap; }
}

.form-status {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--espresso);
}
.form-status:empty { display: none; }
.form-status.notice {
  background: var(--off-white);
  border: 1px solid rgba(59, 45, 36, 0.2);
  border-left: 3px solid var(--warm-brown);
  padding: 0.8rem 1rem;
  border-radius: 2px;
}

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

.site-footer {
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  background: var(--espresso);
  color: var(--linen);
  font-size: 0.95rem;
}
.wordmark-small { font-size: 1.1rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.wordmark-small em { color: var(--soft-brown); }
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 1.4rem 0;
}
.footer-links a { color: var(--linen); }
.footer-disclosure {
  max-width: 34rem;
  margin: 0 auto 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--soft-brown);
}
.footer-fineprint {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--soft-brown);
}
