/* ============================================================
   351LAB — Design Tokens
   Architectural visualization studio
   ============================================================ */

/* Body / display fonts loaded from Google Fonts CDN:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

   The logo font (TallDark) is bundled locally in this skill — it's the
   same family used in the original 351LAB logo. Loaded once below and
   exposed as --font-logo. Use it only for the brand mark, brand
   eyebrows and very-rare oversize editorial moments.
*/

@font-face {
  font-family: 'TallDark';
  /* Bundled brand font. Canonical location is assets/fonts/, with a
     fallback to fonts/ in case the system drops the upload there. */
  src: url('../assets/fonts/TallDark.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   EDITORIAL V2 — Playfair Display (titulares serif) + Inter
   (interfaz). Auto-alojadas, igual que TallDark arriba, para no
   depender de Google Fonts. Usadas primero en Home; el resto del
   sitio sigue con Archivo/Manrope hasta su fase correspondiente.
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ----------------------------------------------------------
     EDITORIAL V2 — paleta y tipografía del paquete de dirección
     de arte (351LAB_PACK_CLAUDE_V2). Nombres tal como los define
     02_SISTEMA_VISUAL_Y_DISENO.md. Conviven con la escala
     steel/bone/ink de arriba: las secciones no migradas todavía
     siguen usando esa escala hasta su fase.
     ---------------------------------------------------------- */
  --paper:  #FAF9F6;
  --sand:   #E8E1D7;
  --ink:    #111B23;
  --night:  #0C161E;
  --accent: #9FB1C7;
  --muted:  #667783;
  --line:   #DCDCD8;

  --font-serif-ed: 'Playfair Display', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans-ed:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ed-pad: clamp(26px, 4.4vw, 74px);
  --ed-nav: 98px;


  /* ----------------------------------------------------------
     COLOR — Steel Blue scale (primary brand color)
     Anchor #355A75 sampled directly from the 351 signature.
     ---------------------------------------------------------- */
  --steel-950: #0B141B;   /* near-black, deepest ink */
  --steel-900: #14222C;
  --steel-800: #1F3548;
  --steel-700: #2A4A63;
  --steel-600: #345B76;   /* BRAND PRIMARY — sampled from authoritative logo color picker (RGB 52,91,118) */
  --steel-500: #4A7592;
  --steel-400: #7196AE;
  --steel-300: #A4BACA;
  --steel-200: #CDD9E3;
  --steel-100: #E5ECF2;   /* logo fg gray */
  --steel-50:  #F2F5F8;

  /* ----------------------------------------------------------
     COLOR — Bone (warm neutral, contrast to cool steel)
     Used for paper backgrounds, brochure surfaces.
     ---------------------------------------------------------- */
  --bone-50:   #FAFAF7;
  --bone-100:  #F5F2EC;
  --bone-200:  #EBE6DA;
  --bone-300:  #D9D2BF;
  --bone-400:  #B8AE94;
  --bone-500:  #8C8369;

  /* ----------------------------------------------------------
     COLOR — Ink scale (true neutrals for type)
     ---------------------------------------------------------- */
  --ink-950:   #0A0E12;
  --ink-900:   #14181D;
  --ink-800:   #1E242B;
  --ink-700:   #2B333C;
  --ink-600:   #485561;
  --ink-500:   #6B7682;
  --ink-400:   #94A0AB;
  --ink-300:   #BDC6CE;
  --ink-200:   #E0E5EA;
  --ink-100:   #F0F3F6;

  /* ----------------------------------------------------------
     COLOR — System is 100% monochrome.
     No warm accent. Hierarchy comes from steel value, ink
     contrast, and white space — never from a chromatic accent.
     For elements that need to "pop" on a dark surface, use
     --steel-100 / paper-white. Reserve --color-fg-accent
     (mapped to steel-600) only when an inline mark must read
     as the brand color on a neutral background.
     ---------------------------------------------------------- */

  /* ----------------------------------------------------------
     SEMANTIC COLORS
     ---------------------------------------------------------- */
  --color-bg:           var(--bone-50);
  --color-bg-elevated:  #FFFFFF;
  --color-bg-inverse:   var(--steel-900);
  --color-bg-brand:     var(--steel-600);
  --color-bg-subtle:    var(--bone-100);

  --color-fg:           var(--ink-900);
  --color-fg-muted:     var(--ink-500);
  --color-fg-subtle:    var(--ink-400);
  --color-fg-inverse:   var(--steel-100);
  --color-fg-brand:     var(--steel-600);
  --color-fg-on-brand:  var(--steel-100);
  --color-fg-accent:    var(--steel-600);

  --color-border:       rgba(20, 34, 44, 0.10);
  --color-border-strong:rgba(20, 34, 44, 0.20);
  --color-border-inverse:rgba(229, 236, 242, 0.14);

  --color-success: #3E7F5E;
  --color-warning: #B8762A;
  --color-danger:  #B14747;

  /* ----------------------------------------------------------
     TYPE — families
     ---------------------------------------------------------- */
  --font-logo:    'TallDark', 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ----------------------------------------------------------
     TYPE — scale (modular, designed for editorial layouts)
     ---------------------------------------------------------- */
  --fs-xs:   12px;   --lh-xs:  16px;
  --fs-sm:   14px;   --lh-sm:  20px;
  --fs-base: 16px;   --lh-base:24px;
  --fs-md:   18px;   --lh-md:  28px;
  --fs-lg:   22px;   --lh-lg:  30px;
  --fs-xl:   28px;   --lh-xl:  36px;
  --fs-2xl:  36px;   --lh-2xl: 44px;
  --fs-3xl:  48px;   --lh-3xl: 56px;
  --fs-4xl:  64px;   --lh-4xl: 72px;
  --fs-5xl:  88px;   --lh-5xl: 92px;
  --fs-6xl:  120px;  --lh-6xl: 120px;

  /* eyebrow / overline tracking */
  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-wider:  0.16em;
  --tracking-widest: 0.24em;

  /* ----------------------------------------------------------
     SPACING (4px base grid)
     ---------------------------------------------------------- */
  --sp-0:   0;
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;
  --sp-32:  128px;
  --sp-40:  160px;

  /* ----------------------------------------------------------
     RADII — restrained, mostly sharp edges (architectural)
     ---------------------------------------------------------- */
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;     /* default for inputs/buttons */
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 999px;

  /* ----------------------------------------------------------
     SHADOWS — layered, soft, with depth (3D look)
     Multi-layer to give the architectural / dimensional feel
     the brand asked for.
     ---------------------------------------------------------- */
  --shadow-xs:
    0 1px 2px rgba(20, 34, 44, 0.05);
  --shadow-sm:
    0 1px 2px rgba(20, 34, 44, 0.06),
    0 2px 4px rgba(20, 34, 44, 0.04);
  --shadow-md:
    0 2px 4px rgba(20, 34, 44, 0.05),
    0 6px 12px rgba(20, 34, 44, 0.06);
  --shadow-lg:
    0 4px 8px rgba(20, 34, 44, 0.06),
    0 14px 28px rgba(20, 34, 44, 0.10);
  --shadow-xl:
    0 8px 16px rgba(20, 34, 44, 0.08),
    0 24px 48px rgba(20, 34, 44, 0.14);
  --shadow-2xl:
    0 16px 32px rgba(20, 34, 44, 0.10),
    0 40px 80px rgba(20, 34, 44, 0.20);

  /* "lifted" — a render or hero card floating off the page */
  --shadow-render:
    0 2px 4px rgba(20, 34, 44, 0.06),
    0 12px 24px rgba(20, 34, 44, 0.10),
    0 48px 96px rgba(20, 34, 44, 0.16);

  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-focus: 0 0 0 3px rgba(53, 90, 117, 0.32);

  /* ----------------------------------------------------------
     MOTION
     ---------------------------------------------------------- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-stand:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     140ms;
  --dur-base:     220ms;
  --dur-slow:     360ms;
  --dur-cinematic:640ms;

  /* ----------------------------------------------------------
     LAYOUT
     ---------------------------------------------------------- */
  --container-sm:  640px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1440px;
  --container-2xl: 1680px;
  --grid-gutter:   24px;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Use directly OR via utility classes (.display-1, .body, etc.)
   ============================================================ */

html, body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-fg);
  background: var(--color-bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* DISPLAY — for hero / cover titles */
.display-1, h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, var(--fs-6xl));
  line-height: 0.96;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, var(--fs-5xl));
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
}

/* H1–H6 */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-4xl);
  line-height: var(--lh-4xl);
  letter-spacing: var(--tracking-tight);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: var(--lh-3xl);
  letter-spacing: var(--tracking-snug);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: var(--lh-2xl);
  letter-spacing: var(--tracking-snug);
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: var(--lh-xl);
}
h5, .h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
}
h6, .h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}

/* Body */
p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-fg);
  text-wrap: pretty;
}
.body-lg {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
}
.body-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  color: var(--color-fg-muted);
}

/* Eyebrow / overline — small all-caps label */
.eyebrow, .overline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  line-height: 1;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-fg-muted);
}
.eyebrow.brand { color: var(--color-fg-brand); }

/* Captions / metadata */
.caption {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-fg-muted);
}

/* Mono / numerical */
code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* Editorial helpers */
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--color-fg-muted);
  max-width: 60ch;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover { text-decoration: underline; }

/* Selection */
::selection { background: var(--steel-600); color: var(--steel-100); }
