:root {
  --bg: #10294d;
  --card: #0b1c36;
  --card-border: #1d3a66;
  --text: #e8eef2;
  --muted: #a9bdd4;
  --teal: #2596be;
  --teal-shade: #3db2dd;
  --blue: #3b93ff;
  --blue-shade: #6eafff;
  --pink: #ff4598;
  --pink-shade: #ff78b4;
  --green: #8af32e;
  --green-shade: #a5f65e;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg);
}

body {
  margin: 0 auto;
  max-width: 44em;
  padding: 3em 1.25em 2em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  text-align: center;
}

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

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

header .mark {
  width: 110px;
  max-width: 30vw;
  height: auto;
}

header h1 {
  font-family: 'Average Sans', sans-serif;
  color: var(--green);
  font-size: 4em;
  margin: 0.1em 0 0;
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--muted);
  font-size: 1.15em;
  margin: 0.4em 0 0;
}

.ethos {
  font-style: italic;
  color: var(--muted);
  margin: 1.6em 0 0;
}

.projects {
  margin-top: 3em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  text-align: left;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.1em 1.3em 1.2em;
}

.card.flagship {
  grid-column: 1 / -1;
}

.card h2 {
  font-family: 'Average Sans', sans-serif;
  font-size: 1.3em;
  margin: 0 0 0.5em;
  padding-bottom: 0.3em;
}

.card h2 a {
  text-decoration: none;
  color: inherit;
}

.card h2 a:hover {
  color: var(--text);
}

/* Color-coded heads, carried over from the original nullsix site:
   primary for the title, its lighter shade as the underline. */
.teal-head h2 {
  color: var(--teal-shade);
  border-bottom: 4px solid var(--teal);
}

.blue-head h2 {
  color: var(--blue);
  border-bottom: 4px solid var(--blue-shade);
}

.pink-head h2 {
  color: var(--pink);
  border-bottom: 4px solid var(--pink-shade);
}

.green-head h2 {
  color: var(--green);
  border-bottom: 4px solid var(--green-shade);
}

.card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.badge {
  display: inline-block;
  white-space: nowrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: 0.55em;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-shade);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 0.25em 0.8em;
  margin-left: 0.6em;
}

code {
  color: var(--green-shade);
}

footer {
  margin-top: 3.5em;
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  header h1 { font-size: 3em; }
}

.green {
  color: var(--green);
}
