/* Daily Wisdom — public waitlist / landing page.
   Self-contained (independent of the app's app.css). Tokens from the design
   handoff in docs/design (waitlist). */

:root {
  --paper: #f5f2ec;
  --band: #f0ece3;
  --line: #e6e1d6;
  --underline: #d3ccbd;
  --ink: #1a1916;
  --body: #57534a;
  --muted: #a09a8c;
  --numeral: #c4bdae;
  --accent: #3a7a4e;
  --ok-bg: #eef4ee;
  --ok-line: #cfe0d3;
  --amber: #c9a23a;
  --slot: #ece7db;

  --serif: "Spectral", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* mono label used for eyebrows/kickers/captions */
.eyebrow, .kicker, .gallery__cap, .pill, .foot__note, .capture__note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 11px;
}

.wordmark { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); }
.wordmark--sm { font-size: 18px; }

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.pill { display: inline-flex; align-items: center; gap: 8px; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0 80px;
}
.eyebrow { margin: 0 0 18px; }
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  margin: 22px 0 0;
  max-width: 34ch;
}
.lede--center { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---- email capture ---- */
.capture {
  display: flex;
  gap: 10px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}
.capture--center { justify-content: center; }
.capture__email {
  flex: 1 1 240px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--underline);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.capture__email:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 25, 22, 0.08);
}
.capture__btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.capture__btn:hover { background: #000; }
.capture__btn:disabled { opacity: 0.6; cursor: default; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.capture__note { margin: 12px 0 0; }
.capture--center + .capture__note { text-align: center; }
.capture__note--err { color: #a5432f; }

.capture__done {
  margin: 24px 0 0;
  border: 1px solid var(--ok-line);
  background: var(--ok-bg);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  line-height: 1.4;
}
.closing .capture__done { max-width: 460px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---- hero media (framed object + shelf shadow) ---- */
.frame {
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.04));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.5);
}
.frame img { border-radius: 8px; width: 100%; }
.shelf {
  height: 22px;
  margin: 0 8%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0, 0, 0, 0.16), transparent 70%);
}

/* ---- how it works ---- */
.how {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* full-bleed band inside the centered wrap */
  margin: 0 -40px;
  padding: 72px 40px;
  text-align: center;
}
.kicker { margin: 0 0 40px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}
.step__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--numeral);
}
.step__t { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 10px 0 8px; }
.step__d { font-size: 15px; line-height: 1.5; color: var(--body); margin: 0; max-width: 30ch; margin-inline: auto; }

/* ---- gallery ---- */
.gallery { padding: 80px 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.gallery__col { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.tile {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--slot);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--wide img { aspect-ratio: 3 / 2; }
.gallery__col .tile img { aspect-ratio: 4 / 3; }
.gallery__cap { text-align: center; margin: 22px 0 0; }

/* ---- closing ---- */
.closing { max-width: 640px; margin: 0 auto; padding: 24px 0 88px; text-align: center; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 34px); margin: 0 0 8px; }

/* ---- footer ---- */
.foot {
  background: var(--band);
  border-top: 1px solid var(--line);
  margin: 0 -40px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================================
   Mobile
   ========================================================================= */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 48px;
  }
  .hero__media { order: -1; }         /* photo above the copy on mobile */
  .lede { max-width: none; }
  .how { margin: 0 -20px; padding: 48px 20px; }
  .how__grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { padding: 48px 0; }
  .gallery__grid { grid-template-columns: 1fr; }
  .capture__email { flex-basis: 100%; }
  .capture__btn { flex: 1 1 100%; }
  .foot { margin: 0 -20px; padding: 24px 20px; }
}
