@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #14120F;
  --ink-2: #1D1A16;
  --ink-3: #2A261F;
  --ink-4: #342F27;
  --rule: #3B352D;
  --rule-soft: rgba(243, 238, 228, 0.08);
  --paper: #F3EEE4;
  --paper-2: #E8E1D3;
  --paper-dim: #BFB6A7;
  --muted: #A39A8B;
  --accent: #C29B5C;
  --accent-hi: #D6B37A;
  --accent-lo: #9C7A43;
  --accent-wash: rgba(194, 155, 92, 0.12);
  --on-accent: #14120F;
  --danger: #E08A6E;
  --danger-wash: rgba(224, 138, 110, 0.1);
  --ok: #A9B98A;

  --wire-328: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wire-482: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --wire-b12: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-micro: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --fs-h4: clamp(1.1875rem, 0.6vw + 1.05rem, 1.4375rem);
  --fs-h3: clamp(1.4375rem, 1.3vw + 1.1rem, 2.125rem);
  --fs-h2: clamp(2rem, 3.6vw + 1rem, 4.25rem);
  --fs-h1: clamp(2.25rem, 8.5vw, 8rem);
  --fs-display-xl: clamp(2.25rem, 10vw, 10.5rem);
  --fs-numeral: clamp(3.5rem, 14vw, 13rem);
  --fs-quote: clamp(1.9rem, 6.2vw, 7.5rem);
  --fs-row: clamp(1.875rem, 6vw, 5.75rem);

  --lh-tight: 0.98;
  --lh-snug: 1.12;
  --lh-body: 1.6;
  --track-display: -0.02em;
  --track-tight: -0.035em;
  --track-mono: 0.08em;
  --track-kicker: 0.16em;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1.125rem;
  --space-m: 1.75rem;
  --space-l: 2.75rem;
  --space-xl: 4.25rem;
  --space-2xl: 6.5rem;
  --section-y: clamp(5rem, 12vw, 11rem);
  --section-y-tight: clamp(3.5rem, 7vw, 6.5rem);

  --shell: 1360px;
  --shell-narrow: 880px;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 5rem;

  --radius: 2px;
  --radius-0: 0;
  --hair: 1px solid var(--rule);
  --hair-soft: 1px solid var(--rule-soft);
  --shadow-lift: 0 1px 0 rgba(243, 238, 228, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(243, 238, 228, 0.03) inset;
  --focus-ring: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent);

  --dur-instant: 120ms;
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-slow: 420ms;
  --dur-slower: 720ms;
  --dur-scene: 1200ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 0.12, 0.2, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.5, 1);

  --z-base: 1;
  --z-header: 50;
  --z-overlay: 80;
  --z-chat: 90;
  --z-consent: 95;
  --z-skip: 100;

  --consent-h: 0px;

  color-scheme: dark;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ink);
  color: var(--paper-dim);
  font-family: var(--wire-482);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 30%, var(--paper) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 80%, var(--paper) 0.5px, transparent 1px),
    radial-gradient(circle at 45% 60%, var(--paper) 0.4px, transparent 0.9px);
  background-size: 3px 3px, 5px 5px, 7px 7px;
}

body > * {
  position: relative;
  z-index: var(--z-base);
}

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

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

img {
  height: auto;
  border-radius: var(--radius-0);
}

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

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

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

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--wire-328);
  font-optical-sizing: auto;
  color: var(--paper);
  font-weight: 300;
  letter-spacing: var(--track-display);
  line-height: var(--lh-snug);
  text-wrap: balance;
  hanging-punctuation: first;
}

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

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

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

h4,
.h4 {
  font-size: var(--fs-h4);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 em,
h2 em,
h3 em,
.display em {
  font-style: italic;
  font-weight: 300;
}

.accent-word {
  color: var(--accent);
  font-style: italic;
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

strong,
b {
  color: var(--paper);
  font-weight: 600;
}

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

.display {
  font-family: var(--wire-328);
  font-size: var(--fs-display-xl);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: var(--track-tight);
  color: var(--paper);
}

.numeral {
  font-family: var(--wire-328);
  font-size: var(--fs-numeral);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--paper);
}

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

.kicker,
.mono,
.meta {
  font-family: var(--wire-b12);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  color: var(--muted);
}

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

.kicker--plain::before {
  display: none;
}

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

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

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

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

.prose h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  margin-top: 2.2em;
}

.prose h3 {
  font-size: var(--fs-h3);
  margin-top: 1.9em;
}

.prose h4 {
  margin-top: 1.6em;
}

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

.prose a {
  color: var(--paper);
  text-decoration-color: var(--accent);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

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

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

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

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

.prose ol li::marker {
  font-family: var(--wire-b12);
  font-size: 0.85em;
  color: var(--muted);
}

.prose blockquote {
  border-left: 1px solid var(--accent);
  padding-left: 1.25em;
  font-family: var(--wire-328);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25em;
  color: var(--paper);
}

.prose code {
  font-family: var(--wire-b12);
  font-size: 0.88em;
  padding: 0.08em 0.4em;
  background: var(--ink-3);
  border-radius: var(--radius);
  color: var(--paper);
  overflow-wrap: anywhere;
}

.prose hr {
  margin: 2.5em 0;
}

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

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

.shell--bleed {
  max-width: none;
}

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

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

.section--raised {
  background: var(--ink-2);
}

.section--paper {
  background: var(--paper);
  color: #3E382F;
}

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

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

.section--raised + .section,
.section + .section--raised,
.section--paper + .section,
.section + .section--paper {
  border-top: 0;
}

.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-l);
  grid-template-columns: 1fr;
}

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

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

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

.rule {
  border: 0;
  border-top: var(--hair);
  width: 100%;
}

.rule--accent {
  border-top-color: var(--accent);
  width: 4.5rem;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

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

.media--wide {
  aspect-ratio: 16 / 9;
}

.media--photo {
  aspect-ratio: 3 / 2;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.caption {
  font-family: var(--wire-b12);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mono);
  color: var(--muted);
  margin-top: var(--space-xs);
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
}

.pecu28b {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.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;
  white-space: nowrap !important;
  border: 0 !important;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--wire-b12);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

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

.text-center {
  text-align: center;
}

.nowrap-short {
  white-space: nowrap;
}

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

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

  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-slower: 0ms;
    --dur-scene: 0ms;
  }
}

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

@media print {
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
