/* ---------
   Base
   --------- */

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --rule: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
  line-height: 1.6;
}

/* ---------
   Layout
   --------- */

main {
  max-width: 720px;
  padding: 2.5rem 1.25rem;
  margin: 0 auto;
}

section {
  margin-top: 2.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------
   Typography
   --------- */

h1 {
  font-size: 1.75rem;
  margin: 0;
}

h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

p {
  margin: 0.5rem 0 0;
}

.tagline {
  color: var(--muted);
}

.highlight-cc {
  color: #c2410c;
}

/* ---------
   Accent rule
   --------- */

.accent-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: #c2410c; /* burnt orange */
  margin: 0.75rem 0 1.5rem;
}


/* ---------
   Lists & Links
   --------- */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li,
.projects li {
  margin: 0.4rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #6b7280;
}

.name {
  font-weight: 600;
}

.desc {
  color: var(--muted);
}

/* ---------
   Responsive
   --------- */

@media (max-width: 480px) {
  main {
    padding: 2rem 1rem;
  }
}
/* ---------
   Dark mode
   --------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --accent: #60a5fa;
    --rule: #1f2937;
  }

  body {
    background: var(--bg);
    color: var(--fg);
  }

  footer {
    border-top-color: var(--rule);
  }
}
/* ---------
   Project page extras
   --------- */

.projects li {
  margin-bottom: 1.5rem;
}

.projects .desc {
  margin: 0.4rem 0;
}

.projects .meta {
  font-size: 0.875rem;
  color: var(--muted);
}
/* ---------
   Blog
   --------- */

.posts li {
  margin: 0.6rem 0;
}

.posts time {
  color: var(--muted);
  font-size: 0.875rem;
}

article .content {
  margin-top: 2rem;
  color: var(--muted);
}

article p {
  margin: 1rem 0;
}

pre {
  background: var(--rule);
  padding: 1rem;
  overflow-x: auto;
}

@media (prefers-color-scheme: dark) {
  pre {
    background: #020617;
  }
}
