/* ================================================================
   Dice Mate — Shared Styles
   Loaded by every Dice Mate page. Page-specific styles live in
   each page's own <style> block.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F7F4EF;
  color: #1F3839;
  overflow-x: hidden;
}

:root {
  --primary:    #1F3839;
  --accent:     #EC762A;
  --cream:      #F7F4EF;
  --purple:     #A488EF;
  --cyan:       #69D3E8;
  --green:      #7FBC8C;
  --yellow:     #F4D839;
  --salmon:     #FF7A5C;
  --red:        #EA6D6D;
  --border:     2px solid #1F3839;
  --shadow:     4px 4px 0 #1F3839;
  --shadow-lg:  6px 6px 0 #1F3839;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
}

/* ── Background helpers ── */
.grid-bg {
  background-color: #1F3839;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.dot-bg {
  background-color: #F7F4EF;
  background-image: radial-gradient(circle, rgba(31,56,57,0.13) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #F7F4EF;
  border-bottom: var(--border);
  padding: 0 56px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo { width: 34px; height: 34px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-sub {
  font-family: var(--font-body); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(31,56,57,0.4);
}
.nav-brand-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--primary); text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--primary) !important; color: var(--cream) !important;
  padding: 9px 22px; border-radius: 6px;
  border: var(--border) !important;
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform 0.1s, box-shadow 0.1s !important;
}
.nav-cta:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--accent) !important;
  color: var(--cream) !important;
}
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; padding: 8px 16px;
  border: var(--border); border-radius: 6px;
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-back:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--accent);
  opacity: 1;
}

/* ── Footer ── */
footer {
  background: var(--primary);
  border-top: var(--border);
  padding: 32px 80px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.footer-logo { width: 28px; height: 28px; object-fit: contain; }
.footer-brand-name {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); opacity: 1; }

/* ── Scroll fade-up ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links li:not(:last-child) { display: none; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; }
}
