:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #777777;
  --line: #e8e8e8;
  --max: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #ffffff;
  position: relative;
}

.mark {
  display: block;
  width: min(6.4vw, 52px);
  height: auto;
}

.hero-lockup {
  display: block;
}

.hero-description {
  position: absolute;
  right: 16px;
  bottom: 12vh;
  left: 16px;
  max-width: none;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.page {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  padding: 40px 0 72px;
}

.intro {
  padding-top: 0;
}

section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.intro {
  border-top: 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

h2 {
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

p,
li {
  max-width: 640px;
  color: #111111;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

p + p {
  margin-top: 16px;
}

ul {
  list-style: none;
  padding: 0;
}

ol {
  padding: 0;
}

li + li {
  margin-top: 6px;
}

.cv-list {
  list-style: none;
}

.cv-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  max-width: none;
  line-height: 1.55;
}

.cv-list .year {
  color: var(--muted);
  white-space: nowrap;
}

.cv-list li > span:last-child {
  color: #111111;
}

.cv-list a {
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer p {
  max-width: none;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.text-page {
  min-height: 100svh;
}

.text-page .kicker {
  margin-bottom: 22px;
}

.not-found .page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .mark {
    width: min(7.8vw, 42px);
  }

  .hero-description {
    right: 10px;
    bottom: 11vh;
    left: 10px;
    font-size: 8px;
  }

  .page {
    width: min(calc(100% - 28px), var(--max));
    padding: 48px 0 80px;
  }

  section {
    padding: 20px 0;
  }

  h1 {
    font-size: 1rem;
  }

  .cv-list li {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }
}

/* Logo easter egg — click the mark to flip dark mode */
html,
body {
  transition: background 0.35s ease, color 0.35s ease;
}

.mark {
  cursor: pointer;
}

html.dark {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #1c1c1c;
}

html.dark .hero {
  background: #000000;
}

html.dark p,
html.dark li,
html.dark .cv-list li > span:last-child {
  color: #f4f4f4;
}
