/* === Base reset & tokens === */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* TEMP: you’ll swap in real font URLs in your layout template head */
body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #f4f3f1;       /* off-white text */
  background-color: #151518; /* charcoal */
}

/* --- Color tokens --- */

:root {
  /* Base */
  --tcw-bg: #151518;          /* main background charcoal */
  --tcw-bg-elevated: #1f2126; /* panels */
  --tcw-bg-soft: #20232b;     /* softer band/strip */

  --tcw-border-subtle: #343744;
  --tcw-border-strong: #5b5e70;

  --tcw-text-main: #f4f3f1;
  --tcw-text-muted: #c1c0bc;
  --tcw-text-soft: #8b8a85;

  /* Logo-ish derived accents (approximate to your favicon) */
  --tcw-blue: #2d8ccf;
  --tcw-blue-soft: #214f7a;

  --tcw-green: #4da55d;
  --tcw-green-soft: #255b32;

  --tcw-yellow: #e1b545;
  --tcw-yellow-soft: #775519;

  --tcw-danger: #e05c5c;

  /* Layout max widths */
  --tcw-max-page: 1200px;
  --tcw-max-text: 72ch;

  /* Spacing scale (4px base) */
  --tcw-space-1: 0.25rem; /* 4px */
  --tcw-space-2: 0.5rem;  /* 8px */
  --tcw-space-3: 0.75rem; /* 12px */
  --tcw-space-4: 1rem;    /* 16px */
  --tcw-space-5: 1.25rem; /* 20px */
  --tcw-space-6: 1.5rem;  /* 24px */
  --tcw-space-8: 2rem;    /* 32px */
  --tcw-space-10: 2.5rem; /* 40px */
  --tcw-space-12: 3rem;   /* 48px */

  /* Radii & shadows */
  --tcw-radius-sm: 4px;
  --tcw-radius-md: 8px;
  --tcw-radius-lg: 12px;

  --tcw-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.35);
  --tcw-shadow-strong: 0 4px 18px rgba(0, 0, 0, 0.55);

  /* Timing */
  --tcw-ease-fast: 150ms ease-out;
}

/* --- Typography scale --- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--tcw-space-3);
  line-height: 1.25;
}

/* Arcade/pixel display font only on headings & nav etc.
   Replace 'ArcadeFont' with your chosen pixel/arcade face. */
.tcw-display,
h1,
h2,
h3 {
  font-family: "ArcadeFont", "Press Start 2P", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 var(--tcw-space-3);
  max-width: var(--tcw-max-text);
}

/* --- Links --- */

a {
  color: var(--tcw-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--tcw-ease-fast), text-shadow var(--tcw-ease-fast);
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(45, 140, 207, 0.7);
}

/* Inline labels / eyebrows */
.tcw-label {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--tcw-blue-soft);
  color: #f4f3f1;
}

/* Utility */
.tcw-muted {
  color: var(--tcw-text-muted);
}

.tcw-soft {
  color: var(--tcw-text-soft);
}

.tcw-center {
  text-align: center;
}