*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0e17;
  --bg-card: #141825;
  --bg-card-hover: #1a2030;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f0f2f7;
  --text-soft: #9ba3b8;
  --text-muted: #5e6780;
  --accent: #FFBF27;
  --blue: #4a6ad4;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: 'SF Mono', 'Monaco', 'Menlo', monospace;
  --max-w: 720px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0) 20px env(safe-area-inset-bottom, 24px);
}

header {
  max-width: var(--max-w);
  margin: 32px auto 28px;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lede {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 56ch;
}

main { max-width: var(--max-w); margin: 0 auto; }

.grid {
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.card:hover, .card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card:active {
  transform: scale(0.985);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 191, 39, 0.10);
  color: var(--accent);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.card-sub {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

footer {
  margin: 36px auto 24px;
  padding: 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-soft);
}

footer p + p { margin-top: 8px; }
footer .muted { color: var(--text-muted); }
footer code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

footer strong { color: var(--text); }
