/* =====================================================
   STAB DADDY BRI — Journal Shared Stylesheet
   Cream colour scheme — matches main site aesthetic
   ===================================================== */

:root {
  --cream:          #FAF7F2;
  --ink:            #1C1A17;
  --champagne:      #B8965A;
  --champagne-pale: rgba(184,150,90,0.35);
  --text-primary:   #2c2a25;
  --text-secondary: #7a7670;
  --border:         rgba(184,150,90,0.18);
  --card-bg:        #ffffff;
  --body-text:      #3d3a35;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--champagne); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sprinkles ---- */
#journal-sprinkle-canvas {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.j-sprinkle {
  position: absolute; opacity: 0; animation: j-sprinkle-float linear infinite;
}
@keyframes j-sprinkle-float {
  0%   { transform: translateY(110%) rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.55; }
  92%  { opacity: 0.55; }
  100% { transform: translateY(-10%) rotate(360deg); opacity: 0; }
}

/* ---- Container ---- */
.container      { max-width: 860px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Journal Nav ---- */
.journal-nav {
  background: var(--cream);
  border-bottom: 1px solid rgba(184,150,90,0.18);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.journal-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.journal-nav-logo span { color: var(--champagne); }
.journal-nav-links {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.journal-nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.journal-nav-links a:hover { color: var(--champagne); text-decoration: none; }
.journal-nav-links .back-link {
  color: var(--champagne);
  display: flex; align-items: center; gap: 0.35rem;
}
.journal-nav-links .back-link::before { content: '←'; }

/* ---- Journal Header ---- */
.journal-header {
  background: var(--cream);
  color: var(--text-primary);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(184,150,90,0.12);
}
.journal-header .eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--champagne);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.journal-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.journal-header h1 em { font-style: italic; color: var(--champagne); }
.journal-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative; z-index: 1;
}

/* ---- Post Grid ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}
.post-card {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(184,150,90,0.15);
  box-shadow: 0 2px 12px rgba(28,26,23,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,26,23,0.1);
  text-decoration: none;
}
.post-card img { width: 100%; height: 240px; object-fit: cover; }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--champagne); margin-bottom: 0.6rem;
}
.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.3; margin-bottom: 0.75rem;
}
.post-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.post-card-read {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--champagne); font-weight: 500;
}

/* ---- Post Page Hero ---- */
.post-hero { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.post-header { padding: 3.5rem 1.5rem 0; max-width: 860px; margin: 0 auto; }
.post-header .post-tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--champagne); margin-bottom: 1rem;
}
.post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600;
  line-height: 1.2; color: var(--text-primary); margin-bottom: 1rem;
}
.post-header .post-intro {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.75;
  max-width: 680px; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border); padding-bottom: 2rem;
}

/* ---- Post Body ---- */
.post-body { padding: 2rem 1.5rem 5rem; max-width: 860px; margin: 0 auto; }
.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600;
  color: var(--text-primary); margin: 3rem 0 1rem; line-height: 1.3;
}
.post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin: 2rem 0 0.75rem;
}
.post-body p { margin-bottom: 1.25rem; color: var(--body-text); font-size: 1.02rem; line-height: 1.8; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; color: var(--body-text); font-size: 1rem; line-height: 1.8; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--text-primary); }
.post-body strong { font-weight: 600; color: var(--text-primary); }

.post-image { width: 100%; border-radius: 4px; margin: 2rem 0; }
.post-image-caption {
  text-align: center; font-size: 0.8rem; color: var(--text-secondary);
  margin-top: -1.25rem; margin-bottom: 2rem; font-style: italic;
}
.post-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-image-grid img { border-radius: 4px; width: 100%; height: auto; }

.post-callout {
  background: rgba(184,150,90,0.07);
  border-left: 3px solid var(--champagne);
  padding: 1.25rem 1.5rem; border-radius: 0 4px 4px 0; margin: 2rem 0;
}
.post-callout p { margin: 0; font-size: 0.97rem; }

/* ---- Threading iframe ---- */
.threading-guide-wrap {
  width: 100%; border-radius: 4px; overflow: hidden; margin: 2rem 0;
  border: 1px solid var(--border); background: #f5f1eb;
}
.threading-guide-wrap iframe { width: 100%; border: none; display: block; min-height: 400px; }

/* ---- Post CTA ---- */
.post-cta {
  background: var(--ink); color: var(--cream);
  padding: 4rem 1.5rem; text-align: center; margin-top: 4rem;
}
.post-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600;
  margin-bottom: 1rem; color: var(--cream);
}
.post-cta p {
  color: rgba(250,247,242,0.72); font-size: 1rem;
  max-width: 500px; margin: 0 auto 2rem; line-height: 1.75;
}
.btn-cta {
  display: inline-block; padding: 0.85rem 2.2rem;
  border: 1.5px solid var(--champagne); color: var(--champagne);
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em; border-radius: 2px;
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.btn-cta:hover { background: var(--champagne); color: var(--ink); text-decoration: none; }

/* ---- Footer ---- */
.journal-footer {
  background: var(--ink); color: rgba(250,247,242,0.45);
  text-align: center; padding: 2rem 1.5rem; font-size: 0.78rem;
}
.journal-footer a { color: rgba(250,247,242,0.55); }
.journal-footer a:hover { color: var(--champagne); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .post-image-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .journal-header { padding: 3.5rem 1.25rem 3rem; }
  .post-header { padding: 2.5rem 1.25rem 0; }
  .post-body { padding: 1.75rem 1.25rem 4rem; }
  .journal-nav { padding: 0.9rem 1.25rem; }
  .journal-nav-links { gap: 1rem; }
}
