
:root {
  --bg-ground: #ded2bc;
  --bg-surface: #e8dfc9;
  --bg-card: #e2d7c0;
  --bg-raised: #ece4d3;
  --bg-overlay: rgba(222, 210, 188, 0.96);
  --bg-dark: #191815;
  --ink: #1f1d1a;
  --ink-muted: #5c564b;
  --ink-faint: #857e70;
  --ink-inverse: #f5efe3;
  --ink-inverse-muted: #b8b0a2;
  --faded-ochre: #d4a359;
  --olive: #3e4331;
  --olive-light: #52593f;
  --washed-terracotta: #8d3720;
  --accent-burnt: #963517;
  --border: #c7bc9f;
  --border-strong: #a89b79;
  --border-focus: #1f1d1a;

  --wuco-fed: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wuco-f4f: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wuco-b80: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: clamp(0.72rem, 0.7rem + 0.15vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.25vw, 0.92rem);
  --text-base: clamp(0.96rem, 0.92rem + 0.3vw, 1.06rem);
  --text-md: clamp(1.1rem, 1.02rem + 0.5vw, 1.28rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.8vw, 1.55rem);
  --text-xl: clamp(1.5rem, 1.35rem + 1.2vw, 2.05rem);
  --text-2xl: clamp(1.9rem, 1.65rem + 1.8vw, 2.85rem);

  --text-3xl: clamp(2.4rem, 2.05rem + 2.6vw, 3.8rem);
  --text-poster: clamp(3rem, 2.4rem + 4.8vw, 6.2rem);
  --text-display: clamp(3.6rem, 2.8rem + 6.2vw, 8.4rem);

  --leading-tight: 0.95;
  --leading-snug: 1.15;
  --leading-normal: 1.5;
  --leading-loose: 1.75;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-mono: 0.02em;

  --space-2xs: clamp(0.2rem, 0.18rem + 0.1vw, 0.35rem);
  --space-xs: clamp(0.4rem, 0.35rem + 0.25vw, 0.6rem);
  --space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-md: clamp(1.15rem, 0.95rem + 0.8vw, 1.65rem);
  --space-lg: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --space-xl: clamp(2.6rem, 2.1rem + 2.2vw, 4rem);
  --space-2xl: clamp(3.8rem, 3rem + 3.6vw, 6.4rem);
  --space-3xl: clamp(5rem, 4rem + 5vw, 9rem);

  --container-max: 1320px;
  --container-pad: clamp(1rem, 4vw, 3rem);

  --radius-none: 0;
  --radius-subtle: 2px;
  --radius-sm: 3px;

  --shadow-subtle: 0 1px 3px rgba(31, 29, 26, 0.08);
  --shadow-card: 0 4px 14px rgba(31, 29, 26, 0.09);
  --shadow-overlay: 0 12px 36px rgba(31, 29, 26, 0.16);

  --ease-out-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-lux: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-instant: 120ms;
  --dur-fast: 180ms;
  --dur-mid: 280ms;
  --dur-slow: 450ms;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;

  padding: 0;
}

html {
  background-color: var(--bg-ground);
  color: var(--ink);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-ground);
  color: var(--ink);
  font-family: var(--wuco-f4f);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wuco-fed);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-md);
}

p, ul, ol, dl, table, blockquote, figure {
  margin-bottom: var(--space-md);
}

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

p {
  color: var(--ink);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-strong);
  transition: color var(--dur-fast) var(--ease-out-lux),
              text-decoration-color var(--dur-fast) var(--ease-out-lux);
}

a:hover {
  color: var(--accent-burnt);
  text-decoration-color: var(--accent-burnt);
}

a:active {
  color: var(--ink);
}

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

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

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

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

code, kbd, samp, pre {
  font-family: var(--wuco-b80);
  font-size: 0.9em;
}

ul, ol {
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  line-height: var(--leading-loose);
}

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

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--container-pad);
  background: var(--ink);
  color: var(--ink-inverse);
  padding: 0.75rem 1.25rem;
  font-family: var(--wuco-b80);
  font-size: var(--text-xs);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  z-index: 1000;
  border: 1px solid var(--border-strong);
  transition: top var(--dur-fast) var(--ease-out-lux);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent-burnt);
  outline-offset: 2px;
}

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

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

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  vertical-align: -0.15em;
  flex-shrink: 0;
  display: inline-block;
}

.mono {
  font-family: var(--wuco-b80);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-mono);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--ink);
  margin-bottom: var(--space-md);
}

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

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

.tagline {
  font-family: var(--wuco-b80);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}

.flow > * + * {
  margin-top: var(--space-md);
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: var(--space-md);
}

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-md);
}

.grid-margin {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .grid-margin {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
