/* =============================================
   FWESHI OS — POST 4: ONE MISTAKE
   Raw Documentary Editorial · Sepia Dark
   Warm ochre accent · Playfair Display prose
   ============================================= */

:root {
  --bg:          #100e0b;
  --bg-2:        #151210;
  --bg-3:        #1b1713;
  --bg-card:     #131008;
  --border:      rgba(210,170,90,.12);
  --border-2:    rgba(210,170,90,.22);
  --border-dim:  rgba(255,255,255,.06);
  --text:        #e8dfc8;
  --text-muted:  #8a7d68;
  --text-dim:    #3a3228;
  --accent:      #D4A843;   /* warm ochre/gold — distinct from all previous */
  --accent-2:    #e8bc55;
  --accent-red:  #c45a3a;
  --white:       #f0e8d4;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Playfair Display', serif;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 52px;
  background: rgba(16,14,11,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: .1em;
  color: var(--white); text-decoration: none;
  transition: color .2s;
}
.nav-brand:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(212,168,67,.35);
  padding: 3px 10px; border-radius: 2px;
  background: rgba(212,168,67,.06);
}

.nav-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── HERO ────────────────────────────────── */
.hero { animation: fadeUp .9s ease forwards; }

/* Full-bleed image container */
.hero-image-wrap {
  position: relative;
  width: 100%;
  height: clamp(460px, 70vh, 700px);
  overflow: hidden;
}

.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(30%) sepia(20%) contrast(1.05);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-image-wrap:hover .hero-image { transform: scale(1.06); }

/* Multi-layer overlay for cinematic depth */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16,14,11,.95) 0%, rgba(16,14,11,.5) 40%, rgba(16,14,11,.15) 70%, transparent 100%),
    linear-gradient(to right, rgba(16,14,11,.4) 0%, transparent 40%);
}

/* Grain texture overlay */
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .5;
}

/* Photo credit */
.photo-credit {
  position: absolute; top: 24px; right: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(240,232,212,.45);
  background: rgba(16,14,11,.5);
  padding: 5px 12px; border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* Headline overlaid on photo */
.hero-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 52px 40px;
}

.hero-meta { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(212,168,67,.4);
  padding: 4px 12px; border-radius: 2px;
  background: rgba(16,14,11,.6);
  backdrop-filter: blur(4px);
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900; line-height: 1.05; letter-spacing: -.01em;
  color: var(--white);
}

.hero-headline em {
  font-style: italic; font-weight: 700;
  color: var(--accent);
  display: block;
}

/* Caption strip */
.hero-caption {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 52px;
}

.caption-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; line-height: 1.7; letter-spacing: .06em;
  color: var(--text-muted); font-style: italic;
  max-width: 760px;
}

/* ── ARTICLE ─────────────────────────────── */
.article {
  padding: 72px 52px 80px;
  animation: fadeUp .8s ease .2s both;
}

.article-inner { max-width: 780px; margin: 0 auto; }

/* Drop cap opening */
.story-open { margin-bottom: 32px; }

.story-lead {
  font-size: 21px; line-height: 1.85;
  color: var(--text);
}

.drop-cap {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 5.2em; font-weight: 900;
  line-height: .78;
  margin-right: 10px; margin-top: 6px;
  color: var(--accent);
}

/* Body paragraphs */
.body-p {
  font-size: 18px; line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.body-p em { font-style: italic; color: var(--text); }
.body-p strong { font-weight: 700; color: var(--text); font-style: normal; }
.body-p.closing { font-style: italic; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 32px; margin-top: 8px; }

/* ── LESSON BLOCK ────────────────────────── */
.lesson-block {
  border: 1px solid var(--border-2);
  margin: 48px 0;
  overflow: hidden;
}

.lesson-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,168,67,.07);
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
}

.lesson-content { display: flex; flex-direction: column; }

.lesson-row {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 28px;
  background: var(--bg-2);
}

.lesson-row--highlight {
  background: rgba(212,168,67,.05);
  border-top: 1px solid var(--border);
}

.lesson-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.lesson-text strong {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: .01em;
  color: var(--white); display: block; margin-bottom: 8px;
}

.lesson-text p {
  font-size: 15px; line-height: 1.75; color: var(--text-muted);
}

.lesson-divider { height: 1px; background: var(--border-dim); }

/* ── THREE PILLARS ───────────────────────── */
.pillars-row {
  display: flex; gap: 0; margin: 48px 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.pillar {
  flex: 1; padding: 28px 24px;
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s;
}
.pillar:hover { background: var(--bg-3); }

.pillar-sep {
  width: 1px; background: var(--border); flex-shrink: 0;
}

.pillar-icon { font-size: 22px; }

.pillar-word {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent);
}

.pillar-note {
  font-size: 13px; line-height: 1.7; color: var(--text-muted);
}

/* ── PULL QUOTE ──────────────────────────── */
.pull-quote {
  padding: 52px 48px; margin: 40px 0;
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
  position: relative;
}

.pull-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 120px; line-height: 1; font-weight: 900;
  color: var(--accent); opacity: .1;
  position: absolute; top: -8px; left: 20px;
  pointer-events: none;
}

.pull-quote p {
  font-size: clamp(24px, 3.5vw, 36px);
  font-style: italic; font-weight: 700;
  line-height: 1.4; color: var(--white);
}

.pull-quote p em {
  font-style: normal; color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212,168,67,.4);
  text-underline-offset: 4px;
}

/* ── CTA ─────────────────────────────────── */
.cta-block {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-top: 3px solid var(--accent);
  padding: 36px; margin-top: 48px;
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; font-style: italic;
  color: var(--white); margin-bottom: 8px;
}

.cta-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; line-height: 1.65; color: var(--text-muted);
  letter-spacing: .04em;
}

.cta-btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border: 1px solid rgba(212,168,67,.4); padding: 14px 28px;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s, color .2s;
}
.cta-btn:hover { background: var(--accent); color: var(--bg); }

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 52px 40px;
  animation: fadeUp .8s ease .3s both;
}

.footer-inner { max-width: 780px; margin: 0 auto; }

.author {
  display: flex; gap: 32px; align-items: flex-start; margin-bottom: 48px;
}

.author-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid rgba(212,168,67,.35);
  flex-shrink: 0; filter: grayscale(20%);
  transition: filter .3s, border-color .3s;
}
.author-avatar:hover { filter: grayscale(0%); border-color: var(--accent); }

.author-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); display: block; margin-bottom: 6px;
}

.author-name {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800; letter-spacing: .08em;
  color: var(--white); margin-bottom: 10px;
}

.author-bio {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; line-height: 1.75; letter-spacing: .04em;
  color: var(--text-muted); max-width: 520px; margin-bottom: 24px;
}

.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.social-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding: 7px 14px; border: 1px solid var(--border-dim); border-radius: 2px;
  transition: color .2s, border-color .2s, background .2s;
}
.social-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.social-link:hover {
  color: var(--accent);
  border-color: rgba(212,168,67,.4);
  background: rgba(212,168,67,.05);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  flex-wrap: wrap; gap: 8px; letter-spacing: .08em;
}

.footer-tags { font-size: 9px; letter-spacing: .14em; }

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

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 720px) {
  .nav { padding: 16px 24px; }
  .nav-tag { display: none; }
  .hero-text { padding: 0 24px 32px; }
  .hero-caption { padding: 16px 24px; }
  .article { padding: 48px 24px 64px; }
  .footer { padding: 48px 24px 32px; }
  .pillars-row { flex-direction: column; }
  .pillar-sep { width: 100%; height: 1px; }
  .author { flex-direction: column; gap: 20px; }
  .author-avatar { width: 72px; height: 72px; }
  .cta-block { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .pull-quote { padding: 32px 24px; }
  .drop-cap { font-size: 4em; }
}
