/* --------------------------------------------------------------
   base.css — reset, tokens, typography
   -------------------------------------------------------------- */

:root {
  /* palette */
  --bg-primary:    #F6F1EA;
  --bg-secondary:  #EDE4D8;
  --bg-accent:     #E8DDD0;
  --bg-deep:       #E1D4C2;
  --ink-primary:   #2E2A26;
  --ink-soft:      #5C544C;
  --ink-mute:      #8A7F75;
  --rose:          #C9A7A1;
  --rose-deep:     #9E7A76;
  --rose-mist:     #EFDFDB;
  --sage:          #A5AE9B;
  --hydrangea:     #A7B4C1;
  --gold-soft:     #C9B18A;
  --white-warm:    #FBF7F1;

  /* shadows */
  --shadow-soft:   0 30px 60px -32px rgba(46, 42, 38, 0.18);
  --shadow-card:   0 20px 40px -22px rgba(46, 42, 38, 0.22);
  --shadow-lift:   0 40px 80px -28px rgba(46, 42, 38, 0.28);

  /* spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-full: 999px;

  /* type */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* layout */
  --shell-max: 1280px;
  --shell-wide: 1440px;
  --reading-max: 38rem;

  /* header */
  --header-h: 84px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .35s var(--ease-soft);
}
a:hover { color: var(--rose-deep); }

ul, ol { padding: 0; list-style: none; }

/* typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink-primary);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 4vw, 5.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  font-weight: 300;
  line-height: 1.06;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: 400;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem);
  font-weight: 400;
}

.italic { font-style: italic; color: var(--ink-soft); font-weight: 300; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--rose-deep);
}
.eyebrow--sage  { color: var(--sage); }
.eyebrow--ink   { color: var(--ink-soft); }

.lead {
  font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
}

p { color: var(--ink-primary); }
p + p { margin-top: var(--space-4); }

.mute { color: var(--ink-soft); }

::selection {
  background: var(--rose-mist);
  color: var(--ink-primary);
}

/* focus */
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* utility */
.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;
}

.skip-link {
  position: absolute;
  top: -40px; left: 16px;
  background: var(--ink-primary);
  color: var(--white-warm);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top .25s var(--ease-soft);
}
.skip-link:focus { top: 16px; color: var(--white-warm); }
