/* ============================================================
   GUY IN THE YELLOW JACKET — Core Stylesheet
   Design system: corporate precision meets off-grid wild.
   Fonts loaded via Google Fonts CDN in each HTML <head>.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #14171A;
  --ink-soft: #1E2226;
  --paper: #ECE7DD;
  --paper-dim: #DCD6C8;
  --yellow: #F5C518;
  --yellow-dim: #C9A415;
  --forest: #3A4A3F;
  --slate: #8A9099;
  --line: rgba(236, 231, 221, 0.14);
  --line-dark: rgba(20, 23, 26, 0.12);

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -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; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
}

/* status readout — signature element fusing his two lives */
.readout {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.readout span.val { color: var(--paper); opacity: 0.9; }
.readout .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate); flex-shrink: 0;
}
.readout.on .dot { background: #6FCF97; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover { background: var(--paper); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 23, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .dot-y { color: var(--yellow); }
.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--paper);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--paper);
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.cart-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-btn:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count.is-empty { display: none; }

/* ===== Account menu (icon + dropdown) ===== */
.account-menu { position: relative; }
.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--paper);
  opacity: 0.85;
  background: transparent;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.account-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.account-btn:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.account-btn.is-active { color: var(--yellow); opacity: 1; }

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: none;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.account-dropdown.open { display: block; }
.account-dropdown-greeting {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.account-dropdown-greeting strong { color: var(--yellow); }
.account-dropdown a {
  display: block;
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  opacity: 0.85;
  border-radius: 6px;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.account-dropdown a:hover { opacity: 1; background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: transparent;
}
.nav-toggle span { height: 2px; background: var(--paper); display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink-soft);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav-links a { padding: 14px var(--gutter); width: 100%; display: block; }
  .nav-toggle { display: flex; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--slate); max-width: 320px; font-size: 14px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; opacity: 0.85; }
.footer-col a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section shell ---------- */
.section { padding: 110px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); }
.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Placeholder media block (signature texture) ---------- */
.media-block {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(245,197,24,0.05) 0px, rgba(245,197,24,0.05) 2px, transparent 2px, transparent 14px),
    linear-gradient(160deg, var(--ink-soft), var(--forest) 140%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
}
.media-block .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.55;
  padding: 14px 16px;
}
.media-block.alt {
  background:
    repeating-linear-gradient(135deg, rgba(245,197,24,0.05) 0px, rgba(245,197,24,0.05) 2px, transparent 2px, transparent 14px),
    linear-gradient(160deg, #2C3E50, var(--ink-soft) 140%);
}

/* ---------- Utility ---------- */
.text-slate { color: var(--slate); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
