/* Monospace throughout: the subject is agent tooling, and a terminal is the
   honest frame for it. Dark is the default; light follows the OS.
   Both palettes hold >= 7:1 on body text and >= 4.5:1 on the accent. */

:root {
  --bg: #12130f;
  --fg: #d8d8ce;
  --dim: #8e8f84;
  --rule: #2c2e26;
  --accent: #9dc183;  /* muted green — links, markers */
  --warm: #d9a441;    /* amber — emphasis */
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9f4;
    --fg: #22241c;
    --dim: #5e6154;
    --rule: #dddcd0;
    --accent: #3f6b28;
    --warm: #8a5a06;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

a:hover,
a:focus-visible { border-bottom-color: currentColor; }

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 .alt { color: var(--dim); font-weight: 400; }

.tagline { margin: 0.6rem 0 0; color: var(--fg); }
.tagline em { color: var(--warm); font-style: normal; }

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

section { margin-top: 2.5rem; }

h2 {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dim);
}

/* Tracking belongs to the label, not the brackets: letter-spacing adds space
   after every character, so on the h2 it opens a gap inside each bracket. The
   negative margin removes the one the label's own last letter adds. */
.label {
  letter-spacing: 0.14em;
  margin-right: -0.14em;
}

.mark { color: var(--accent); }

article + article {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }

p { margin: 0 0 0.6rem; }

.caveat { color: var(--dim); font-size: 0.9rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--dim);
}

footer p { margin: 0; }
