@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-latin-800-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --background: #ffffff;
  --text: #111111;
  --text-secondary: #464a52;
  --text-muted: #646973;
  --line: #e4e5e8;
  --focus: #2443c7;
  --band: #111111;
  --band-text: #ffffff;
  --zone-edge: #1a1612;

  --gutter: 16px;
  --width: 1200px;
  --measure: 40rem;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c0d10;
    --text: #ffffff;
    --text-secondary: #c3c7ce;
    --text-muted: #9ca1aa;
    --line: #25272d;
    --focus: #93abff;
    --band: #17191e;
    --band-text: #ffffff;
    --zone-edge: #3a332b;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

main:focus,
section:focus {
  outline: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--background);
  border-radius: 8px;
  z-index: 10;
}

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

.container {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: transparent;
  color: var(--text);
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-quiet:hover {
  border-color: var(--text);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.375rem 1.125rem;
  font-size: 0.9375rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  margin-right: auto;
  color: var(--text);
}

.brand-wordmark {
  display: block;
  width: 8.5rem;
  height: 1.75rem;
  fill: currentColor;
}

.site-navigation {
  display: none;
}

.site-navigation ul {
  display: flex;
  gap: 1.75rem;
}

.site-navigation a {
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
}

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

@media (min-width: 720px) {
  .site-navigation {
    display: block;
  }
}

.hero {
  padding-top: clamp(3rem, 1rem + 8vw, 8rem);
  padding-bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 1rem + 7vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lead {
  max-width: 36rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.section {
  padding-top: clamp(3.5rem, 2rem + 5vw, 7rem);
  padding-bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.section-heading {
  display: grid;
  gap: 0.75rem 3rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-heading h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: 1.1875rem;
}

@media (min-width: 900px) {
  .section-heading {
    grid-template-columns: 3fr 2fr;
    align-items: end;
  }
}

.work {
  display: grid;
  gap: 1rem;
}

.project {
  --project-muted: currentColor;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius);
}

.project-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
}

.project h3 {
  margin-top: 0.5rem;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  letter-spacing: -0.045em;
}

.project-summary {
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.project-facts {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  font-size: 0.9375rem;
}

.project-facts dt {
  color: var(--project-muted);
  font-weight: 700;
}

.project-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 800;
  font-size: 1.0625rem;
}

span.project-link {
  color: var(--project-muted);
}

.project-zone {
  --project-muted: #b5aa9b;
  background: #1a1612;
  color: #f3eee6;
  border: 1px solid var(--zone-edge);
}

.project-zone .project-link {
  color: #00f3ff;
}

.project-sshoo {
  --project-muted: #52525b;
  background: #e4e4e7;
  color: #09090b;
}

.project-plotpals {
  --project-muted: #0b3f63;
  background: #ff6b4a;
  color: #04233a;
}

@media (min-width: 900px) {
  .work {
    grid-template-columns: 1fr 1fr;
  }

  .project-zone {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 3rem;
    min-height: 26rem;
  }

  .project-zone .project-icon,
  .project-zone h3,
  .project-zone .project-summary {
    grid-column: 1;
  }

  .project-zone .project-facts {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: end;
  }

  .project-zone .project-link {
    grid-column: 1;
    align-self: end;
  }

  .project-sshoo,
  .project-plotpals {
    min-height: 32rem;
  }
}

.services {
  display: grid;
  gap: 2.5rem 3rem;
}

.services li,
.process li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--text);
}

.services h3,
.process h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.services p,
.process p {
  max-width: 30rem;
  margin-top: 0.625rem;
  color: var(--text-secondary);
}

@media (min-width: 720px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.process {
  display: grid;
  gap: 2.5rem 2rem;
  counter-reset: step;
}

.process li {
  counter-increment: step;
}

.process li::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact {
  margin-top: clamp(4rem, 2rem + 6vw, 8rem);
  background: var(--band);
  color: var(--band-text);
}

.contact-inner {
  padding-top: clamp(3.5rem, 2rem + 6vw, 7rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.contact h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 1rem + 6vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.contact p {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  opacity: 0.8;
}

.contact .button {
  margin-top: 2rem;
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.contact .button:hover {
  background: transparent;
  color: #ffffff;
}

.prose > * {
  max-width: var(--measure);
}

.prose {
  padding-top: clamp(2.5rem, 2rem + 4vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.prose h1 {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.prose p {
  margin-bottom: 1em;
}

.prose a {
  color: var(--focus);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.375rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

main:has(.contact) + .site-footer {
  border-top: 0;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer ul {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--text-secondary);
}

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