/* directory-resource tokens — primitives come from the site record. */
:root {
  color-scheme: light;
  --ink: #1c1710;
  --paper: #f3eee4;
  --accent: #8b3d12;
  --primary: #3f4f2e;
  --surface: #e4d2b0;
  --muted: #3a2c1e;
  --accent-2: #2f6b4f;
  --highlight: #7eb8c9;
  --hero-plate: #f3eee4;
  --font-display: "Archivo", "Iowan Old Style", Palatino, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --mascot-max-height: 22rem;
  --texture: url("/textures/kraft-paper.svg");
  --texture-opacity: 0.14;
  --texture-canvas: url("/textures/canvas-weave.svg");
  --texture-torn: url("/textures/torn-edge.svg");
  --grad-hero: linear-gradient(180deg, #f3eee4 0%, transparent 58%),
    linear-gradient(135deg, #3f4f2e 0%, #7eb8c9 46%, #e4d2b0 100%);
  --grad-wash: linear-gradient(120deg, #f3eee4 0%, #dceee8 40%, #7eb8c9 100%);
  --grad-accent: linear-gradient(135deg, #3f4f2e, #8b3d12);

  --brand-primary: var(--primary);
  --brand-ink: var(--ink);
  --brand-paper: var(--paper);

  --color-background: var(--paper);
  --color-surface: var(--surface);
  --color-surface-elevated: color-mix(in oklab, var(--paper) 88%, var(--surface));
  --color-header: color-mix(in oklab, var(--paper) 92%, var(--surface));
  --color-footer: color-mix(in oklab, var(--paper) 70%, var(--ink) 30%);
  --color-muted: color-mix(in oklab, var(--ink) 12%, var(--paper));
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-primary: var(--primary);
  --color-accent: var(--accent);
  --color-on-primary: var(--paper);
  --color-border: color-mix(in oklab, var(--ink) 16%, transparent);
  --color-focus: var(--accent);
  --color-glass: color-mix(in oklab, var(--ink) 42%, transparent);
  --color-hero-overlay: color-mix(in oklab, var(--ink) 72%, transparent);

  --radius-sm: 0.4rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.6rem;
  --radius-full: 9999px;
  --touch-min: 2.75rem;
  --pad-inline: 1.5rem;
  --container: 80rem;
  --header-h: 4rem;
  --font-size-sm: clamp(0.8rem, 0.76rem + 0.15vw, 0.875rem);
  --font-size-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --font-size-lg: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  --font-size-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --font-size-3xl: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  --shadow-sm: 0 1px 2px color-mix(in oklab, var(--ink) 12%, transparent);
  --shadow-md: 0 8px 24px color-mix(in oklab, var(--ink) 14%, transparent);
  --max-prose: 40rem;
}

html[data-theme="light"] {
  color-scheme: light;
}

.has-texture {
  position: relative;
  isolation: isolate;
  background-image: var(--texture);
  background-size: 256px 256px;
}

.has-texture > * {
  position: relative;
  z-index: 1;
}

.has-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 256px 256px;
  mix-blend-mode: multiply;
  opacity: var(--texture-opacity, 0.12);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 639px) {
  :root {
    --pad-inline: 1rem;
  }
}
@media (min-width: 1280px) {
  :root {
    --pad-inline: 2rem;
  }
}
