/* ════════════════════════════════════════════════════════════
   SOUND DOCTRINE — shared stylesheet
   Linked by index.html and every post in /posts.
   Tactical / field-report aesthetic.
   ════════════════════════════════════════════════════════════ */

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

:root {
  /* Tactical / gunmetal palette */
  --steel:      #0a0d0f;   /* near-black base */
  --steel-2:    #0f1316;   /* panel */
  --steel-3:    #161b1f;   /* raised panel */
  --gunmetal:   #1c2227;
  --bone:       #e6e3dc;   /* primary text */
  --sand:       #b89b6a;   /* tactical tan / brass */
  --sand-pale:  #d4bd92;
  --olive:      #6b7256;   /* field olive */
  --signal:     #b4341f;   /* signal red */
  --signal-dim: #7e2415;
  --rule:       #252c31;
  --mid:        #6f7a80;   /* muted steel */

  --ff-display: 'Oswald', 'Arial Narrow', sans-serif;
  --ff-body:    'Barlow', system-ui, sans-serif;
  --ff-mono:    'Space Mono', monospace;

  --max-w: 1080px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--steel);
  color: var(--bone);
  font-family: var(--ff-body);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint tactical grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

::selection { background: var(--signal); color: var(--bone); }

a { color: inherit; }

/* ── Masthead ──────────────────────────────────────────────── */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10,13,15,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-flag {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.masthead-flag::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.masthead-logo {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}

.masthead-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.masthead-nav a {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.masthead-nav a:hover { color: var(--sand); }

/* ── Shared section scaffolding ────────────────────────────── */
section { position: relative; }

.wrap { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before { content: '//'; color: var(--sand); }

.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--bone);
  line-height: 1.05;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--bone); }
.btn-primary:hover { background: var(--signal-dim); }
.btn-secondary { background: transparent; color: var(--bone); border: 1px solid var(--rule); }
.btn-secondary:hover { border-color: var(--sand); color: var(--sand); }

/* ════════════════════════════════════════════════════════════
   LANDING PAGE (index.html)
   ════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(4.5rem, 11vw, 10rem) var(--gutter) clamp(3.5rem, 8vw, 8rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(180,52,31,0.10), transparent 55%),
    linear-gradient(180deg, #0c1013 0%, var(--steel) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  right: clamp(-6rem, -4vw, -2rem);
  top: 50%;
  width: clamp(20rem, 38vw, 40rem);
  height: clamp(20rem, 38vw, 40rem);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23252c31' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='90'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Cline x1='100' y1='0' x2='100' y2='200'/%3E%3Cline x1='0' y1='100' x2='200' y2='100'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before { content: ''; width: 2.5rem; height: 1px; background: var(--sand); }

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.75rem;
}
.hero-headline em { font-style: normal; color: var(--sand); display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  color: #b7bcbe;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-verse {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  border-left: 2px solid var(--signal);
  padding-left: 1rem;
  margin-bottom: 2.75rem;
  max-width: 540px;
}
.hero-verse strong { color: var(--sand); font-weight: 700; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── About ─────────────────────────────────────────────────── */
.about {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-body p { margin-bottom: 1.2rem; color: #b7bcbe; }
.about-body p strong { color: var(--bone); font-weight: 500; }
.about-creed { margin-top: 1.5rem; list-style: none; display: grid; gap: 0.65rem; }
.about-creed li {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--sand-pale);
  padding-left: 1.5rem;
  position: relative;
}
.about-creed li::before { content: '▸'; position: absolute; left: 0; color: var(--signal); }

/* ── Dispatches / Blog list ────────────────────────────────── */
.dispatches {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--steel-2);
}
.dispatches-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.dispatches-count {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.post-list { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.post {
  background: var(--steel-2);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  text-decoration: none;
  transition: background 0.2s;
}
.post:hover { background: var(--steel-3); }
.post-date { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--sand); white-space: nowrap; }
.post-title { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 500; text-transform: uppercase; color: var(--bone); }
.post-tag { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }

.post-empty { border: 1px dashed var(--rule); padding: clamp(3rem, 7vw, 5rem) 2rem; text-align: center; }
.post-empty-reticle {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.25rem;
}
.post-empty h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.85rem;
}
.post-empty p { color: var(--mid); max-width: 460px; margin: 0 auto; font-size: 1rem; }

/* ════════════════════════════════════════════════════════════
   REPORT PAGE (/posts/*.html)
   ════════════════════════════════════════════════════════════ */

.report {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(110% 60% at 85% -10%, rgba(180,52,31,0.08), transparent 55%),
    linear-gradient(180deg, #0c1013 0%, var(--steel) 60%);
}

.report-inner { max-width: 760px; margin: 0 auto; }

/* breadcrumb / classification line */
.report-class {
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.report-class a { color: var(--mid); text-decoration: none; transition: color 0.2s; }
.report-class a:hover { color: var(--sand); }
.report-class .sep { color: var(--rule); }
.report-class .cat { color: var(--sand); }

.report-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--bone);
  margin-bottom: 1.25rem;
}

.report-dek {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: #c2c6c8;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* ── Dossier / subject details ─────────────────────────────── */
.dossier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 0.5rem;
}
.dossier-item { background: var(--steel-2); padding: 1rem 1.25rem; }
.dossier-label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}
.dossier-value {
  font-family: var(--ff-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--bone);
  line-height: 1.25;
}
.dossier-value.status { color: var(--signal); }

/* ── Report body prose ─────────────────────────────────────── */
.report-body { max-width: 700px; margin: 3rem auto 0; }
.report-body > * { margin-bottom: 1.4rem; }
.report-body h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--bone);
  margin-top: 2.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.report-body h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 1.75rem;
}
.report-body p { color: #c2c6c8; }
.report-body strong { color: var(--bone); font-weight: 500; }
.report-body a { color: var(--sand-pale); text-decoration: underline; text-underline-offset: 3px; }
.report-body a:hover { color: var(--sand); }
.report-body ul, .report-body ol { padding-left: 1.4rem; color: #c2c6c8; }
.report-body li { margin-bottom: 0.5rem; }

/* a quoted claim under examination */
.report-body blockquote {
  border-left: 2px solid var(--signal);
  background: rgba(180,52,31,0.06);
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
}
.report-body blockquote p { color: var(--bone); font-style: italic; margin: 0; }
.report-body blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  font-style: normal;
}

/* ── Scripture / verdict callout ───────────────────────────── */
.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sand);
  background: var(--steel-2);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.callout-label {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.callout p { color: var(--bone); margin: 0; }

/* ── References ────────────────────────────────────────────── */
.references {
  max-width: 700px;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.references h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.5rem;
}
.ref-list { list-style: none; counter-reset: ref; display: grid; gap: 1rem; }
.ref-list li {
  counter-increment: ref;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.95rem;
  color: #b7bcbe;
  line-height: 1.5;
}
.ref-list li::before {
  content: '[' counter(ref) ']';
  position: absolute;
  left: 0;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--signal);
  top: 0.15rem;
}
.ref-list a { color: var(--sand-pale); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.ref-list a:hover { color: var(--sand); }

/* ── Report footer nav ─────────────────────────────────────── */
.report-nav {
  max-width: 760px;
  margin: 3.5rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ════════════════════════════════════════════════════════════
   FOOTER (shared)
   ════════════════════════════════════════════════════════════ */
footer { padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--mid); max-width: 320px; }

.footer-nav { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--sand); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--rule); }
.footer-bottom p span { color: var(--mid); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 0.7s ease both; }
.hero-label    { animation-delay: 0.05s; }
.hero-headline { animation-delay: 0.2s; }
.hero-sub      { animation-delay: 0.35s; }
.hero-verse    { animation-delay: 0.45s; }
.hero-cta      { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .masthead-nav { display: none; }
  .post { grid-template-columns: 1fr; gap: 0.5rem; }
}
