/* The colors of the logo: teal, cream and coral; light and dark. */
:root {
  --bg: #fbfaf7;
  --fg: #1f2933;
  --muted: #5b6770;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e3f3ef;
  --on-brand: #ffffff;
  --accent: #f97362;
  --card: #ffffff;
  --line: #d6e3df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1918;
    --fg: #e6eeec;
    --muted: #a2b3ae;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --brand-soft: #12302c;
    --on-brand: #0f1918;
    --card: #16221f;
    --line: #25433d;
  }
}

html { font-size: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}
a { color: var(--brand); }
h1 { font-size: 2rem; line-height: 1.2; color: var(--brand-dark); margin: 0.5rem 0 0; }
h2 { font-size: 1.3rem; color: var(--brand-dark); margin-top: 2.5rem; }
li { margin: 0.35rem 0; }
code { font-size: 0.9em; background: var(--brand-soft); padding: 0 0.3rem; border-radius: 0.25rem; }

/* Header: languages, logo and name, tagline. */
.lang { text-align: right; font-size: 0.9rem; }
.lang a, .lang strong { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 1rem; }
.lang strong { background: var(--brand-soft); color: var(--brand-dark); }
.logo { vertical-align: middle; margin-right: 0.4rem; }
.tagline { margin-top: 0.25rem; color: var(--muted); font-size: 1.15rem; font-style: italic; }

/* Opening the message, and the note for readers. */
#open {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.25rem 1.25rem 0.5rem;
  margin: 1.5rem 0;
}
#open h2 { margin-top: 1rem; }
.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* Small screens: the name stays on one line next to the logo. */
@media (max-width: 30rem) {
  h1 { font-size: 1.5rem; }
  .logo { width: 44px; height: 44px; }
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
