:root {
  color-scheme: dark;
  --bg: #141412;
  --surface: #1d1c1a;
  --text: #efece6;
  --muted: #a8a399;
  --line: #2f2d29;
  --accent: #e0814f;
  --radius: 14px;
  --max: 980px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.site-header .name {
  font-weight: 650;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
}

/* Intro */

.intro {
  padding: 56px 0 40px;
}

.intro h1 {
  font: 600 clamp(36px, 6vw, 56px) / 1.08 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}

.intro p {
  color: var(--muted);
  font-size: 19px;
  max-width: 56ch;
  margin: 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 18px;
}

/* Featured products */

.featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-bottom: 1px solid var(--line);
}

.product .body {
  flex: 1;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
}

.product h2 {
  font: 600 28px/1.15 var(--serif);
  margin: 0 0 4px;
}

.product .tagline {
  color: var(--accent);
  font-weight: 550;
  margin: 0 0 14px;
}

.product p {
  margin: 0 0 14px;
}

.product .stack {
  font-size: 14px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.links a {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.links a.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

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

.links a.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Smaller projects, for when the list grows */

.more {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.more li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.more a {
  white-space: nowrap;
}

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

/* CV */

.cv {
  max-width: 760px;
  padding-bottom: 24px;
}

.cv h1 {
  font: 600 clamp(36px, 6vw, 48px) / 1.1 var(--serif);
  margin: 40px 0 6px;
}

.cv .contact {
  color: var(--muted);
  margin: 0 0 8px;
}

.cv h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 40px 0 14px;
}

.cv h3 {
  font-size: 18px;
  margin: 24px 0 2px;
}

.cv .when {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px;
}

.cv ul {
  padding-left: 20px;
  margin: 8px 0;
}

.cv li {
  margin: 4px 0;
}

/* Footer */

.site-footer {
  color: var(--muted);
  font-size: 14px;
  padding: 64px 0 40px;
}

@media print {
  .site-header nav,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
}
