:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --card: #f5f5f5;
  --border: #e6e6e6;
  --accent: #0a0a0a;
  --inverted-bg: #0a0a0a;
  --inverted-fg: #fafafa;
  --focus: 2px dashed currentColor;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f3f3f3;
  --muted: #b5b5b5;
  --card: #121212;
  --border: #1f1f1f;
  --accent: #f3f3f3;
  --inverted-bg: #fafafa;
  --inverted-fg: #0a0a0a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; margin-top: 48px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-name {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h1, h2 {
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
}
h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
}
.lede {
  color: var(--muted);
  margin: 0 0 24px;
}

.hero {
  padding: 40px 0 8px;
}
.amp { letter-spacing: 2px; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card.invert {
  background: var(--inverted-bg);
  color: var(--inverted-fg);
  border-color: transparent;
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.card .tags li {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  opacity: 0.9;
}

.contact {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.ghost { background: transparent; color: var(--fg); }
.button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.site-nav .button .icon { font-size: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}