:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #4d4d4d;
  --subtle: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --surface: #fafafa;
  --blue: #0072f5;
  --blue-bg: #ebf5ff;
  --blue-text: #0068d6;
  --shadow-card: rgba(0,0,0,0.08) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 2px, rgba(0,0,0,0.04) 0 8px 8px -8px, #fafafa 0 0 0 1px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "liga" 1;
}

a { color: inherit; text-decoration: none; }
code, time { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.32px; }
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: #fff; background: #171717; border-radius: 7px; font-family: 'Geist Mono', monospace; font-size: 14px;
}
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { text-align: center; padding: clamp(72px, 12vw, 132px) 0 64px; }
.hero-badge {
  display: inline-flex; align-items: center; border-radius: 9999px; padding: 6px 12px;
  color: var(--blue-text); background: var(--blue-bg); font-size: 12px; font-weight: 500;
}
.hero h1 {
  max-width: 840px; margin: 18px auto 0; font-size: clamp(42px, 7vw, 78px); line-height: .96;
  letter-spacing: clamp(-3.4px, -0.06em, -1.8px); font-weight: 600;
}
.hero-copy { max-width: 760px; margin: 22px auto 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero-copy code { background: var(--surface); padding: 2px 6px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.primary { background: var(--text); color: #fff; }
.secondary { background: #fff; box-shadow: rgb(235,235,235) 0 0 0 1px; }

.toolbar {
  display: grid; grid-template-columns: 1fr 220px; gap: 12px; padding: 16px; border-radius: 12px; box-shadow: var(--shadow-card); margin-bottom: 42px;
}
.search-box { display: grid; gap: 8px; color: var(--subtle); font-size: 12px; font-weight: 500; }
.search-box span { text-transform: uppercase; letter-spacing: .06em; font-family: 'Geist Mono', monospace; }
input, select { width: 100%; height: 42px; border: 0; outline: 0; border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; box-shadow: 0 0 0 1px var(--line); }
input:focus, select:focus, .button:focus-visible, a:focus-visible { outline: 2px solid hsla(212, 100%, 48%, 1); outline-offset: 2px; }

.section-heading { margin: 0 0 22px; }
.eyebrow { margin: 0 0 6px; color: var(--subtle); font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.6px; }

.feed-list { display: grid; gap: 16px; }
.card { display: grid; gap: 14px; padding: 22px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); }
.card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.card h3 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.96px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--subtle); font-size: 13px; }
.pill { display: inline-flex; align-items: center; border-radius: 9999px; padding: 3px 9px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--muted); }
.summary { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { color: var(--blue-text); background: var(--blue-bg); border-radius: 9999px; padding: 4px 9px; font-size: 12px; font-weight: 500; }
.card a.source-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.archive-section { padding: 72px 0; }
.archive-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.archive-card { padding: 18px; border-radius: 10px; box-shadow: var(--shadow-card); background: #fff; }
.archive-card strong { display: block; font-size: 22px; letter-spacing: -0.8px; }
.archive-card span { color: var(--muted); font-size: 14px; }
.empty-state { padding: 28px; border-radius: 12px; text-align: center; color: var(--muted); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 4vw, 48px); color: var(--subtle); font-size: 13px; box-shadow: 0 -1px 0 var(--line); }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .archive-list { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .card-top { flex-direction: column; }
}
