/* ── IDEATIONAL EVOLUTION · MAIN STYLESHEET ── */

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

:root {
  --bg: #0f0e0c;
  --surface: #191714;
  --paper: #f2ece0;
  --paper-mid: #d9d0be;
  --gold: #c9a84c;
  --gold-dim: #8a6e30;
  --red: #c0392b;
  --muted: #7a7060;
  --rule: #2e2b25;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'DM Serif Text', Georgia, serif;
  --condensed: 'Barlow Condensed', sans-serif;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── MASTHEAD ── */
.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.masthead-tag {
  font-family: var(--condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.masthead h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.masthead h1 a {
  color: var(--paper);
  text-decoration: none;
}

.masthead h1 em {
  font-style: italic;
  color: var(--gold);
}

.masthead-right { text-align: right; padding-bottom: 0.4rem; }

.masthead-sub {
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

.masthead-date {
  font-family: var(--condensed);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-top: 0.3rem;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
}

nav a {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-right: 1px solid var(--rule);
  transition: color 0.2s, background 0.2s;
  display: block;
}

nav a:first-child { border-left: 1px solid var(--rule); }
nav a:hover { color: var(--gold); background: rgba(201,168,76,0.04); }
nav a.active { color: var(--paper); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.hero-flag {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-flag::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--red);
}

.hero h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-byline {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--paper-mid);
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-bottom: 1.3rem;
}

.hero-body {
  font-size: 0.93rem;
  line-height: 1.82;
  color: #a09880;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.8rem; }
.read-more::after { content: '→'; }

/* ── HERO ASIDE ── */
.hero-aside {
  border-left: 1px solid var(--rule);
  padding-left: 3rem;
  padding-top: 0.5rem;
}

.aside-label {
  font-family: var(--condensed);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.aside-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.aside-item:last-child { border-bottom: none; }

.aside-tag {
  font-family: var(--condensed);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}

.aside-item a {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--paper-mid);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}

.aside-item a:hover { color: var(--paper); }

/* ── POST GRID ── */
.posts-section { padding: 3rem 0; }

.posts-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.posts-header h3 {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.posts-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}

.post-card {
  padding: 1.8rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s;
}

.post-card:hover { background: var(--surface); }
.post-card:nth-child(3n) { border-right: none; }
.post-card:nth-last-child(-n+3) { border-bottom: none; }

.card-tag {
  font-family: var(--condensed);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.7rem;
}

.post-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 0.7rem;
}

.post-card h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h4 a:hover { color: var(--gold); }

.card-excerpt {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-date {
  font-family: var(--condensed);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #3d3a32;
  text-transform: uppercase;
}

/* ── SINGLE POST ── */
.single-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

.post-header { margin-bottom: 3rem; }

.post-tag {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.single-post h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.post-byline {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.post-lede {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--paper-mid);
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
}

/* ── POST BODY TYPOGRAPHY ── */
.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--paper-mid);
}

.post-body p { margin-bottom: 1.4rem; }

.post-body h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--paper);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: var(--condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.8rem;
}

.post-body blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--paper-mid);
}

.post-body blockquote p { margin-bottom: 0.5rem; }

.post-body em { font-style: italic; }

.post-body strong {
  color: var(--paper);
  font-weight: 400;
}

.post-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}

.post-body a:hover { border-color: var(--gold); }

.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ── BIBLIOGRAPHY ── */
.post-bibliography {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.bib-heading {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.bib-list {
  list-style: none;
}

.bib-item {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.bib-item:last-child { border-bottom: none; }
.bib-item em { font-style: italic; color: var(--paper-mid); }

/* ── POST NAV ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.post-nav-link {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.post-nav-link:hover { color: var(--paper); }

/* ── ABOUT STRIP ── */
.about-strip {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 2.5rem 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
}

.about-who {
  font-family: var(--condensed);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--paper-mid);
}

.about-link a {
  font-family: var(--condensed);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.about-link a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-family: var(--condensed);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
}

footer em { font-style: italic; color: var(--gold-dim); }
footer span { color: var(--gold-dim); }

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

.masthead { animation: fadeUp 0.5s ease both; }
.hero { animation: fadeUp 0.55s 0.08s ease both; }
.post-card { animation: fadeUp 0.5s ease both; }
.post-card:nth-child(1) { animation-delay: 0.15s; }
.post-card:nth-child(2) { animation-delay: 0.22s; }
.post-card:nth-child(3) { animation-delay: 0.29s; }
.post-card:nth-child(4) { animation-delay: 0.36s; }
.post-card:nth-child(5) { animation-delay: 0.43s; }
.post-card:nth-child(6) { animation-delay: 0.50s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 2rem; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card:nth-child(2n) { border-right: none; }
  .about-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .masthead-inner { grid-template-columns: 1fr; }
  .masthead-right { text-align: left; }
  .nav-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { border-right: none; }
  .single-post { padding: 2rem 1.5rem; }
}
