:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #d6d6d6;
  --muted: #777;
  --line: #282828;
  --accent: #8fda72;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  outline: none;
}

.terminal {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0 24px;
}

.header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.host,
h1,
.project-line > a {
  color: var(--accent);
}

h1 {
  margin: 72px 0 34px;
  font-size: 1rem;
  font-weight: 400;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--line);
}

.project-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-line > a {
  font-weight: 700;
}

.project-line > span,
.project p,
.project nav,
footer {
  color: var(--muted);
}

.project p {
  max-width: 620px;
  margin: 10px 0 12px;
}

.project nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.project nav a::before {
  content: "-> ";
}

footer {
  margin-top: 56px;
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .terminal {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 24px;
  }

  h1 {
    margin-top: 52px;
  }

  .header,
  .project-line,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
