@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font: "IBM Plex Sans", Archivo, Arial, sans-serif;
  --project-brand-font: Sora, Archivo, Arial, sans-serif;
  --base: #101014;
  --particle-rgb: 255 255 255;
  --scene-amber: 106 64 36;
  --scene-blue: 37 74 157;
  --scene-green: 32 108 79;
  --scene-purple: 101 69 149;
  --tone: rgb(var(--scene-amber));
  --page: color-mix(in srgb, var(--base) 66%, var(--tone));
  --ink: #f3eeea;
  --muted: #b6aaa6;
  --accent: #ace6c8;
  --light: color-mix(in srgb, var(--base) 49%, var(--tone));
  --footer: color-mix(in srgb, var(--base) 57%, var(--tone));
  --rule: color-mix(in srgb, var(--base) 35%, var(--tone));
  --gutter: clamp(1.15rem, 6vw, 6rem);
  --wordmark-width: clamp(14rem, 31vw, 27rem);
  --projects-size: clamp(1.1rem, 1.8vw, 1.5rem);
  --logo-height: clamp(1.05rem, 2.05vw, 1.4rem);
  --width: 96rem;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  min-height: 100svh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.45 var(--font);
}

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

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

::selection {
  background: var(--accent);
  color: var(--page);
}

.frame {
  width: min(100%, var(--width));
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.hero {
  --light-origin: 77% 51%;
  height: 100%;
  min-height: 9.5rem;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at var(--light-origin), var(--light), var(--page) 75%);
}

.hero-content {
  position: relative;
  display: grid;
  align-items: center;
  min-height: inherit;
  height: 100%;
  padding-block: clamp(1rem, 4vw, 4rem);
}

.hero h1 {
  width: fit-content;
}

.wordmark-image {
  display: block;
  width: var(--wordmark-width);
  max-width: 100%;
  height: auto;
}

.hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-art--still {
  width: 72%;
  margin-inline-start: auto;
  object-fit: contain;
}

.projects {
  padding: clamp(1rem, 3vw, 2.65rem) 0 max(clamp(1.1rem, 3.2vw, 2.85rem), env(safe-area-inset-bottom));
  background: var(--footer);
  border-top: 1px solid var(--rule);
}

.projects-content {
  display: grid;
  grid-template-columns: minmax(7.2rem, .35fr) minmax(0, 1.65fr);
  gap: .8rem clamp(1.2rem, 4vw, 4rem);
  align-items: start;
}

.projects h2 {
  font-size: var(--projects-size);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: .32rem clamp(.7rem, 2.4vw, 2rem);
  padding: 0;
  list-style: none;
}

.project {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: inherit;
}

.project-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .4rem;
  width: fit-content;
  max-width: 100%;
  height: var(--logo-height);
}

.project-brand img {
  display: block;
  width: auto;
  height: var(--logo-height);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.project-lockup {
  font: 600 clamp(.95rem, 1.4vw, 1.125rem)/1 var(--project-brand-font);
  letter-spacing: -.025em;
}

.project-lockup img {
  width: var(--logo-height);
  height: var(--logo-height);
}

.project-link {
  text-decoration: none;
}

.project-link:hover {
  opacity: .78;
}

.project-description {
  margin-block-start: .22rem;
  color: var(--ink);
  font-size: clamp(.875rem, 1.4vw, 1rem);
  line-height: 1.3;
}

.status {
  color: var(--muted);
  font-size: clamp(.8125rem, 1.25vw, .875rem);
  line-height: 1.25;
}

.status-live {
  color: var(--accent);
}

@media (max-width: 42rem) {
  .hero {
    --light-origin: 55% 60%;
  }

  .hero-content {
    align-items: start;
    padding-top: clamp(2rem, 12svh, 6.25rem);
  }

  .hero-art--still {
    inset-block-start: 18%;
    width: 100%;
    height: 82%;
  }

  .projects-content {
    grid-template-columns: minmax(0, 1fr);
  }
}
