/* Messy website — shared styles. Match the in-app palette and type
   choices: Work Sans for UI, Zilla Slab for display, soft cream
   background and warm earth text. Plain readable prose for the
   policy page; future marketing pages can build on these tokens. */

@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&family=Zilla+Slab:wght@400;500;600;700&display=swap");

:root {
  --bg-base:        #f6efe2;
  --bg-elevated:    #ffffff;
  --text-primary:   #2a2520;
  --text-secondary: #635b50;
  --text-tertiary:  #9c9285;
  --accent:         #c2553a;
  --rule:           #e8dfd0;
  --max-prose:      640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

main.prose header {
  margin-bottom: 32px;
}

p.brand {
  margin: 0 0 32px;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

p.brand a {
  color: var(--text-primary);
  text-decoration: none;
}

h1 {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
}

h2 {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}

p.meta {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 8px 0 0;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
}

ul li {
  margin-bottom: 8px;
}

ul li strong {
  color: var(--text-primary);
}

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

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  color: var(--text-primary);
  font-style: italic;
}

footer {
  max-width: var(--max-prose);
  margin: 56px auto 32px;
  padding: 24px 24px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-tertiary);
}

footer p {
  margin: 0;
  color: var(--text-tertiary);
}

footer a {
  color: var(--text-tertiary);
}

/* Landing page — mirrors the in-app empty state. Hero illustration
   centered, "Messy" wordmark in display Zilla Slab, tagline below,
   short lede paragraph. The visual proportions follow the iOS
   FirstRunView so the hand-off from web → App Store → first launch
   reads as the same product. */

body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.landing main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 16px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

body.landing .hero {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  /* Source PNG is 1280px wide so the illustration stays crisp on
     retina desktop displays where the rendered size can climb to
     480px @ 2x = 960px effective. The PNG carries ~80px of
     transparent margin below the camera artwork; pull the wordmark
     up into that empty region instead of re-cropping the asset.
     Same trick the iOS FirstRunView uses. */
  margin-bottom: -80px;
}

body.landing h1.wordmark {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 53px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1;
  color: var(--text-primary);
}

body.landing p.tagline {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 8px 0 0;
  color: var(--text-secondary);
}

body.landing p.lede {
  margin: 32px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

body.landing footer {
  border-top: none;
  text-align: center;
  margin: 0 auto 32px;
  padding: 16px 24px 0;
  font-size: 14px;
}

body.landing footer p {
  margin: 4px 0;
}

body.landing footer p.attribution {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base:        #1a1612;
    --bg-elevated:    #221d18;
    --text-primary:   #f0e8da;
    --text-secondary: #b8ad9c;
    --text-tertiary:  #8a8175;
    --accent:         #e8826a;
    --rule:           #2c2620;
  }
}
