@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel";
  src: url("/assets/fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #303030;
  --color-secondary: #3a3a3a;
  --color-muted: #6f6a61;
  --color-faint: #9ca3af;
  --color-background: #ffffff;
  --color-surface: #f4efe7;
  --color-border: #e8e2d8;
  --color-border-subtle: #eeeeee;
  --color-accent: #2f6fed;
  --color-accent-soft: #e8f0ff;

  color-scheme: light;
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-primary);
  background: var(--color-background);
  font-size: 16px;
}

body {
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 2rem;
  font-weight: 400;
  background: var(--color-background);
  line-height: 1.5;
}

main {
  margin: 4rem 0 0;
}

h1 {
  font-size: 23px;
  font-weight: 420;
  letter-spacing: 0;
  line-height: 24px;
  margin: 0 0 4px;
}

p {
  color: var(--color-secondary);
  font-size: 16px;
  line-height: 1.55;
  margin: 20px 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: var(--color-accent);
}

article h2,
.home-section h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.5;
  margin: 24px 0 14px;
}

article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
}

article ul,
article ol {
  font-size: 16px;
  line-height: 1.55;
  padding-left: 0;
}

.meta,
.item-list span,
.muted {
  color: #737373;
  color: var(--color-muted);
  font-size: 14px;
}

.meta,
.item-list span {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.item-list {
  font-size: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  display: list-item;
  margin: 0 0 4px;
  padding-left: 16px;
  position: relative;
}

.item-list li::before {
  content: "■";
  color: var(--color-faint);
  font-size: 0.45em;
  left: 0;
  position: absolute;
  top: 0.55em;
}

.project-list-item {
  display: block;
  padding-bottom: 0;
}

.project-list-item:last-child {
  border-bottom: 0;
}

.item-list a {
  font-weight: 400;
}

.item-list p,
.summary {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.meta {
  margin: -6px 0 20px;
}

article .meta:first-child {
  margin: 0 0 10px;
}

code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--color-surface);
  padding: 0.08em 0.28em;
  border-radius: 4px;
}

.pixel-accent {
  font-family: "Geist Pixel", "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  body {
    min-width: 0;
    padding: 3rem 1.5rem;
  }

  main {
    margin-top: 3rem;
  }
}
