/* ============================================================
   Dru — personal site
   Dark, quiet, matter-of-fact. No motion, no texture.
   Space Grotesk for text, Space Mono for labels.
   ============================================================ */

:root {
  --bg: #0b0b0b;
  --text: #e6e4df;
  --muted: #8f8c84;
  --accent: #e8541c;
  --line: #222120;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

/* ---------- header ---------- */

.top {
  margin-bottom: 4.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.intro {
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 32em;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent);
}

/* ---------- sections ---------- */

section {
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-right: 0.5rem;
}

.lead {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.lead p + p {
  margin-top: 1rem;
}

/* ---------- bullet lists ---------- */

.list {
  list-style: none;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.list li {
  position: relative;
  padding-left: 1.375rem;
}

.list li + li {
  margin-top: 0.875rem;
}

.list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.list strong {
  font-weight: 600;
}

/* ---------- links ---------- */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

/* ---------- personal ---------- */

.personal h2 {
  text-transform: lowercase;
}

/* ---------- contact ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  margin: 0.5rem 0 2rem;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent);
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  main {
    padding-top: 3.5rem;
  }

  .top {
    margin-bottom: 3.5rem;
  }
}

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