/* Shared styles for all journal posts. Inherits the Workshop palette + Fraunces/Inter pair from the landing page. */

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

:root {
  --bg: #F6F1E6;
  --bg-2: #EFE7D6;
  --surface: #FBF7EE;
  --ink: #2A2621;
  --ink-soft: #5C564C;
  --ink-mute: #8A8272;
  --line: #E2D8C2;
  --primary: #2F4A3A;
  --primary-soft: #486A57;
  --primary-tint: rgba(47,74,58,0.08);
  --accent: #B45A3C;
  --accent-deep: #8E3F26;
  --wood: #9C7A4E;
  --wood-deep: #6E4F2C;
  --wood-light: #C9A674;
  --cream-on-dark: #F0E6D2;
  --mute-on-dark: #A9B8A8;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.015em;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--primary); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); transition: border-color .2s, color .2s; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.post-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.post-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.post-nav-back { font-size: 13px; color: var(--ink-soft); border: none; }
.post-nav-back:hover { color: var(--primary); }
.post-nav-brand { font-family: var(--font-display); font-size: 16px; color: var(--ink); border: none; }
.post-nav-lang { display: flex; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.post-nav-lang button { padding: 4px 10px; font-size: 11px; font-weight: 600; border: none; cursor: pointer; background: transparent; color: var(--ink-mute); border-radius: 999px; letter-spacing: 0.05em; }
.post-nav-lang button.active { background: var(--primary); color: var(--cream-on-dark); }

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.post-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.post-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

article h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 18px 0 24px;
  text-wrap: balance;
}

.post-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.post-meta span:first-child::before { display: none; }

article p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}
article p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.45;
}

article h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 48px 0 16px;
}
article h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 32px 0 12px;
}

article ul, article ol {
  margin: 0 0 22px 22px;
  color: var(--ink);
}
article li { margin-bottom: 8px; line-height: 1.65; }

article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

.post-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--primary);
  color: var(--cream-on-dark);
  border-radius: 14px;
  text-align: center;
}
.post-cta h3 { color: var(--cream-on-dark); font-size: 22px; margin-bottom: 8px; }
.post-cta p { color: var(--mute-on-dark); margin-bottom: 24px; font-size: 15px; }
.post-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  transition: all .25s;
}
.post-cta a:hover { background: var(--accent-deep); transform: translateY(-1px); }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--ink-mute); border: none; }
footer a:hover { color: var(--primary); }

@media (max-width: 640px) {
  article { padding: 36px 20px 72px; }
  .post-nav-inner { padding: 12px 20px; }
  .post-cta { padding: 24px 20px; }
}
