/* ==========================================================================
   BYB Bygg & Design AB — grundstilar & variabler
   ========================================================================== */

:root {
  /* Färgpalett — svart/mörk bas med mörkgrå accent */
  --ink: #121110;
  --ink-soft: #1D1A17;
  --ink-elevated: #262220;
  --ink-line: rgba(246, 243, 236, 0.14);
  --ink-text: #F4F1E9;
  --ink-text-faded: rgba(244, 241, 233, 0.68);

  --paper: #F5F2EA;
  --paper-deep: #EBE5D6;
  --paper-line: rgba(18, 17, 16, 0.13);

  --text: #211D18;
  --text-soft: #55503f;
  --text-faded: rgba(33, 29, 24, 0.64);

  --gold: #736E64;
  --gold-bright: #8F897D;
  --gold-deep: #4B4841;
  --gold-pale: #B8B2A6;

  --success: #4C7A52;

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --max: 1280px;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); font-weight: 600; }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.15rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

p { max-width: 62ch; color: var(--text-soft); }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text); font-weight: 400; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 1.6rem; height: 2px;
  background: var(--gold-deep);
}
section.on-dark .eyebrow,
.on-dark .eyebrow { color: var(--gold-bright); }
.on-dark .eyebrow::before { background: var(--gold-bright); }

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