/* Me for Life — coming-soon page.
   Warm, book-like, calm: cream paper, ink text, gold accents —
   echoing the memory books this product grew from.
   Type system: Fraunces (display serif) for the brand and headings,
   Inter (humanist sans) for body and UI. Both self-hosted, OFL 1.1
   (see fonts/LICENSE.md) — no third-party font request. */

/* ---- Fonts (self-hosted, variable, latin + latin-ext) ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #faf6ef;
  --ink: #2b2620;
  --muted: #655d52;        /* darkened from #6f675c for a safer contrast on cream */
  --gold: #b08d3f;         /* accent for large headings/marks */
  --gold-strong: #8a6d28;  /* AA-safe gold for small text and button fill */
  --line: #e6ddcd;
  --card: #ffffff;
  --on-gold: #fffaf0;      /* text on a gold fill */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191613;
    --ink: #ece5d8;
    --muted: #b3a693;      /* lifted for contrast on the dark paper */
    --gold: #d2af63;
    --gold-strong: #d9b76a;
    --line: #332b24;
    --card: #211d18;
    --on-gold: #1a1611;    /* dark text reads better on the brighter dark-mode gold */
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px 32px;
}

/* ---- Hero ---- */
.hero { text-align: center; padding: 8px 0 44px; }

.monogram {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.brand {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-weight: 600;
  color: var(--gold-strong);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ---- Pillars ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.pillars article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  text-align: left;              /* rhythm: cards read left, hero stays centered */
}

.pillars h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}

.pillars p { font-size: 0.96rem; color: var(--muted); }
.pillars strong { color: var(--ink); font-weight: 600; }

/* ---- Honesty strip ---- */
.honesty {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
  padding: 24px 12px;
}

.honesty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}
.honesty em {
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ---- Signup ---- */
.notify {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 26px;
  margin: 32px 0;
}

.notify h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.notify-lead {
  max-width: 500px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1rem;
}

.notify-form {
  max-width: 500px;
  margin: 0 auto;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.notify-form input[type="email"],
.notify-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notify-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
}

.notify-form input[type="email"]::placeholder,
.notify-form textarea::placeholder { color: var(--muted); opacity: 0.8; }

.notify-form input[type="email"]:focus,
.notify-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.22);
}

.notify-form button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-gold);
  background: var(--gold-strong);
  border: 1px solid var(--gold-strong);
  border-radius: 9px;
  padding: 13px 26px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.notify-form button:hover { opacity: 0.92; }
.notify-form button:active { transform: translateY(1px); }
.notify-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.notify-form button:disabled { opacity: 0.55; cursor: default; }

/* Collapsible optional note — keeps the primary action (email + button) unmistakable */
.notify-note { margin-top: 12px; }

.notify-note summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-size: 0.86rem;
  color: var(--gold-strong);
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}
.notify-note summary::-webkit-details-marker { display: none; }
.notify-note summary:hover { opacity: 0.85; }
.notify-note summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.notify-note[open] summary { color: var(--muted); }

.notify-form textarea {
  width: 100%;
  margin-top: 12px;
  resize: vertical;
  line-height: 1.55;
}

.notify-status {
  min-height: 1.4em;
  margin-top: 16px;
  font-size: 0.94rem;
  color: var(--muted);
}

.notify-status.is-success { color: var(--gold-strong); font-weight: 600; }
.notify-status.is-error { color: #a83a24; font-weight: 600; }

.notify-fineprint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Topic tags (SEO-visible content) ---- */
.topics { text-align: center; padding: 20px 0 8px; }

.topics-title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.tags li {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 44px;
}

.footer em { font-family: var(--font-display); font-style: italic; }

/* Visually hidden but available to screen readers (labels, honeypot). */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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