/* =========================================================
   DIS MEBEL — Design Tokens & Reset
   Dark anthracite + warm gold system (from brand presentation)
   ========================================================= */

@font-face {
  font-family: 'Instrument Serif';
  src: local('Instrument Serif');
}

:root {
  /* ---- Color: DIS-Mebel brand system (dark anthracite + warm gold) ---- */
  --color-ink: #17181a;          /* near-black anthracite */
  --color-ink-soft: #221f1b;     /* warm dark secondary surface */
  --color-paper: #f5f3ef;        /* warm cream */
  --color-white: #ffffff;
  --color-gold: #c69a5b;         /* brand accent — labels, numerals, highlights */
  --color-gold-soft: rgba(198, 154, 91, 0.14);
  --color-stone-50: #f7f6f2;
  --color-stone-100: #eeebe4;
  --color-stone-200: #e2ddd3;
  --color-stone-400: #ada9a0;
  --color-stone-600: #6e6a63;
  --color-stone-800: #423d36;
  --color-line: rgba(23, 24, 26, 0.12);
  --color-line-strong: rgba(23, 24, 26, 0.22);
  --color-line-inverse: rgba(255, 255, 255, 0.16);
  --color-overlay: rgba(17, 16, 14, 0.55);

  /* semantic aliases */
  --surface: var(--color-paper);
  --surface-raised: var(--color-white);
  --surface-inverse: var(--color-ink);
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-stone-600);
  --text-inverse: var(--color-paper);
  --accent: var(--color-gold);

  /* ---- Type scale (fluid, clamp-based) ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);

  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Switzer', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.55;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  --container-max: 1400px;
  --container-pad: clamp(1.25rem, 2vw + 0.5rem, 4rem);

  /* ---- Radius & shadow ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 24, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 24, 26, 0.1);
  --shadow-lg: 0 24px 64px rgba(23, 24, 26, 0.16);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms var(--ease-out);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
}

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

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

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Scroll reveal (opacity/clip-path only, no CLS) ---- */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}
