:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --muted: #5b5b5b;
  --border: #dedede;
  --surface: #fafafa;
  --accent: #1f2937;
  --accent-contrast: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  --radius: 4px;
  --content-width: 72rem;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  padding: 0.08em 0.28em;
  background: #f3f3f3;
  font-size: 0.92em;
}

pre {
  margin: 0;
  overflow: visible;
  padding: 0;
  background: transparent;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre;
}

pre code {
  display: block;
  padding: 0;
  background: transparent;
  font-size: inherit;
}

h1,
h2,
h3,
h4,
.brand-mark,
.nav-link {
  font-family: "Inter", system-ui, sans-serif;
}

ul {
  padding-left: 1.2rem;
}

.site-shell {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.1rem 0 2.5rem;
}

.brand-mark {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  text-decoration: underline;
}

.nav-link-cv {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--text);
}

.eyebrow,
.helper,
.project-label,
.project-meta {
  font-family: "Poppins", sans-serif;
  color: var(--muted);
  font-size: 0.88rem;
}

.lede {
  max-width: 42rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.panel,
.project-card {
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--bg);
  box-shadow: 8px 8px 0 0 #ececec;
}

.list {
  display: grid;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 1.25rem, var(--content-width));
    padding: 1.5rem 0 2.5rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.75rem;
  }

  .site-nav {
    gap: 0.9rem 1.1rem;
  }
}
