/*
  Base styles: reset, variables, typography, links, utilities
*/

/* 1) Modern CSS reset (lightweight) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }

/* 2) Design tokens */
:root {
  /* Colors */
  --color-bg: #F7F6F4;          /* Porcelain */
  --color-ink: #121212;         /* Near-black */
  --color-accent-1: #A06C6C;    /* Dried Peony */
  --color-accent-2: #5E6B5E;    /* Moss Grey-Green */
  --color-ui: #D8D4CF;          /* Warm Grey */
  --color-notice: #C7A86F;      /* Soft Gold */

  /* Typography */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Fluid type scale */
  --fs-xxl: clamp(2.4rem, 3vw + 1rem, 4rem);
  --fs-xl: clamp(1.8rem, 2vw + 0.75rem, 2.6rem);
  --fs-lg: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  --fs-base: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  --fs-sm: clamp(0.9rem, 0.2vw + 0.85rem, 1rem);

  /* Spacing */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Effects */
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --transition-fast: 160ms ease;
  --transition-med: 280ms ease;
}

/* 3) Base */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-xxl); line-height: 1.1; }
h2 { font-size: var(--fs-xl); line-height: 1.15; }
h3 { font-size: var(--fs-lg); line-height: 1.2; }

p { margin-block: var(--space-md); color: rgba(18,18,18,0.9); }

/* 4) Links with subtle underline grow */
a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%; transition: background-size var(--transition-med); }
a:hover, a:focus-visible { background-size: 100% 1px; }

/* 5) Utilities */
.container { width: min(1200px, 92%); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.muted { color: rgba(18,18,18,0.7); }

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


