:root {
  --forest: #18324B;
  --accent: #B75D45;
  --background: #F4F0E8;
  --surface: #FFFCF6;
  --text: #1B2730;
  --muted: #65717A;
  --border: #D8D1C7;
  --focus: #B8742D;
  --shadow: 0 18px 54px rgba(24, 55, 42, .09);
  --radius: 22px;
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 5px; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 72px; padding: 12px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(215, 225, 218, .84); background: rgba(252, 253, 249, .94);
  backdrop-filter: blur(14px);
}
.brand { flex: 0 0 auto; font-size: 15px; font-weight: 750; letter-spacing: -.025em; color: var(--forest); }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.site-header nav a { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 40px; padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; transition: background .18s ease, color .18s ease; }
.site-header nav a:hover { background: #e8efe9; color: var(--forest); }

main { overflow: hidden; }
.page-hero, .content-section, .closing-band { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.page-hero { position: relative; margin-top: 38px; padding: clamp(32px, 6vw, 72px); border: 1px solid rgba(215, 225, 218, .9); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(32px, 6vw, 76px); min-height: 430px; isolation: isolate; }
.home-hero::before { position: absolute; z-index: -1; top: -210px; right: 25%; width: 500px; height: 500px; border: 1px solid rgba(36, 104, 79, .11); border-radius: 50%; content: ""; }
.home-hero::after { position: absolute; z-index: -1; top: -165px; right: 27%; width: 410px; height: 410px; border: 1px solid rgba(36, 104, 79, .09); border-radius: 50%; content: ""; }
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--forest); line-height: 1.2; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(36px, 5.3vw, 66px); }
h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); }
h3 { margin: 0; font-size: 20px; }
.hero-tagline { margin: 18px 0 0; color: var(--accent); font-size: clamp(18px, 2vw, 22px); font-weight: 620; }
.hero-description, .page-hero > p:not(.eyebrow), .hero-copy > p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 16px; }
.hero-image, .hero-map { display: block; width: 100%; min-height: 275px; max-height: 340px; border-radius: 20px; }
.hero-image { object-fit: contain; background: #07233f; box-shadow: 0 14px 38px rgba(23, 63, 50, .12); }
.hero-map { position: relative; overflow: hidden; background: radial-gradient(ellipse at 35% 45%, rgba(221, 232, 207, .9), transparent 58%), linear-gradient(145deg, #dce8dd, #b8cfbd 55%, #eff0df); }
.hero-map::before, .hero-map::after { position: absolute; inset: 8% -20%; border: 1px solid rgba(23, 63, 50, .22); border-radius: 42% 55% 48% 40%; transform: rotate(-17deg); content: ""; }
.hero-map::after { inset: 18% -18%; transform: rotate(23deg); }
.compact { padding-block: clamp(30px, 5vw, 56px); }
.compact h1 { font-size: clamp(33px, 4.7vw, 56px); }
.compact .hero-actions { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: #fff; font-size: 14px; font-weight: 650; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--accent); color: #fff; box-shadow: 0 9px 20px rgba(23, 63, 50, .16); }
.button.secondary { background: transparent; color: var(--forest); }
.button.secondary:hover { background: #e8efe9; }

.content-section { padding-block: clamp(54px, 7.5vw, 88px) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 14px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.module-grid, .case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card, .case-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 25px rgba(24, 55, 42, .035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.module-card { min-height: 218px; }
.case-card { min-height: 200px; }
.module-card:hover, .case-card:hover { transform: translateY(-4px); border-color: rgba(36, 104, 79, .38); box-shadow: var(--shadow); }
.module-card h2 { margin: 2px 0 9px; font-size: 22px; }
.case-card h3 { margin: 1px 0 8px; }
.module-card p, .case-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-arrow { margin-top: auto; padding-top: 20px; color: var(--accent); font-size: 13px; font-weight: 700; }
.case-card .eyebrow, .module-card .eyebrow { margin-bottom: 9px; }
.featured-section { padding-top: clamp(64px, 8vw, 96px); }
.featured-section .section-heading { margin-bottom: 22px; }
.text-link { display: inline-flex; align-items: center; min-height: 42px; color: var(--accent); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.closing-band { margin-top: clamp(64px, 9vw, 110px); margin-bottom: 70px; padding: clamp(32px, 5vw, 54px); border-radius: 26px; background: var(--forest); color: #eff6ef; }
.closing-band h2 { max-width: 780px; color: #fff; }
.closing-band p:last-child { max-width: 720px; margin-bottom: 0; color: #d0dfd4; }
.closing-band .eyebrow { color: #b7d5c0; }

.goal-list, .workflow, .method-list { margin: 0; padding-left: 1.35em; }
.goal-list li { margin: 9px 0; padding-left: 5px; }
.case-question { max-width: 760px; margin: 22px 0 0; padding: 15px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: #edf3ed; color: var(--forest) !important; font-weight: 650; }
.workflow { display: grid; gap: 12px; list-style: none; counter-reset: workflow; padding: 0; }
.workflow li { position: relative; padding: 23px 24px 23px 70px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); counter-increment: workflow; }
.workflow li::before { position: absolute; top: 21px; left: 20px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e8efe9; color: var(--forest); font-size: 13px; font-weight: 800; content: counter(workflow, decimal-leading-zero); }
.workflow h3 { font-size: 18px; }
.workflow p { margin: 8px 0 0; color: var(--muted); }
.expected-output { color: var(--text) !important; }
.expected-output b { color: var(--accent); }
.method-list { display: grid; gap: 12px; list-style: none; padding: 0; }
.method-list li { display: grid; grid-template-columns: minmax(150px, .4fr) 1fr; gap: 20px; padding: 16px 19px; border-left: 3px solid var(--accent); background: var(--surface); }
.method-list span { color: var(--muted); }
.assessment-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.assessment-list li { display: grid; grid-template-columns: minmax(150px, .4fr) 1fr auto; align-items: center; gap: 18px; padding: 16px 19px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.assessment-list li span { color: var(--muted); }
.assessment-list li em { color: var(--accent); font-style: normal; font-weight: 800; white-space: nowrap; }
.resource-list { display: grid; gap: 12px; }
.resource-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.resource-row h3 { margin: 3px 0 4px; font-size: 17px; }
.resource-row p { margin: 5px 0; color: var(--muted); font-size: 14px; }
.resource-row small { color: var(--muted); font-size: 12px; }
.resource-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px 14px; }
.resource-context { padding-top: 12px; }
.resource-context > .eyebrow { margin-bottom: 8px; }
.empty-state { padding: 22px; border: 1px dashed #9db2a2; border-radius: 16px; color: var(--muted); background: rgba(252,253,249,.72); }
.muted { color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px clamp(20px, 5vw, 76px) 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--accent); font-weight: 700; }

.nb-markdown, .nb-code, .reading-page { margin: 20px auto; width: min(980px, calc(100% - 36px)); padding: clamp(18px, 3vw, 30px); border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.nb-markdown h1, .reading-page h1 { font-size: 32px; }
.nb-markdown p, .reading-page p { color: var(--muted); }
.nb-code pre, .nb-output { overflow-x: auto; margin: 0; padding: 18px; border-radius: 12px; background: #17251f; color: #e5efe8; font: 13px/1.65 Consolas, "Cascadia Code", monospace; tab-size: 4; }
.nb-outputs { display: grid; gap: 12px; margin-top: 14px; }
.nb-output-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; background: white; }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 13px; }
  .site-header nav { justify-content: flex-start; width: 100%; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-map, .hero-image { min-height: 240px; }
  .module-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { position: relative; min-height: auto; padding: 13px 16px 9px; }
  .site-header nav { gap: 3px; }
  .site-header nav a { min-height: 38px; padding: 6px 10px; font-size: 12px; }
  .page-hero, .content-section, .closing-band { width: min(100% - 28px, 1180px); }
  .page-hero { margin-top: 14px; padding: 27px 22px; border-radius: 22px; }
  .home-hero { gap: 24px; min-height: initial; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-tagline { font-size: 18px; }
  .hero-description, .page-hero > p:not(.eyebrow), .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-map, .hero-image { min-height: 205px; }
  .hero-actions { gap: 8px; margin-top: 21px; }
  .button { min-height: 44px; padding: 9px 14px; font-size: 13px; }
  .content-section { padding-top: 56px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .module-grid, .case-grid { grid-template-columns: 1fr; gap: 11px; }
  .module-card, .case-card { min-height: 0; padding: 20px; }
  .card-arrow { padding-top: 13px; }
  .closing-band { margin-top: 58px; margin-bottom: 42px; padding: 28px 22px; border-radius: 20px; }
  .workflow li { padding: 19px 17px 19px 59px; }
  .workflow li::before { top: 17px; left: 14px; width: 32px; height: 32px; }
  .method-list li { grid-template-columns: 1fr; gap: 5px; }
  .assessment-list li { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .assessment-list li span { grid-column: 1 / -1; grid-row: 2; }
  .resource-row { align-items: flex-start; flex-direction: column; padding: 18px; }
  .resource-actions { gap: 4px 14px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 22px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Magazine treatment: paper, ink, a single editorial accent and clearer hierarchy. */
body { background: var(--background); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif; font-weight: 650; letter-spacing: -.045em; }
.site-header { border-bottom-color: var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.brand { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 17px; letter-spacing: -.035em; }
.page-hero { border-radius: 6px; box-shadow: 0 22px 60px rgba(45, 39, 27, .08); }
.home-hero { border-top: 5px solid var(--accent); border-radius: 6px; }
.home-hero::before, .home-hero::after { border-color: color-mix(in srgb, var(--accent) 17%, transparent); }
.hero-image { border-radius: 4px; background: var(--forest); }
.module-grid, .case-grid { gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.module-card, .case-card { border-width: 0 1px 1px 0; border-radius: 0; box-shadow: none; background: color-mix(in srgb, var(--surface) 84%, var(--background)); }
.module-card:hover, .case-card:hover { transform: none; border-color: var(--border); background: var(--surface); box-shadow: inset 0 3px 0 var(--accent); }
.module-card:nth-child(1), .case-card:nth-child(1) { grid-column: span 2; min-height: 240px; background: var(--surface); }
.module-card h2 { font-size: 25px; }
.case-card h3 { font-size: 22px; }
.section-heading { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 40px); }
.content-section { padding-top: clamp(62px, 8vw, 104px); }
.eyebrow { font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif; letter-spacing: .16em; }
.closing-band { border-radius: 5px; background: var(--forest); }
.resource-row { border-width: 0 0 1px; border-radius: 0; background: transparent; padding-inline: 0; }
.resource-row:hover { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.button { border-radius: 4px; }
.button.secondary { border-color: var(--border); }
.workflow li { border-radius: 5px; box-shadow: none; }
.workflow li::before { border-radius: 3px; background: var(--accent); color: #fff; }
.case-question { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

@media (max-width: 980px) {
  .module-card:nth-child(1), .case-card:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 620px) {
  .module-card:nth-child(1), .case-card:nth-child(1) { grid-column: auto; min-height: 0; }
  .module-grid, .case-grid { border-left: 0; }
}
