/* One stylesheet for the whole public site. Light and dark come from the
   reader's own setting; nothing here depends on JavaScript. */

:root {
  --ink: #1c1b19;
  --ink-soft: #56524c;
  --paper: #fbf9f5;
  --rule: #e3ded4;
  --link: #8a4b1e;
  --bar: #f3efe7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece8e1;
    --ink-soft: #a9a29a;
    --paper: #1a1917;
    --rule: #33302c;
    --link: #e0a06a;
    --bar: #222120;
  }
}

* {
  box-sizing: border-box;
}

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

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

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--bar);
  border-bottom: 1px solid var(--rule);
}

.home {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.languages {
  display: flex;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.languages .current {
  color: var(--ink-soft);
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.tagline {
  color: var(--ink-soft);
}

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

a:hover {
  text-decoration: none;
}

strong {
  font-weight: 600;
}

footer {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 26rem) {
  body {
    font-size: 16px;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }
}
