/*
  Same visual system as the project demos: cool paper, navy ink, one grotesque
  typeface. Highlighter yellow is reserved for the thing a visitor can act on:
  a project that is live.
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #14213d;
  --slate: #5c677d;
  --rule: #d8dee9;
  --marker: #ffe45c;
  --focus: #2449c7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

main,
footer {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ---- Introduction ------------------------------------------------------- */

.intro {
  padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 6.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 38rem;
  margin-top: 1.75rem;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.45;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.facts li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
}

/* ---- Projects ----------------------------------------------------------- */

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-note {
  max-width: 38rem;
  margin-top: 0.4rem;
  color: var(--slate);
}

.projects {
  margin-top: 1.75rem;
  border-top: 1px solid var(--ink);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 2rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
}

.project h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
}

.project p {
  max-width: 36rem;
  margin-top: 0.3rem;
}

.project .stack {
  font-size: 0.9375rem;
}

.project-side {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.status {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* A live project is the only thing on the page in full ink and yellow. */
.project.is-live {
  padding: 1.75rem 0;
  color: var(--ink);
}

.project.is-live h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.project.is-live h3 a {
  text-decoration: none;
}

.project.is-live h3 a:hover {
  text-decoration: underline;
}

.project.is-live .stack {
  color: var(--slate);
}

.project.is-live .status {
  border-color: var(--ink);
  background: var(--marker);
  font-weight: 650;
  text-decoration: none;
}

.project.is-live .status:hover {
  background: var(--ink);
  color: var(--marker);
}

/* ---- Footer ------------------------------------------------------------- */

footer {
  padding-top: 3rem;
  padding-bottom: 4rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

footer p {
  max-width: 38rem;
}

@media (max-width: 640px) {
  .project {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-items: start;
  }
}
