/* ============================================================
   base.css — Design Tokens & Element Reset
   Part of the Leo Bercoff modular CSS architecture
   ============================================================ */

/* ── Custom Properties (Design Tokens) ─────────────────── */
:root {
  --bg: #f4efe5;
  --bg-soft: #ebe1d0;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: #fffdf8;
  --card-bg: rgba(235, 225, 208, 0.85);
  --text: #171512;
  --muted: #625d54;
  --line: rgba(23, 21, 18, 0.14);
  --accent: #31566c;
  --accent-dark: #213d4d;
  --shadow: 0 20px 55px rgba(38, 31, 21, 0.11);
  --radius: 24px;
  --max-width: 1180px;
}

/* ── Universal Reset ───────────────────────────────────── */
* {
  box-sizing: border-box;
}

/* ── Root Element ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Body Base ─────────────────────────────────────────── */
/*
 * The body background uses the multi-layered gradient + texture pattern.
 * The texture image URL is injected per-page via the --page-bg custom
 * property so each page can use its own arpillera-*.png without
 * duplicating the gradient layers.
 *
 * Usage in per-page <style> override:
 *   body { --page-bg: url("../images/arpillera-ciano.png"); }
 */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      22deg,
      rgba(116, 88, 48, 0.055) 0,
      rgba(116, 88, 48, 0.055) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      112deg,
      rgba(116, 88, 48, 0.04) 0,
      rgba(116, 88, 48, 0.04) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--page-bg, url("../images/arpillera-beige.png")),
    var(--bg);
  background-size: auto, auto, auto, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* ── Images ────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Links ─────────────────────────────────────────────── */
a {
  color: inherit;
}
