/* =========================================================================
   ROKKIT200 — Colors & Type
   Source of truth for visual tokens across light + dark themes.
   A sci-fi/tech terminal aesthetic: monospace display, neon indigo (light)
   and neon orange (dark) accents, near-black surfaces, precise borders.
   ========================================================================= */

/* ---------- Fonts -------------------------------------------------------- */
@font-face {
  font-family: "Share Tech Mono";
  src: url("fonts/ShareTechMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Root / LIGHT theme (default) --------------------------------- */
:root,
[data-theme="light"] {
  /* Surfaces */
  --bg:            rgb(253, 253, 254);     /* page background */
  --bg-alt:        rgb(252, 252, 252);     /* alt block bg     */
  --surface:       rgb(249, 249, 249);     /* card bg          */
  --surface-2:     rgb(248, 249, 254);     /* input bg         */
  --surface-soft:  rgb(238, 242, 252);     /* hover / nav-hover */
  --surface-tint:  rgb(226, 233, 254);     /* accent tint bg   */

  /* Text */
  --fg-1:          rgb(31, 31, 31);        /* primary text     */
  --fg-2:          rgb(36, 46, 86);        /* deep indigo text */
  --fg-3:          rgb(83, 99, 158);       /* indigo-muted     */
  --fg-muted:      rgb(96, 96, 96);        /* neutral muted    */
  --fg-on-accent:  rgb(252, 252, 252);     /* text on accent btn */

  /* Accents — Indigo family (Light mode signature) */
  --accent:        rgb(83, 99, 158);       /* primary indigo   */
  --accent-2:      rgb(58, 70, 112);       /* primary button bg */
  --accent-3:      rgb(36, 46, 86);        /* deepest indigo   */
  --accent-soft:   rgb(146, 164, 229);     /* borders / glow   */
  --accent-softer: rgb(175, 190, 240);     /* outer glow       */
  --accent-pale:   rgb(195, 208, 250);     /* terminal text    */
  --accent-faint:  rgb(212, 222, 253);     /* faint borders    */

  /* Neutral scale */
  --n-50:  rgb(253, 253, 254);
  --n-100: rgb(240, 240, 240);
  --n-200: rgb(237, 237, 237);
  --n-300: rgb(217, 217, 217);
  --n-400: rgb(206, 206, 206);
  --n-500: rgb(187, 187, 187);
  --n-600: rgb(179, 179, 179);
  --n-700: rgb(140, 140, 140);
  --n-800: rgb(96, 96, 96);
  --n-900: rgb(57, 57, 57);
  --n-950: rgb(31, 31, 31);
  --n-black: rgb(0, 0, 0);

  /* Borders */
  --border:        var(--accent-faint);
  --border-strong: var(--accent-soft);
  --border-dashed: var(--n-500);

  /* Shadows / Glows */
  --shadow-card:  0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-drop:  0 4px 4px rgba(0, 0, 0, 0.25);
  --shadow-nav:   0 2px 2px rgba(0, 0, 0, 0.25);
  --glow:         0 0 12px rgba(175, 190, 240, 0.5);
  --glow-strong:  0 0 6.35px rgb(175,190,240), 0 0 12.7px rgb(175,190,240),
                  0 0 44px rgba(175,190,240,0.9), 0 0 89px rgba(175,190,240,0.6);
  --glow-inline:  0 0 6.35px rgb(83,99,158), 0 0 12.7px rgb(83,99,158);

  /* Radii + misc */
  --radius-sm: 2px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-card: 0px;    /* cards use notched path, not rounded corners */

  /* Typography stacks */
  --font-mono:  "Share Tech Mono", ui-monospace, "Courier New", monospace;
  --font-body:  "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- DARK theme --------------------------------------------------- */
[data-theme="dark"] {
  /* Surfaces */
  --bg:            rgb(0, 0, 0);
  --bg-alt:        rgb(15, 15, 15);
  --surface:       rgb(30, 30, 30);
  --surface-2:     rgb(20, 8, 4);          /* dark warm input bg */
  --surface-soft:  rgb(45, 20, 14);
  --surface-tint:  rgb(93, 28, 9);         /* deep accent panel */

  /* Text */
  --fg-1:          rgb(237, 237, 237);
  --fg-2:          rgb(251, 211, 200);
  --fg-3:          rgb(255, 146, 113);
  --fg-muted:      rgb(179, 179, 179);
  --fg-on-accent:  rgb(237, 237, 237);

  /* Accents — Orange family (Dark mode signature) */
  --accent:        rgb(214, 61, 0);
  --accent-2:      rgb(198, 44, 0);        /* primary button bg */
  --accent-3:      rgb(109, 41, 22);       /* deepest rust */
  --accent-soft:   rgb(173, 77, 50);       /* borders */
  --accent-softer: rgb(255, 146, 113);     /* neon orange glow */
  --accent-pale:   rgb(251, 211, 200);     /* terminal text */
  --accent-faint:  rgb(93, 28, 9);

  /* Neutral scale (dark inverted) */
  --n-50:  rgb(15, 15, 15);
  --n-100: rgb(30, 30, 30);
  --n-200: rgb(31, 31, 31);
  --n-300: rgb(39, 39, 39);
  --n-400: rgb(57, 57, 57);
  --n-500: rgb(96, 96, 96);
  --n-600: rgb(140, 140, 140);
  --n-700: rgb(179, 179, 179);
  --n-800: rgb(206, 206, 206);
  --n-900: rgb(232, 232, 232);
  --n-950: rgb(237, 237, 237);
  --n-black: rgb(0, 0, 0);

  --border:        var(--accent-soft);
  --border-strong: var(--accent-softer);
  --border-dashed: rgb(96, 96, 96);

  --shadow-card:  0 4px 40px rgba(255, 146, 113, 0.45);
  --shadow-drop:  0 4px 4px rgba(0, 0, 0, 0.25);
  --shadow-nav:   0 2px 2px rgba(0, 0, 0, 0.25);
  --glow:         0 0 12px rgba(255, 146, 113, 0.5);
  --glow-strong:  0 0 6.35px rgb(255,146,113), 0 0 12.7px rgb(255,146,113),
                  0 0 44px rgba(255,146,113,0.9), 0 0 89px rgba(255,146,113,0.6);
  --glow-inline:  0 0 6.35px rgb(237,237,237), 0 0 12.7px rgb(237,237,237);
}

/* =========================================================================
   Semantic type roles
   Desktop scale: Share Tech Mono for H1–H3 & labels/buttons; Nunito for H4–H6
   and body. Mobile = ~0.875x desktop.
   ========================================================================= */

.r-h1, .rokkit h1 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 61px;
  line-height: 1.0;
  color: var(--fg-1);
  letter-spacing: 0.01em;
}
.r-h2, .rokkit h2 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 49px;
  line-height: 1.0;
  color: var(--fg-1);
}
.r-h3, .rokkit h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 39px;
  line-height: 1.1;
  color: var(--fg-1);
}
.r-h4, .rokkit h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 31px;
  line-height: 1.15;
  color: var(--fg-1);
}
.r-h5, .rokkit h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  color: var(--fg-1);
}
.r-h6, .rokkit h6 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--fg-1);
}
.r-p, .rokkit p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-1);
}
.r-small {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-muted);
}
.r-label, .r-button-text {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-1);
}
.r-nav {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
}
.r-terminal {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent-pale);
  white-space: pre-wrap;
}
.r-card-title {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--fg-2);
}
.r-card-body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-1);
}

/* Mobile breakpoint — multiply desktop by 0.875 */
@media (max-width: 768px) {
  .r-h1, .rokkit h1 { font-size: 53px; }
  .r-h2, .rokkit h2 { font-size: 43px; }
  .r-h3, .rokkit h3 { font-size: 34px; }
  .r-h4, .rokkit h4 { font-size: 27px; }
  .r-h5, .rokkit h5 { font-size: 22px; }
  .r-h6, .rokkit h6 { font-size: 18px; }
  .r-label, .r-button-text, .r-nav { font-size: 18px; }
}

/* Base reset for anything inside .rokkit scope */
.rokkit {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.rokkit * { box-sizing: border-box; }

/* Spacing scale (4 / 8 / 12 / 16 / 20 / 32 / 40 / 60) */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 60px;
}
