/*
 * The site's whole stylesheet. One file, no framework, no fonts fetched from anybody:
 * three pages that exist because the app points at them do not need a build pipeline, and a
 * privacy policy that loaded a third-party font would be contradicting itself in its own
 * <head>.
 *
 * The palette is the app's — Ember on Roast (ui/theme/Color.kt) — so somebody arriving from
 * the Play listing recognises where they are.
 */

:root {
  --ember: #9B4419;
  --ember-light: #FFB599;
  --roast-ink: #221A15;
  --paper: #FFF8F5;
  --muted: #6B5A50;
  --rule: #E8D9D0;
  --surface: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ember: #FFB599;
    --ember-light: #FFDBCC;
    --roast-ink: #F2E4DC;
    --paper: #140C08;
    --muted: #C9B5A9;
    --rule: #3D332C;
    --surface: #1A120D;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--paper);
  color: var(--roast-ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, header { max-width: 44rem; margin: 0 auto; }

header { padding: 48px 0 8px; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--roast-ink);
}

.wordmark span { color: var(--ember); }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 24px 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 28px 0 6px; }

p, ul, ol { margin: 12px 0; }
li { margin: 6px 0; }

a { color: var(--ember); text-underline-offset: 2px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
  /* A feed URL is long and has nowhere to break; letting it overflow the page is worse. */
  overflow-wrap: anywhere;
}

.lede { font-size: 1.15rem; color: var(--muted); }

.meta { color: var(--muted); font-size: 0.92rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 28px 0;
}

.card h2 { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--ember);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 8px 8px 8px 0;
}

.button.secondary {
  background: transparent;
  color: var(--ember);
  border: 1.5px solid var(--ember);
}

footer {
  max-width: 44rem;
  margin: 64px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

footer a { color: var(--muted); }
