/* ============================================================
   BASE.CSS — design tokens, resets, typography, shared layout
   ============================================================ */

/* Fonts loaded via <link> tags in each HTML file */

/* --- Design Tokens --- */
:root {
  --bg:          #d9d2c5;   /* medium warm — between old grey and cream */
  --bg-card:     #d0c9bb;   /* slightly deeper */
  --bg-panel:    #cfc8ba;   /* side panel */
  --text-dark:   #1a1a18;   /* near-black warm */
  --text-mid:    #4a4438;   /* warm dark brown */
  --text-light:  #857d72;   /* warm stone */
  --accent:      #6b5540;   /* aged ink */
  --line:        rgba(74, 68, 56, 0.22);
  --shadow:      rgba(26, 26, 24, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;

  --nav-height:  64px;
  --max-w:       1100px;
  --max-w-text:  760px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* --- Page wrapper --- */
.page-container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 6rem;
}

/* --- Navigation --- */
.navbar {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background-color: var(--bg);
  z-index: 100;
}

.nav-container {
  max-width: var(--max-w-text);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active { color: var(--text-dark); }

/* --- Typography --- */
h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-dark);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

p.small {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

p.label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- Section spacers --- */
.section     { padding: 4rem 0; }
.section--sm { padding: 2rem 0; }
.section--lg { padding: 7rem 0; }
