@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,600;6..72,700&display=swap');

:root {
  --ink: #201d1b;
  --muted: #6c625c;
  --paper: #fffdf9;
  --wash: #f8f2eb;
  --line: #e9ded4;
  --accent: #e85d26;
  --accent-dark: #ba4318;
  --green: #2d6a4f;
  --content: 760px;
  --wide: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 93, 38, .08), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-underline-offset: 3px; }
img { max-width: 100%; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - var(--wide)) / 2));
  border-bottom: 1px solid rgba(233, 222, 212, .9);
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.store-link {
  padding: 9px 15px;
  border-radius: 9px;
  color: #fff !important;
  background: var(--accent);
}

.blog-hero, .article-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 88px 24px 56px;
}
.blog-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; }
.blog-hero h1, .article-header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.3vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.blog-hero p:last-child { margin: 0; color: var(--muted); font-size: 18px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 8px 24px 96px;
}
.post-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:nth-child(1) { background: #fff1e9; }
.post-card:nth-child(4) { background: #edf5f0; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 55px rgba(70, 47, 32, .09); }
.post-card .meta { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post-card h2 { margin: 45px 0 12px; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.06; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card > a { position: absolute; inset: 0; border-radius: inherit; }
.post-card .read { position: absolute; bottom: 28px; color: var(--accent-dark); font-weight: 700; }

.article-header { max-width: 940px; text-align: center; }
.article-header h1 { font-size: clamp(2.65rem, 6vw, 5.2rem); }
.dek { max-width: 720px; margin: 24px auto 20px; color: var(--muted); font-size: 19px; }
.byline { color: #8b817b; font-size: 13px; }
.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, var(--content));
  gap: 52px;
  justify-content: center;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px 100px;
}
.toc { position: sticky; top: 94px; align-self: start; padding-top: 8px; }
.toc strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; margin: 9px 0; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.article-body { min-width: 0; }
.article-body > p:first-child { font-size: 19px; }
.article-body h2 { margin: 58px 0 16px; font-size: 34px; line-height: 1.12; scroll-margin-top: 90px; }
.article-body h3 { margin: 32px 0 10px; font-size: 24px; line-height: 1.2; }
.article-body p, .article-body li { color: #443d39; font-size: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin: 9px 0; }
.article-body blockquote {
  margin: 34px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: var(--wash);
  font-family: "Newsreader", Georgia, serif;
  font-size: 23px;
  line-height: 1.35;
}
.article-body figure { margin: 42px 0; }
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(51, 35, 24, .1);
}
.article-body figcaption { margin-top: 11px; color: var(--muted); font-size: 13px; text-align: center; }
.checklist, .decision-table, .callout {
  margin: 30px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.checklist h3, .callout h3 { margin-top: 0; }
.decision-table { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--wash); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.cta-box {
  margin-top: 60px;
  padding: 34px;
  border-radius: 20px;
  color: #fff;
  background: var(--ink);
}
.cta-box h2 { margin: 0 0 10px; color: #fff; }
.cta-box p { color: #d9d1cb; }
.cta-box a { display: inline-block; margin-top: 8px; padding: 11px 18px; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 700; text-decoration: none; }
.related { max-width: var(--wide); margin: 0 auto; padding: 0 24px 90px; }
.related h2 { font-size: 32px; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-links a { padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; }
.related-links a:hover { border-color: var(--accent); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(24px, calc((100vw - var(--wide)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer div:last-child { display: flex; gap: 18px; }

@media (max-width: 800px) {
  .blog-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 58px; }
  .post-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .related-links { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-nav { padding-inline: 18px; }
  .nav-links a:not(.store-link) { display: none; }
  .blog-hero, .article-header { padding: 52px 20px 38px; }
  .article-layout { padding-inline: 20px; }
  .post-card { min-height: 285px; }
  .article-body h2 { font-size: 29px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}
