/* ═══════════════════════════════════════════════════
   FUGUE STATE: NOWHERE — SHARED STYLES
   intoafuguestate.com
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=IM+Fell+English:ital@0;1&display=swap');

/* ── TOKENS ── */
:root {
  --void:       #080808;
  --void-mid:   #111010;
  --void-soft:  #1a1818;
  --parchment:  #e8e2d4;
  --parchment-mid: #c8c0b0;
  --parchment-dk: #a09080;
  --amber:      #c8a84b;
  --amber-dk:   #8a6e28;
  --amber-lt:   #e8c870;
  --signal:     #2a5a7a;
  --signal-lt:  #4a8aaa;
  --red:        #8b1a1a;
  --red-lt:     #c04040;
  --smoke:      #6b6058;
  --smoke-lt:   #9a9088;
  --ink:        #1a1510;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Courier Prime', monospace;
  --font-voice:   'Special Elite', cursive;
  --font-lore:    'IM Fell English', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

/* ── CLASSIFICATION BAR (top of every page) ── */
.classbar {
  background: var(--void);
  border-bottom: 1px solid #2a2520;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--smoke);
  position: sticky;
  top: 0;
  z-index: 100;
}
.classbar-auth { color: var(--red); }
.classbar-status { color: var(--amber); }

/* ── NAV ── */
.nav {
  background: var(--void-mid);
  border-bottom: 2px solid var(--amber-dk);
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--parchment);
  padding: 16px 32px 16px 0;
  border-right: 1px solid #2a2520;
  margin-right: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--smoke-lt);
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--parchment);
  border-bottom-color: var(--amber);
}
.nav-links a.active { color: var(--amber); }

/* ── SECTION BAND ── */
.section-band {
  background: var(--void-soft);
  border-top: 1px solid #2a2520;
  border-bottom: 1px solid #2a2520;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--smoke);
}
.section-band-title { color: var(--parchment-mid); }

/* ── PAGE WRAPPER ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HERO (index only) ── */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--void));
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--red);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 78px);
  letter-spacing: 6px;
  line-height: 1;
  color: var(--parchment);
  margin-bottom: 32px;
  max-width: 700px;
  overflow-wrap: break-word;
}
.hero-title em {
  font-style: normal;
  color: var(--amber);
}
.hero-body {
  font-family: var(--font-voice);
  font-size: 16px;
  color: var(--parchment-mid);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 48px;
}
.hero-cta-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--smoke);
  margin-bottom: 16px;
}

/* ── FOUR DOORS (index) ── */
.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 0 0 2px;
}
.door {
  background: var(--void-soft);
  border-top: 3px solid var(--smoke);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.door:hover { background: #1e1c1a; }
.door--play   { border-top-color: var(--amber); }
.door--listen { border-top-color: var(--signal-lt); }
.door--read   { border-top-color: #a08060; }
.door--own    { border-top-color: var(--red-lt); }
.door-label {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 5px;
}
.door--play   .door-label { color: var(--amber); }
.door--listen .door-label { color: var(--signal-lt); }
.door--read   .door-label { color: #b89a70; }
.door--own    .door-label { color: var(--red-lt); }
.door-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--smoke-lt);
  line-height: 1.7;
  flex: 1;
}
.door-arrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--smoke);
  align-self: flex-end;
  transition: color 0.15s;
}
.door:hover .door-arrow { color: var(--parchment-mid); }

/* ── RECENT STRIP (index) ── */
.recent-strip {
  background: var(--void-soft);
  border-top: 1px solid #2a2520;
  border-bottom: 1px solid #2a2520;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.recent-item {}
.recent-type {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--smoke);
  margin-bottom: 6px;
}
.recent-title {
  font-family: var(--font-voice);
  font-size: 15px;
  color: var(--parchment);
  margin-bottom: 6px;
  line-height: 1.4;
}
.recent-body {
  font-size: 12px;
  color: var(--smoke-lt);
  line-height: 1.6;
  margin-bottom: 10px;
}
.recent-link {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--amber);
  transition: color 0.15s;
}
.recent-link:hover { color: var(--amber-lt); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: 60px 40px 48px;
  border-bottom: 1px solid #2a2520;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--smoke);
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 5px;
  line-height: 1;
  margin-bottom: 20px;
}
.page-hero-body {
  font-family: var(--font-voice);
  font-size: 15px;
  color: var(--parchment-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 48px 40px;
  border-bottom: 1px solid #1a1818;
  max-width: 1100px;
  margin: 0 auto;
}
.content-section:last-of-type { border-bottom: none; }

.section-head {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--smoke);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2520;
}

/* ── PRODUCT CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 24px;
}
.product-card {
  background: var(--void-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-top: 2px solid #2a2520;
}
.product-card:hover { background: #1e1c1a; }
.product-card-tag {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--smoke);
}
.product-card-title {
  font-family: var(--font-voice);
  font-size: 18px;
  color: var(--parchment);
  line-height: 1.3;
}
.product-card-body {
  font-size: 12px;
  color: var(--smoke-lt);
  line-height: 1.65;
  flex: 1;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--amber);
}
.product-card-price.free { color: #5a8a5a; }

/* ── LORE BLOCK ── */
.lore-block {
  border-left: 3px solid var(--amber-dk);
  padding: 20px 28px;
  background: var(--void-soft);
  margin: 20px 0;
}
.lore-block p {
  font-family: var(--font-lore);
  font-size: 15px;
  color: var(--parchment-mid);
  line-height: 1.85;
}
.lore-block p + p { margin-top: 12px; }

/* ── TRANSMISSION BLOCK (listen page) ── */
.transmission {
  background: #0a0c10;
  border: 1px solid #1a2a38;
  padding: 28px 32px;
  margin: 20px 0;
}
.transmission-header {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: #3a5a70;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.transmission-status { color: var(--red); }
.transmission-body {
  font-family: var(--font-voice);
  font-size: 14px;
  color: #8aacbc;
  line-height: 1.8;
}
.transmission-body p + p { margin-top: 12px; }
.transmission-signoff {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: #3a5a70;
  margin-top: 20px;
}

/* ── AUDIO PLACEHOLDER ── */
.audio-placeholder {
  background: #0a0c10;
  border: 1px dashed #2a3a48;
  padding: 32px;
  text-align: center;
  margin: 16px 0;
}
.audio-placeholder-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: #3a5a70;
  margin-bottom: 8px;
}
.audio-placeholder-title {
  font-family: var(--font-voice);
  font-size: 16px;
  color: var(--signal-lt);
}

/* ── DISPATCH CARD (read page) ── */
.dispatch-card {
  background: var(--void-soft);
  border-left: 3px solid #a08060;
  padding: 24px 28px;
  margin: 12px 0;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.dispatch-card:hover { background: #1e1c1a; }
.dispatch-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--smoke);
  margin-bottom: 6px;
}
.dispatch-title {
  font-family: var(--font-voice);
  font-size: 18px;
  color: var(--parchment);
  margin-bottom: 8px;
}
.dispatch-body {
  font-size: 12px;
  color: var(--smoke-lt);
  line-height: 1.65;
}

/* ── WORLD ENTRY ── */
.world-entry {
  padding: 24px 0;
  border-bottom: 1px solid #1a1818;
}
.world-entry:last-child { border-bottom: none; }
.world-entry-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--smoke);
  margin-bottom: 6px;
}
.world-entry-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--parchment);
  margin-bottom: 10px;
}
.world-entry-body {
  font-size: 13px;
  color: var(--smoke-lt);
  line-height: 1.7;
  max-width: 640px;
}

/* ── SHOP GRID (own page) ── */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 24px;
}
.collection-card {
  background: var(--void-soft);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-top: 2px solid #2a2520;
  min-height: 140px;
}
.collection-card:hover { background: #1e1c1a; }
.collection-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--parchment);
}
.collection-card-desc {
  font-size: 12px;
  color: var(--smoke-lt);
  line-height: 1.6;
  flex: 1;
}
.collection-card-link {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--red-lt);
  margin-top: 4px;
  transition: color 0.15s;
}
.collection-card:hover .collection-card-link { color: var(--parchment-mid); }

/* ── FOOTER ── */
.site-footer {
  background: var(--void-mid);
  border-top: 2px solid var(--amber-dk);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--smoke);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2520;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 12px;
  color: var(--smoke-lt);
  letter-spacing: 1px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--parchment); }
.footer-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-email-input {
  background: var(--void-soft);
  border: 1px solid #2a2520;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.footer-email-input::placeholder { color: var(--smoke); }
.footer-email-input:focus { border-color: var(--amber-dk); }
.footer-email-btn {
  background: var(--amber-dk);
  color: var(--void);
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.footer-email-btn:hover { background: var(--amber); }
.footer-base {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #2a2520;
}
.footer-sig {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--smoke);
}
.footer-sig span { color: var(--amber); }
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--smoke);
  transition: color 0.15s;
}
.footer-socials a:hover { color: var(--parchment); }

/* ── SIGNAL ANIMATION (hero only) ── */
@keyframes signal-in {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); }
  60%  { opacity: 1; clip-path: inset(0 0% 0 0); }
  80%  { opacity: 0.7; }
  100% { opacity: 1; }
}
.signal-animate {
  animation: signal-in 1.2s ease-out forwards;
}
.signal-animate-delay {
  opacity: 0;
  animation: signal-in 1.2s ease-out 0.5s forwards;
}
.signal-animate-delay-2 {
  opacity: 0;
  animation: signal-in 1s ease-out 1s forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .classbar { padding: 8px 20px; font-size: 9px; letter-spacing: 2px; }
  .nav { padding: 0 20px; }
  .nav-logo { font-size: 18px; padding-right: 16px; }
  .nav-links a { padding: 0 12px; font-size: 11px; }
  .hero { padding: 60px 20px 40px; }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .recent-strip { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .page-hero { padding: 40px 20px 32px; }
  .content-section { padding: 36px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 0 8px; }
  .site-footer { padding: 40px 20px 24px; }
  .footer-base { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 540px) {
  .doors { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-animate,
  .signal-animate-delay,
  .signal-animate-delay-2 { animation: none; opacity: 1; }
}
