/* Last State RP — Homepage Styles */

:root {
  --ink: #0b0a09;
  --ink-2: #171310;
  --blood: #670004;
  --blood-bright: #a5030a;
  --gold: #c99a4b;
  --paper: #ece4d8;
  --paper-dim: #9c9086;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 6px;
  --focus: 3px solid var(--gold);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Brand wordmark */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.4rem;
  line-height: 1;
}
.brand-last { color: var(--paper); }
.brand-rp { color: var(--blood-bright); }
.brand-small { font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 154, 75, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-weight: 500;
  color: var(--paper-dim);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:hover {
  color: var(--paper);
  border-color: var(--gold);
}
.primary-nav .nav-cta {
  color: var(--paper);
  background: var(--blood);
  padding: 8px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}
.primary-nav .nav-cta:hover {
  background: var(--blood-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--blood);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blood-bright); }
.btn-ghost {
  border: 1.5px solid var(--paper-dim);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-block { width: 100%; margin-top: 12px; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,10,9,0.35) 0%, rgba(11,10,9,0.55) 55%, rgba(11,10,9,0.96) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 72px;
  animation: hero-rise 0.7s ease-out both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin-bottom: 22px;
}
.hero-lede {
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--paper);
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.hero-pillars li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
  color: var(--paper-dim);
  font-size: 0.95rem;
}
.hero-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blood-bright);
}

/* Section kicker/lede */
.section-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 18px;
}
.section-lede {
  max-width: 62ch;
  color: var(--paper-dim);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Intro */
.intro {
  padding: 88px 0;
  border-top: 1px solid rgba(201, 154, 75, 0.14);
}
.intro-text {
  max-width: 74ch;
  font-size: 1.15rem;
  color: var(--paper);
  opacity: 0.92;
}

/* Features — editorial rows, not a card grid */
.features {
  padding: 88px 0;
  border-top: 1px solid rgba(201, 154, 75, 0.14);
  background: var(--ink-2);
}
.feature-list {
  display: flex;
  flex-direction: column;
}
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(201, 154, 75, 0.14);
}
.feature-row:first-child {
  border-top: 1px solid rgba(201, 154, 75, 0.14);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature-icon svg {
  width: 30px;
  height: 30px;
}
.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--paper);
}
.feature-copy p {
  max-width: 68ch;
  color: var(--paper-dim);
  font-size: 1rem;
}

/* Join */
.join {
  padding: 88px 0;
  border-top: 1px solid rgba(201, 154, 75, 0.14);
}
.join-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 154, 75, 0.14);
}
.steps li:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--blood-bright);
  line-height: 1;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.steps p {
  color: var(--paper-dim);
  font-size: 0.98rem;
}

.join-card {
  background: var(--ink-2);
  border: 1px solid rgba(201, 154, 75, 0.22);
  border-radius: var(--radius);
  padding: 32px;
}
.join-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.join-card p {
  color: var(--paper-dim);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(201, 154, 75, 0.14);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-inner nav {
  display: flex;
  gap: 20px;
}
.footer-inner nav a {
  color: var(--paper-dim);
  font-size: 0.95rem;
}
.footer-inner nav a:hover { color: var(--paper); }
.footer-copy {
  width: 100%;
  color: var(--paper-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(201, 154, 75, 0.1);
  padding-top: 18px;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 860px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(201, 154, 75, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open {
    max-height: 320px;
  }
  .primary-nav a {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(201, 154, 75, 0.1);
    border-radius: 0;
  }
  .primary-nav .nav-cta {
    margin: 12px 20px;
    text-align: center;
  }

  .hero {
    min-height: 82vh;
  }
  .hero-content {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-icon {
    margin-bottom: 4px;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}
