/* DSM Enterprises — the umbrella site. Hand-written: four documents, no framework, no build step,
 * and deliberately NO JavaScript — a site that says "we don't track you" should not be able to.
 * Palette and type are the app's own tokens (src/frontend/src/index.css), so the site looks like
 * the product. Copy is written from Docs/VOICE.md; the owner authors the lines. */

:root {
  /* surfaces — from the app */
  --foam: #faf7f2;
  --cream: #f1e9dc;
  --parchment: #f7f1e8;
  --porcelain: #fffdfa;

  /* coffee browns — from the app */
  --latte: #c8a27a;
  --mocha: #6f4e37;
  --roast: #4a2f23;
  --espresso: #2b1d16;

  /* signal — from the app */
  --fresh: #7fa65a;
  --water: #5d7688;

  /* the ritual room: the app's deepest surface, and the App Store icon's ground */
  --ground: #2b1d16;
  --ground-text: #faf7f2;
  --ground-accent: #c8a27a;

  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foam: #241a14;
    --cream: #2e231b;
    --parchment: #2a2019;
    --porcelain: #32261f;
    --latte: #d4a87e;
    --mocha: #c8a27a;
    --roast: #e8d8c4;
    --espresso: #faf7f2;
    --fresh: #9bc56b;
    --water: #8fa8bb;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--foam);
  color: var(--espresso);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  /* the app's 16px floor exists because iOS force-zooms anything smaller — same rule here */
  -webkit-font-smoothing: antialiased;
}

/* ── the hero: the mark on the ritual ground, which is also the app icon's design ── */

.hero {
  background: var(--ground);
  color: var(--ground-text);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}

.hero img {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 1.75rem;
}

.hero .kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ground-accent);
}

.hero h1 {
  margin: 0 auto 0.9rem;
  max-width: 20ch;
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 0 auto;
  max-width: 46ch;
  color: #e6d9c8;
  font-size: 1.06rem;
}

/* ── page body ── */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

main > h2:first-child { margin-top: 0; }

h2 {
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--roast);
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.7rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--roast);
  margin: 1.7rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

a { color: var(--mocha); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--roast); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--latte); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--cream);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* the short-version card: the one thing a reader should not miss */
.short {
  background: var(--cream);
  border-left: 3px solid var(--latte);
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.35rem;
  margin: 0 0 2.4rem;
}
.short p:last-child { margin-bottom: 0; }

/* claim rows on the landing page — the app's own store phrasing (MARKETING_ROLLOUT §1) */
.claims { list-style: none; padding: 0; margin: 0 0 2rem; }
.claims li {
  background: var(--porcelain);
  border: 1px solid var(--cream);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.7rem;
}
.claims .say { display: block; font-weight: 600; color: var(--roast); }
.claims .why { display: block; margin-top: 0.25rem; font-size: 0.94rem; color: var(--mocha); }

/* the app panel on the umbrella home */
.product {
  background: var(--porcelain);
  border: 1px solid var(--cream);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  margin: 0 0 2rem;
}
.product h2 { margin-top: 0; }
.product .tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 0.35rem;
}

.btn {
  display: inline-block;
  background: var(--espresso);
  color: var(--foam);
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
}
.btn:hover { background: var(--roast); color: var(--foam); }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--latte); color: var(--ground); }
  .btn:hover { background: var(--roast); color: var(--ground); }
}

.btn + .btn { margin-left: 0.6rem; }

/* ── header + footer ── */

.top {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.top img { width: 22px; height: 22px; }
.top a { text-decoration: none; color: var(--roast); font-weight: 600; }
.top .sep { color: var(--latte); }
.top .here { color: var(--mocha); font-weight: 500; }

footer {
  border-top: 1px solid var(--cream);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--mocha);
}
footer nav { margin-bottom: 0.8rem; }
footer nav a { margin: 0 0.6rem; }
footer .fine { max-width: 60ch; margin: 0.6rem auto 0; font-size: 0.84rem; opacity: 0.85; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .btn + .btn { margin-left: 0; margin-top: 0.6rem; }
}
