/* One narrow column, one type size, black and white. Muted grey carries everything secondary. */
:root { --bg: #ffffff; --fg: #111111; --muted: #8a8a8a; --line: #dddddd; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b0b0b; --fg: #ececec; --muted: #7c7c7c; --line: #333333; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 14vh max(20px, env(safe-area-inset-right, 0px)) 14vh max(20px, env(safe-area-inset-left, 0px));
}
main { max-width: 34rem; margin: 0 auto; }

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

h1 { font-size: inherit; font-weight: 500; margin: 0 0 1.5rem; }
h2 { font-size: 13px; font-weight: 400; color: var(--muted); margin: 3.5rem 0 1.25rem; }
p { margin: 0; }
.muted { color: var(--muted); }

.back { display: inline-block; margin-bottom: 3rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }

/* Home: label column + value column */
.grid { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem 1rem; margin: 3rem 0 0; }
.grid dt { color: var(--muted); }
.grid dd { margin: 0; }

/* Lists: name and year, one muted line, a row of links */
.item { margin-bottom: 1.6rem; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.yr { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.desc { color: var(--muted); }
.lk { display: flex; flex-wrap: wrap; gap: 0 1.1rem; font-size: 14px; margin-top: 0.15rem; }

footer { margin-top: 4rem; color: var(--muted); font-size: 13px; }
