:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #13131a;
  --border: #23232d;
  --text: #ececf1;
  --muted: #9a9aa8;
  --accent: #a78bfa;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgb(167 139 250 / 0.12), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main, footer {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.hero { padding: clamp(4rem, 14vw, 9rem) 0 clamp(3rem, 8vw, 5rem); }
.eyebrow { margin: 0 0 .5rem; color: var(--accent); font-weight: 500; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 4.75rem); line-height: 1.05; letter-spacing: -.03em; }
.lead { max-width: 36rem; margin: 1.25rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }

.links { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

h2 { margin: 0 0 1.5rem; font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px -12px rgb(167 139 250 / 0.35);
}
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.card p { margin: 0; }
.card > p:nth-of-type(1) { color: var(--muted); font-size: .95rem; }
.tags { margin-top: 1rem !important; color: var(--accent); font-size: .8rem; font-weight: 500; }
.actions { display: flex; gap: 1.25rem; margin-top: auto !important; padding-top: 1.25rem; font-size: .9rem; font-weight: 500; }
.actions a { text-decoration: none; border-bottom: 1px solid var(--border); }
.actions a:hover { border-color: var(--accent); color: var(--accent); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

footer { padding: 4rem 0 3rem; color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
