/* =========================================================================
   RAPORTSTORE — Design tokens & global styles
   Editorial / magazine direction. Warm neutral palette. Strong type hierarchy.
   ========================================================================= */

:root {
  /* Palette — warm, editorial, sophisticated */
  --ink: #1a1815;          /* warm near-black */
  --ink-soft: #2c2823;     /* secondary text */
  --paper: #f5f1ea;        /* warm cream — primary background */
  --whisper: #faf7f1;      /* lightest off-white */
  --bone: #ece6dc;         /* slight tone — section dividers */
  --stone: #ada69a;        /* muted mid neutral */
  --stone-soft: #c9c2b5;
  --line: #d8d2c5;         /* hairline borders */
  --clay: #b85c38;         /* terracotta — primary accent */
  --clay-deep: #8e4225;
  --sage: #7a8b6f;         /* soft green secondary accent */
  --ochre: #b8954a;        /* tertiary accent */

  /* Type */
  --font-display: "Instrument Serif", "Cormorant", "Georgia", serif;
  --font-body: "DM Sans", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Sizing scale (editorial) */
  --t-eyebrow: 11px;
  --t-body: 15px;
  --t-body-lg: 17px;
  --t-h6: 18px;
  --t-h5: 22px;
  --t-h4: 30px;
  --t-h3: 44px;
  --t-h2: 64px;
  --t-h1: 96px;
  --t-hero: 132px;

  /* Spacing */
  --container-max: 1480px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Reusable type */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); line-height: 1.1; }
h5 { font-family: var(--font-body); font-weight: 500; font-size: var(--t-h5); margin: 0; letter-spacing: -0.005em; }
h6 { font-family: var(--font-body); font-weight: 500; font-size: var(--t-h6); margin: 0; }
p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: var(--whisper); }
.btn--clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn--lg { padding: 18px 30px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* Link */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s ease;
}
.link-underline:hover { background-size: 0 1px; }

/* Pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bone);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chip--clay { background: rgba(184, 92, 56, 0.12); color: var(--clay-deep); }
.chip--sage { background: rgba(122, 139, 111, 0.18); color: #51604a; }

/* Big numbered sections */
.section-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* Image treatments */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hairlines */
hr.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Page transition fade */
.page-enter { animation: fadeIn .4s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav is fixed — non-home pages need top spacing to clear it. Home hero owns
   the top of the viewport and the nav floats transparent over it. */
.page-enter:not(.home-root) {
  padding-top: 76px;
}

/* Image-slot defaults */
image-slot {
  --is-bg: #ede6d6;
  --is-fg: #6b6557;
  --is-border: rgba(0,0,0,0.08);
}

/* Sample swatch dot */
.swatch-dot {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
  flex: 0 0 22px;
}

/* Cursor for interactive moodboard */
.cursor-move { cursor: move; }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-stone { color: var(--stone); }
.text-ink-soft { color: var(--ink-soft); }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Responsive scale-down */
@media (max-width: 1100px) {
  :root {
    --t-h1: 64px;
    --t-h2: 48px;
    --t-h3: 32px;
    --t-hero: 88px;
  }
}
@media (max-width: 720px) {
  :root {
    --t-h1: 44px;
    --t-h2: 34px;
    --t-h3: 26px;
    --t-h4: 24px;
    --t-hero: 60px;
    --gutter: 18px;
  }
}
