
:root {
  --ground: #e4eae3;
  --surface: #d5dcd4;
  --surface-2: #c2cac1;
  --line: #a0a79f;
  --ink-soft: #4a4f49;
  --ink: #272a27;
  --accent: #a86515;
  --accent-ink: #ffffff;

  --fete-e48: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;

  --fete-dad: "Literata", "Literata Fallback", Georgia, "Times New Roman", serif;
  --fete-c48: "JetBrains Mono", "JetBrains Mono Fallback", Consolas, Menlo, Monaco, monospace;

  --step--2: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --step--1: clamp(0.84rem, 0.8rem + 0.25vw, 0.95rem);
  --fete-e90: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --fete-761: clamp(1.18rem, 1.1rem + 0.55vw, 1.35rem);
  --fete-ffd: clamp(1.4rem, 1.28rem + 0.85vw, 1.7rem);
  --fete-d97: clamp(1.68rem, 1.48rem + 1.25vw, 2.15rem);
  --fete-f31: clamp(2.05rem, 1.75rem + 1.8vw, 2.75rem);
  --fete-30a: clamp(2.45rem, 2.05rem + 2.5vw, 3.5rem);

  --space-3xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.35rem);
  --space-2xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.65rem);
  --space-xs: clamp(0.75rem, 0.7rem + 0.35vw, 0.95rem);
  --space-s: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.4rem + 0.75vw, 1.95rem);
  --space-l: clamp(2rem, 1.85rem + 1.15vw, 2.75rem);
  --space-xl: clamp(3rem, 2.75rem + 1.75vw, 4.25rem);
  --space-2xl: clamp(4.5rem, 4rem + 2.75vw, 6.5rem);

  --band: clamp(4.5rem, 6vw, 6rem);
  --band-tight: clamp(2.5rem, 3.5vw, 3.5rem);
  --band-open: clamp(5.5rem, 8vw, 7.5rem);

  --shell-max: 1240px;
  --shell-pad: clamp(0.75rem, 3.5vw, 3.5rem);
  --radius-xs: 2px;
  --radius-s: 2px;
  --control-h: 46px;
  --radius: 2px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-short: 140ms;
  --duration-medium: 220ms;
  --duration-long: 380ms;

  --pinned-bar-height: 48px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--pinned-bar-height) + 1.5rem);
  background-color: var(--ground);
  color: var(--ink);
}

body {
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--fete-dad);
  font-size: var(--fete-e90);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
  font-style: italic;
  shape-margin: 0.75rem;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--fete-e48);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--fete-30a);
  font-weight: 500;
  line-height: 1.08;
}

h2 {
  font-size: var(--fete-f31);
  font-weight: 500;
  line-height: 1.15;
}

h3 {
  font-size: var(--fete-ffd);
  font-weight: 500;
  line-height: 1.25;
}

h4 {
  font-size: var(--fete-761);
  font-weight: 600;
  line-height: 1.3;
}

p {
  max-width: 65ch;
  color: var(--ink);
}

p + p {
  margin-top: 1.15em;
}

p.standfirst,
.standfirst {
  font-family: var(--fete-e48);
  font-size: var(--fete-761);
  line-height: 1.45;
  color: var(--ink);
  max-width: 62ch;
}

small,
.caption,
.meta-note {
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-soft);
}

.mono,
.tabular {
  font-family: var(--fete-c48);
  font-feature-settings: "tnum" 1, "zero" 1;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-short) var(--ease-standard),
              text-decoration-color var(--duration-short) var(--ease-standard);
}

a:hover {

  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:target {
  scroll-margin-top: calc(var(--pinned-bar-height) + 2rem);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--fete-c48);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-short) var(--ease-standard);
  border-radius: var(--radius-xs);
}

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

.shell-container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.flow > * + * {
  margin-block-start: var(--space-m);
}

.flow-loose > * + * {
  margin-block-start: var(--space-xl);
}

.section-ledger-gap {
  padding-block: var(--band);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  width: 100%;
}

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

.icon {
  width: 1.15em;

  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}

.signature-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  position: relative;
}

.signature-lockup .lockup-primary {
  font-family: var(--fete-e48);
  font-size: var(--fete-f31);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.signature-lockup .lockup-offset {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding-inline-start: clamp(1.5rem, 4vw, 3.25rem);
}

.signature-lockup .lockup-offset::before {
  content: "";
  display: inline-block;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background-color: var(--accent);
}

.signature-lockup .lockup-secondary {
  font-family: var(--fete-c48);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.text-subtle {
  color: var(--ink-soft);
}

.text-lead {
  font-size: var(--fete-761);
  line-height: 1.48;
}

.text-mono {
  font-family: var(--fete-c48);
}

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

.repel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

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

.surface-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-l);
  border-radius: var(--radius-xs);
}

.surface-nested {
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  padding: var(--space-m);
  border-radius: var(--radius-xs);
}

.visual-rule {
  height: 1px;
  background-color: var(--line);
  border: none;
  width: 100%;
}

.visual-rule-accent {
  height: 1px;
  background-color: var(--accent);
  border: none;
  width: 48px;
}

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

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