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

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

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

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --raised: #ffffff;
  --ink: #12110f;
  --muted: #5f5c56;
  --line: #dedbd4;
  --red: #c73220;
  --red-dark: #9f2518;
  --band: #12110f;
  --band-ink: #f3efe6;
  --accent-text: #9f2518;
  --focus: #c73220;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --type-masthead: clamp(3.5rem, 10.75vw, 9.25rem);
  --type-display: clamp(2.75rem, 6.2vw, 5rem);
  --type-section: clamp(2rem, 4.2vw, 3.5rem);
  --type-service: clamp(1.375rem, 2.4vw, 2rem);
  --type-proof: clamp(2.75rem, 5vw, 4.5rem);
  --type-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-micro: 0.75rem;
  --type-nano: 0.6875rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11100e;
  --raised: #171613;
  --ink: #f3efe6;
  --muted: #b9b3a8;
  --line: #37332c;
  --red: #c73220;
  --red-dark: #9f2518;
  --band: #171613;
  --band-ink: #f3efe6;
  --accent-text: #f3efe6;
  --focus: #c73220;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
summary {
  color: inherit;
  font: inherit;
}

button {
  border-radius: 0;
}

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

h1,
h2,
h3,
p {
  margin-block: 0;
}

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

::selection {
  background: var(--red);
  color: var(--band-ink);
}

:target {
  scroll-margin-top: calc(var(--space-20) + var(--space-2));
}

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

#main-content:focus {
  outline: none;
}

.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: 200;
  top: var(--space-2);
  left: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--red);
  color: var(--band-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(calc(-100% - var(--space-4)));
}

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

.mono-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-micro);
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--raised);
  border-bottom: 1px solid var(--ink);
}

.site-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  max-width: 1280px;
  min-height: 72px;
  margin-inline: auto;
  padding-inline: var(--space-10);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-nano);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-family: "Archivo", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.brand-link__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.raven-fill,
.raven-ink-eye {
  fill: var(--ink);
}

.raven-beak {
  fill: var(--red);
}

.raven-eye {
  fill: var(--raised);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
  white-space: nowrap;
}

.nav-link,
.nav-future,
.preview-copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: var(--space-1);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: var(--space-1);
}

.nav-future,
.preview-copy {
  color: var(--muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 124px;
  min-width: 124px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--type-nano);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html[data-js="true"] .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle__prefix::after {
  content: " /";
  color: var(--red);
}

.mobile-nav {
  display: none;
}

.site-field {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
}

.paper-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.site-field > :not(.paper-grid) {
  position: relative;
  z-index: 1;
}
