:root {
  --fg: #000;
  --bg: #fff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root { --fg: #fff; --bg: #000; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 18vh 24px 120px;
}

section + section { margin-top: 72px; }

h1, h2 {
  font-size: inherit;
  font-weight: 500;
  margin: 0 0 1.7em;
}

h1::before, h2::before { content: "— "; }

p, ul { margin: 0 0 1.2em; }
ul { padding-left: 1.4em; }
strong { font-weight: 500; }
code { font: inherit; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover { text-decoration: none; }

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

/* pinned */
#pinned { list-style: none; margin: 0; padding: 0; }
.repo + .repo { margin-top: 2em; }
.repo p { margin: 0.2em 0 0.4em; }
.repo-name { font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 0 2em; }

/* contribution graph */
#graph svg { display: block; width: 100%; height: auto; }
#graph rect { fill: currentColor; }
.small { margin-top: 1em; }
