@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #fafafa;
  --text: #111113;
  --muted: #4d4d53;
  --line: #e3e3e6;
  --underline: #b9b9be;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --text: #f2f2f3;
    --muted: #b3b3b8;
    --line: #303035;
    --underline: #5a5a61;
  }
}

body {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Public Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--text); color: var(--bg); }

h1 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; letter-spacing: 0; }
.role { margin: 0; color: var(--muted); }
.intro { margin: 24px 0 0; max-width: 34em; text-wrap: pretty; }
.links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 24px 22px; }
.links svg { flex: none; width: 16px; height: 16px; fill: currentColor; color: var(--muted); }
main { margin-top: 48px; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }

.projects { list-style: none; margin: 12px 0 0; padding: 0; }
.projects li { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.projects li:last-child { border-bottom: 1px solid var(--line); }
.shot { display: block; text-decoration-line: none; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.shot:hover img { border-color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.name { font: 500 16px var(--mono); text-decoration-line: none; overflow-wrap: anywhere; }
.name:hover { text-decoration-line: underline; }
.source { font: 400 14px var(--mono); color: var(--muted); }
.desc { margin: 2px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
}
a:hover { text-decoration-color: currentColor; }
.name, .source { display: inline-block; padding: 12px 0; margin: -12px 0; }
.links a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 0; margin: -12px 0; }
.source { padding: 13px 0; margin: -13px 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-color .15s; }
  .shot img { transition: border-color .15s; }
}

@media (min-width: 640px) {
  body { padding-top: 112px; padding-bottom: 96px; }
  main { margin-top: 72px; }
  .projects li { grid-template-columns: 200px minmax(0, 1fr); column-gap: 20px; align-items: start; }
}
