/* Shared design tokens and primitives for Shakespeare Aside. */
:root {
  color-scheme: light;
  --ink: #211a16;
  --muted-ink: #665d52;
  --faint-ink: rgba(102, 93, 82, 0.55);
  --paper: #fbf7ed;
  --paper-raised: #fffaf1;
  --paper-deep: #f1e7d5;
  --walnut: #171512;
  --walnut-soft: #29231d;
  --rule: #d8cbbb;
  --rule-soft: rgba(216, 203, 187, 0.55);
  --rubric: #9f2f2b;
  --rubric-deep: #6e2421;
  --rubric-wash: rgba(159, 47, 43, 0.08);
  --gold: #b28b45;
  --gold-soft: rgba(178, 139, 69, 0.65);
  --cream: #f7f0e4;
  --cream-muted: #c7b8a5;
  --shadow: 0 18px 60px rgba(35, 26, 18, 0.18);
  --shadow-soft: 0 10px 30px rgba(35, 26, 18, 0.12);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  touch-action: manipulation;
}

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

.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

:is(button, a, select, textarea, input, summary):focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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