/* Project Beacon — Outlaw palette & tokens */
:root {
  /* Outlaw palette */
  --outlaw-black: #0b0b0b;
  --outlaw-off: #f7f7f5;
  --outlaw-red: #ff2d2d;
  --outlaw-acid: #c3ff00;
  --steel-900: #1e1e1e;
  --steel-700: #2a2a2a;
  --muted: #b8b8b8;

  /* Accent color (for titles, rules, highlights) */
  --accent: var(--outlaw-acid);

  /* Vignette tokens (dark default) */
  --vig-start: rgba(255,45,45,0.18);
  --vig-mid: rgba(255,45,45,0.08);
  --vig-end: rgba(255,45,45,0);

  /* Text emphasis scale */
  --text-100: #f7f7f5;                 /* 100% emphasis */
  --text-90: rgba(247, 247, 245, 0.92);/* display, major heads */
  --text-80: rgba(247, 247, 245, 0.86);/* body default */
  --text-64: rgba(247, 247, 245, 0.64);/* secondary/meta */
  --text-48: rgba(247, 247, 245, 0.48);/* de-emphasized */

  /* Legacy vars kept for compatibility (mapped) */
  --sage-800: var(--outlaw-red);
  --ink-700: var(--outlaw-off);
  --ink-500: #c7c7c7;
  --white: #ffffff;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

  --easing-snap: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Heading palette (dark default) — inspired by #b15e39, #faf6eb, #55250d, #a56f40, #efd494 */
  --head-1: #efd494; /* h1: warm highlight that pops on dark */
  --head-2: #b15e39; /* h2 */
  --head-3: #a56f40; /* h3 */
  --head-4: #faf6eb; /* h4: near-off white for legibility */

  /* Bold text color (dark default keeps contrast) */
  --bold-color: #efd494;
}

/* Light theme overrides */
html[data-theme="light"] {
  /* Palette flips */
  --outlaw-black: #f7f7f5;          /* background */
  --outlaw-off: #111111;            /* primary text */
  --steel-900: #e6e6e6;
  --steel-700: #efefef;
  --muted: #5a5a5a;

  /* Text scale for light */
  --text-100: #0f0f0f;
  --text-90: rgba(15,15,15,0.92);
  --text-80: rgba(15,15,15,0.80);
  --text-64: rgba(15,15,15,0.64);
  --text-48: rgba(15,15,15,0.48);

  /* Vignette tuned for light bg */
  --vig-start: rgba(200, 20, 20, 0.12);
  --vig-mid: rgba(200, 20, 20, 0.06);
  --vig-end: rgba(200, 20, 20, 0);

  /* Headings on light: use deeper tones for contrast */
  --head-1: #55250d; /* h1 */
  --head-2: #b15e39; /* h2 */
  --head-3: #a56f40; /* h3 */
  --head-4: #55250d; /* h4 */

  /* Bold text in light mode: deep brown */
  --bold-color: #55250d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Fixed deep red vignette for entire page */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 15%, var(--vig-start) 0%, var(--vig-mid) 40%, var(--vig-end) 70%);
  z-index: 0;
}

body {
  margin: 0;
  color: var(--outlaw-off);
  background: var(--outlaw-black);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  font-size: 18px;
  position: relative; /* ensure content layers above fixed background */
  z-index: 1;
}

/* Headings: Outlaw hierarchy */
h1 {
  color: var(--head-1);
  font-family: "Bebas Neue", Impact, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
}
h2 {
  color: var(--head-2);
  font-family: Oswald, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.8em;
  font-size: clamp(22px, 3.2vw, 36px);
}

/* h3 matches body font and color for subtle subheads */
h3 {
  color: var(--head-3);
  line-height: 1.4;
  margin: 2.4rem 0 0.6rem;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 700; /* keep emphasis while using body family */
  font-size: 1.3em;
}

/* h4 subheads with comfortable spacing */
h4 {
  color: var(--head-4);
  line-height: 1.35;
  margin: 2.4rem 0 0.6rem;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 700;
}

p { margin: 0 0 1.2rem; color: var(--text-80); }
ul { margin: 0 0 1rem 1.25rem; color: var(--text-80); }

/* Emphasis tones */
em { color: var(--text-64); }
strong { color: var(--bold-color); }
b { color: var(--bold-color); }

/* Accent utilities (opt-in) */
.accent { color: var(--accent) !important; }
.title-accent { color: color-mix(in oklab, var(--accent) 86%, rgba(255,255,255,0) 14%); text-shadow: 0 0 12px color-mix(in oklab, var(--accent) 24%, transparent); }
.heading-underline { position: relative; }
.heading-underline::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 40%, transparent);
}

/* Title with logo (inline brand mark to the left) */
.title-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.title-with-logo .title-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header { background: var(--outlaw-black); border-bottom: 1px solid var(--steel-900); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--outlaw-off);
  text-decoration: none;
  font-weight: 700;
}
.brand img { border-radius: 8px; }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.primary-nav .nav-link {
  display: inline-block;
  padding: 8px 2px;
  color: var(--outlaw-off);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.primary-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--outlaw-red);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.primary-nav .nav-link:hover,
.primary-nav .nav-link:focus-visible { color: var(--outlaw-off); }
.primary-nav .nav-link:hover::after,
.primary-nav .nav-link:focus-visible::after,
.primary-nav .nav-link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

@media (max-width: 720px) {
  .primary-nav { gap: 8px; }
  .primary-nav .nav-link { padding: 6px 10px; font-weight: 600; }
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  height: 15vh; /* 15% of viewport height as requested */
  width: auto;
  border-radius: 12px;
  /* background: rgba(0,0,0,0.45); */
  /* border: 1px solid rgba(255,255,255,0.08); */
  margin-bottom: 14px;
}
/* .hero-badge removed (UI simplified) */
.hero h1 { /* doubled size */
  font-size: clamp(48px, 5.6vw, 64px);
}
.hero-title {
  display: flex; /* block-level to stack under badge */
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-title img {
  height: 1em;        /* match font-size of the h1 */
  width: auto;        /* preserve aspect ratio */
  border-radius: 10px;
  flex-shrink: 0;
}
.subtitle {
  color: var(--text-64);
  font-size: 18px;
  margin-top: 10px;
}
.hero-gradient {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255,45,45,0.22) 0%, rgba(255,45,45,0.08) 40%, rgba(255,45,45,0) 70%);
  filter: blur(10px);
}

/* Sections */
.section { padding: 112px 0; position: relative; }
.content { max-width: 720px; }

/* Section reveal motion */
.section {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}
.section.is-visible { opacity: 1; transform: none; }

/* Sections have no background; they scroll over the fixed vignette */
.section.alt { background: transparent; }
.section.alt .content { color: var(--outlaw-off); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  background: var(--steel-700);
  border: 1px solid #2f2f2f;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.features h3 { margin-bottom: 6px; font-size: 18px; }
.features p { color: var(--muted); margin: 0; }

/* list styled as paragraphs */
.list-as-p {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0; /* space above and below lists */
}
.list-as-p li {
  padding: 0;
  margin-bottom: 1.6rem; /* space between items */
}
.list-as-p + h3 {
  margin-top: 2rem; /* extra space before subheadings */
}

/* Separator tweak for Outlaw feel without HTML changes */
.separator {
  color: var(--outlaw-red);
  letter-spacing: 0.35em;
  text-align: center;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--steel-900);
  padding: 28px 0;
  background: var(--outlaw-black);
}

/* Theme toggle button */
.theme-toggle {
  appearance: none;
  border: 1px solid var(--steel-900);
  background: transparent;
  color: var(--text-80);
  padding: 6px 10px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  background: var(--steel-700);
  color: var(--text-100);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--outlaw-off); }
.foot-brand img { border-radius: 6px; }

/* Accessibility tweaks */
:focus-visible { outline: 2px solid var(--outlaw-acid); outline-offset: 2px; border-radius: 2px; }

/* Small screens */
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero-logo { height: 12vh; }
  h2 { margin-bottom: 0.4em; }
}

/* Additional breathing room when multiple paragraphs stack */
.content p + p { margin-top: 0.8rem; }
/* Space when headings precede paragraphs */
.content h2 + p { margin-top: 0.4rem; }
.content h3 + p { margin-top: 0.3rem; }

@media (max-width: 480px) {
  .hero-title img { width: 40px; height: 40px; }
}

/* Global link micro interaction */
a:hover { transform: skewX(-3deg); transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .section { opacity: 1 !important; transform: none !important; }
  a:hover { transform: none; }
}

/* Who We Are: paired logo + two-line copy */
.who-pair {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: stretch;
  margin: 12px 0 8px;
}
.who-logo {
  height: 100%; /* fill vertical space of the copy group */
  width: auto;
  max-height: 112px; /* reasonable cap on large screens */
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}
.who-copy p { margin: 0; }
.who-copy p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .who-pair { grid-template-columns: 40px 1fr; align-items: center; }
  .who-logo { max-height: 64px; }
}
