/* ============================================================
   Mon Louis Ventures — Brand tokens
   NES cartridge art direction × Stripe information density
   ============================================================ */

:root {
  /* Palette — locked per brief */
  --paper:        #F5EBD6;
  --paper-warm:   #EFE2C6;       /* 1-step darker cream for card fills */
  --paper-edge:   #E5D5B0;       /* subtle rule color on cream */
  --ink:          #1A1A1A;
  --ink-soft:     #3A3A3A;
  --ink-muted:    #6A6A6A;

  --mlv-red:      #E63A2E;
  --mlv-red-deep: #B02820;
  --mlv-teal:     #2A8A9A;
  --mlv-teal-deep:#1E6672;
  --mlv-yellow:   #F2C12E;
  --mlv-yellow-deep:#C49A1E;

  --paper-dark:   #0E1420;        /* Zone 1 ONLY */
  --paper-dark-2: #161E2E;

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif:   'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* legacy alias - sans only */
  --font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-pixel:   'Press Start 2P', ui-monospace, monospace;

  /* Tone dial (set by Tweaks: 0.3 / 0.5 / 0.7) */
  --nintendo-weight: 0.5;

  /* Spatial — 8px grid */
  --r-0: 0;
  --r-2: 2px;
  --r-4: 4px;
  --r-8: 8px;
  --r-pill: 999px;

  /* Shadows — hard NES-style drop, no blur */
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 2px 0 var(--ink);

  /* Motion */
  --t-fast: 140ms;
  --t-med: 240ms;
  --t-slow: 420ms;
  --ease-crisp: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

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

/* ----- Type helpers ----- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.1em;
  font-size: 10px;
  line-height: 1.4;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* ----- Pixel seam divider ----- */
.pixel-seam {
  height: 2px;
  background: var(--ink);
  width: 100%;
  position: relative;
}
.pixel-seam::before, .pixel-seam::after {
  content: '';
  position: absolute;
  top: 0;
  width: 6px;
  height: 2px;
  background: var(--ink);
}
.pixel-seam::before { left: -6px; }
.pixel-seam::after { right: -6px; }

/* ----- Buttons ----- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--mlv-red);
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-crisp),
              box-shadow var(--t-fast) var(--ease-crisp),
              background var(--t-fast) var(--ease-crisp);
  -webkit-tap-highlight-color: transparent;
}
.btn-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #F04638;
}
.btn-pill:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-pill.btn-teal { background: var(--mlv-teal); }
.btn-pill.btn-teal:hover { background: #2FA0B2; }
.btn-pill.btn-yellow { background: var(--mlv-yellow); color: var(--ink); }
.btn-pill.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}

/* Rectangular button */
.btn-rect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--mlv-red);
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-crisp), box-shadow var(--t-fast) var(--ease-crisp);
}
.btn-rect:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-rect:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

/* ----- Containers ----- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ----- Zone tag (mono label) ----- */
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.zone-tag .dot {
  width: 8px; height: 8px; background: var(--mlv-red); display: inline-block;
}
.zone-tag.on-dark { color: var(--paper); border-color: var(--paper); background: transparent; }
.zone-tag.on-dark .dot { background: var(--mlv-yellow); }

/* ----- Section scaffold ----- */
.zone {
  padding: clamp(72px, 12vw, 140px) 0;
  position: relative;
}

/* ----- Utility ----- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tiny pixel sprites for inline decoration */
.px-sprite { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* ----- Focus ----- */
:focus-visible {
  outline: 3px solid var(--mlv-yellow);
  outline-offset: 3px;
}

/* ----- Shared footer ----- */
.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 56px 0 100px;
  position: relative;
  overflow: hidden;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-name { color: var(--ink); font-size: 10px; font-family: var(--font-pixel); letter-spacing: 0.1em; line-height: 1.4; }
.footer-tag { color: var(--ink-muted); font-size: 10px; margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
  transition: border-color var(--t-fast);
}
.footer-links a:hover { border-color: var(--mlv-red); color: var(--mlv-red); }
.footer-meta { text-align: right; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-meta, .footer-links { justify-content: center; }
  .footer-brand { justify-content: center; }
  .footer-meta { text-align: center; }
}

/* ----- Footer castle scene (homepage) ----- */
.site-footer.has-scene { padding-bottom: 0; }
.site-footer.has-scene .footer-inner { margin-bottom: 56px; }

.footer-scene {
  position: relative;
  height: 200px;
  border-top: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}

.footer-scene::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 40px;
  height: 2px;
  background: var(--ink);
  z-index: 1;
}

.footer-scene::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 40px;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 2;
}

.footer-scene .fs-star { position: absolute; opacity: 0.55; z-index: 0; }
.footer-scene .fs-star-1 { top: 24px; left: 16%; animation: twinkle 2.4s steps(2) infinite; }
.footer-scene .fs-star-2 { top: 50px; left: 40%; animation: twinkle 1.9s steps(2) infinite 0.4s; }
.footer-scene .fs-star-3 { top: 30px; right: 18%; animation: twinkle 2.2s steps(2) infinite 0.7s; }

.footer-scene .fs-hill { position: absolute; bottom: 40px; z-index: 2; }
.footer-scene .fs-hill-l { left: 4%; }
.footer-scene .fs-hill-r { right: 4%; }

.footer-scene .fs-bush { position: absolute; bottom: 40px; z-index: 4; }
.footer-scene .fs-bush-1 { left: 22%; }
.footer-scene .fs-bush-2 { right: 22%; }

.footer-scene .fs-castle {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

@media (max-width: 720px) {
  .footer-scene { height: 160px; }
  .footer-scene .fs-hill-l, .footer-scene .fs-hill-r { display: none; }
  .footer-scene .fs-castle { transform: translateX(-50%) scale(0.78); transform-origin: bottom center; }
  .footer-scene .fs-bush-1 { left: 6%; }
  .footer-scene .fs-bush-2 { right: 6%; }
  .footer-scene .fs-star-2 { display: none; }
}
