/* Tokens, base reset, buttons, eyebrow and footer are shared with
   index.html via tokens.css — only blog-page-specific rules live here. */
@import url("tokens.css");

/* ============ NAV ============ */
/* Blog pages use a static, always-opaque nav (no scroll-transparency
   state like the landing page's cinematic hero), so it's kept separate
   from tokens.css rather than shared. */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 32px;
  width: auto;
}
.brand-word {
  font-family: var(--serif);
  font-size: 17.5px;
  letter-spacing: 0.02em;
  color: var(--wine-deep);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-toggle {
  display: none;
}
@media (max-width: 1220px) {
  .brand-word {
    display: none;
  }
}
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--wine-deep);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 21px;
    color: var(--paper);
    opacity: 1;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 95;
    position: relative;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: all 0.35s ease;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--paper);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--paper);
  }
  .nav-cta .btn-primary {
    padding: 11px 20px;
    font-size: 14px;
  }
}

/* ============ ARTICLE ============ */
.article-hero {
  padding: 56px 0 40px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 22px;
}
.breadcrumb a {
  opacity: 0.85;
}
.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}
.article-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
  margin-top: 16px;
  max-width: 880px;
}
.article-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.6;
}
.article-cover {
  margin-top: 36px;
  border: 1px solid var(--line);
  overflow: hidden;
  height: clamp(240px, 42vw, 480px);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 8px 0 20px;
}
.article-body .prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose > * + * {
  margin-top: 22px;
}
.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 46px;
  line-height: 1.2;
}
.prose h3 {
  font-size: 20px;
  color: var(--wine);
  margin-top: 34px;
}
.prose p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.prose li {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.prose figure {
  margin: 8px 0 0;
}
.prose figure img {
  border: 1px solid var(--line);
}
.prose figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.7;
  text-align: center;
}
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--wine);
  font-style: italic;
}

.article-cta {
  max-width: 720px;
  margin: 56px auto 0;
  background: var(--wine-deep);
  color: var(--paper);
  padding: 40px 38px;
  text-align: center;
  border-radius: 2px;
}
.article-cta p.tag {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.article-cta h3 {
  font-size: 26px;
  margin-top: 12px;
  color: var(--paper);
}
.article-cta p.desc {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--blush);
  opacity: 0.9;
}
.article-cta .btn {
  margin-top: 24px;
}

.author-box {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.author-box b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
}
.author-box span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-top: 3px;
}

/* ============ RELATED ============ */
.related {
  padding: 80px 0 100px;
  background: var(--paper-2);
}
.related .section-head {
  max-width: 640px;
}
.related .section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-top: 12px;
}
.related-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.related-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.related-card .rc-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.related-card .rc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.related-card:hover .rc-media img {
  transform: scale(1.06);
}
.related-card .rc-body {
  padding: 22px 20px 26px;
}
.related-card p.tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.related-card h4 {
  font-size: 18px;
  margin-top: 10px;
  line-height: 1.25;
}
