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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #0d0d0d;
  --fg:        #f0ede8;
  --muted:     #888;
  --accent:    #e8ff3e;   /* single pop of colour */
  --border:    rgba(240, 237, 232, 0.12);
  --card-bg:   #161616;
  --card-hover:#1e1e1e;
  --radius:    6px;
  --font:      'Space Grotesk', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 6rem);
  gap: clamp(3rem, 8vw, 6rem);
}

a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */
header { max-width: 48rem; }

.wordmark {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* the dot at the end doubles as a favicon-style accent */
.wordmark::after {
  content: '.';
  color: var(--accent);
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  font-weight: 400;
}

/* ── Main ───────────────────────────────────────────────── */
main { flex: 1; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── About ──────────────────────────────────────────────── */
.section-label + p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--fg);
  line-height: 1.7;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1px;              /* gap = border-colour strip between cards */
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  display: block;
  transition: background 0.15s ease;
  position: relative;
}

.card:hover,
.card:focus-visible {
  background: var(--card-hover);
}

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

.card-inner {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.card-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-top: 0.25rem;
}

.card-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 1rem;
  display: inline-block;
  transition: transform 0.15s ease;
}

.card:hover .card-arrow { transform: translate(3px, -3px); }

/* In-progress card: slightly dimmed */
.card--wip .card-title { opacity: 0.75; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s;
}

footer a:hover { border-color: var(--accent); }
