:root {
  --bg: #f7f6f4;
  --surface: #ffffff;
  --text: #1b1a18;
  --muted: #5f5b55;
  --faint: #8a857e;
  --line: #e3e0db;
  --accent: #b4500f;
  --accent-text: #ffffff;
  --radius: 3px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1b1a18;
    --text: #ebe8e3;
    --muted: #a6a19a;
    --faint: #78736c;
    --line: #2d2b28;
    --accent: #e2873f;
    --accent-text: #131211;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, p, ul { margin: 0; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* Intro */
.intro { margin-bottom: 56px; }
.intro h1 { font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.lede { margin-top: 6px; color: var(--muted); font-size: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 15px; }

/* Section labels */
section { margin-bottom: 48px; }
.label {
  margin-bottom: 12px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Featured card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.card h2 { font-size: 22px; line-height: 1.25; font-weight: 650; }
.card > p { color: var(--muted); }
.facts { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.facts li + li { margin-top: 2px; }
.card .stack { margin-top: 14px; }

.button {
  flex: none;
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Project lists */
.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.list h3 { font-size: 17px; font-weight: 600; }
.list h3 a { text-decoration: none; }
.list h3 a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.list p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.more { display: flex; gap: 16px; }

.stack { font: 13px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }

.all { margin-top: 16px; font-size: 15px; }

/* Footer */
.foot { padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* Phones */
@media (max-width: 520px) {
  .page { padding: 40px 16px 32px; }
  .intro { margin-bottom: 40px; }
  .intro h1 { font-size: 26px; }
  .lede { font-size: 17px; }
  section { margin-bottom: 40px; }
  .card { padding: 16px; }
  .card h2 { font-size: 20px; }
  .row-head { flex-direction: column; gap: 0; }
  .list .stack { order: 2; margin-top: 2px; }
  .foot p a { display: inline-block; }
}
