:root {
  --ink: #17211d;
  --muted: #66736d;
  --paper: #fffdf9;
  --sand: #f4efe5;
  --line: #e4ddd0;
  --brand: #176b55;
  --brand-dark: #0f493b;
  --accent: #be7b35;
  --shadow: 0 18px 50px rgba(24, 45, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed; inset: 10px auto auto 10px; z-index: 50;
  padding: 10px 15px; background: var(--ink); color: white;
  border-radius: 8px; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.blog-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 10px clamp(20px, 6vw, 90px);
  border-bottom: 1px solid rgba(228, 221, 208, .82);
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(16px);
}
.blog-brand { display: flex; align-items: baseline; gap: 12px; }
.blog-brand span { color: var(--brand); font-size: 1.65rem; font-weight: 900; }
.blog-brand strong { color: var(--muted); font-size: .76rem; letter-spacing: .02em; }
.blog-header nav, .blog-footer nav { display: flex; align-items: center; gap: 22px; }
.blog-header nav a { font-size: .93rem; font-weight: 700; }
.blog-header nav a:hover { color: var(--brand); }
.blog-header .nav-cta {
  padding: 9px 18px; border-radius: 999px; background: var(--brand); color: white;
}
.blog-header .nav-cta:hover { color: white; background: var(--brand-dark); }

.blog-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(70px, 11vw, 135px) 20px clamp(60px, 9vw, 105px);
  background:
    radial-gradient(circle at 15% 25%, rgba(190,123,53,.18), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(23,107,85,.18), transparent 30%),
    linear-gradient(145deg, #f9f3e8, #f2f8f3);
}
.blog-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px;
  left: 50%; top: -330px; transform: translateX(-50%);
  border: 1px solid rgba(23,107,85,.18); border-radius: 50%;
}
.eyebrow, .section-heading span {
  display: inline-block; color: var(--brand); font-size: .78rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.blog-hero h1 {
  max-width: 850px; margin: 12px auto 14px; font-family: Georgia, Tahoma, serif;
  font-size: clamp(2.1rem, 5.2vw, 4.7rem); line-height: 1.22; letter-spacing: -.035em;
}
.blog-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions a, .article-aside a {
  padding: 12px 22px; border: 1px solid var(--brand); border-radius: 10px;
  background: var(--brand); color: white; font-weight: 800;
}
.hero-actions .secondary { color: var(--brand); background: transparent; }

.blog-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, Tahoma, serif; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid var(--line); border-radius: 18px; background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: #c9bca9; box-shadow: var(--shadow); }
.post-cover { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--sand); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-category { color: var(--accent); font-size: .78rem; font-weight: 900; }
.post-card h2 { margin: 8px 0 10px; font-family: Georgia, Tahoma, serif; font-size: 1.35rem; line-height: 1.45; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; color: var(--muted); font-size: .78rem; }
.post-meta > * + *::before { content: "•"; margin-inline-end: 16px; color: #c5b7a5; }
.blog-empty { grid-column: 1/-1; padding: 55px; border: 1px dashed #cdbfae; border-radius: 18px; text-align: center; background: var(--sand); }
.blog-empty h2 { margin-top: 0; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 800px) minmax(240px, 300px);
  gap: clamp(35px, 6vw, 80px); width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  padding: 52px 0 100px; align-items: start;
}
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-bottom: 35px; }
.breadcrumbs a:hover { color: var(--brand); }
.article-head h1 {
  margin: 12px 0 16px; font-family: Georgia, Tahoma, serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.24; letter-spacing: -.035em;
}
.article-excerpt { max-width: 700px; color: var(--muted); font-size: 1.16rem; }
.article-head .post-meta { margin: 26px 0 30px; }
.article-head .post-meta a { color: var(--brand); font-weight: 800; }
.article-cover { margin: 0 0 42px; overflow: hidden; border-radius: 20px; background: var(--sand); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; }
.article-content { font-size: 1.08rem; }
.article-content h2, .article-content h3, .article-content h4 {
  margin: 2.2em 0 .65em; font-family: Georgia, Tahoma, serif; line-height: 1.4; scroll-margin-top: 100px;
}
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content p { margin: 0 0 1.45em; }
.article-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.article-content ul, .article-content ol { padding-inline-start: 24px; }
.article-content blockquote {
  margin: 32px 0; padding: 18px 24px; border-inline-start: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; background: #fbf5ec; font-family: Georgia, Tahoma, serif; font-size: 1.15rem;
}
.content-callout, .content-faq { margin: 28px 0; padding: 22px; border: 1px solid #cce0d8; border-radius: 14px; background: #f2faf6; }
.content-callout strong, .content-faq strong { display: block; color: var(--brand-dark); margin-bottom: 7px; }
.content-cta { margin: 35px 0; padding: 30px; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.content-cta h2 { margin-top: 0; }
.content-cta a { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 8px; color: var(--brand-dark); background: white; text-decoration: none; font-weight: 900; }
.content-image { margin: 34px 0; }
.content-image img { width: 100%; border-radius: 14px; }
.content-image figcaption { color: var(--muted); font-size: .82rem; text-align: center; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 38px 0; }
.article-tags a { padding: 6px 12px; border-radius: 999px; color: var(--brand); background: #edf6f1; font-size: .8rem; }
.author-box { padding: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box strong { color: var(--brand-dark); }
.author-box p { margin: 6px 0; color: var(--muted); }
.author-box small { color: var(--accent); }
.article-aside { position: sticky; top: 110px; padding-top: 85px; }
.article-aside > div { padding: 28px; border-radius: 18px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.article-aside strong { font-size: 1.18rem; }
.article-aside p { color: #d6ded9; font-size: .9rem; }
.article-aside a { display: block; margin-top: 18px; text-align: center; background: white; color: var(--brand-dark); border-color: white; }

.blog-footer {
  display: flex; justify-content: space-between; gap: 35px; padding: 50px clamp(20px, 7vw, 100px);
  color: #d7dfda; background: #12221c;
}
.blog-footer strong { color: white; font-size: 1.1rem; }
.blog-footer p { max-width: 570px; margin: 8px 0 0; font-size: .86rem; }
.blog-footer a:hover { color: white; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; padding-top: 0; }
}
@media (max-width: 640px) {
  .blog-header { min-height: 66px; }
  .blog-brand strong, .blog-header nav a:not(.nav-cta) { display: none; }
  .blog-header nav { gap: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-shell, .article-layout { width: min(100% - 28px, 1180px); }
  .blog-hero { padding-inline: 14px; }
  .article-head h1 { font-size: 2.15rem; }
  .article-content { font-size: 1rem; }
  .blog-footer { flex-direction: column; }
  .blog-footer nav { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
