/* ============================================================
   AYA Blog stylesheet
   Editorial reading surface. Cream body, dark nav and footer.
   Visual vocabulary matches authoryourassets.com homepage.
   ============================================================ */

:root {
  --black:           #0A0A0A;
  --obsidian:        #1A1A1F;
  --charcoal:        #2A2A32;

  --gold:            #E8A020;
  --gold-muted:      #C4892A;
  --gold-dim:        #7A4F10;
  --gold-light:      #F2B84B;
  --gold-text:       #7A4800;

  --cream:           #F5F4EE;
  --cream-deep:      #EDEAE0;

  --mineral:         #E8E0D6;
  --taupe:           #A89985;
  --sand:            #C4B5A4;

  --ink:             #1A1A1F;
  --charcoal-text:   #2A2A32;
  --text-secondary:  #5C4535;

  --rule:            rgba(122, 79, 16, 0.22);
  --rule-soft:       rgba(122, 79, 16, 0.10);
}

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

body {
  background: var(--cream);
  color: var(--charcoal-text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain on cream — keeps the surface from feeling sterile. */
body::before {
  content: '';
  position: fixed;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

/* ===== SKIP NAV ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ===== NAV (matches homepage dark nav) ===== */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 160, 32, 0.10);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mineral);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--mineral); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid rgba(232, 160, 32, 0.4);
  padding: 8px 18px;
  border-radius: 2px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  color: var(--black) !important;
  background: var(--gold);
  border-color: var(--gold);
}

/* ===== ARTICLE — POST PAGE ===== */
.post {
  padding: 88px 24px 120px;
}

.post-inner {
  max-width: 720px;
  margin: 0 auto;
}

.post-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 28px;
}
.post-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--rule);
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 22px;
}
.post-title em { font-style: italic; color: var(--gold-text); }

.post-dek {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 28px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--rule);
}
.post-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: inline-block;
}

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-disclosure {
  background: var(--cream-deep);
  border-left: 2px solid var(--gold);
  padding: 18px 22px;
  margin: 0 0 44px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-radius: 2px;
}
.affiliate-disclosure strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== BODY PROSE ===== */
.post-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--charcoal-text);
}
.post-body > * + * { margin-top: 1.2em; }

.post-body p { font-size: inherit; }

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.3em;
}
.post-body h2 + p,
.post-body h3 + p { margin-top: 0.6em; }

.post-body a {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.post-body a:hover { color: var(--ink); }

.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }

.post-body blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 1.6em 0;
}
.post-body blockquote p { font-size: inherit; }

.post-body ul,
.post-body ol {
  padding-left: 1.4em;
}
.post-body li { margin-bottom: 0.5em; }
.post-body li::marker { color: var(--gold-dim); }

.post-body hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 2.4em auto;
  width: 60%;
}

.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--cream-deep);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.post-body pre {
  background: var(--obsidian);
  color: var(--mineral);
  padding: 18px 22px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
  border-radius: 2px;
}

/* ===== END-OF-POST CTA ===== */
.post-end {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.post-end-flag {
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
}

.post-cta {
  background: var(--black);
  color: var(--mineral);
  padding: 48px 36px;
  text-align: center;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,160,32,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.post-cta-eyebrow {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.post-cta h3 {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--mineral);
  margin-bottom: 14px;
  line-height: 1.25;
}
.post-cta p {
  position: relative;
  font-size: 0.95rem;
  color: var(--taupe);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.post-cta .btn {
  position: relative;
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.post-cta .btn:hover {
  background: var(--gold-muted);
  transform: translateY(-1px);
}

/* ===== BLOG INDEX ===== */
.blog-index {
  padding: 88px 24px 120px;
}
.blog-index-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.blog-masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 36px;
  margin-bottom: 56px;
}
.blog-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 18px;
}
.blog-eyebrow::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--rule);
}
.blog-masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.blog-masthead h1 em { font-style: italic; color: var(--gold-text); }
.blog-masthead p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
}

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.post-list li {
  border-top: 1px solid var(--rule);
}
.post-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.post-list a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.post-list a:hover {
  background: rgba(122, 79, 16, 0.03);
}

.post-list .meta {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: 6px;
}

.post-list .titleblock h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.post-list .titleblock .dek {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 640px;
}

.empty-state {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 80px 0;
}

/* ===== FOOTER (matches homepage) ===== */
footer.site-footer {
  background: var(--obsidian);
  border-top: 1px solid rgba(232, 160, 32, 0.1);
  padding: 60px 0 40px;
  color: var(--mineral);
}
.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mineral);
  display: block;
  margin-bottom: 10px;
}
.footer-brand .wordmark span { color: var(--gold); }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--taupe);
  max-width: 260px;
  line-height: 1.7;
}
.footer-links h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--taupe);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mineral); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(168, 153, 133, 0.8);
}
.footer-conviction {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 160, 32, 0.65);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.8rem;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--mineral); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav.site-nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .post { padding: 56px 22px 88px; }
  .blog-index { padding: 56px 22px 88px; }
  .post-list a { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .footer-container { padding: 0 24px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
