/* ═══════════════════════════════════════════════════
   CORPORATE THEATER — SHARED STYLESHEET
   style.css
═══════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  --black:     #0a0a08;
  --white:     #fafaf5;
  --red:       #d62b2b;
  --red-dim:   #8a1c1c;
  --grey:      #b0a898;
  --warm:      #111110;
  --warm-2:    #161614;
  --rule:      rgba(255, 255, 255, 0.07);
  --highlight: rgba(214, 43, 43, 0.09);
  --max-w:     1100px;
  --article-w: 760px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NOISE TEXTURE ── */
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.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.55;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 8, 0.96);
  border-bottom: 1px solid var(--rule);
  padding: 0 64px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-brand:hover { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--white);
  border-color: var(--rule);
}

.nav-link.active {
  color: var(--red);
  border-color: rgba(214,43,43,0.25);
}

/* ── PAGE HEADER (used on interior pages) ── */
.page-header {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 50px,
    rgba(214,43,43,0.025) 50px,
    rgba(214,43,43,0.025) 51px
  );
}

.page-header-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 64px 72px;
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.page-title em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.page-subtitle {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--grey);
  max-width: 540px;
  line-height: 1.6;
  border-left: 2px solid var(--red-dim);
  padding-left: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.25s forwards;
}

/* ── ARTICLE LIST PAGE LAYOUT ── */
.article-index {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 120px;
}

.index-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.index-nav-item {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 16px 20px;
  border-right: 1px solid var(--rule);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-nav-item:hover { color: var(--white); background: var(--warm); }

.index-nav-item .dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── INDIVIDUAL ARTICLE WITHIN A VOLUME PAGE ── */
.article-block {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule);
  max-width: var(--article-w);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.65s ease forwards;
}

.article-block:nth-child(1) { animation-delay: 0.1s; }
.article-block:nth-child(2) { animation-delay: 0.18s; }
.article-block:nth-child(3) { animation-delay: 0.26s; }
.article-block:nth-child(4) { animation-delay: 0.34s; }
.article-block:nth-child(5) { animation-delay: 0.42s; }

.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.art-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.3;
  flex-shrink: 0;
}

.art-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-dim);
}

.article-block h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 680px;
}

/* ── HOOK ── */
.hook {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.7;
  padding: 26px 28px;
  background: var(--highlight);
  border-left: 3px solid var(--red);
  margin-bottom: 40px;
  position: relative;
}

.hook::before {
  content: '"';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  color: var(--red);
  opacity: 0.14;
  position: absolute;
  top: -8px;
  left: 10px;
  line-height: 1;
  pointer-events: none;
}

/* ── BODY TEXT ── */
.body-text p {
  color: rgba(250, 250, 245, 0.87);
  margin-bottom: 20px;
}

.body-text p:last-child { margin-bottom: 0; }

/* ── SECTION LABEL ── */
.sec {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin: 36px 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--red-dim);
}

/* ── PULL QUOTE ── */
.pull {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  text-align: center;
  padding: 36px 20px;
  margin: 36px 0;
  position: relative;
}

.pull::before, .pull::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  margin: 18px auto;
  width: 55%;
}

/* ── TAKEAWAY ── */
.takeaway {
  background: var(--warm);
  border: 1px solid rgba(214, 43, 43, 0.25);
  padding: 26px 30px;
  margin-top: 40px;
}

.takeaway .sec { margin-top: 0; margin-bottom: 12px; }

.takeaway p {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--white);
  margin: 0;
}

/* ── CLOSING LINE (shorts variant) ── */
.closer {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.5;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--warm);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.footer-line {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(176, 168, 152, 0.3);
  text-transform: uppercase;
}

/* ── DICTIONARY SPECIFIC ── */
.dict-entries {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 120px;
}

.dict-entry {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.dict-entry:nth-child(1) { animation-delay: 0.08s; }
.dict-entry:nth-child(2) { animation-delay: 0.16s; }
.dict-entry:nth-child(3) { animation-delay: 0.24s; }
.dict-entry:nth-child(4) { animation-delay: 0.32s; }
.dict-entry:nth-child(5) { animation-delay: 0.40s; }

.dict-term-col {
  position: sticky;
  top: 90px;
}

.dict-term {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.dict-pos {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-dim);
}

.dict-content {}

.dict-row {
  margin-bottom: 28px;
}

.dict-row:last-child { margin-bottom: 0; }

.dict-row-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--red-dim);
}

.dict-row p {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(250, 250, 245, 0.85);
}

.dict-closer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(250, 250, 245, 0.55);
  line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .site-nav { padding: 0 24px; }

  .page-header-inner,
  .article-index,
  .dict-entries { padding-left: 24px; padding-right: 24px; }

  .dict-entry {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dict-term-col { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }

  .nav-links { gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 9px; letter-spacing: 0.12em; }

  .page-header-inner { padding: 56px 24px 52px; }

  .article-block { padding: 60px 0 52px; }

  .pull { font-size: 1.2rem; }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    text-align: center;
  }
}
