:root {
  --orange: #ff7a1a;
  --orange-dark: #d85d00;
  --orange-soft: #fff1e7;
  --peach: #ffd4b8;
  --brown: #31170c;
  --brown-deep: #120704;
  --ink: #17141f;
  --ink-soft: #3d3947;
  --muted: #746d78;
  --bg: #fffaf6;
  --white: #fff;
  --line: rgba(49, 23, 12, .11);
  --shadow: 0 22px 70px rgba(49, 23, 12, .10);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.reading { width: min(800px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49, 23, 12, .08);
  background: rgba(255, 250, 246, .9);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 152px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 850; text-decoration: none; }
.nav-links a:hover { color: var(--orange-dark); }

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 950;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--orange); box-shadow: 0 14px 34px rgba(255, 122, 26, .28); }
.button-primary:hover { background: var(--orange-dark); }
.button-light { color: var(--ink); background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }

.hero-wrap { padding: 20px 0 72px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
  padding: 66px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 122, 26, .44), transparent 30%),
    radial-gradient(circle at 10% 105%, rgba(255, 211, 181, .18), transparent 34%),
    linear-gradient(135deg, var(--brown), var(--brown-deep));
  box-shadow: 0 34px 100px rgba(49, 23, 12, .28);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 72% 42%, #000, transparent 78%);
}
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 940px;
  margin: 22px 0 0;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: .94;
  letter-spacing: -.064em;
  font-weight: 1000;
}
.hero h1 span { color: var(--peach); }
.hero .lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.77);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 650;
}
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta span { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }

.summary {
  margin: -30px auto 70px;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.summary strong { display: block; margin-bottom: 12px; color: var(--orange-dark); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.summary p { margin: 0; font-size: 20px; line-height: 1.55; font-weight: 750; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 54px; }
.article { min-width: 0; }
.article h2 { margin: 72px 0 20px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1; letter-spacing: -.045em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 36px 0 14px; font-size: 26px; line-height: 1.1; letter-spacing: -.025em; }
.article p, .article li { color: var(--ink-soft); font-size: 18px; line-height: 1.75; font-weight: 560; }
.article p { margin: 0 0 22px; }
.article ul, .article ol { margin: 0 0 26px; padding-left: 24px; }
.article li + li { margin-top: 10px; }
.article a { color: var(--orange-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article strong { color: var(--ink); }
.callout {
  margin: 34px 0;
  padding: 26px 28px;
  border-left: 5px solid var(--orange);
  border-radius: 0 22px 22px 0;
  background: linear-gradient(135deg, var(--orange-soft), #fff);
}
.callout p { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.5; font-weight: 800; }
.flow {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.flow-item { min-height: 140px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(49,23,12,.06); }
.flow-item b { display: block; color: var(--orange); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.flow-item span { display: block; margin-top: 12px; font-size: 17px; line-height: 1.35; font-weight: 850; }
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--orange-soft); color: var(--brown); font-size: 14px; }
td { color: var(--ink-soft); line-height: 1.5; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.toc { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fff; box-shadow: 0 12px 40px rgba(49,23,12,.06); }
.toc strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dark); }
.toc a { display: block; padding: 9px 0; border-bottom: 1px solid rgba(49,23,12,.07); color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; font-weight: 750; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--orange-dark); }

.faq { margin-top: 74px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; background: #fff; }
.faq details + details { margin-top: 10px; }
.faq summary { padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 900; }
.faq details p { padding-bottom: 20px; margin: 0; }

.related { padding: 90px 0; }
.related h2 { margin: 0 0 28px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-decoration: none; box-shadow: 0 14px 44px rgba(49,23,12,.06); }
.related-card small { color: var(--orange-dark); font-weight: 950; text-transform: uppercase; letter-spacing: .07em; }
.related-card h3 { margin: 16px 0 0; font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.related-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.5; font-weight: 600; }

.cta-section { padding: 0 0 92px; }
.cta {
  border-radius: 32px;
  padding: 54px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(255,122,26,.34), transparent 30%), linear-gradient(135deg, var(--brown), var(--brown-deep));
  box-shadow: 0 30px 90px rgba(49,23,12,.24);
}
.cta h2 { max-width: 900px; margin: 0 auto; font-size: clamp(36px, 5vw, 62px); line-height: .97; letter-spacing: -.055em; }
.cta p { max-width: 720px; margin: 20px auto 28px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.55; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.footer { padding: 46px 0; color: rgba(255,255,255,.65); background: #090504; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer img { width: 150px; }
.footer a { color: #fff; font-weight: 750; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container, .reading { width: min(100% - 28px, var(--container)); }
  .nav { min-height: 62px; }
  .brand img { width: 132px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { min-height: 42px; padding: 0 14px; font-size: 13px; }
  .hero-wrap { padding-top: 14px; padding-bottom: 50px; }
  .hero { min-height: 0; border-radius: 24px; padding: 34px 22px; }
  .hero h1 { font-size: 39px; }
  .hero .lead { font-size: 17px; }
  .summary { margin-top: -20px; padding: 24px 20px; border-radius: 22px; }
  .summary p { font-size: 18px; }
  .article h2 { margin-top: 54px; font-size: 36px; }
  .article p, .article li { font-size: 17px; }
  .flow { grid-template-columns: 1fr; }
  .flow-item { min-height: 0; }
  .cta { padding: 38px 22px; border-radius: 24px; }
  .cta-actions .button { width: 100%; }
  .footer-row { display: grid; }
}
