/* Bomber-C · Shared base CSS for multi-site placeholder fleet
 * Per [[pen-name-canon]] HOLD-SEPARATION: this file is COPIED to each site
 * directory (NOT linked across sites) for pen-name isolation.
 * Each site overrides palette + typography in site-specific stylesheet.
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body, 'Lexend', system-ui, -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg, #e8e4dd);
  background: var(--bg, #0d0d0f);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent, #4dc8e8);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---- Layout primitives ---- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  width: 100%;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
}

/* ---- Site header (sticky) ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, rgba(13, 13, 15, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, #2a2a2e);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-bright, #ffffff);
}

.site-logo:hover {
  opacity: 1;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--fg, #e8e4dd);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent, #4dc8e8);
  opacity: 1;
}

@media (max-width: 640px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .site-logo {
    font-size: 18px;
  }
}

/* ---- Hero section ---- */

.hero {
  padding: 120px 0 80px;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg-bright, #ffffff);
}

.hero-text p {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--fg, #e8e4dd);
  margin-bottom: 16px;
}

.hero-text .quote-attribution {
  font-size: 14px;
  color: var(--fg-muted, #888888);
  margin-top: 16px;
  font-style: italic;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark img,
.hero-mark svg {
  max-width: 320px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-mark {
    order: -1;
  }
  .hero-mark img,
  .hero-mark svg {
    max-width: 200px;
  }
}

/* ---- Marquee / tagline banner ---- */

.marquee-banner {
  background: var(--accent, #4dc8e8);
  color: var(--bg, #0d0d0f);
  padding: 32px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ---- Pillar sections ---- */

.pillar {
  border-top: 1px solid var(--border-lo, #1e1e21);
}

.pillar.theme-light {
  background: var(--bg-card, #161618);
}

.pillar.theme-warm {
  background: var(--bg-warm, #1a1614);
}

.pillar-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.pillar-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pillar-icon img,
.pillar-icon svg {
  width: 160px;
  height: auto;
  opacity: 0.92;
}

.pillar-text h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--fg-bright, #ffffff);
  letter-spacing: -0.02em;
}

.pillar-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--fg, #e8e4dd);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pillar-icon img,
  .pillar-icon svg {
    width: 120px;
  }
}

/* ---- Footer ---- */

.site-footer {
  padding: 64px 0 48px;
  background: var(--bg-card, #161618);
  border-top: 1px solid var(--border, #2a2a2e);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-mark img,
.footer-mark svg {
  width: 80px;
  height: auto;
  opacity: 0.85;
}

.footer-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg-bright, #ffffff);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted, #888888);
  max-width: 480px;
}

.footer-status {
  font-size: 12px;
  color: var(--fg-dim, #555555);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ---- Accessibility / motion ---- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent, #4dc8e8);
  color: var(--bg, #0d0d0f);
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* ---- Placeholder marker (for Captain ratify items) ---- */

.placeholder-marker {
  display: inline-block;
  font-size: 11px;
  color: var(--fg-muted, #888888);
  background: var(--bg-inset, #1a1a1e);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px dashed var(--border-hi, #3a3a40);
  font-family: monospace;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
