/* StackSmarter — editorial blog styles. Mobile-first, no frameworks. */
:root {
  --accent: #0e7a5f;
  --accent-dark: #0a5c48;
  --accent-soft: #e7f4ef;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --muted: #718096;
  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --border: #e2e8f0;
  --radius: 12px;
  --maxw: 1080px;
  --measure: 68ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); margin: 1.6em 0 .5em; }
h1 { font-size: 2.1rem; letter-spacing: -0.01em; margin-top: .4em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.1rem;
  flex: 0 0 auto;
}
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .45rem .7rem; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--accent-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--accent-soft), #f4faf7 60%, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.hero .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem .9rem; margin-bottom: 1rem;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 .6rem; }
.hero .tagline { font-size: 1.3rem; color: var(--accent-dark); font-weight: 600; margin-bottom: .8rem; }
.hero p.lede { max-width: var(--measure); color: var(--ink-soft); font-size: 1.1rem; }
.hero .stat-row { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.stat { font-size: .92rem; color: var(--ink-soft); }
.stat strong { display: block; font-size: 1.5rem; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.featured-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 14px rgba(11, 90, 72, .07);
}
.featured-art {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  padding: 2rem; color: #fff;
}
.featured-art .art-inner { text-align: center; }
.featured-art .big { font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.featured-art .sub { font-size: .95rem; opacity: .9; margin-top: .6rem; }
.featured-body { padding: 1.75rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: .25rem .75rem; margin-bottom: .7rem;
}
.featured-body h3, .card h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.featured-body h3 a, .card h3 a { color: var(--ink); }
.featured-body h3 a:hover, .card h3 a:hover { color: var(--accent-dark); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11, 90, 72, .1); }
.card-art {
  height: 130px; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1rem; color: #fff; font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}
.card-art.variant-2 { background: linear-gradient(135deg, #14532d, #0e7a5f); }
.card-art.variant-3 { background: linear-gradient(135deg, #0e7a5f, #2f9e7a); }
.card-art.variant-4 { background: linear-gradient(135deg, #0a4d3e, #146b56); }
.card-art.variant-5 { background: linear-gradient(135deg, #1f6f5b, #3ba37f); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body .pillar { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .45rem; }
.card-body p.excerpt { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.read-more { font-weight: 700; font-size: .95rem; color: var(--accent-dark); }
.read-more:hover { text-decoration: underline; }

/* ---------- Start here / newsletter ---------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.start-here {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem;
}
.start-here h2 { margin-top: 0; }
.start-here ul { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--ink-soft); }
.start-here li { margin-bottom: .5rem; }
.newsletter-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.75rem;
}
.newsletter-card h2 { color: #fff; margin-top: 0; }
.newsletter-card p { color: #cbd5e0; }
.newsletter-card .slot-note {
  margin-top: 1rem; font-size: .85rem; color: #94a3b8;
  border: 1px dashed #475569; border-radius: 8px; padding: .75rem 1rem;
}

/* ---------- Article pages ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 1.5rem 0 .5rem; }
.breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.article-head .meta { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.article-head .byline { font-weight: 700; color: var(--ink); }
.article-body { max-width: var(--measure); }
.article-body .lede { font-size: 1.18rem; color: var(--ink-soft); }
.disclosure-notice {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; font-size: .92rem; color: var(--ink-soft);
  margin: 1.5rem 0;
}
.disclosure-notice a { font-weight: 700; }
.callout {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.callout h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 700; }
tr:hover td { background: #fafcfb; }
.faq { margin-top: 2rem; }
.faq h2 { font-size: 1.35rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }
.keep-reading { margin-top: 2.5rem; border-top: 2px solid var(--border); padding-top: 1.5rem; }
.keep-reading ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.keep-reading a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e0; padding: 2.5rem 0 2rem; margin-top: 3rem; }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-brand .tag { display: block; font-size: .85rem; font-weight: 400; color: #94a3b8; margin-top: .3rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-nav a { color: #cbd5e0; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-fine { font-size: .82rem; color: #94a3b8; border-top: 1px solid #2d3748; padding-top: 1.25rem; }
.footer-fine a { color: #a7f3d0; }

/* ---------- Disclosure page ---------- */
.disclosure-body { max-width: var(--measure); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .featured-card { grid-template-columns: 1fr 1.4fr; }
  .featured-art { min-height: 100%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1.2fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: .75rem .25rem; }
  .site-header .wrap { flex-wrap: wrap; }
  .hero h1 { font-size: 2.1rem; }
  table { font-size: .85rem; }
  th, td { padding: .5rem .55rem; }
}
