/* ==============================================
   STYLES: base.css
   Design tokens, reset, typography
   No layout, no components
   ============================================== */


/* --- Reset --- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}


/* --- Design Tokens --- */

:root {

  /* Colors — warm, muted, premium */
  --color-bg:            #FAF8F5;
  --color-bg-warm:       #F3EDE6;
  --color-bg-deep:       #EBE4DA;
  --color-surface:       #FFFFFF;
  --color-text:          #2C2824;
  --color-text-muted:    #7A7068;
  --color-text-light:    #A69D94;
  --color-accent:        #8C7B6B;
  --color-accent-hover:  #6E5F51;
  --color-border:        #E0D8CE;
  --color-border-light:  #EDE7DF;
  --color-overlay:       rgba(44, 40, 36, 0.4);

  /* Typography — Serif display + clean sans body */
  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:     'Outfit', 'Helvetica Neue', sans-serif;

  /* Font sizes — fluid scale */
  --text-xs:    0.75rem;     /* 12px */
  --text-sm:    0.875rem;    /* 14px */
  --text-base:  1rem;        /* 16px */
  --text-md:    1.125rem;    /* 18px */
  --text-lg:    1.25rem;     /* 20px */
  --text-xl:    1.5rem;      /* 24px */
  --text-2xl:   2rem;        /* 32px */
  --text-3xl:   2.5rem;      /* 40px */
  --text-4xl:   3.25rem;     /* 52px */
  --text-5xl:   4rem;        /* 64px */

  /* Font weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  /* Spacing scale */
  --space-xs:   0.5rem;      /* 8px */
  --space-sm:   1rem;        /* 16px */
  --space-md:   1.5rem;      /* 24px */
  --space-lg:   2.5rem;      /* 40px */
  --space-xl:   4rem;        /* 64px */
  --space-2xl:  6rem;        /* 96px */
  --space-3xl:  8rem;        /* 128px */
  --space-4xl:  10rem;       /* 160px */

  /* Layout */
  --max-width:       1200px;
  --max-width-narrow: 800px;
  --max-width-text:   640px;
  --gutter:          clamp(1.5rem, 4vw, 3rem);

  /* Borders & Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  /* Shadows — very subtle, warm */
  --shadow-sm:   0 1px 3px rgba(44, 40, 36, 0.04);
  --shadow-md:   0 4px 16px rgba(44, 40, 36, 0.06);
  --shadow-lg:   0 8px 32px rgba(44, 40, 36, 0.08);

  /* Transitions */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --duration:    0.35s;
  --duration-slow: 0.6s;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.06em;
  --tracking-wider:    0.12em;
}


/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.05;
}

h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  line-height: 1.1;
}

h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  line-height: 1.2;
}

h4 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  line-height: 1.4;
}

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}


/* --- Selection --- */

::selection {
  background-color: var(--color-bg-deep);
  color: var(--color-text);
}
