/* =========================================================
   GRAFT marketing site, base styles
   Global reset, body shell, ambient background, scroll
   progress, issue strip, container, eyebrow, buttons.
   Extracted verbatim from draft-v4-hybrid.html. Shared across
   every page. Depends on tokens.css being loaded first.
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* Visible focus ring on every interactive element (a11y, all pages) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden, available to screen readers (skip links, field labels) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link, becomes visible on focus */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 300;
  background: var(--lime); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ============ AMBIENT BACKGROUND ============ */
body::before {
  content: ""; position: fixed; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--lime-soft) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
  opacity: 0.6;
  animation: ambientPulse 8s ease-in-out infinite;
}
@keyframes ambientPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--lime);
  z-index: 200;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--lime-glow);
}

/* ============ ISSUE STRIP (editorial flourish) ============ */
.issue-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 32px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--dim);
  letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; z-index: 50;
}
.issue-strip .live-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--lime); border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: liveBlink 2s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { box-shadow: 0 0 0 0 var(--lime-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ============ CONTAINER ============ */
.c { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.c-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ============ EYEBROW (kicker) ============ */
.eb {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime);
  padding: 6px 12px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-glow);
  border-radius: 100px;
  margin-bottom: 24px;
}
/* Editorial kicker variant, top border, no pill */
.eb-edit {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text);
  border-top: 2px solid var(--lime);
  padding-top: 10px;
  margin-bottom: 24px;
}

/* Section anchor number (subtle corner mark) */
.section-anchor {
  position: absolute; top: 30px; left: 32px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--dim);
  z-index: 2;
}
.section-anchor .num { color: var(--lime); }

/* ============ BUTTONS (shared) ============ */
.btn-primary {
  background: var(--lime); color: var(--bg);
  padding: 14px 24px;
  font-size: 15px; font-weight: 700;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px var(--lime-glow);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; /* touch target, ui-ux-pro-max */
}
.btn-primary .arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--lime-glow), 0 0 0 6px rgba(200, 245, 66, 0.08);
}
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-secondary {
  padding: 14px 18px;
  font-size: 15px; font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; /* touch target, ui-ux-pro-max */
}
.btn-secondary .arrow { transition: transform 0.3s var(--ease-out); }
.btn-secondary:hover { border-color: var(--text); background: var(--bg-1); }
.btn-secondary:hover .arrow { transform: translateY(2px); }
