/* ShabuBox site — shared chrome & components (v2 design language).
 * Tokens come from tokens.css. Page-specific styles live in each page. */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.lucide { flex-shrink: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* Display headings */
.h-display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.mono-note { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); }

/* Pills / buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; cursor: pointer; border: none;
  transition: all var(--dur-fast) var(--ease-primary);
}
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--fg); color: var(--bg); box-shadow: var(--shadow-md); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: var(--bg-tertiary); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-md { height: 40px; padding: 0 16px; font-size: 14px; }

/* Card base */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.card-lift { transition: all var(--dur-base) var(--ease-primary); }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 148, 106, 0.28); border-radius: var(--radius-sm); }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); }
.nav-logo img { border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-logo span { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nl {
  position: relative; padding: 9px 12px; border-radius: var(--radius-md);
  color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color var(--dur-fast);
}
.nl:hover { color: var(--fg); }
.nl::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-primary);
}
.nl:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
#theme-toggle {
  height: 36px; width: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card);
  color: var(--fg-muted); cursor: pointer; transition: all var(--dur-fast);
}
#theme-toggle:hover { color: var(--fg); border-color: var(--border-strong); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
#menu-toggle {
  display: none; height: 36px; width: 36px; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card);
  color: var(--fg); cursor: pointer;
}
.nav-mobile { border-top: 1px solid var(--border); background: var(--bg-card); padding: 8px 20px 16px; }
.nav-mobile a {
  display: block; padding: 12px 4px; color: var(--fg); text-decoration: none; font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  #menu-toggle { display: inline-flex; }
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 88px; }
.footer-inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 11px; }
.footer-logo img { border-radius: 7px; box-shadow: var(--shadow-sm); }
.footer-logo span { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--fg-muted); text-decoration: none; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--fg); }
.footer-legal { width: 100%; max-width: 1240px; margin: 24px auto 0; padding: 0 28px; }
.footer-legal p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }

/* ── Motion safety ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
