:root {
  --paper: #faf8f1;
  --ink: #1d1a18;
  --muted: #67605a;
  --rule: #2c2825;
  --accent: #f82e7b;
  --visited: #93075d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  background: var(--accent);
  color: var(--paper);
  outline: 0;
  text-decoration: none;
}

.page {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.intro {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 1.4rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 0.95;
  font-weight: 700;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
}

section {
  padding: 1.75rem 0;
  border-bottom: 1px dashed var(--rule);
}

.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li::before {
  content: "[ ";
  color: var(--muted);
}

.links li::after {
  content: " ]";
  color: var(--muted);
}

.project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(45, 37, 30, 0.28);
}

.project p {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--muted);
}

.project > a {
  white-space: nowrap;
}

footer {
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .page {
    width: min(100% - 1.25rem, 720px);
    padding-top: 2rem;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .project > a {
    width: max-content;
  }
}
