/* ==========================================================================
   Rebase 2026 — terminal / monospace identity
   Red-on-black, Roboto Mono. Shared tokens + components across all pages.
   ========================================================================== */

:root {
  --bg:            #000000;
  --accent:        #ff0000;  /* primary red, overridable per-page via inline --accent */
  --marquee-hero:  #570000;  /* bright-ish scroll text on the landing */
  --marquee-faint: #2b0000;  /* faint scroll backdrop on content pages */
  --rule:          #570000;  /* hairline rules + borders */
  --text:          #d14b46;  /* body copy */
  --label:         #8a1f1f;  /* section labels, meta */
  --value:         #e0584f;  /* detail values, emphasis */
  --muted:         #7a1a1a;  /* secondary links */
  --footer:        #570000;

  --font: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--font);
}

a { color: inherit; }

/* --------------------------------------------------------------------------
   Scrolling partner marquee (vertical, seamless −50% loop)
   The list is duplicated in markup so translateY(-50%) loops without a seam.
   -------------------------------------------------------------------------- */
@keyframes rebase-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes rebase-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.marquee {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  pointer-events: none;
}

.marquee__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  will-change: transform;
  animation: rebase-scroll var(--marquee-speed, 40s) linear infinite;
}

.marquee__item {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.55;
  white-space: nowrap;
}

/* Landing variant — larger, brighter */
.marquee--hero .marquee__item {
  color: var(--marquee-hero);
  font-size: clamp(40px, 6.2vw, 96px);
}

/* Content-page backdrop variant — small, faint, behind the copy */
.marquee--faint {
  z-index: 0;
}
.marquee--faint .marquee__track {
  animation-duration: var(--marquee-speed, 55s);
}
.marquee--faint .marquee__item {
  color: var(--marquee-faint);
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Brand wordmark with blinking cursor
   -------------------------------------------------------------------------- */
.brand {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 15px;
}
.brand__cursor {
  animation: rebase-blink 1.1s steps(1) infinite;
}

/* --------------------------------------------------------------------------
   Logo placeholder (replaces the design-tool <image-slot>)
   -------------------------------------------------------------------------- */
.logo-slot {
  width: 56px;
  height: 36px;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  color: var(--label);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Shared page chrome for the content pages (invitation / partner)
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font);
  overflow: hidden;
}

.page__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.topbar__partner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__name {
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.section {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

.section__label,
.kicker {
  color: var(--label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
}
.section__label { margin-bottom: 32px; }

.hero__title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.02;
  margin: 0;
}

.body-copy {
  color: var(--text);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
  margin: 0;
}

/* CTA button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  color: #000000;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 16px;
  text-decoration: none;
  padding: 20px 34px;
  transition: opacity 0.18s ease;
}
.cta:hover { opacity: 0.82; }
.cta__arrow { font-size: 20px; }

.cta-row {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.cta-note {
  color: var(--label);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  color: var(--footer);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Content pages (CMS-authored Markdown) — layouts/page.blade.php
   -------------------------------------------------------------------------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.doc__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.doc__bar .brand { text-decoration: none; }
.doc__nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.doc__nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  transition: color 0.18s ease;
}
.doc__nav a:hover { color: var(--accent); }
.doc__body { flex: 1; padding-top: 64px; }

/* Markdown prose */
.prose__title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 40px;
}
.prose { color: var(--text); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.85; }
.prose h2 {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: clamp(20px, 3vw, 28px); margin: 56px 0 18px;
}
.prose h3 {
  color: var(--value); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 18px; margin: 36px 0 14px;
}
.prose p { margin: 0 0 22px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--value); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose blockquote {
  border-left: 2px solid var(--rule); margin: 0 0 22px; padding-left: 22px; color: var(--value);
}
.prose code {
  background: #1a0000; border: 1px solid var(--rule); padding: 1px 6px; font-size: 0.9em;
}
.doc .footer { margin-top: 80px; }
