@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,600..900&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --cream: #F6F1E7;
  --paper: #FCFAF5;
  --oat: #E7DCC8;
  --clay: #C49A7A;
  --charcoal: #2B2420;
  --stone: #625649;
  --rule: #D8CBB5;
  --rust: #B4441C;

  --rust-deep: #8F3414;
  --rust-tint: #F1DFD3;
  --charcoal-2: #3A312B;
  --charcoal-3: #4A3F37;
  --cream-dim: #D9CDBB;
  --ink: var(--charcoal);
  --ink-soft: #4E433B;
  --ground: var(--cream);
  --surface: var(--paper);
  --error: #A3301A;
  --error-tint: #F7E4DC;
  --ok: #4F6B33;

  --giko-599: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --giko-102: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --giko-2a4: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wdth-display: 118%;
  --wdth-wide: 125%;
  --wdth-tight: 104%;

  --fs-mono-xs: 0.6875rem;
  --fs-mono: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: clamp(1.0625rem, 0.35vw + 0.98rem, 1.125rem);
  --fs-lead: clamp(1.1875rem, 0.8vw + 0.98rem, 1.5rem);
  --fs-h5: clamp(1.0625rem, 0.4vw + 0.98rem, 1.25rem);
  --fs-h4: clamp(1.25rem, 0.9vw + 1.04rem, 1.625rem);
  --fs-h3: clamp(1.5rem, 1.8vw + 1.05rem, 2.375rem);
  --fs-h2: clamp(2rem, 4.4vw + 0.9rem, 4.75rem);
  --fs-h1: clamp(2.25rem, 9vw + 0.5rem, 8.5rem);
  --fs-numeral: clamp(4rem, 18vw, 14rem);
  --fs-numeral-sm: clamp(3rem, 9vw, 7.5rem);

  --lh-tight: 0.92;
  --lh-head: 1.02;
  --lh-snug: 1.25;
  --lh-body: 1.6;
  --track-display: -0.02em;
  --track-giant: -0.035em;
  --track-mono: 0.06em;
  --track-caps: 0.14em;
  --measure: 64ch;
  --measure-wide: 78ch;
  --measure-narrow: 44ch;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-7: 6.5rem;
  --section-y: clamp(5rem, 12vw, 10rem);
  --section-y-tight: clamp(3.5rem, 8vw, 6rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shell: 1320px;
  --shell-wide: 1600px;

  --radius: 4px;
  --radius-0: 0;
  --hair: 1px solid var(--rule);
  --hair-ink: 1px solid var(--charcoal);
  --bar: 3px solid var(--charcoal);

  --shadow-1: 0 1px 0 rgba(43, 36, 32, 0.06), 0 2px 6px -2px rgba(43, 36, 32, 0.12);
  --shadow-2: 0 2px 0 rgba(43, 36, 32, 0.05), 0 14px 32px -14px rgba(43, 36, 32, 0.32);
  --shadow-3: 0 24px 60px -24px rgba(43, 36, 32, 0.45);
  --shadow-press: inset 0 2px 0 rgba(0, 0, 0, 0.18);

  --header-h: 4.75rem;
  --header-h-condensed: 3.75rem;
  --logo-h: 36px;
  --consent-h: 0px;
  --z-header: 50;
  --z-chat: 70;
  --z-consent: 80;
  --z-nav: 100;
  --z-skip: 200;

  --dur-instant: 120ms;
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-slow: 420ms;
  --dur-slower: 720ms;
  --dur-scene: 1200ms;
  --dur-marquee: 38s;
  --dur-marquee-slow: 60s;
  --dur-marquee-fast: 26s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-linear: linear;
  --edge-shift: -8vw;
}

@media (min-width: 768px) {
  :root {
    --logo-h: 44px;
    --header-h: 5.5rem;
    --header-h-condensed: 4.25rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--giko-102);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre, table {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
  background: var(--oat);
}

img[src$=".svg"] {
  background: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: var(--hair);
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

:focus {
  outline: none;
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
  stroke: currentColor;
  vertical-align: middle;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  font-family: var(--giko-599);
  font-stretch: var(--wdth-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--track-display);
  line-height: var(--lh-head);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-giant);
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 850;
  line-height: 0.98;
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  font-stretch: var(--wdth-tight);
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
}

h5, .h5 {
  font-family: var(--giko-102);
  font-size: var(--fs-h5);
  font-weight: 600;
  line-height: var(--lh-snug);
}

p {
  text-wrap: pretty;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--fs-small);
}

.section-title {
  max-width: 18ch;
}

.display-giant {
  font-family: var(--giko-599);
  font-stretch: var(--wdth-wide);
  font-weight: 900;
  font-size: var(--fs-numeral);
  line-height: 0.82;
  letter-spacing: var(--track-giant);
  font-variant-numeric: lining-nums tabular-nums;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 40ch;
}

.eyebrow,
.mono,
.meta {
  font-family: var(--giko-2a4);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  font-size: var(--fs-mono-xs);
  color: var(--stone);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--rust);
  flex: none;
}

.meta {
  color: var(--stone);
}

.caps {
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.accent {
  color: var(--rust);
}

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

.hang {
  hanging-punctuation: first last;
}

.hang-quote {
  text-indent: -0.42em;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  margin-top: 2.2em;
}

.prose h2 {
  font-size: var(--fs-h3);
}

.prose h3 {
  font-size: var(--fs-h4);
}

.prose h4 {
  font-size: var(--fs-h5);
  font-family: var(--giko-102);
  font-weight: 600;
  letter-spacing: 0;
  font-stretch: 100%;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--rust);
  text-decoration-thickness: 2px;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

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

.prose a:active {
  color: var(--rust-deep);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose ul li::marker {
  color: var(--rust);
}

.prose ol li::marker {
  font-family: var(--giko-2a4);
  font-size: 0.85em;
  color: var(--stone);
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  border-left: 3px solid var(--rust);
  padding: 0.25em 0 0.25em 1.25em;
  font-family: var(--giko-599);
  font-stretch: var(--wdth-tight);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--ink);
}

.prose code,
.prose kbd {
  font-family: var(--giko-2a4);
  font-size: 0.86em;
  background: var(--oat);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

.prose pre {
  overflow-x: auto;
  max-width: 100%;
  background: var(--paper);
  border: var(--hair);
  padding: 1rem;
  font-family: var(--giko-2a4);
  font-size: var(--fs-mono);
}

.prose hr {
  margin: 2.5em 0;
}

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

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

.shell--wide {
  max-width: calc(var(--shell-wide) + var(--gutter) * 2);
}

.shell--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: var(--section-y-tight);
}

.section + .section {
  border-top: var(--hair);
}

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

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

.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark .meta,
.section--dark .eyebrow {
  color: var(--clay);
}

.section--dark .prose {
  color: var(--cream-dim);
}

.rule {
  border: 0;
  border-top: var(--hair);
  margin: 0;
}

.rule--bar {
  border-top: var(--bar);
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--s-4));
}

.stack--sm {
  --stack-gap: var(--s-3);
}

.stack--lg {
  --stack-gap: var(--s-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--s-3));
  align-items: center;
}

.cluster > * {
  min-width: 0;
}

.grid {
  display: grid;
  gap: var(--grid-gap, var(--s-5));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 18rem)), 1fr));
}

.grid > *,
.split > * {
  min-width: 0;
}

.split {
  display: grid;
  gap: var(--s-5) var(--s-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--oat);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--3x2 {
  aspect-ratio: 3 / 2;
}

.frame--4x5 {
  aspect-ratio: 4 / 5;
}

.frame--wide {
  aspect-ratio: 21 / 9;
}

.caption {
  margin-top: 0.75rem;
  font-family: var(--giko-2a4);
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--track-mono);
  color: var(--stone);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.caption::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: var(--stone);
  flex: none;
  transform: translateY(-0.25em);
}

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

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.no-js-only {
  display: none;
}

html:not(.js) .no-js-only {
  display: revert;
}

html:not(.js) .js-only {
  display: none !important;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-slower: 0ms;
    --dur-scene: 0ms;
    --edge-shift: 0;
  }

  html {
    scroll-behavior: auto;
  }

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

@media print {
  .site-header,
  .nav-overlay,
  .consent,
  .chat-launcher,
  .chat-panel,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
