:root {
  --bg: #fffaf4;
  --paper: #fffdf9;
  --ink: #30251f;
  --muted: #75685f;
  --line: rgba(105, 82, 62, 0.18);
  --accent: #9b6b47;
  --accent-2: #b58b68;
  --rose: #f6dfd5;
  --sage: #e9eadf;
  --gold: #f5e7bf;
  --shadow: 0 24px 80px rgba(93, 68, 49, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(246, 223, 213, 0.95), transparent 34rem),
    radial-gradient(circle at 95% 10%, rgba(233, 234, 223, 0.9), transparent 32rem),
    linear-gradient(180deg, #fffaf4 0%, #fff7ee 100%);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", serif;
  line-height: 1.78;
}

a { color: #7d563b; }
a:hover { color: #4f3322; }

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.crumbs {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.hero {
  position: relative;
  padding: clamp(42px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,248,240,0.76)),
    radial-gradient(circle at 90% 20%, rgba(245, 231, 191, 0.75), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(181, 139, 104, 0.12);
}
.kicker {
  margin: 0 0 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
  max-width: 13ch;
}
.subtitle {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #514139;
  margin: 0 0 10px;
}
.subtitle.en {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.55);
}

.note-card, .content-section, .sources {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 14px 48px rgba(93, 68, 49, 0.07);
}
.note-card h2, .content-section h2, .sources h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.note-card p, .content-section p, .sources p { max-width: 840px; }
.thesis {
  padding: 18px 20px;
  border-left: 5px solid var(--accent-2);
  background: rgba(245, 231, 191, 0.33);
  border-radius: 0 18px 18px 0;
}

.grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.idea-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,250,244,0.9));
  min-height: 260px;
  box-shadow: 0 12px 34px rgba(93, 68, 49, 0.07);
}
.number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage);
  color: #66533e;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  margin-bottom: 24px;
}
.idea-card h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}
.en-title {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #5d4636;
  background: rgba(233,234,223,0.56);
  font-weight: 750;
}
td:first-child { font-weight: 720; color: #4e3829; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}
.split.reverse {
  grid-template-columns: 310px minmax(0, 1fr);
}
.split.reverse > div { grid-column: 2; grid-row: 1; }
.split.reverse > aside { grid-column: 1; grid-row: 1; }
.pullquote {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(246,223,213,0.72), rgba(245,231,191,0.62));
  color: #5d3e2b;
  font-size: 1.18rem;
  line-height: 1.58;
  border: 1px solid rgba(155,107,71,0.16);
}
.pullquote.soft { background: linear-gradient(135deg, rgba(233,234,223,0.8), rgba(255,255,255,0.7)); }
.pullquote p { margin: 0; }

.warning-panel {
  background:
    linear-gradient(135deg, rgba(74, 48, 32, 0.92), rgba(132, 91, 61, 0.88));
  color: #fff9f0;
}
.warning-panel h2, .warning-panel p { color: #fff9f0; }
.big-line {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.35;
  font-weight: 800;
  max-width: 900px;
  letter-spacing: -0.03em;
}

.principles ol {
  margin: 0;
  padding-left: 1.3rem;
}
.principles li {
  margin: 0 0 16px;
  padding-left: 4px;
}

.bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 5vw, 56px);
}
.english-block {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #564940;
  border-left: 1px solid var(--line);
  padding-left: clamp(22px, 4vw, 42px);
}
.english-block h2 { font-family: inherit; letter-spacing: -0.035em; }

.sources {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #4d433d;
}
.sources ul { padding-left: 1.1rem; }
.sources li { margin: 0 0 10px; }
.disclaimer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.knowledgebase-article-footer {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(91,73,61,0.58);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.knowledgebase-article-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .grid.three-col, .bilingual, .split, .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse > div, .split.reverse > aside {
    grid-column: auto;
    grid-row: auto;
  }
  .idea-card { min-height: auto; }
  .english-block {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 22px, 1100px); padding-top: 18px; }
  .hero, .note-card, .content-section, .sources { border-radius: 22px; }
  th, td { padding: 12px 10px; font-size: 0.9rem; }
}
