/* ============================================================
   PLASTIFY — Colors & Type Foundations
   Source: official branding guidelines (assets/branding-guidelines.png)
   ============================================================ */

/* --- Web fonts -----------------------------------------------
   Brand specifies: SIFONN PRO (display) + AUDIOWIDE (display 2).
   SIFONN PRO is loaded from the local file in /fonts.
   AUDIOWIDE is loaded from Google Fonts.
   Body uses SAIRA from Google Fonts.
   ------------------------------------------------------------- */
@font-face {
  font-family: "Sifonn Pro";
  src: url("./fonts/SIFONN_PRO.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Saira:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* === BRAND PALETTE (from official guideline) ===============
     The three brand swatches printed in the PDF are:
       INK       HEX #0A0A0A   RGB 8,8,8        CMYK 0,0,0,97
       SILVER    HEX #B5B5B5   RGB 181,181,181  CMYK 0,0,0,32
       GOLD      HEX #D4A82F   RGB 212,168,47   CMYK 17,32,98,2
     We keep the brand-mandated names AND offer a small tonal
     scale around each so designers don't have to invent. */

  /* Ink (near-black) ---------------------------------- */
  --ink-950: #050505;
  --ink-900: #0a0a0a;          /* brand "Audiowide" black */
  --ink-800: #141414;
  --ink-700: #1f1f1f;
  --ink-600: #2a2a2a;
  --ink-500: #3a3a3a;

  /* Silver (neutral gray) ----------------------------- */
  --silver-50:  #f5f5f5;
  --silver-100: #ebebeb;
  --silver-200: #d8d8d8;
  --silver-300: #c5c5c5;
  --silver-400: #b5b5b5;        /* brand silver */
  --silver-500: #9a9a9a;
  --silver-600: #777777;
  --silver-700: #555555;

  /* Gold (signature accent) --------------------------- */
  --gold-50:  #fbf3da;
  --gold-100: #f5e3a6;
  --gold-200: #ecd070;
  --gold-300: #e2bb47;
  --gold-400: #d4a82f;          /* brand gold */
  --gold-500: #b88e22;
  --gold-600: #966f17;
  --gold-700: #6e500e;

  /* Surface */
  --bg:           #ffffff;
  --bg-soft:      #fafafa;
  --bg-muted:     var(--silver-50);
  --bg-inverted:  var(--ink-900);
  --bg-inverted-soft: var(--ink-800);

  /* Foreground */
  --fg-1:    var(--ink-900);     /* primary text */
  --fg-2:    var(--ink-700);     /* body */
  --fg-3:    var(--silver-700);  /* secondary */
  --fg-4:    var(--silver-500);  /* meta / disabled */
  --fg-on-dark-1: #ffffff;
  --fg-on-dark-2: var(--silver-300);
  --fg-on-dark-3: var(--silver-500);
  --fg-on-gold:   var(--ink-900);

  /* Brand semantic */
  --brand:        var(--gold-400);
  --brand-hover:  var(--gold-500);
  --brand-press:  var(--gold-600);
  --brand-soft:   var(--gold-50);
  --on-brand:     var(--ink-900);

  /* Lines */
  --line-1: rgba(10,10,10,0.08);
  --line-2: rgba(10,10,10,0.16);
  --line-3: rgba(10,10,10,0.32);
  --line-on-dark-1: rgba(255,255,255,0.10);
  --line-on-dark-2: rgba(255,255,255,0.20);

  /* Status (kept neutral / industrial) */
  --success:  #2f7d3f;
  --warning:  var(--gold-500);
  --danger:   #b3261e;
  --info:     #2563a8;

  /* === TYPE ============================================ */
  --font-display: "Sifonn Pro", "Saira", "Arial Black", sans-serif;
  --font-techno:  "Audiowide", "Sifonn Pro", "Saira", monospace; /* angular logo / hero accents */
  --font-body:    "Saira", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "JetBrains Mono", "Menlo", "Consolas", monospace;

  /* Sizes — desktop scale */
  --fs-display: clamp(56px, 8vw, 112px);
  --fs-h1:      clamp(40px, 5vw, 72px);
  --fs-h2:      clamp(30px, 3.6vw, 48px);
  --fs-h3:      24px;
  --fs-h4:      20px;
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-meta:    12px;
  --fs-eyebrow: 12px;

  /* Line heights / tracking */
  --lh-display: 1.0;
  --lh-heading: 1.1;
  --lh-body:    1.55;
  --lh-meta:    1.4;
  --tr-display: 0.01em;
  --tr-heading: 0;
  --tr-body:    0;
  --tr-eyebrow: 0.18em;
  --tr-button:  0.06em;

  /* === SPACING / RADIUS / SHADOW ====================== */
  --space-0:  0;
  --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;

  --radius-0:   0;          /* industrial / sharp */
  --radius-1:   2px;
  --radius-2:   4px;
  --radius-3:   8px;
  --radius-pill: 999px;

  /* Shadows — restrained, slightly cool */
  --shadow-1: 0 1px 2px rgba(10,10,10,0.06), 0 1px 1px rgba(10,10,10,0.04);
  --shadow-2: 0 4px 12px rgba(10,10,10,0.08), 0 2px 4px rgba(10,10,10,0.04);
  --shadow-3: 0 12px 32px rgba(10,10,10,0.14), 0 4px 8px rgba(10,10,10,0.06);
  --shadow-gold: 0 8px 24px rgba(212,168,47,0.30);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --grid-gutter: 24px;

  /* Motion */
  --ease-out:    cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   Semantic element styles — opt in via class or use directly.
   ============================================================ */

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

/* DISPLAY (hero, oversized, feels like the wordmark) */
.display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--fg-1);
}

/* TECHNO accent — short labels, eyebrows-on-steroids */
.techno {
  font-family: var(--font-techno);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--fg-1);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--fg-1);
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg-1);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-1);
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
}

.body-lg { font-size: var(--fs-body-lg); line-height: 1.55; }
.body-sm { font-size: var(--fs-body-sm); line-height: 1.5; }
.meta    { font-size: var(--fs-meta); color: var(--fg-3); line-height: var(--lh-meta); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--gold-500);
}

a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-400);
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--gold-500); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--silver-50);
  padding: 2px 6px;
  border-radius: var(--radius-1);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: var(--space-6) 0;
}

::selection { background: var(--gold-200); color: var(--ink-900); }
