/* === Article shared styles === */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2'); }
@font-face { font-family: 'DM Serif Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/dmseriftext/v13/rnCw-xZa_krGokauCeNq1wWyWfG1X1oN.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --c-ink: #020202;
  --c-muted: #545454;
  --c-soft: #787878;
  --c-rule: #ededed;
  --c-bg: #f9f9f9;
  --c-bg-2: #fcfcfc;
  --c-bg-3: #f5f5f5;
  --c-accent: #FF5306;
  --c-accent-soft: #FFEEE5;
  --c-dark: #020202;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, #d8d8d8 0%, #dedede 20%, #e6e6e6 45%, #ededed 70%, #f2f2f2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.bg-clouds {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-clouds::before {
  content: ""; position: absolute; inset: -8%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1200' preserveAspectRatio='xMidYMid slice'><defs><filter id='c' x='0%25' y='0%25' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.0055' numOctaves='4' seed='8'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3 -1.15'/></filter></defs><rect width='1600' height='1200' filter='url(%23c)'/></svg>");
  background-size: 140% 140%;
  background-position: center top;
  opacity: 0.95;
}
main { position: relative; z-index: 2; }

/* === Nav === */
.nav { position: sticky; top: 16px; z-index: 50; margin: 16px auto 0; max-width: 1140px; padding: 0 16px; }
.nav__inner {
  position: relative; background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 2px 4px rgba(0,0,0,0.04),
    0 12px 28px rgba(0,0,0,0.06),
    0 32px 70px rgba(0,0,0,0.07);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 17px; letter-spacing: -0.03em; color: var(--c-ink);
}
.nav__brand .logo-mark {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__cta { margin-left: 0; }

/* === Button === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 8px 0 22px;
  border-radius: 100px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.25s ease; white-space: nowrap;
}
.btn--dark, .btn--accent {
  background: linear-gradient(160deg, #FF7A3A 0%, #FF5306 55%, #D63E00 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.18),
    0 2px 4px rgba(255,83,6,0.25),
    0 12px 30px rgba(255,83,6,0.35);
}
.btn--dark:hover, .btn--accent:hover { background: linear-gradient(160deg, #FF8A4D 0%, #FF6620 55%, #E64900 100%); }
.btn__arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow { transform: rotate(-45deg); }
.btn__arrow svg { width: 14px; height: 14px; }

/* === Article layout === */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.article-header {
  padding: 60px 24px 32px;
  text-align: center;
}
.article-header .breadcrumb {
  font-size: 13px; color: var(--c-muted);
  margin-bottom: 18px;
}
.article-header .breadcrumb a { color: var(--c-accent); }
.article-header .breadcrumb a:hover { text-decoration: underline; }
.article-header .breadcrumb span { margin: 0 8px; color: var(--c-rule); }
.article-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  background: linear-gradient(100deg, #020202 0%, #545454 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article-header h1 em {
  font-family: 'DM Serif Text', serif;
  font-style: italic; font-weight: 400;
  color: #FF5306;
  -webkit-text-fill-color: #FF5306;
  background: none;
}
.article-header .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto;
}
.article-meta {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 24px;
  font-size: 13px; color: var(--c-soft);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-rule); }
.article-meta strong { color: var(--c-ink); font-weight: 600; }

.article-body {
  background: #fff;
  border-radius: 24px;
  padding: 56px 56px;
  margin: 24px auto 48px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 2px 4px rgba(0,0,0,0.04),
    0 14px 28px rgba(0,0,0,0.05),
    0 32px 70px rgba(0,0,0,0.06);
}
@media (max-width: 720px) {
  .article-header { padding: 40px 20px 24px; }
  .article-body { padding: 32px 24px; border-radius: 20px; }
}
.article-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 48px 0 16px;
  color: var(--c-ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 em {
  font-family: 'DM Serif Text', serif;
  font-style: italic; font-weight: 400;
  color: var(--c-accent);
}
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.03em;
  margin: 32px 0 12px;
  color: var(--c-ink);
}
.article-body p {
  font-size: 16px; line-height: 1.7;
  color: #2d2d2d;
  margin: 0 0 18px;
}
.article-body p strong { color: var(--c-ink); font-weight: 600; }
.article-body p a { color: var(--c-accent); text-decoration: underline; }
.article-body p a:hover { color: #D63E00; }
.article-body ul, .article-body ol {
  padding: 0; margin: 0 0 24px;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 28px;
  font-size: 16px; line-height: 1.7;
  margin-bottom: 10px;
  color: #2d2d2d;
}
.article-body ul li::before {
  content: ""; position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
}
.article-body ol { counter-reset: olnum; }
.article-body ol li { counter-increment: olnum; }
.article-body ol li::before {
  content: counter(olnum);
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.article-body ul li strong, .article-body ol li strong { color: var(--c-ink); font-weight: 600; }
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--c-accent-soft);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #6b3a2c;
  font-size: 17px;
  line-height: 1.55;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: #f5f5f5;
  border-radius: 16px;
  border: 1px solid var(--c-rule);
}
.article-body .callout h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600;
  margin: 0 0 8px;
  color: var(--c-accent);
}
.article-body .callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
table th, table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-rule);
}
table th {
  background: var(--c-bg-3);
  font-weight: 600;
  color: var(--c-ink);
}
table td { color: #2d2d2d; }

/* === CTA card at end === */
.article-cta {
  background: linear-gradient(160deg, #0d0d0d 0%, #020202 100%);
  border-radius: 24px;
  padding: 48px;
  margin: 48px auto;
  max-width: 780px;
  color: #fff;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px rgba(0,0,0,0.18),
    0 32px 80px rgba(0,0,0,0.22);
}
.article-cta::before {
  content: ""; position: absolute;
  inset: -30% -10% auto auto;
  width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(255,83,6,0.25), transparent 60%);
  pointer-events: none;
}
.article-cta h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}
.article-cta h2 em {
  font-family: 'DM Serif Text', serif;
  font-style: italic; font-weight: 400;
  color: var(--c-accent);
}
.article-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* === Footer === */
footer.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--c-rule);
  background: var(--c-bg-2);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1140px;
  margin: 0 auto 36px; padding: 0 24px;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.footer__brand .logo-mark {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer__brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer__tag { font-size: 13px; color: var(--c-muted); max-width: 300px; line-height: 1.55; margin: 0 0 14px; }
.footer__disclaimer { font-size: 11px; color: var(--c-soft); line-height: 1.5; max-width: 300px; }
.footer__col h6 { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-ink); margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 13px; color: var(--c-muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--c-ink); }
.footer__bottom {
  border-top: 1px solid var(--c-rule);
  padding: 24px;
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--c-soft);
}

/* TOC */
.toc {
  background: var(--c-bg-3);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 32px;
}
.toc h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  margin: 0 0 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toc ol { padding: 0; margin: 0; list-style: none; }
.toc ol li { padding-left: 0; margin-bottom: 6px; }
.toc ol li::before { display: none; }
.toc a { color: var(--c-ink); font-size: 14px; line-height: 1.55; }
.toc a:hover { color: var(--c-accent); }
