/* Created: 2026-07-16 */
/* Last updated: 2026-07-23 */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  background: var(--ink-925);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--gold);
  text-decoration-color: rgba(212, 166, 67, 0.55);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text-strong);
}

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

::selection {
  background: var(--gold);
  color: var(--ink-950);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-4);
  font-size: var(--step-4);
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: var(--step-3);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--step-2);
}

h4 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child,
li:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin-bottom: var(--space-5);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

strong {
  color: var(--text-strong);
  font-weight: 600;
}

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

hr {
  width: 100%;
  height: 1px;
  margin: var(--space-7) 0;
  border: 0;
  background: var(--line);
}

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

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-strong);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

blockquote {
  margin-bottom: var(--space-6);
  padding: var(--space-5) 0 var(--space-5) var(--space-6);
  border-left: 1px solid var(--gold);
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.45;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 1rem;
  transform: translateY(-130%);
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink-950);
  font-weight: 700;
  transition: transform var(--duration) var(--ease);
}

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

.container {
  width: min(calc(100% - 8vw), var(--container));
  margin-inline: auto;
}

.copy {
  max-width: var(--container-copy);
}

.copy-narrow {
  max-width: 37rem;
}

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

.section-compact {
  padding-block: var(--space-7);
}

.section-ruled {
  border-top: 0;
}

.section-surface {
  background: rgba(212, 166, 67, 0.05);
}

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

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

.section-paper p,
.section-paper .lede,
.section-paper li,
.section-paper blockquote {
  color: var(--cream);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  align-items: start;
}

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

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

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

.stack-lg > * + * {
  margin-top: var(--space-7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: var(--space-5);
  color: var(--gold);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.kicker {
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.lede {
  max-width: 44rem;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.55;
}

.micro {
  color: var(--text-soft);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
}

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

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.number {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

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

[hidden] {
  display: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 64rem) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse {
    gap: var(--space-7);
  }
}

@media (max-width: 55rem) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 37.5rem) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }

  h1 {
    font-size: var(--step-3);
  }

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

  th,
  td {
    padding: 0.8rem 0.6rem;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
