/*
  The one stylesheet for the pages in site/. Colours are the app's own chrome
  from docs/DESIGN.md: the same background, surface, text and accent-as-text
  values, so the pages read as PepTimer's and keep the contrast measured there.
  They follow the browser's scheme, because they are documents in a browser.
  Nothing here loads from another origin; see datenschutz.html#diese-website.
*/

:root {
  --paper: #fdf8f1;
  --surface: #f1ebe2;
  --ink: #1a2239;
  --ink-quiet: #5f6472;
  --rule: #ddd5c9;
  --accent: #b8300b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141d30;
    --surface: #222e45;
    --ink: #fdf8f1;
    --ink-quiet: #bdc6d6;
    --rule: #3c4961;
    --accent: #ff8a68;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}

a {
  color: var(--accent);
}

.top {
  border-bottom: 1px solid var(--rule);
}

.wrap,
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

main {
  padding-block: 2rem 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.25rem;
}

.lede,
.quiet {
  color: var(--ink-quiet);
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 0.25rem 1.25rem;
  margin: 1.5rem 0;
}

.lang {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.hero {
  text-align: center;
}

.hero img {
  width: 120px;
  height: 120px;
  border-radius: 27px;
}

/* w.html: a shared workout, and the ways to the app. */
.workout {
  text-align: left;
  padding-block: 0.5rem 1rem;
}

.workout h2 {
  margin-top: 0.75rem;
}

.workout ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button {
  background: var(--accent);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
}

.quiet-button {
  background: var(--surface);
  color: var(--ink);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-quiet);
  font-size: 0.95rem;
}
