/* =================================================================
   DIPA Arquitectos — Colors & Type
   ================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Overpass";
  src: url("fonts/Overpass-VariableFont_wght.ttf") format("truetype-variations"),
       url("fonts/Overpass-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Base brand palette (sampled from DIPA_PaletaDeColor.pdf) ---------- */
  /* Listed top-to-bottom as in the source artboard. */
  --dipa-paper:        #ffffff;  /* paper / page */
  --dipa-mist:         #cacbcd;  /* light cool grey */
  --dipa-stone:        #515450;  /* warm dark grey */
  --dipa-sage:         #80867f;  /* soft sage / olive grey */
  --dipa-slate:        #373a40;  /* deep slate / near-navy */
  --dipa-ink:          #1a1b1b;  /* near-black, used in the wordmark */

  /* ---------- Neutral scale (derived for UI use) ---------- */
  --dipa-n-0:   #ffffff;
  --dipa-n-50:  #f6f6f6;
  --dipa-n-100: #ecedee;
  --dipa-n-200: #d9dadc;
  --dipa-n-300: #cacbcd;  /* mist */
  --dipa-n-400: #a4a6a4;
  --dipa-n-500: #80867f;  /* sage */
  --dipa-n-600: #5f6360;
  --dipa-n-700: #515450;  /* stone */
  --dipa-n-800: #373a40;  /* slate */
  --dipa-n-900: #1a1b1b;  /* ink */

  /* ---------- Semantic foreground / background ---------- */
  --bg:          var(--dipa-paper);
  --bg-soft:     var(--dipa-n-50);
  --bg-muted:    var(--dipa-n-100);
  --bg-inverse:  var(--dipa-ink);

  --fg:          var(--dipa-ink);
  --fg-muted:    var(--dipa-stone);
  --fg-subtle:   var(--dipa-sage);
  --fg-onDark:   var(--dipa-paper);

  --border:      var(--dipa-mist);
  --border-soft: var(--dipa-n-100);
  --rule:        var(--dipa-ink);   /* hairline rules use ink at 100% / 1px */

  --accent:      var(--dipa-ink);   /* monochrome system — emphasis is ink, not a chromatic accent */

  /* ---------- Typography ---------- */
  --font-sans:    "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — quiet, editorial, generous leading.
     The wordmark is light-weight + wide-tracked; body stays modest weight. */
  --fs-display:  clamp(56px, 7vw, 112px);  /* hero / wordmark presentations */
  --fs-h1:       clamp(40px, 4.5vw, 64px);
  --fs-h2:       clamp(28px, 3vw, 40px);
  --fs-h3:       22px;
  --fs-h4:       18px;
  --fs-body:     16px;
  --fs-small:    13px;
  --fs-micro:    11px;

  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-loose:   1.7;

  /* Letter-spacing — wordmark and section labels are heavily tracked,
     body type is neutral. */
  --ls-wordmark:  0.18em;
  --ls-eyebrow:   0.32em;
  --ls-label:     0.14em;
  --ls-body:      0;
  --ls-display:   -0.01em;

  /* ---------- Spacing (8-pt base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- Radii & rules ---------- */
  --radius-0:   0;        /* default: nothing is rounded */
  --radius-1:   2px;      /* small UI fields */
  --radius-2:   4px;      /* inputs / cards */
  --radius-pill: 999px;   /* used very rarely, for tags */
  --rule-hair:  1px;

  /* ---------- Shadows — minimal, almost never used.
     The brand reads as flat, paper-like. ---------- */
  --shadow-0:   none;
  --shadow-1:   0 1px 0 rgba(26, 27, 27, 0.06);
  --shadow-2:   0 8px 24px -12px rgba(26, 27, 27, 0.18);

  /* ---------- Motion ---------- */
  --ease-out:   cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   420ms;
}

/* ---------- Semantic type styles ----------
   Use these as base class names or directly on tags. */

.t-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--fg);
}

.t-display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 300;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  color: var(--fg);
}

h1, .t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: var(--lh-tight);
  color: var(--fg);
}

h2, .t-h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--fg);
}

h3, .t-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--fg);
}

h4, .t-h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--fg);
}

p, .t-body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

.t-small {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}

.t-eyebrow,
.t-label {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
