/* Vouched Blog — Static page styles (light editorial theme) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1A1918;
  --paper:      #F7F6F5;
  --paper-mid:  #EFEDEB;
  --sage:       #5A8A4C;
  --clay:       #A5704D;
  --mute:       #7D7B78;
  --mute-light: #A8A6A3;
  --border:     #DAD9D7;
  --safety:     #4A7A9E;
  --intentional: #5A9E8A;
  --font:       'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'DM Mono', ui-monospace, monospace;
  --serif:      'Playfair Display', Georgia, serif;
  --max-w:      720px;
  --wide-w:     1100px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: var(--font); font-optical-sizing: auto; background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--sage); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.site-header { background: #161618; border-bottom: 1px solid #2B2B2E; position: sticky; top: 0; z-index: 100; }
.site-nav { max-width: var(--wide-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px); height: 56px; display: flex; align-items: center; gap: 2.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.06em; color: #F7F5F2; margin-right: auto; }
.logo img { border-radius: 4px; }
.nav-link { color: #CBBBAA; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-cta { background: var(--sage); color: #fff; padding: 0.4rem 1.1rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
.nav-cta:hover { background: #4A7A3E; text-decoration: none; }

/* ── Listing page ── */
.listing-main { max-width: none; margin: 0; padding: 0; }
.listing-header { padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 72px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--border); }
.listing-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.038em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 14ch;
}
.listing-header .subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.listing-header p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mute);
  max-width: 50ch;
}

/* ── Category filters ── */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px clamp(24px, 6vw, 72px) 0;
}
.cat-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  transition: all 150ms ease;
}
.cat-btn:hover { border-color: var(--sage); color: var(--sage); }
.cat-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Featured article ── */
.featured-article { background: var(--paper-mid); border-bottom: 1px solid var(--border); }
.featured-link {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 6vw, 72px);
  align-items: center;
  color: var(--ink);
  transition: background 150ms ease;
}
.featured-link:hover { background: var(--paper); text-decoration: none; }
.featured-body { min-width: 0; }
.featured-img-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; }
.featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.featured-link:hover .featured-img { transform: scale(1.03); }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
}
.featured-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.featured-cat.safety { color: var(--safety); }
.featured-cat.intentional { color: var(--intentional); }
.featured-cat.tips { color: var(--clay); }
.featured-sep { color: var(--border); font-size: 0.65rem; }
.featured-date, .featured-readtime {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 22ch;
}
.featured-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mute);
  max-width: 58ch;
  margin-bottom: 28px;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sage);
}
.featured-cta .arrow { transition: transform 220ms ease; }
.featured-link:hover .featured-cta .arrow { transform: translateX(4px); }

/* ── Article list (editorial rows) ── */
.article-list { padding: 8px clamp(24px, 6vw, 72px) clamp(64px, 10vw, 112px); }
.article-row { border-top: 1px solid var(--border); }
.article-row:first-child { border-top: none; }
.article-row-link {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 20px;
  padding: 26px 0;
  align-items: center;
  color: var(--ink);
  transition: background 150ms ease;
}
.article-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 200ms ease;
}
.article-row:hover .article-thumb { opacity: 1; }
.article-row-link:hover { text-decoration: none; }
.article-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mute-light);
  padding-top: 2px;
  user-select: none;
}
.article-row:hover .article-num { color: var(--sage); }
.article-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 7px;
}
.article-cat.safety { color: var(--safety); }
.article-cat.intentional { color: var(--intentional); }
.article-cat.tips { color: var(--clay); }
.article-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 200ms ease;
}
.article-row:hover .article-title { color: var(--sage); }
.article-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mute);
  max-width: 56ch;
}
.article-readtime {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--mute-light);
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Article list footer ── */
.article-list-footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}
.footer-line { flex: 1; height: 1px; background: var(--border); }
.footer-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-light);
  white-space: nowrap;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}
.empty-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute-light);
  margin-bottom: 12px;
}
.empty-desc {
  font-size: 0.9375rem;
  color: var(--mute);
  max-width: 32ch;
  line-height: 1.5;
}

/* ── Article layout (post pages) ── */
main { max-width: var(--max-w); margin: 3rem auto; padding: 0 1.5rem; }
.post-header { margin-bottom: 2.5rem; }
.breadcrumb { font-size: 0.78rem; color: var(--mute); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li.sep { margin: 0 0.25rem; color: var(--border); }
.breadcrumb a { color: var(--mute); }
.breadcrumb a:hover { color: var(--sage); }
.sep { margin: 0 0.3rem; }
.post-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.post-cat.safety { color: var(--safety); }
.post-cat.intentional { color: var(--intentional); }
.post-cat.tips { color: var(--clay); }
.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--ink);
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mute);
}

/* ── Table of contents ── */
.toc { background: var(--paper-mid); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.toc-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.75rem;
}
.toc ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.toc a { color: var(--mute); font-size: 0.9rem; }
.toc a:hover { color: var(--sage); text-decoration: none; }

/* ── Post body ── */
.post-body { font-size: 1.05rem; color: var(--ink); }
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.post-body p { margin-bottom: 1.35rem; color: var(--mute); }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body ul, .post-body ol { margin: 0 0 1.35rem 1.5rem; color: var(--mute); }
.post-body li { margin-bottom: 0.4rem; }
.post-body li::marker { color: var(--sage); }
.post-body a { color: var(--sage); font-style: normal; }
.post-body a:hover { color: var(--sage); text-decoration: underline; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ── Inline CTA ── */
.inline-cta { margin: 2rem 0; text-align: center; }
.inline-cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.inline-cta-btn:hover { opacity: 0.85; }

/* ── Citations ── */
a.citation {
  display: inline-block;
  font-size: 0.62em;
  font-family: var(--font-mono);
  font-weight: 600;
  vertical-align: super;
  line-height: 1;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  border-radius: 3px;
  padding: 0 3px;
  margin: 0 1px;
  text-decoration: none;
  transition: background 0.15s;
}
a.citation:hover { background: color-mix(in srgb, var(--sage) 20%, transparent); text-decoration: none; }

/* ── Sources section ── */
.sources-section { margin: 3rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.sources-heading {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1rem;
}
.sources-list { list-style: decimal; padding-left: 1.25rem; margin: 0; }
.source-item {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mute);
  margin-bottom: 0.5rem;
  scroll-margin-top: 80px;
}
.source-item span { color: var(--mute); }
.source-item a { color: var(--sage); }
.source-item a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta-box { background: var(--paper-mid); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; margin: 2.5rem 0; }
.cta-box p, .cta-box h2 { color: var(--ink); margin-bottom: 1rem; }
.cta-btn { display: inline-block; background: var(--sage); color: #fff; font-weight: 700; padding: 0.7rem 1.75rem; border-radius: 100px; font-size: 0.875rem; letter-spacing: 0.01em; transition: background 120ms ease; }
.cta-btn:hover { background: #4A7A3E; text-decoration: none; }
.cta-end { margin-top: 3rem; }

/* ── Author ── */
.post-footer { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.author-bio { display: flex; gap: 1rem; }
.author-bio strong { display: block; margin-bottom: 0.4rem; color: var(--ink); font-weight: 600; }
.author-bio p { font-size: 0.85rem; color: var(--mute); }

/* ── Related ── */
.related { margin: 3rem 0; }
.related-heading {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--mute);
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.related-card { display: block; background: var(--paper-mid); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; color: var(--ink); }
.related-card:hover { border-color: var(--sage); text-decoration: none; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; background: var(--paper-mid); }
.footer-copy { font-size: 0.82rem; color: var(--mute); font-family: var(--font-mono); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.82rem; color: var(--mute); }
.footer-nav a:hover { color: var(--sage); }

/* ── Hero image ── */
.hero-img { margin: 0 0 2.5rem; }
.hero-img img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .featured-link { grid-template-columns: 1fr; }
  .featured-img-wrap { aspect-ratio: 16/9; }
  .article-row-link { grid-template-columns: 28px 1fr; }
  .article-thumb { display: none; }
  .article-readtime { display: none; }
  .post-header h1 { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .listing-header h1 { font-size: 2rem; }
  .cat-filters { padding-top: 20px; }
}
