@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
  background: #09090B;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

::selection {
  background: var(--accent);
  color: #09090B;
}

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

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 3rem), var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(6rem, 12vh, 10rem);
  background: var(--bg);
  color: var(--text);
}

.section--surface {
  background: var(--surface);
}

.section--compact {
  padding-block: clamp(4rem, 8vh, 7rem);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.section-header h2 {
  max-width: 18ch;
}

.section-header p {
  max-width: var(--maxw-prose);
  color: var(--text-muted);
}

.section-header--stacked {
  display: block;
}

.section-header--stacked h2 {
  max-width: 19ch;
}

.section-header--stacked p {
  max-width: 46rem;
  margin-top: 1.5rem;
}

.prose {
  max-width: var(--maxw-prose);
}

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 150ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 2rem), var(--maxw));
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
