/* Rerun website.
   Colours are the app's own: the warm light theme (LightColors, Color.kt) by default, the dark
   theme when the reader's system asks for it. System fonts only, so the site makes no
   third-party requests - the same promise the app makes. Base size is deliberately large:
   the people reading this are often tired, or reading for someone else on a phone. */

:root {
  --bg: #FFF8F3;
  --surface: #FFFFFF;
  --surface-2: #F7ECE1;
  --ink: #211A12;
  --ink-2: #51453A;
  --line: #E4D6C8;
  --accent: #835400;        /* LightColors.primary - 6.5:1 under white */
  --accent-fill: #E8A33D;   /* Amber, the seed */
  --on-accent-fill: #2A1A00;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1D1B19;
    --surface-2: #26221F;
    --ink: #F1E7DD;
    --ink-2: #C4B8AC;
    --line: #3A342F;
    --accent: #E8A33D;
    --accent-fill: #E8A33D;
    --on-accent-fill: #2A1A00;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.25rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 42rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); padding: 12px 16px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* Header - the way home is always visible (PRODUCT.md principle 7). */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: 72px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
@media (max-width: 559px) {
  header.top nav { width: 100%; }
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.35rem;
}
.brand img { width: 36px; height: 36px; }
header.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 1.05rem; }
header.top nav a { color: var(--ink-2); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--accent-fill); color: var(--on-accent-fill);
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
  border-radius: 999px;
}
.button:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.lede { font-size: 1.4rem; color: var(--ink-2); max-width: 34rem; }
.promise { margin-top: 20px; font-size: 1.05rem; color: var(--ink-2); }

/* A real screenshot of Today, light or dark to match the page. The border keeps the cream
   screen from merging into the cream page; the width cap keeps it from pushing the Play button
   off a phone screen. */
.shot { justify-self: center; width: 100%; max-width: 300px; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
}

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section.tint { background: var(--surface-2); }
.eyebrow {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.who { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.who li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; font-size: 1.1rem;
}

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px;
}
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.story p { font-size: 1.3rem; }
.story p:first-of-type::first-line { font-weight: 600; }

ul.plain { padding-left: 1.2em; }
ul.plain li { margin-bottom: 0.5em; }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 0.7em; padding-left: 0.2em; }

.never { list-style: none; padding: 0; }
.never li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.never li:last-child { border-bottom: 0; }
.never strong { display: block; }

.cta { text-align: center; }
.cta .button { margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 1rem; color: var(--ink-2); }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal .updated { color: var(--ink-2); font-size: 1rem; }
