@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0E0F0C;
  --bg-elevated: #141511;
  --bg-sunken: #0A0B08;
  --border: #26281F;
  --border-strong: #37392C;
  --text-primary: #E8E4D9;
  --text-secondary: #9C988C;
  --text-muted: #6E6C62;
  --accent: #E5A13C;
  --accent-bright: #F2B95E;
  --accent-dim: rgba(229, 161, 60, 0.12);
  --accent-border: rgba(229, 161, 60, 0.38);
  --focus: #E5A13C;
  --danger: #C05A45;
  --success: #7FA071;
  --shadow-raised: inset 0 1px 0 rgba(232, 228, 217, 0.05), 0 12px 40px rgba(8, 9, 6, 0.6);
  --shadow-modal: 0 24px 64px rgba(8, 9, 6, 0.8), 0 0 0 1px var(--border);
  --r-sm: 2px;
  --r-md: 4px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --section-y: 96px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --z-nav: 10;
  --z-drawer: 20;
  --z-modal: 30;
  --z-toast: 40;
  --z-grain: 50;
  --text-2xs: 0.625rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-xl: 1.375rem;
  --display: clamp(2.75rem, 9vw, 5.25rem);
  --h-section: clamp(1.9rem, 5vw, 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 228, 217, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 228, 217, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 25%, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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

.mono {
  font-family: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::before {
    display: none;
  }
}