/* ----- CHIC — Base Stylesheet ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root, [data-theme="light"] {
  /* Surfaces — warm bone */
  --color-bg: #F4EFE8;
  --color-surface: #F8F4ED;
  --color-surface-2: #FAF7F1;
  --color-surface-offset: #EDE6DB;
  --color-surface-offset-2: #E5DCCD;
  --color-divider: #DDD3C2;
  --color-border: #C9BFAB;

  /* Ink — deep espresso */
  --color-text: #2B231C;
  --color-text-muted: #6B6157;
  --color-text-faint: #A89F92;
  --color-text-inverse: #F4EFE8;

  /* Accent — soft sage / sand */
  --color-primary: #4A4A3F;
  --color-primary-hover: #2B231C;
  --color-sand: #C9B79C;
  --color-sage: #9CA08B;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Hoefler Text', 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Type scale (restrained — editorial, not theatrical) */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.18vw, 0.75rem);   /* 11→12 */
  --text-sm:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);   /* 12→14 */
  --text-base: clamp(0.9375rem,0.9rem  + 0.25vw, 1.0625rem);  /* 15→17 */
  --text-lg:   clamp(1.125rem, 1rem    + 0.5vw,  1.375rem);   /* 18→22 */
  --text-xl:   clamp(1.625rem, 1.3rem  + 1.5vw,  2.5rem);     /* 26→40 */
  --text-2xl:  clamp(2.25rem,  1.6rem  + 3vw,    3.75rem);    /* 36→60 */
  --text-hero: clamp(3rem,     1.5rem  + 6vw,    6.5rem);     /* 48→104 */

  /* Spacing — 4px base */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10:2.5rem;  --space-12:3rem;
  --space-16:4rem;    --space-20:5rem;    --space-24:6rem;
  --space-32:8rem;    --space-40:10rem;

  /* Layout */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1440px;
  --gutter: clamp(1.25rem, 3vw, 3rem);

  /* Motion */
  --transition-interactive: 220ms cubic-bezier(.2,.7,.2,1);
  --transition-slow: 600ms cubic-bezier(.2,.7,.2,1);

  /* Radius — minimal, almost square */
  --radius-sm: 1px; --radius-md: 2px; --radius-lg: 3px; --radius-full: 9999px;
}

html {
  color-scheme: light;
  background: #F4EFE8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.005em;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.005em;
  text-wrap: balance;
  line-height: 1.05;
}
p, li, figcaption { text-wrap: pretty; max-width: 65ch; }

::selection { background: var(--color-text); color: var(--color-bg); }
:focus-visible { outline: 1px solid var(--color-text); outline-offset: 4px; }

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

button { cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
a, button, [role="button"] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              opacity var(--transition-interactive);
}

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