/* ====================================
   THE AGENT'S BLIND SPOT
   Heritage-aesthetic Ghost Theme
   Inspired by NB Made in UK | Flimby
   ==================================== */

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

/* ====== VARIABLES ====== */
:root {
  --bg-deep: #1a1714;
  --bg-warm: #231f1b;
  --bg-card: #2a2521;
  --cream: #e8e0d4;
  --cream-muted: #b8ad9e;
  --cream-faint: #8a7e70;
  --gold: #c4a265;
  --gold-dim: #9a7d4e;
  --burgundy: #6b2d3e;
  --wood: #3d2e24;
  --text-body: #c8bfb3;
  --text-heading: #ede6db;
}

/* ====== BASE ====== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--cream); }

/* ====== NAV ====== */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(26,23,20,0.95) 0%, rgba(26,23,20,0) 100%);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links li a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links li a:hover { color: var(--gold); }

/* ====== HERO ====== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(100, 70, 40, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(107, 45, 62, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gold-dim));
  margin-bottom: 48px;
  opacity: 0.6;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--cream-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 56px;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.4s ease;
}

.hero-cta:hover {
  background: var(--gold-dim);
  color: var(--bg-deep);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  animation: pulse 2s ease-in-out infinite;
}

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

/* ====== DIVIDER ====== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.section-divider .line {
  width: 120px;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.3;
}

.section-divider .diamond {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-dim);
  transform: rotate(45deg);
  margin: 0 20px;
  opacity: 0.4;
}

/* ====== MANIFESTO ====== */
.manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 40px 120px;
  text-align: center;
}

.manifesto-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 40px;
}

.manifesto p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--cream);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 400;
}

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

/* ====== CHAPTERS / POST LIST ====== */
.chapters {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px 120px;
}

.chapters-header {
  text-align: center;
  margin-bottom: 80px;
}

.chapters-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.chapters-header p {
  color: var(--cream-faint);
  font-size: 14px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.chapter-card {
  display: block;
  background: var(--bg-card);
  padding: 48px 40px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chapter-card:hover {
  background: var(--bg-warm);
}

.chapter-card:hover::before {
  opacity: 1;
}

.chapter-number {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 400;
}

.chapter-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.35;
}

.chapter-desc {
  font-size: 14px;
  color: var(--cream-faint);
  line-height: 1.7;
}

/* ====== QUOTE BREAK ====== */
.quote-break {
  padding: 120px 40px;
  text-align: center;
  position: relative;
}

.quote-break::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--wood) 50%, var(--bg-deep) 100%);
  opacity: 0.3;
}

.quote-break blockquote {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.quote-break .attribution {
  position: relative;
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 400;
}

/* ====== SUBSCRIBE ====== */
.subscribe {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 40px 160px;
  text-align: center;
}

.post-subscribe {
  padding: 60px 40px 80px;
}

.subscribe h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.subscribe p {
  font-size: 14px;
  color: var(--cream-faint);
  margin-bottom: 40px;
  line-height: 1.7;
}

.subscribe-form form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--wood);
  border-right: none;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
}

.subscribe-form input::placeholder {
  color: var(--cream-faint);
}

.subscribe-form input:focus {
  border-color: var(--gold-dim);
}

.subscribe-form button {
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.subscribe-form button:hover {
  background: var(--gold-dim);
  color: var(--bg-deep);
}

/* ====== POST / ARTICLE ====== */
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 40px 80px;
}

.post-header {
  text-align: center;
  margin-bottom: 60px;
}

.post-tag {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.post-excerpt {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--cream-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.post-meta {
  font-size: 12px;
  color: var(--cream-faint);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.post-image {
  margin: 0 -40px 60px;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-image figcaption {
  font-size: 12px;
  color: var(--cream-faint);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* ====== POST CONTENT (Ghost editor output) ====== */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}

.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-heading);
  margin: 56px 0 24px;
  line-height: 1.3;
}

.post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-heading);
  margin: 48px 0 20px;
  line-height: 1.35;
}

.post-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 40px 0 16px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content strong {
  font-weight: 500;
  color: var(--cream);
}

.post-content em {
  color: var(--cream);
}

.post-content blockquote {
  border-left: 2px solid var(--gold-dim);
  padding: 16px 0 16px 32px;
  margin: 40px 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
}

.post-content ul, .post-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 12px;
}

.post-content li::marker {
  color: var(--gold-dim);
}

.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-dim);
}

.post-content a:hover {
  color: var(--cream);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--wood);
  margin: 56px 0;
}

.post-content figure {
  margin: 40px 0;
}

.post-content figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content figcaption {
  font-size: 13px;
  color: var(--cream-faint);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.post-content th {
  background: var(--bg-card);
  color: var(--cream);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gold-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--wood);
  color: var(--cream-muted);
}

.post-content tr:hover td {
  background: var(--bg-card);
}

/* Ghost-specific content cards */
.kg-card { margin: 40px 0; }
.kg-image-card img { width: 100%; height: auto; }
.kg-width-wide { margin-left: -80px; margin-right: -80px; }
.kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.kg-bookmark-card { border: 1px solid var(--wood); border-radius: 0; }
.kg-callout-card { background: var(--bg-card); border: none; border-left: 2px solid var(--gold-dim); padding: 24px; }

/* ====== POST NAV ====== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.post-nav-link {
  display: block;
  background: var(--bg-card);
  padding: 32px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.post-nav-link:hover {
  background: var(--bg-warm);
}

.post-nav-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}

.post-nav-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--cream);
  line-height: 1.4;
}

.post-nav-link.next {
  text-align: right;
}

/* ====== TAG / AUTHOR PAGES ====== */
.tag-page, .author-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 60px 80px;
}

.tag-header, .author-header {
  text-align: center;
  margin-bottom: 80px;
}

.tag-title, .author-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.tag-description, .author-bio {
  font-size: 16px;
  color: var(--cream-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== ERROR PAGE ====== */
.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.error-code {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  font-weight: 400;
  color: var(--wood);
  line-height: 1;
  margin-bottom: 16px;
}

.error-message {
  font-size: 16px;
  color: var(--cream-faint);
  margin-bottom: 48px;
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid rgba(196, 162, 101, 0.1);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--cream-faint);
  letter-spacing: 0.1em;
}

.footer-right {
  font-size: 11px;
  color: var(--cream-faint);
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* ====== PAGINATION ====== */
.pagination {
  display: flex;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.pagination a {
  padding: 12px 24px;
  border: 1px solid var(--wood);
  color: var(--cream-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  border-color: var(--gold-dim);
  color: var(--cream);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .site-nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .chapters { padding: 0 24px 80px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 40px 24px 80px; }
  .post-article { padding: 120px 24px 60px; }
  .post-image { margin: 0 -24px 40px; }
  .post-nav { grid-template-columns: 1fr; }
  .subscribe-form form { flex-direction: column; }
  .subscribe-form input[type="email"] { border-right: 1px solid var(--wood); border-bottom: none; }
  .tag-page, .author-page { padding: 120px 24px 60px; }
  .site-footer { flex-direction: column; gap: 16px; padding: 40px 24px; }
  .kg-width-wide { margin-left: -24px; margin-right: -24px; }
}
