/* ===== NORI — Nordic Wabi-Sabi Theme ===== */
/* Warm earth tones, serene minimalism        */
/* ========================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,200;9..40,300;9..40,400;9..40,500&display=swap');

:root {
  /* ——— Palette ——— */
  --clay-50:  #faf6f0;
  --clay-100: #f0e8dc;
  --clay-200: #e0d2bc;
  --clay-300: #c9b69a;
  --clay-400: #ad9476;
  --clay-500: #8f7a5f;
  --clay-600: #74624b;
  --clay-700: #5f4f3c;
  --clay-800: #4a3e2f;
  --clay-900: #362c21;
  --clay-950: #1f1810;

  --sage-50:  #f4f7f1;
  --sage-100: #e3ebe0;
  --sage-200: #c7d7bf;
  --sage-300: #a3bb9a;
  --sage-400: #7f9f75;
  --sage-500: #64845b;
  --sage-600: #4e6947;
  --sage-700: #3e5338;
  --sage-800: #33422e;
  --sage-900: #2a3726;

  --rust-300: #d4a084;
  --rust-400: #c48464;
  --rust-500: #b06a4a;
  --rust-600: #96573b;

  --cream:    #faf5ee;
  --bone:     #f2ede4;
  --silk:     #e8e0d4;
  --sand:     #d5c8b4;
  --taupe:    #a89880;

  /* ——— Semantic ——— */
  --bg-primary:     var(--cream);
  --bg-secondary:   var(--bone);
  --bg-card:        #ffffffdd;
  --bg-overlay:     rgba(31, 24, 16, 0.75);
  --text-primary:   var(--clay-900);
  --text-secondary: var(--clay-600);
  --text-muted:     var(--clay-400);
  --text-inverse:   var(--cream);
  --accent:         var(--rust-500);
  --accent-hover:   var(--rust-600);
  --border:         var(--clay-200);
  --border-light:   var(--clay-100);

  /* ——— Typography ——— */
  --font-display: 'EB Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'SF Mono', 'Menlo', monospace;

  /* ——— Spacing ——— */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* ——— Radii ——— */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ——— Easing ——— */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

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

/* ——— Typography ——— */
h1, h2, h3, h4, .heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clay-900);
}

.display-1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.display-2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.heading-lg {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.body-large {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.8;
}

.body-small {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ——— Grain Texture Overlay ——— */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ——— Scrollbar ——— */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--clay-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clay-400); }

/* ——— Selection ——— */
::selection {
  background: var(--clay-300);
  color: var(--clay-950);
}

/* ——— Utility ——— */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}
