/* ==========================================================================
   BRICKCRAFT DESIGN SYSTEM — BRIGHT & DARK MINECRAFT × PLASTIC BRICK EDITION
   Inspired by AlexTestria's original brickcraft.de — Light/Dark & 100% local
   ========================================================================== */

@font-face {
  font-family: 'Futura Bold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Futura-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Futura Bold';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Futura-Bold-it.otf') format('opentype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  /* Bright Original brickcraft.de Surfaces */
  --bg-canvas: #f4f5f9;
  --bg-subtle: #eaecf4;
  --bg-plate: #ffffff;
  --bg-plate-elevated: #f8f9fc;
  --bg-plate-hover: #eef1f8;
  --bg-glass: rgba(255, 255, 255, 0.92);

  /* Crisp Borders & Soft Tactile Shadows */
  --border-subtle: #e5e8f0;
  --border-default: #d6dbe8;
  --border-strong: #b6bfd3;
  --shadow-plate: 0 10px 28px -10px rgba(20, 26, 44, 0.08), 0 2px 6px rgba(20, 26, 44, 0.04);
  --shadow-elevated: 0 20px 44px -14px rgba(20, 26, 44, 0.14), 0 4px 12px rgba(20, 26, 44, 0.06);

  /* Typography Ink */
  --ink-primary: #171921;
  --ink-secondary: #454b5c;
  --ink-muted: #6c7387;
  --ink-on-accent: #ffffff;

  /* Classic Plastic Brick & Minecraft Accents */
  --brick-yellow: #fcbf49;
  --brick-yellow-hover: #f5b12c;
  --brick-yellow-ink: #1e1604;
  --brick-yellow-soft: rgba(252, 191, 73, 0.22);

  --brick-blue: #006cb7;
  --brick-blue-hover: #005896;
  --brick-blue-deep: #004678;
  --brick-blue-soft: rgba(0, 108, 183, 0.10);

  --brick-red: #e63946;
  --brick-red-hover: #cf2835;
  --brick-red-deep: #a91d28;
  --brick-red-soft: rgba(230, 57, 70, 0.10);

  --brick-green: #22a05b;
  --brick-green-hover: #1b874c;
  --brick-green-deep: #14693a;
  --brick-green-soft: rgba(34, 160, 91, 0.12);

  --brick-amber: #d9820b;
  --brick-amber-soft: rgba(252, 191, 73, 0.24);

  /* Warm Story & Memorial Accents */
  --legacy-gold: #b57b24;
  --legacy-gold-soft: rgba(252, 191, 73, 0.18);
  --legacy-surface: #fbf8f1;
  --legacy-border: rgba(181, 123, 36, 0.28);

  /* Stud accents */
  --stud-shadow: rgba(0, 0, 0, 0.16);

  /* Typography Families */
  --font-display: 'Futura Bold', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Friendly Rounded Card Radii (Original brickcraft.de 20px look) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Layout Rhythm */
  --container-max: 1240px;
  --container-narrow: 860px;
  --header-height: 74px;

  /* Motion */
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Sleek Obsidian-Slate Surfaces — High Contrast & Warm Brick Pop */
  --bg-canvas: #0d1017;
  --bg-subtle: #121722;
  --bg-plate: #171d2b;
  --bg-plate-elevated: #1e2638;
  --bg-plate-hover: #263047;
  --bg-glass: rgba(14, 18, 27, 0.88);

  /* Crisp Dark Borders & Deep Shadows */
  --border-subtle: #242d40;
  --border-default: #303b54;
  --border-strong: #465678;
  --shadow-plate: 0 12px 30px -10px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 52px -12px rgba(0, 0, 0, 0.72), 0 6px 16px rgba(0, 0, 0, 0.45);

  /* Crisp Readable Dark-Mode Ink */
  --ink-primary: #f3f5fa;
  --ink-secondary: #b4bdd0;
  --ink-muted: #7f8ba3;
  --ink-on-accent: #ffffff;

  /* Tuned Soft Tints for Dark Surfaces */
  --brick-yellow-soft: rgba(252, 191, 73, 0.16);
  --brick-blue-soft: rgba(56, 168, 255, 0.16);
  --brick-red-soft: rgba(230, 57, 70, 0.18);
  --brick-green-soft: rgba(34, 160, 91, 0.18);
  --brick-amber-soft: rgba(252, 191, 73, 0.18);

  /* Warm Story & Memorial Accents in Dark Mode */
  --legacy-gold: #f0b85a;
  --legacy-gold-soft: rgba(240, 184, 90, 0.14);
  --legacy-surface: #181510;
  --legacy-border: rgba(240, 184, 90, 0.28);

  --stud-shadow: rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--brick-blue);
  outline-offset: 2px;
}

::selection {
  background: var(--brick-yellow);
  color: #171921;
}
