:root {
  color-scheme: dark;
  --background: #0a0b0d;
  --text: #f3f1e8;
  --muted: #8b9099;
  --accent: #d8ff63;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 6rem);
}

.intro {
  width: min(100%, 96rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.projects-heading,
.project-description {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.1rem, 10.5vw, 11.5rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.8;
  white-space: nowrap;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.11vw, 2px) var(--text);
}

.tagline {
  max-width: 35rem;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  color: #c4c6c2;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.projects-heading {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.projects-heading::before {
  content: "> ";
  color: var(--accent);
}

.project-description {
  max-width: 100%;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  line-height: 1.7;
}

.project-description a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.project-description a:hover,
.project-description a:focus-visible {
  color: var(--accent);
}

@media (max-width: 40rem) {
  .shell {
    align-items: center;
    padding-inline: 1.35rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14.2vw, 5.6rem);
  }
}
