/* Shelf & Story design system: shared tokens and accessible foundations. */
:root {
  color-scheme: light;
  --color-paper: #F7F6F1;
  --color-white: #FFFFFF;
  --color-ink: #171717;
  --color-muted: #666666;
  --color-border: #E6E4DE;
  --color-panel: #EFEEE9;
  --color-panel-hover: #E9E8E2;
  --color-sage: #0F5C52;
  --color-sage-soft: #E4EEEB;
  --color-gold: #F7B52C;
  --color-lilac: #E4DCFB;
  --color-peach: #FCDDD4;
  --color-red: #F2624A;

  --font-body: "Inter Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 3vw, 2.2rem);
  --text-display: clamp(3.5rem, 10vw, 8.25rem);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --line-tight: .98;
  --line-normal: 1.55;
  --line-loose: 1.8;
  --heading-display: clamp(3.25rem, 5.4vw, 5rem);
  --heading-title: clamp(2.5rem, 4.2vw, 3.75rem);
  --heading-section: clamp(2rem, 3.4vw, 3rem);
  --tracking-display: -.07em;
  --tracking-serif: -.03em;
  --serif-optical: 1.06;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --container-width: 1120px;
  --content-width: 880px;
  --section-space: clamp(4rem, 10vw, 9rem);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --button-height: 56px;
  --grid-gap: 1rem;
  --grid-gap-wide: 1.5rem;
  --shadow-soft: 0 14px 35px rgb(23 23 23 / 8%);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --bp-mobile: 600px;
  --bp-tablet: 850px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 3px;
}

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

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