/* The site uses the app's tokens (DESIGN.md section 2): dark surface, #F2F2F2 / #8E8E93 text,
   hairline borders, Inter then system-ui. No web font is downloaded; no script, no tracker. */
:root {
  --surface: #141416;
  --surface-raised: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.08);
  --text-primary: #f2f2f2;
  --text-secondary: #8e8e93;
  --accent-guide: #ff8c1a;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --surface: #fafafa;
    --surface-raised: rgba(0, 0, 0, 0.04);
    --hairline: rgba(0, 0, 0, 0.08);
    --text-primary: #1c1c1e;
    --text-secondary: #6e6e73;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-guide);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent-guide);
  outline-offset: 2px;
  border-radius: 4px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.langs ul,
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
}

.langs [aria-current] {
  color: var(--text-secondary);
}

main {
  padding-top: 40px;
  padding-bottom: 40px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}

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

p,
main ul {
  margin: 0 0 12px;
}

main ul {
  list-style: disc;
  padding-left: 22px;
}

li + li {
  margin-top: 4px;
}

.meta,
.lead {
  color: var(--text-secondary);
}

.lead {
  font-size: 17px;
  margin-bottom: 24px;
}

.meta {
  font-size: 13px;
}

.card {
  margin: 0 0 12px;
  padding: 16px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.card h2 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

footer {
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
}

footer a {
  color: var(--text-secondary);
}
