/* theodore.ie — monospace, left-aligned, near-plaintext.
   One typeface (Space Mono), one muted-green accent used sparingly.
   No motion. */

:root {
  --bg:     #f5f5f2;
  --ink:    #1a1a1c;
  --grey:   #6a6a61;   /* dates, labels, colophon */
  --rule:   #dad9d2;
  --accent: #2f6f4f;
  --accent-tint: rgba(47, 111, 79, 0.12);

  --mono: "Space Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #111214;
    --ink:    #e6e6e2;
    --grey:   #85857b;
    --rule:   #26272a;
    --accent: #74c69d;
    --accent-tint: rgba(116, 198, 157, 0.16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-tint); }

.wrap {
  max-width: 66ch;
  margin: 0;
  margin-left: min(11vw, 8rem);
  padding: 5rem 1.75rem 4rem;
}

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

.me {
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  filter: grayscale(1) contrast(0.95);
}

.name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.role {
  margin: 0.3rem 0 0;
  color: var(--grey);
  font-size: 0.9rem;
}

/* ---------- rules ---------- */

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.25rem 0;
}

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

section { margin-top: 2.75rem; }

h2 {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

h2::before {
  content: "## ";
  color: var(--grey);
  font-weight: 400;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- work items ---------- */

.item { margin: 0 0 1.5rem; }
.item:last-child { margin-bottom: 0; }

.item .lede { margin-bottom: 0.35rem; }
.item p:not(.lede) { padding-left: 4ch; }

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

/* ---------- aligned rows (now / writing / elsewhere) ---------- */

.rows {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 2ch;
}

.rows dt {
  color: var(--grey);
  white-space: nowrap;
}

.rows dd { margin: 0; }

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

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

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

/* ---------- footer ---------- */

footer {
  margin-top: 2.75rem;
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.7;
}

footer p { margin: 0 0 0.4rem; }
.stamp { margin: 0; }

/* ---------- narrow screens ---------- */

@media (max-width: 34rem) {
  .wrap {
    margin-left: 0;
    padding: 3.5rem 1.25rem 3.5rem;
  }
  .rows { gap: 0.15rem 1.5ch; }
  .item p:not(.lede) { padding-left: 0; }
}
