:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-softer: #1c2128;
  --fg: #c9d1d9;
  --fg-bright: #f0f6fc;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #22d3ee;
  --accent-dim: #0891b2;
  --accent-2: #4ade80;
  --accent-3: #fbbf24;
  --danger: #f87171;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(34, 211, 238, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.site-header {
  background-color: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.site-title a {
  color: var(--fg-bright);
  border-bottom: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-title a::before {
  content: "~/";
  color: var(--accent);
}

.site-nav {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-block;
  margin-right: 1.25rem;
  padding: 0.25rem 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

main {
  min-height: 60vh;
  padding: 2.5rem 0;
}

.card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.hero h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--fg-bright);
}

.tagline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
  color: var(--fg-bright);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--accent-2);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.5rem;
}

.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  margin: 0;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.25rem;
  background-color: var(--bg-softer);
  border: 1px solid var(--border);
  color: var(--accent);
}

.tag:hover {
  background-color: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
}

.tag.warn {
  color: var(--accent-3);
  border-color: rgba(251, 191, 36, 0.3);
}

.tag.danger {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.3);
}

.code-block {
  font-family: var(--font-mono);
  background-color: var(--bg-softer);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  color: var(--accent-2);
}

.archive-notice {
  background-color: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-3);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .site-header .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .site-nav {
    margin-top: 0;
  }

  .hero h2 {
    font-size: 2.75rem;
  }
}
