@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #0E1310;
  --ground: #151C18;
  --surface: #1D2621;
  --surface-2: #243029;
  --paper: #F1EFE8;
  --paper-2: #E4E1D6;
  --mute: #98A29C;
  --mute-2: #6F7A74;
  --line: #2C3731;
  --line-strong: #3A4841;
  --emerald: #1E7D57;
  --emerald-hover: #239066;
  --emerald-press: #186847;
  --emerald-text: #3FAE80;
  --emerald-wash: rgba(30, 125, 87, 0.14);
  --brass: #B8975A;
  --brass-soft: rgba(184, 151, 90, 0.45);
  --brass-faint: rgba(184, 151, 90, 0.18);
  --danger: #E0775F;
  --danger-wash: rgba(224, 119, 95, 0.12);
  --on-paper-ink: #16201B;
  --on-paper-mute: #55605A;
  --on-paper-line: #CFCBBE;

  --diwo-2c9: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --diwo-32f: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --diwo-2f4: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --diwo-597: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --diwo-ba8: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --diwo-21d: clamp(1.45rem, 1.25rem + 1vw, 2.05rem);
  --diwo-bea: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  --diwo-937: clamp(2rem, 1.4rem + 3.2vw, 4.2rem);
  --step-hero: clamp(2.1rem, 1.2rem + 5vw, 5.6rem);
  --step-giant: clamp(2rem, 0.9rem + 5.6vw, 6.5rem);

  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --track-display: -0.02em;
  --track-hero: -0.028em;
  --track-mono: 0.06em;
  --track-caps: 0.14em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.375rem;
  --space-xs: 0.5625rem;
  --space-s: 0.875rem;
  --space-m: 1.3125rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.75rem;
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --section-y-tight: clamp(3rem, 6vw, 5.5rem);

  --max: 1320px;
  --max-read: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 5.25rem;
  --header-h-condensed: 4rem;

  --radius: 6px;
  --radius-chip: 4px;
  --radius-panel: 10px;

  --hair: 1px solid var(--line);
  --hair-brass: 1px solid var(--brass-soft);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--line);
  --focus-ring: 0 0 0 2px var(--ink), 0 0 0 4px var(--emerald-text);

  --dur-fast: 140ms;
  --dur-base: 180ms;
  --dur-slow: 420ms;
  --dur-slower: 900ms;
  --dur-reveal: 1400ms;
  --dur-ticker: 64s;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);

  --z-base: 1;
  --z-sticky: 20;
  --z-header: 50;
  --z-nav: 60;
  --z-consent: 80;
  --z-chat: 90;
  --z-skip: 100;

  color-scheme: dark;
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--diwo-32f);
  font-size: var(--diwo-597);
  font-weight: 400;
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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;
}

p,
li,
dd,
figcaption {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--diwo-2c9);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-display);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
  color: var(--paper);
}

h1 {
  font-size: var(--diwo-937);
  line-height: var(--lh-tight);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
}

h2 {
  font-size: var(--diwo-bea);
  line-height: 1.06;
  font-variation-settings: "opsz" 72;
}

h3 {
  font-size: var(--diwo-21d);
  font-weight: 600;
}

h4 {
  font-size: var(--diwo-ba8);
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--step--1);
}

code,
kbd,
samp {
  font-family: var(--diwo-2f4);
  font-size: 0.9em;
}

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

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

:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

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

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

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

.bleed {
  width: 100%;
}

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

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

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

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

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

.page-top {
  padding-top: calc(var(--header-h) + var(--space-2xl));
}

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

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

.stack--l {
  --stack-gap: var(--space-l);
}

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

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

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

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

.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--diwo-2f4);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--mute);
}

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

.mono {
  font-family: var(--diwo-2f4);
  font-size: 0.88em;
  letter-spacing: 0.01em;
  font-feature-settings: "zero" 1;
}

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

.lede {
  font-size: var(--diwo-ba8);
  line-height: 1.5;
  color: var(--paper);
  max-width: 44ch;
}

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

.accent {
  color: var(--emerald-text);
}

.display {
  font-family: var(--diwo-2c9);
  font-weight: 700;
  letter-spacing: var(--track-hero);
  line-height: var(--lh-tight);
  font-variation-settings: "opsz" 96;
}

.numeral {
  font-family: var(--diwo-2c9);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--brass);
  letter-spacing: -0.01em;
}

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

.prose {
  max-width: var(--max-read);
  color: var(--paper);
}

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

.prose h2 {
  font-size: var(--diwo-21d);
  margin-top: 2.2em;
}

.prose h3 {
  font-size: var(--diwo-ba8);
  margin-top: 1.8em;
}

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

.prose p,
.prose li {
  color: rgba(241, 239, 232, 0.86);
}

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

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

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

.prose ol li::marker {
  font-family: var(--diwo-2f4);
  color: var(--brass);
  font-size: 0.85em;
}

.prose a {
  color: var(--emerald-text);
  text-decoration-color: rgba(63, 174, 128, 0.45);
  transition: text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.prose a {
  overflow-wrap: anywhere;
}

.prose a.btn--primary,
.prose a.btn--primary:hover {
  color: var(--paper);
  text-decoration: none;
}

.prose a:hover {
  color: var(--paper);
  text-decoration-color: var(--brass);
}

.prose blockquote {
  border-left: var(--hair-brass);
  padding-left: var(--space-m);
  font-family: var(--diwo-2c9);
  font-size: var(--diwo-ba8);
  line-height: 1.4;
  hanging-punctuation: first last;
}

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

.prose code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-chip);
  overflow-wrap: anywhere;
}

.on-paper {
  background: var(--paper);
  color: var(--on-paper-ink);
  color-scheme: light;
}

.on-paper h1,
.on-paper h2,
.on-paper h3,
.on-paper h4 {
  color: var(--on-paper-ink);
}

.on-paper .muted,
.on-paper .eyebrow {
  color: var(--on-paper-mute);
}

.on-paper .prose p,
.on-paper .prose li {
  color: #2A332E;
}

.on-paper .prose a {
  color: var(--emerald-press);
}

.on-paper .prose a:hover {
  color: var(--on-paper-ink);
}

.lewa247 {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.lewa247:focus-visible {
  outline-offset: 2px;
}

.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;
}

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

.icon--s {
  width: 0.95em;
  height: 0.95em;
}

.icon--l {
  width: 1.5em;
  height: 1.5em;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-slower: 0ms;
    --dur-reveal: 0ms;
  }
  html {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
