:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --text: #2b2420;
  --muted: #75695f;
  --accent: #805b49;
  --line: #e8e0d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1816;
    --surface: #26221f;
    --text: #f1ebe6;
    --muted: #a99d93;
    --accent: #d3ad93;
    --line: #3a3430;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

header.site .brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

header.site .lang {
  font-size: 14px;
}

main {
  padding-bottom: 48px;
}

h1 {
  margin: 24px 0 16px;
  font-size: 26px;
  line-height: 1.4;
}

h2 {
  margin: 36px 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 4px;
}

.date {
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* Landing page */

.hero {
  padding: 40px 0 8px;
  text-align: center;
}

.hero img {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero h1 {
  margin: 20px 0 4px;
  font-size: 32px;
}

.hero .tagline {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero .lead {
  max-width: 34em;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.features h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

footer.site {
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 8px;
}
