/* ============================================================
   Lowkey Kava — Blog stylesheet
   Matches the main site's gold/ember brand language
   ============================================================ */

@font-face {
  font-family: 'Fluro';
  src: url('/fluro.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #050505;
  --bg-soft: #0d0a08;
  --bg-card: #14100c;
  --gold: #f5a623;
  --gold-bright: #ffb84d;
  --orange: #ff6b1a;
  --ember: #ff8c00;
  --cream: #f5ede0;
  --muted: #a8998a;
  --line: rgba(245, 166, 35, 0.18);
  --glow: 0 0 30px rgba(255, 140, 0, 0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold); color: #000; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* ============== NAV ============== */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.blog-nav-brand {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.blog-nav-brand .eclipse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #050505 35%, var(--ember) 38%, var(--gold) 50%, transparent 65%);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);
}
.blog-nav-links {
  display: flex;
  list-style: none;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.blog-nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.blog-nav-links a:hover { opacity: 1; color: var(--gold); }
.blog-nav-links a.cta {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  color: #1a1000;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  opacity: 1;
  font-weight: 700;
}
.blog-nav-links a.cta:hover { color: #1a1000; filter: brightness(1.1); }

/* ============== ARTICLE HEADER ============== */
.article-hero {
  padding: 4rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse at top, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--line); margin: 0 0.5rem; }

.article-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.article-title {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.article-deck {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 640px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.article-meta strong { color: var(--cream); font-weight: 500; }

/* ============== ARTICLE BODY ============== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-body h2 {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--gold);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cream);
  margin: 2rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--cream);
}
.article-body p.lede {
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 400;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--cream);
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body strong { color: var(--gold-bright); font-weight: 600; }
.article-body em { color: var(--gold); font-style: italic; }
.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(245, 166, 35, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--gold-bright); text-decoration-color: var(--gold-bright); }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--ember);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--cream);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}
.callout {
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.12), rgba(245, 166, 35, 0.06));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.callout-title {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Strain / table grid */
.strain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.strain-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}
.strain-card-name {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.strain-card p { font-size: 0.95rem; margin: 0; }

/* CTA bar inside articles */
.visit-cta {
  margin: 3rem 0 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.visit-cta h3 {
  font-family: 'Fluro', 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.visit-cta p {
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.visit-cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  color: #1a1000;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============== BLOG INDEX ============== */
.index-hero {
  padding: 4rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse at top, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.index-hero h1 {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.index-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}
.post-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.15);
}
.post-card-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.post-card h2 {
  font-family: 'Fluro', 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.post-card-read {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============== FOOTER ============== */
.blog-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem;
  color: var(--muted);
  text-align: center;
}
.blog-footer-inner {
  max-width: 720px;
  margin: 0 auto;
}
.blog-footer h4 {
  font-family: 'Fluro', 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.blog-footer p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.blog-footer a {
  color: var(--cream);
  text-decoration: none;
}
.blog-footer a:hover { color: var(--gold); }
.blog-footer .small {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .blog-nav { padding: 0.85rem 1rem; }
  .blog-nav-links { gap: 0.9rem; }
  .blog-nav-links a { font-size: 0.78rem; letter-spacing: 0.05em; }
  .blog-nav-links a.cta { padding: 0.45rem 0.85rem; }
  .article-hero { padding: 2.5rem 1.25rem 2rem; }
  .article-body { padding: 2rem 1.25rem 3rem; }
  .article-body h2 { font-size: 1.4rem; }
  .visit-cta { padding: 1.5rem; }
  .post-grid { padding: 2rem 1.25rem 3rem; gap: 1.25rem; }
  .post-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
