/* =========================================================
   AlgoAtWork Design System — Colors & Type
   Brand: AlgoAtWork Robotics Academy
   ========================================================= */

/* ---------- Webfonts ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Thin.ttf") format("truetype");
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* ---------- Brand Primitives ---------- */
  --aaw-orange:        #EC7D2A;   /* Primary orange — sampled from logo */
  --aaw-orange-hover:  #D86A19;
  --aaw-orange-press:  #B85810;
  --aaw-orange-soft:   #FDEADA;   /* tinted background */
  --aaw-orange-bright: #FFA35A;

  --aaw-greyblack:     #2D3035;   /* Primary dark — sampled from logo */
  --aaw-greyblack-80:  #4A4E55;
  --aaw-greyblack-60:  #6B7079;
  --aaw-greyblack-40:  #9CA0A8;
  --aaw-greyblack-20:  #D4D6DA;
  --aaw-greyblack-10:  #E9EAEC;
  --aaw-greyblack-05:  #F4F5F6;

  --aaw-white:         #FFFFFF;
  --aaw-off-white:     #FAFAFA;
  --aaw-bone:          #F6F4EF;   /* warm neutral, pairs with orange */

  /* ---------- Semantic Colors ---------- */
  --fg-1:       var(--aaw-greyblack);        /* primary text */
  --fg-2:       var(--aaw-greyblack-80);     /* secondary text */
  --fg-3:       var(--aaw-greyblack-60);     /* tertiary / meta */
  --fg-muted:   var(--aaw-greyblack-40);     /* placeholder */
  --fg-invert:  var(--aaw-white);

  --bg-1:       var(--aaw-white);            /* default surface */
  --bg-2:       var(--aaw-greyblack-05);     /* elevated surface / page */
  --bg-3:       var(--aaw-greyblack-10);     /* sunken / hover */
  --bg-dark:    var(--aaw-greyblack);        /* inverse surface */
  --bg-warm:    var(--aaw-bone);             /* warm canvas */

  --accent:          var(--aaw-orange);
  --accent-hover:    var(--aaw-orange-hover);
  --accent-press:    var(--aaw-orange-press);
  --accent-soft:     var(--aaw-orange-soft);

  --border-1:   rgba(45, 48, 53, 0.12);      /* hairline */
  --border-2:   rgba(45, 48, 53, 0.22);      /* standard */
  --border-strong: var(--aaw-greyblack);

  /* Status */
  --success:    #2E8B57;
  --warning:    #E0A800;
  --danger:     #D64545;
  --info:       #2F6FB0;

  /* ---------- Type Primitives ---------- */
  --font-sans:    "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Weights — Poppins is used across the full range; these are the canonical picks */
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;
  --fw-black:      900;

  /* Type scale — designed for Poppins; tighter tracking on display sizes */
  --fs-display-xl:  72px;
  --fs-display-lg:  56px;
  --fs-display-md:  44px;
  --fs-h1:          36px;
  --fs-h2:          28px;
  --fs-h3:          22px;
  --fs-h4:          18px;
  --fs-body-lg:     18px;
  --fs-body:        16px;
  --fs-body-sm:     14px;
  --fs-caption:     12px;
  --fs-micro:       11px;

  --lh-tight:       1.05;
  --lh-snug:        1.2;
  --lh-normal:      1.45;
  --lh-relaxed:     1.6;

  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-caps:    0.12em;

  /* ---------- Spacing ---------- */
  --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;

  /* ---------- Radii ---------- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(45,48,53,0.06);
  --shadow-sm: 0 2px 6px rgba(45,48,53,0.08);
  --shadow-md: 0 6px 18px rgba(45,48,53,0.10);
  --shadow-lg: 0 18px 40px rgba(45,48,53,0.14);
  --shadow-focus: 0 0 0 3px rgba(236,125,42,0.35);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(.2,.7,.3,1);
  --ease-enter:    cubic-bezier(0,.4,.2,1);
  --ease-exit:     cubic-bezier(.4,0,1,1);
  --dur-fast:      120ms;
  --dur-base:      200ms;
  --dur-slow:      320ms;
}

/* ---------- Base + Semantic Type ---------- */
html { font-family: var(--font-sans); color: var(--fg-1); background: var(--bg-1); }
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-1); }

.display-xl, h1.display {
  font-family: var(--font-sans);
  font-size: var(--fs-display-xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}
h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

p, .body {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-normal); }

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

.eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}

code, .code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
