/* Spotneck's public pages (spotneck.zoltanberki.com): the landing page, Support, Deleting your
   account, Terms and the Privacy Policy (privacy.html, generated from docs/privacy.md by
   scripts/build-site.py). One stylesheet, system fonts, nothing fetched, no script: these URLs sit in
   the store listings and have to stay up for as long as the app is on sale.

   The app's own paper: cream #F5F4EF by day, #1E1610 by night, ink in the giraffe's outline brown. */

:root {
  --bg: #F5F4EF;
  --sheet: #FFFFFF;
  --ink: #2B1D14;
  --ink-soft: #5E4A3C;
  --faint: #806E60;
  --line: rgba(74, 42, 26, .14);
  --link: #9A4A0E;
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1610;
    --sheet: #2A1F17;
    --ink: #F5F4EF;
    --ink-soft: #D9CFC4;
    --faint: #A8998B;
    --line: rgba(245, 244, 239, .12);
    --link: #F7C46A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin: 2.5rem auto 4rem;
  padding: 2.25rem 2.25rem 1.75rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -36px rgba(74, 42, 26, .45);
}

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .9rem; letter-spacing: -0.02em; }
h2 {
  font-size: 1.15rem;
  margin: 2rem 0 .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
h3 { font-size: 1rem; margin: 1.5rem 0 .4rem; }

p, li { margin: 0 0 .8rem; color: var(--ink-soft); }
ul, ol { padding-left: 1.3rem; }
b, strong { color: var(--ink); }
code { font-size: .9em; background: var(--line); padding: .05em .3em; border-radius: 4px; overflow-wrap: anywhere; }

.lede { font-size: 1.1rem; }
.effective { font-size: .9rem; color: var(--faint); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }

.crumb { margin: 0 0 1.5rem; }
.crumb a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; text-decoration: none; color: var(--ink);
}
.crumb img { width: 28px; height: 28px; border-radius: 7px; }

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
footer p { color: var(--faint); }

/* ---------- landing ---------- */
.hero { text-align: center; padding-top: .5rem; }
.hero img { width: min(200px, 50vw); height: auto; display: block; margin: 0 auto 1rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: .4rem; }
.hero .lede { max-width: 30rem; margin: 0 auto 1.2rem; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.stores li { margin: 0; }
.stores a { font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { margin: 0; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; padding: 1.75rem 1.25rem 2.5rem; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
th { color: var(--ink); }
