:root {
  color-scheme: light dark;
  --bg: #f4f3ef;
  --ink: #17181a;
  --body: #33353a;
  --muted: #6c6e72;
  --faint: #9a9b9d;
  --rule: #d8d6cf;
  --hair: #e2e0d9;
  --accent: #a6441c;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --ink: #eceae5;
    --body: #c3c2bf;
    --muted: #93949a;
    --faint: #6d6f75;
    --rule: #33353a;
    --hair: #26282c;
    --accent: #d4794c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 76px 40px 88px;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* header */

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.ident { display: flex; flex-direction: column; gap: 10px; }
h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.role { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 40px 0 36px;
}

/* intro */

.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 64ch;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--body);
  text-wrap: pretty;
}
.intro p { margin: 0; }

/* section labels */

h2 {
  margin: 56px 0 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* key / value rows */

.spec { display: flex; flex-direction: column; }
.spec.skills { margin-top: 46px; }
.spec .row {
  display: flex;
  gap: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.spec .row:first-child { border-top-color: var(--rule); }
.spec .row:last-child { border-bottom: 1px solid var(--hair); }
.spec.elsewhere { margin-top: 56px; }
.spec.elsewhere .row { border-color: var(--rule); }
.key {
  flex: 0 0 118px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 3px;
}
.val { font-size: 13.5px; line-height: 1.55; }
.val .aside { color: var(--muted); }

/* project rows */

.list { display: flex; flex-direction: column; }
.item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.item:first-child { border-top-color: var(--rule); }
.item:last-child { border-bottom: 1px solid var(--rule); }
.body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; }
.name { font-size: 15px; letter-spacing: 0.02em; }
.note {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.meta {
  flex: 0 0 auto;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}
.meta.live { color: var(--accent); }
.idx { flex: 0 0 24px; font-size: 11px; color: var(--accent); }

/* links: underlined, never a whole row */

a.u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
}
a.u:hover { color: var(--accent); text-decoration-color: currentColor; }
a.meta.u { text-decoration-color: transparent; color: var(--accent); }
a.meta.u:hover { text-decoration-color: currentColor; }

@media (max-width: 640px) {
  main { padding: 48px 22px 64px; }
  .head { flex-direction: column; gap: 10px; }
  h1 { font-size: 16px; letter-spacing: 0.14em; }
  .spec .row { flex-direction: column; gap: 8px; }
  .key { flex: none; padding-top: 0; }
  .item { flex-wrap: wrap; gap: 14px; }
  .body { flex: 1 1 100%; order: 1; }
  .idx { order: 0; }
  .meta { order: 2; flex: 1 1 100%; text-align: left; }
}
