@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.19f9c92546.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-italic.9b10496762.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.0640890476.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.684ad5b531.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Product typefaces, subset to the letters of their names. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-names.45625877b0.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-names.0af1ee50b8.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vampiro One";
  src: url("/fonts/vampiro-one-names.48d9fd0cdc.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --ink: #141413;
  --muted: #5f5e57;
  --line: rgb(20 20 19 / 12%);
  --accent: #c8f23c;
  --accent-ink: #141413;
  --accent-text: #4a6b00;
  --brand: #9c0f4a;
  /* Pastels for the top bar, About and bottom bar, blended as diffuse gradients. */
  --pink: #ffd1ea;
  --mint: #c8f3dc;
  --butter: #fff0a3;
  --lilac: #dcd6ff;
  --sky: #cfe6ff;
  --peach: #ffd9c7;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --width: 1200px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gutter {
  padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus {
  top: 10px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  background:
    radial-gradient(45% 260% at 8% 0%, color-mix(in srgb, var(--lilac) 90%, transparent), transparent 70%),
    radial-gradient(40% 260% at 62% 100%, color-mix(in srgb, var(--peach) 90%, transparent), transparent 70%),
    radial-gradient(35% 260% at 100% 20%, color-mix(in srgb, var(--sky) 90%, transparent), transparent 70%),
    color-mix(in srgb, var(--pink) 88%, transparent);
  box-shadow: 0 18px 60px -12px color-mix(in srgb, var(--pink) 70%, var(--lilac));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

/* The site name in raspberry, closed by an ink dot. */
.wordmark span {
  color: var(--brand);
}

.wordmark span::after {
  color: var(--ink);
  content: ".";
}

.site-header nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-header nav a:hover {
  color: var(--brand);
}

/* Intro */

.intro {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.lede em,
.about em {
  color: var(--ink);
  font-style: italic;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.intro h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

/* Projects */

.projects {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

/* Each project is shown by its social card, the way it looks when shared. */
.project-shot {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tone);
  box-shadow: 0 24px 60px -24px rgb(20 20 19 / 45%), 0 0 0 1px rgb(20 20 19 / 6%);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 300ms ease;
}

.project-shot img {
  width: 100%;
  height: auto;
}

a.project-shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px -24px rgb(20 20 19 / 50%), 0 0 0 1px rgb(20 20 19 / 6%);
}

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 8px;
}

.platforms {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.platforms svg {
  display: block;
  width: 22px;
  height: 22px;
}

.icon-cut {
  fill: var(--paper);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--muted);
  content: "";
}

.project h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Each project's name, set the way the project sets it. */

.name-eyewall {
  font-family: "Inter", var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.name-tapescript {
  font-family: "Vampiro One", var(--sans);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.project h2.name-amon-hen {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.name-oversight {
  font-family: "Inter", var(--sans);
  font-weight: 750;
  letter-spacing: -0.07em;
  text-transform: lowercase;
}

.name-oversight::after {
  color: #92a57e;
  content: ".";
}

.name-weave {
  font-weight: 620;
}

.project-kind {
  margin: 6px 0 0;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 500;
}

.project-description {
  max-width: 52ch;
  margin: 16px 0 0;
}

.visit {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 26px 12px 20px;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.visit svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* A hand-painted lime stroke behind each link, tilted a little differently. */
.visit::before {
  position: absolute;
  inset: -4px -10px -2px -3px;
  z-index: -1;
  background: url("/images/brush.32af84ef9d.webp") center / 100% 100% no-repeat;
  content: "";
  transform: rotate(-1.2deg);
  transition: transform 200ms ease;
}

.project:nth-child(even) .visit::before {
  transform: rotate(0.8deg) scaleY(-1);
}

.visit:hover::before {
  transform: rotate(-2deg) scale(1.04);
}

.project:nth-child(even) .visit:hover::before {
  transform: rotate(1.6deg) scale(1.04) scaleY(-1);
}

.visit-off {
  padding: 0;
  color: var(--muted);
  font-weight: 500;
}

.visit-off::before {
  display: none;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px clamp(28px, 4vw, 64px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: color-mix(in srgb, var(--mint) 50%, #fff);
}

.about h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about p {
  max-width: 60ch;
  margin: 0 0 16px;
  color: rgb(20 20 19 / 78%);
}

.about a,
.site-footer a {
  color: var(--ink);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  background:
    radial-gradient(45% 240% at 6% 100%, var(--pink), transparent 70%),
    radial-gradient(40% 240% at 55% 0%, var(--peach), transparent 70%),
    radial-gradient(40% 240% at 96% 60%, var(--mint), transparent 70%),
    var(--butter);
  box-shadow: 0 -18px 60px -12px color-mix(in srgb, var(--butter) 60%, var(--peach));
  color: var(--ink);
  font-size: 15px;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: flex;
  gap: 24px;
}

/* Simple pages: 404, legal */

.page > * {
  max-width: 820px;
}

.page {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page > p {
  max-width: 52ch;
  color: var(--muted);
}

.page .back {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-text);
}

.legal {
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}

.legal div {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) 1fr;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.legal dt {
  color: var(--muted);
}

.legal dd {
  margin: 0;
}

/* Responsive */

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

  .legal div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.tone-eyewall { --tone: #070707; }
.tone-tapescript { --tone: #0a0a0a; }
.tone-amon-hen { --tone: #0d0b09; }
.tone-oversight { --tone: #e9e4d8; }
.tone-weave { --tone: #111111; }
