/* ═══════════════════════════════════════════
   Memoroam — marketing site
   ───────────────────────────────────────────
   Deliberately light-only. The app's cream ground is its signature, and a
   marketing page that flips to dark loses the one thing a visitor is meant
   to recognise later. Tokens mirror css/variables.css in the app so the two
   never drift apart.

   GOLD IS CEREMONIAL, NOT FUNCTIONAL — same rule as the app. Gold marks a
   moment (rules, the wordmark, a single accent) and never carries meaning
   on its own. --accent measures 2.4 on cream and must never hold body text;
   --accent-deep is the readable one at 4.8.
   ═══════════════════════════════════════════ */

:root {
  --bg:          #F0EBE3;
  --card:        #FDFAF7;
  --text:        #1C1713;
  --muted:       #8A7D72;
  --muted-strong:#6E6256;
  --accent:      #C68A3A;
  --accent-deep: #8F5E2E;
  --gold-soft:   #E8B871;
  --accent-wash: rgba(198, 138, 58, .10);
  --rule:        #DCD3C7;

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  padding: 0 24px;
}

/* ── Header ── */

.site-head {
  max-width: 62rem;
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.head-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ── Hero ── */

main { max-width: 62rem; margin: 0 auto; }

.hero {
  padding: 92px 0 84px;
  max-width: 40rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin: 0 0 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--muted-strong);
  margin: 0 0 30px;
  text-wrap: pretty;
}

.hero-status {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: inline-block;
}

/* ── Features ── */

.features {
  display: grid;
  /* min(19rem, 100%) not a bare 19rem: a bare minimum track cannot shrink below
     itself, so on a viewport narrower than the track the grid overflows and the
     whole page scrolls sideways. The min() clamps the track to the container. */
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.feature {
  background: var(--bg);
  padding: 40px 34px 44px;
}

.feature h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 14px;
  text-wrap: balance;
}

.feature p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.68;
  text-wrap: pretty;
}

/* ── Closing ── */

.closing {
  padding: 88px 0 96px;
  max-width: 38rem;
}

.closing h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 20px;
  text-wrap: balance;
}

.closing p {
  color: var(--muted-strong);
  margin: 0 0 26px;
  text-wrap: pretty;
}

.contact-link {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
}

.contact-link:hover,
.contact-link:focus-visible { border-bottom-color: var(--accent-deep); }

/* ── Footer ── */

.site-foot {
  max-width: 62rem;
  margin: 0 auto;
  padding: 40px 0 64px;
  border-top: 1px solid var(--rule);
}

.foot-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.foot-legal,
.foot-meta {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 44rem;
}

.foot-meta { margin-bottom: 0; }

/* Company number reads as a reference code, not prose. Tabular figures so the
   digits sit evenly. */
.mono-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ── Document pages (delete-account, and later privacy / terms) ── */

.doc {
  max-width: 40rem;
  padding: 0 0 96px;
  border-top: 1px solid var(--rule);
}

.doc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 44px 0 14px;
  text-wrap: balance;
}

.doc p { margin: 0 0 16px; color: var(--muted-strong); text-wrap: pretty; }

.steps, .plain {
  margin: 0 0 18px;
  padding-left: 1.3em;
  color: var(--muted-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--accent-deep); }

/* Deletion is irreversible, so the warning gets a tinted ground rather than
   being another grey paragraph the eye slides past. */
.warn {
  background: var(--accent-wash);
  padding: 16px 18px;
  margin: 0 0 16px;
  color: var(--text) !important;
  font-size: 0.97rem;
}

/* ── Focus + motion ── */

a:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

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

@media (max-width: 40rem) {
  body { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .feature { padding: 32px 24px 36px; }
  .closing { padding: 64px 0 72px; }
}
