:root {
  color-scheme: dark;
  --paper: #141311;
  --ink: #e9e6df;
  --muted: #aaa399;
  --accent: #b9b29b;
  --underline: #625e50;
  --selection: #484438;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100% - 64px, 590px);
  margin: clamp(80px, 12vh, 130px) auto 72px;
}
ul { margin: 0; padding: 0; list-style: none; }
li { position: relative; }
.outline { padding-left: 18px; }
.outline > li + li { margin-top: 30px; }
.outline > li::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  left: -17px;
  top: 9px;
}
.outline > .intro::before { top: 49px; }
.mark { width: 26px; margin-bottom: 10px; }
.mark img { display: block; width: auto; height: 32px; }
h1, h2, p { margin: 0; }
h1 { font-size: 15px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
h2 {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  color: var(--muted);
  letter-spacing: .015em;
}
.identity { color: var(--muted); }
.identity span { margin: 0 3px; }
.intro-copy { margin-top: 18px; max-width: 530px; }
.intro-copy p + p { margin-top: 10px; }
.children { padding-left: 19px; margin-top: 9px; }
.children > li::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  top: 9px;
  left: -18px;
}
.children > li + li { margin-top: 15px; }
.contact > li + li { margin-top: 4px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.entry-text { min-width: 0; }
.item-name { font-weight: 500; }
.date {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.description { color: var(--muted); }
.description::before { content: "— "; }
.separator { color: var(--muted); padding: 0 4px; }
a, button {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
a:hover, button:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 1px; }
button {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}
[hidden] { display: none; }
.email-line { display: flex; flex-wrap: wrap; align-items: baseline; }
.email-line a { overflow-wrap: anywhere; }
.outline > .footer { margin-top: 34px; }
.outline > .footer::before { display: none; }
footer { color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { background: var(--selection); color: var(--ink); }
@media (max-width: 600px) {
  main { width: auto; margin: 44px 24px 48px; }
  .outline > li + li { margin-top: 28px; }
  .children { padding-left: 16px; }
  .children > li::before { left: -15px; }
  .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: baseline; }
  .entry-text { display: contents; }
  .item-name { grid-column: 1; grid-row: 1; }
  .date { grid-column: 2; grid-row: 1; }
  .description { grid-column: 1 / -1; grid-row: 2; line-height: 1.55; margin-top: 2px; }
  .description::before { content: none; }
  .children > li + li { margin-top: 16px; }
  .contact > li + li { margin-top: 4px; }
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --paper: #f8f7f3;
    --ink: #2b2925;
    --muted: #6b675f;
    --accent: #6a6048;
    --underline: #c4beaf;
    --selection: #e4dfd1;
  }
}
@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
}

/* Logo beside the name (LOGO_POS in build.py) */
.outline > .intro.logo-inline::before, .outline > .intro.logo-right::before { top: 9px; }
.name-row { display: flex; align-items: center; gap: 9px; }
.name-row .mark { width: auto; margin: 0; }
.name-row .mark img { height: 20px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.head .mark { width: auto; margin: 0; }
.head .mark img { height: 34px; }
