@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #0f1112;
  --panel-border: #1f2226;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --accent: #22d896;
  --accent-strong: #2ee9a3;
  --accent-soft: rgba(34, 216, 150, 0.12);
  --accent-border: rgba(34, 216, 150, 0.32);
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-note: 12px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 8px 0 28px;
}

.site-header a {
  display: inline-block;
  line-height: 0;
}

.site-header img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
}

h1,
h2 {
  color: var(--text);
}

h1 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  margin: 32px 0 12px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p,
li {
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 24px;
}

ul {
  padding-left: 20px;
  margin: 12px 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-note);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
}

code {
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

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

@media (max-width: 640px) {
  .shell {
    padding: 20px 16px 48px;
  }

  .site-header {
    padding: 4px 0 20px;
  }

  .site-header img {
    height: 28px;
  }

  h2 {
    margin-top: 24px;
  }
}
