:root {
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --rule: #393836;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #000000;
  --bright: #000000;
  --accent: #000000;
  --rule: #000000;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

a:hover,
a:focus-visible {
  color: var(--bright);
  border-bottom-color: var(--bright);
  outline: none;
}

a.bare {
  border-bottom: none;
}

a.bare:hover,
a.bare:focus-visible {
  color: var(--bright);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

header.top .who {
  color: var(--fg);
}

header.top .who::before {
  content: "❯ ";
  color: var(--accent);
}

header.top .where {
  color: var(--muted);
}

header.top .right {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--bright);
  outline: none;
}

h1 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--bright);
}

h1::before {
  content: "# ";
  color: var(--accent);
}

.tagline {
  color: var(--fg);
  margin: 0 0 8px;
  max-width: 64ch;
}

.sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 75ch;
}

h2 {
  font-size: 15px;
  font-weight: 400;
  color: var(--bright);
  margin: 40px 0 12px;
}

h2::before {
  content: "❯ ";
  color: var(--accent);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rows {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}

.rows .when {
  color: var(--muted);
}

.rows .what {
  color: var(--fg);
}

.rows .what .where {
  color: var(--muted);
}

.rows .what .arrow {
  color: var(--muted);
  margin-left: 6px;
}

.rows .what a:hover .arrow,
.rows .what a:focus-visible .arrow {
  color: var(--bright);
}

.projects {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}

.projects .name {
  color: var(--fg);
}

.projects .name a {
  border-bottom: none;
}

.projects .name a:hover,
.projects .name a:focus-visible {
  color: var(--bright);
}

.projects .desc {
  color: var(--muted);
}

.themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.links {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}

.links .key {
  color: var(--muted);
}

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

footer::before {
  content: "❯ ";
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--fg);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    background: transparent;
  }
}

@media (max-width: 640px) {
  .rows,
  .projects,
  .links {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .rows .when,
  .projects .name,
  .links .key {
    margin-top: 8px;
  }
}
