:root {
  --bg: #fff9f2;
  --surface: #ffffff;
  --surface-soft: #fff1ea;
  --text: #25212a;
  --muted: #6d6672;
  --accent: #d85f4f;
  --accent-dark: #aa4438;
  --sage: #7fa69b;
  --lavender: #7668d8;
  --border: #eadfd6;
  --shadow: 0 18px 46px rgba(64, 45, 36, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 241, 234, .86) 0, rgba(255, 249, 242, 0) 360px),
    var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }

.wrap,
.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 242, .88);
  border-bottom: 1px solid rgba(234, 223, 214, .9);
  backdrop-filter: blur(14px) saturate(1.1);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--lavender));
  box-shadow: 0 12px 24px rgba(216, 95, 79, .24);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 680;
  font-size: .95rem;
}

.navlinks a:hover { color: var(--accent-dark); }

.hero {
  padding: 42px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: center;
}

.eyebrow,
.kicker,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 780;
}

.eyebrow,
.kicker {
  padding: 8px 13px;
  color: var(--accent-dark);
  background: #fff0eb;
}

.tag {
  padding: 6px 11px;
  color: #5945bf;
  background: #f2efff;
}

.badge {
  padding: 6px 11px;
  color: #356f60;
  background: #eff8f4;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 66ch;
}

.hero-actions,
.cta-row,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ef8c73);
  box-shadow: 0 12px 26px rgba(216, 95, 79, .23);
  font-weight: 780;
  cursor: pointer;
}

.button.secondary,
.btn.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button:hover,
.btn:hover { transform: translateY(-1px); }

.visual-card,
.panel,
.article-card,
.article,
.topic-card,
.notice,
.link-card,
.newsletter-box,
.summary-box,
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-card {
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.pin-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.pin-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.visual-card-body {
  padding: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf6;
}

.stat strong {
  display: block;
  font-size: 1.12rem;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.article-card,
.topic-card,
.panel,
.notice,
.newsletter-box,
.summary-box,
.download-box {
  padding: 22px;
}

.article-card {
  display: grid;
  gap: 12px;
}

.article,
.link-card {
  display: block;
  color: var(--text);
}

.article-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

ul.clean {
  margin: 12px 0 0;
  padding-left: 20px;
}

.hero-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.meta,
.muted,
.tiny,
.article-card p,
.topic-card p,
.notice p {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .92rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.topic-card.disabled {
  opacity: .62;
}

.newsletter-box {
  background: linear-gradient(135deg, #ffffff 0, #fff5ee 100%);
}

.newsletter-box input[type="email"] {
  min-height: 46px;
  width: min(330px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.message {
  min-height: 28px;
  margin-top: 14px;
  font-weight: 760;
  color: var(--accent-dark);
}

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

.prose {
  font-size: 1.04rem;
}

.breadcrumbs {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: .94rem;
}

.article-meta,
.kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi > div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf6;
}

.callout {
  padding: 18px;
  border: 1px solid #f0d2c7;
  border-radius: 8px;
  background: #fff7f2;
}

details {
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 780;
}

.recommendation-list {
  display: grid;
  gap: 14px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.affiliate-disclosure {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f2ff;
  color: #544c68;
  font-size: .94rem;
}

.prose h1 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.prose h2 {
  margin-top: 34px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.quote {
  margin: 26px 0;
  padding: 20px;
  border-left: 5px solid var(--accent);
  background: #fff6f0;
  border-radius: 0 8px 8px 0;
  color: #554a52;
  font-style: italic;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.clean-table th,
.clean-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.clean-table th {
  color: #fff;
  background: var(--sage);
}

.clean-table tr:last-child td { border-bottom: 0; }
.clean-table a { color: var(--accent-dark); font-weight: 760; }

.site-footer {
  padding: 36px 0 46px;
  color: var(--muted);
}

footer {
  margin-top: 34px;
}

.footer,
.footer-grid {
  padding: 30px 0 42px;
  color: var(--muted);
}

.floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--lavender), #9b8bff);
  box-shadow: 0 14px 28px rgba(118, 104, 216, .24);
  font-weight: 760;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 680;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-layout,
  .grid-2,
  .grid-3,
  .stats,
  .kpi {
    grid-template-columns: 1fr;
  }

  .nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 { max-width: 14ch; }
}

@media (max-width: 620px) {
  .wrap,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .navlinks { gap: 12px; }
  .clean-table { display: block; overflow-x: auto; }
  .button,
  .btn,
  .product-row,
  .newsletter-box input[type="email"] { width: 100%; }

  .product-row {
    grid-template-columns: 1fr;
  }

  .pin-preview {
    grid-template-columns: 1fr;
  }

  .floating { display: none; }
}
