:root {
  --bg: #eef4f7;
  --bg2: #e4edf2;
  --white: #ffffff;
  --milk: #fbfaf5;
  --cream: #f6efe2;
  --butter: #ebe2a8;
  --rose: #e2a2b4;
  --emerald: #143b34;
  --muted: #5f7671;
  --line: rgba(20, 59, 52, .13);
  --shadow: 0 28px 80px rgba(20, 59, 52, .12);
  --soft: 0 14px 36px rgba(20, 59, 52, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--emerald);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .82), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(226, 162, 180, .13), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.page-top { padding: 28px 0 0; }

.back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.back-btn,
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--soft);
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

.btn.light {
  background: rgba(255, 255, 255, .72);
  color: var(--emerald);
  border-color: var(--line);
}

.back-btn:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(20, 59, 52, .14);
}

.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: rgba(20, 59, 52, .58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.label::after {
  content: "";
  width: 70px;
  height: 1px;
  background: rgba(226, 162, 180, .9);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(54px, 5.3vw, 80px);
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.05;
}

.lead {
  max-width: 730px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(20, 59, 52, .72);
}

.hero { padding: 64px 0 82px; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 42px;
  background: rgba(255, 255, 255, .52);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "articles";
  position: absolute;
  right: clamp(18px, 5vw, 62px);
  bottom: -18px;
  font-family: var(--serif);
  font-size: clamp(70px, 13vw, 160px);
  line-height: .8;
  color: rgba(226, 162, 180, .18);
  pointer-events: none;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.section { padding: 88px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 30px;
  background: rgba(255, 255, 255, .58);
  box-shadow: var(--soft);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.article-card:nth-child(2) { background: rgba(251, 250, 245, .78); }
.article-card:nth-child(3) { background: rgba(246, 239, 226, .64); }

.article-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 24px 52px rgba(20, 59, 52, .13);
}

.article-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.article-card__meta span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(20, 59, 52, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: rgba(20, 59, 52, .64);
  font-size: 12px;
  font-weight: 700;
}

.article-card p,
.seo-note p,
.article-body p,
.article-body li,
.cta-box p {
  color: rgba(20, 59, 52, .72);
  line-height: 1.68;
}

.article-card__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-weight: 800;
}

.seo-note,
.cta-box,
.article-shell,
.toc,
.note-box {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 34px;
  background: rgba(255, 255, 255, .56);
  box-shadow: var(--soft);
}

.seo-note {
  padding: clamp(28px, 5vw, 52px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.article-shell {
  padding: clamp(30px, 5vw, 60px);
}

.article-body {
  max-width: 760px;
}

.article-body section + section { margin-top: 52px; }

.article-body ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.article-body li + li { margin-top: 10px; }

.toc {
  position: sticky;
  top: 22px;
  padding: 24px;
}

.toc h2 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: rgba(20, 59, 52, .72);
  font-size: 14px;
  line-height: 1.45;
}

.note-box {
  margin: 28px 0;
  padding: 24px;
  background: rgba(251, 250, 245, .76);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.related-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 700;
}

.cta { padding: 0 0 90px; }

.cta-box {
  padding: clamp(34px, 5vw, 58px);
  background: var(--emerald);
  color: var(--white);
}

.cta-box h2 { max-width: 760px; }
.cta-box p { max-width: 690px; color: rgba(255, 255, 255, .76); }
.cta-box .btn { background: var(--white); color: var(--emerald); border-color: var(--white); }
.cta-box .btn.light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }

@media (max-width: 980px) {
  .articles-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-card { min-height: 0; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .page-top { padding-top: 16px; }
  .back-btn { min-height: 42px; padding: 0 16px; font-size: 13px; }
  .hero { padding: 42px 0 62px; }
  .hero-card { border-radius: 30px; }
  .hero-card::after { right: 12px; bottom: -8px; font-size: 64px; }
  h1 { font-size: 46px; line-height: .96; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }
  .lead { font-size: 16px; line-height: 1.6; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .section { padding: 66px 0; }
  .article-card,
  .article-shell,
  .toc,
  .note-box,
  .seo-note,
  .cta-box { border-radius: 26px; }
  .related-links { display: grid; }
  .related-links a { text-align: center; }
}
