/* ==========================================================================
   Design Panda — Brutalist site
   Design tokens taken directly from the Figma "Final web (Brutalist)" page
   ========================================================================== */

:root {
  --cream: #f0eee6;
  --black: #0a0a0a;
  --orange: #ef5f18;
  --orange-on-light: #9a3412;   /* WCAG-safe orange for text on cream (6.3:1) */
  --orange-on-dark: #ff6b2c;    /* WCAG-safe orange for text on navy (5.2:1) */
  --navy: #251a65;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --border: 2px solid var(--black);
  --shadow-offset: 6px;

  --container: 1280px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 96px 0; }
@media (max-width: 860px) {
  .section { padding: 48px 0; }
}

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav a { transition: color 0.15s ease; }
.nav a:hover { color: var(--orange-on-light); }
.nav a[aria-current="page"] { color: var(--orange-on-light); font-weight: 700; }
.nav .sep { opacity: 0.4; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--black);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--cream); display: block; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .topbar .wrap { height: 68px; }
}

/* ---------- Mobile full-screen menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .topbar { background: var(--black); border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-menu .logo { color: var(--cream); }
.mobile-menu .menu-toggle { background: var(--orange); }
.mobile-menu .menu-toggle span { background: var(--black); }

.mobile-nav { padding: 32px var(--gutter); flex: 1; }
.mobile-nav-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav-row:last-child { border-bottom: none; }
.mobile-nav-row .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(240,238,230,0.65);
  margin-bottom: 6px;
}
.mobile-nav-row.is-current .num { color: var(--orange); }
.mobile-nav-row .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  text-transform: uppercase;
  color: var(--cream);
}
.mobile-nav-row.is-current .label { color: var(--orange); }

.mobile-menu-footer { padding: 0 var(--gutter) 32px; }
.mobile-follow-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(240,238,230,0.5);
  margin-bottom: 12px;
  display: block;
}
.social-row { display: flex; gap: 10px; }
.social-chip {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--cream);
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  border: var(--border);
  white-space: nowrap;
}
.btn-primary {
  background: var(--black);
  color: var(--cream);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--orange);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--orange); }
.btn-outline {
  background: transparent;
  color: var(--orange-on-light);
  border-color: var(--orange-on-light);
}
.btn-outline:hover { background: var(--orange-on-light); color: var(--cream); }
.btn-fill-orange {
  background: var(--orange);
  color: var(--black);
}
.btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease; }

/* ---------- Sidebar footer card (Get in touch) ---------- */
.footer-cta {
  border: var(--border);
  padding: 20px;
  background: var(--cream);
}
.footer-cta p { font-family: var(--font-mono); font-size: 14px; margin-bottom: 12px; }

/* ---------- Utility text ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--orange-on-light);
  text-transform: uppercase;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
}
.h1 .accent { color: var(--orange-on-light); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
}
.h2 .dot { color: var(--orange-on-light); }
.body-text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(10,10,10,0.65);
}
