:root {
  --ink: #20231f;
  --muted: #72766f;
  --paper: #f5f5ef;
  --surface: #fffef9;
  --line: #d9dbd3;
  --charcoal: #242722;
  --charcoal-soft: #30342e;
  --accent: #c65332;
  --accent-deep: #9d3d27;
  --accent-soft: #f0ded5;
  --white: #fffef9;
  --shadow: 0 18px 48px rgba(32, 35, 31, .08);
  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; }

button { cursor: pointer; }

h1, h2, h3, p, ul, ol, dl { margin-top: 0; }

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -.045em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.25rem; }

ul, ol { padding-left: 1.35rem; }

.site-header {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 22px 28px;
  position: relative;
  z-index: 4;
}

.home-hero .site-header {
  color: var(--white);
  max-width: none;
  padding-left: clamp(28px, 6vw, 88px);
  padding-right: clamp(28px, 6vw, 88px);
}

.brand-mark {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 24px; }

.site-nav a {
  color: inherit;
  font-size: .9rem;
  font-weight: 650;
  opacity: .7;
  padding: 4px 0;
  position: relative;
  transition: opacity .2s ease, color .2s ease;
}

.site-nav a::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
  width: 100%;
}

.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.home-hero .eyebrow, .hero .eyebrow, .panel-dark .eyebrow { color: #ed987c; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 750;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-deep); }
.button-secondary { border-color: currentColor; color: inherit; }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255, 254, 249, .12); }
.button-quiet { background: transparent; border-color: var(--line); color: var(--ink); min-height: 40px; padding: 8px 14px; }
.button-quiet:hover, .button-quiet:focus-visible { border-color: var(--accent); color: var(--accent); }

.home-hero {
  background: var(--charcoal);
  color: var(--white);
  min-height: 720px;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 680px;
}

.home-hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(28px, 7vw, 104px) 84px clamp(28px, 7vw, 104px);
  position: relative;
}

.home-hero-copy::before {
  border-left: 1px solid rgba(255, 254, 249, .18);
  content: "";
  height: 120px;
  left: 12px;
  position: absolute;
  top: 96px;
}

.home-hero-copy h1 {
  color: var(--white);
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: .98;
  margin-bottom: 28px;
  max-width: 8ch;
}

.home-hero-lede {
  color: rgba(255, 254, 249, .7);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 27rem;
}

.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.home-hero-note {
  color: rgba(255, 254, 249, .42);
  font-size: .76rem;
  letter-spacing: .08em;
  margin: 34px 0 0;
}

.home-hero-media {
  margin: 0;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.home-hero-media::before {
  background: var(--accent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 16%;
  width: 22%;
  z-index: 1;
}

.home-hero-media img { height: 100%; object-fit: cover; width: 100%; }

.home-hero-media::after {
  background: linear-gradient(90deg, rgba(36, 39, 34, .24), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero-caption {
  bottom: 26px;
  color: rgba(255, 254, 249, .7);
  font-size: .72rem;
  letter-spacing: .1em;
  position: absolute;
  right: 26px;
  text-transform: uppercase;
  z-index: 2;
}

.home-main { margin: 0 auto; max-width: 1200px; padding: 0 28px; }

.home-intro-grid {
  align-items: end;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  padding: 104px 0 92px;
}

.home-intro-grid h2 { max-width: 10ch; }
.home-intro-copy { color: var(--muted); max-width: 36rem; }

.home-quicklinks { border-top: 1px solid var(--line); }

.home-quicklink {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 34px 1fr auto;
  padding: 18px 0;
  transition: color .2s ease, padding .2s ease;
}

.home-quicklink span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.home-quicklink strong { font-size: 1.1rem; }
.home-quicklink em { color: var(--muted); font-size: .82rem; font-style: normal; }
.home-quicklink:hover { color: var(--accent); padding-left: 8px; }

.home-photo-band {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  margin: 0 calc(28px * -1);
  min-height: 350px;
}

.home-photo-media { min-height: 350px; overflow: hidden; }
.home-photo-media img { height: 100%; object-fit: cover; width: 100%; }
.home-photo-copy { align-self: center; padding: 48px clamp(28px, 5vw, 76px); }
.home-photo-copy h2 { color: var(--white); max-width: 10ch; }
.home-photo-copy p, .home-photo-copy li { color: rgba(255, 254, 249, .68); }
.home-photo-copy ul { margin-bottom: 28px; }

.home-section { padding: 102px 0 0; }
.home-section .section-heading { margin-bottom: 34px; }

.section-heading {
  align-items: end;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading > :last-child { color: var(--muted); font-size: .92rem; max-width: 28rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.home-entry-grid { display: grid; gap: 1px; grid-template-columns: 1.15fr .85fr; }

.home-entry-card {
  background: var(--surface);
  border-top: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease;
}

.home-entry-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.home-entry-card h3 { font-size: 1.7rem; margin: 12px 0; }
.home-entry-card p { color: var(--muted); max-width: 28rem; }
.home-entry-card .card-link { align-self: flex-start; margin-top: 24px; }
.home-entry-card-featured { background: var(--accent-soft); }

.module-grid, .category-grid, .knowledge-grid, .sample-grid {
  display: grid;
  gap: 1px;
}

.module-grid { grid-template-columns: repeat(2, 1fr); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.knowledge-grid { grid-template-columns: repeat(3, 1fr); }
.sample-grid { grid-template-columns: repeat(3, 1fr); }

.module-card, .category-card, .knowledge-card, .sample-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 25px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.module-card:hover, .category-card:hover, .knowledge-card:hover, .sample-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.module-card h2, .category-card h2, .knowledge-card h2, .sample-card h2 { font-size: 1.55rem; margin: 10px 0; }
.module-card p, .category-card p, .knowledge-card p, .sample-card p { color: var(--muted); margin-bottom: 0; }
.card-kicker { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-link { color: var(--accent); font-size: .82rem; font-weight: 800; margin-top: 26px; }

.callout {
  align-items: center;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 96px 0 0;
  padding: 34px 36px;
}

.callout h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); margin-bottom: 10px; max-width: 18ch; }
.callout p { color: #72584f; margin-bottom: 0; }
.callout .eyebrow { margin-bottom: 10px; }
.callout .button { flex-shrink: 0; }

.site-footer {
  color: var(--muted);
  font-size: .78rem;
  margin: 96px auto 0;
  max-width: var(--max-width);
  padding: 24px 28px 34px;
}

.catalog-main { min-height: 100vh; }
.catalog-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.catalog-header .site-header { padding-bottom: 19px; padding-top: 19px; }
.breadcrumb { color: var(--muted); font-size: .78rem; margin: 0 auto; max-width: var(--max-width); padding: 28px 28px 0; }
.breadcrumb a { color: var(--accent); }

.catalog-hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) 310px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 66px 28px 72px;
}

.catalog-hero h1 { margin-bottom: 20px; max-width: 13ch; }
.catalog-lede { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }
.catalog-aside { align-self: end; background: var(--charcoal); color: var(--white); padding: 25px; }
.catalog-aside strong { display: block; font-size: 1.02rem; line-height: 1.4; margin-bottom: 12px; }
.catalog-aside p { color: rgba(255, 254, 249, .68); font-size: .88rem; margin: 0; }
.catalog-main .content-shell { border-top: 1px solid var(--line); }
.compact-shell { padding-top: 58px; }

.content-shell { margin: 0 auto; max-width: var(--max-width); padding: 0 28px; }
.content-shell > section, .content-shell > article, .content-shell > .notice { margin-bottom: 72px; }
.content-grid, .two-column { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.content-panel, .panel, .tool-result, .tool-form, .cost-box { background: var(--surface); border: 1px solid var(--line); padding: 30px; }
.content-panel h2, .prose h2 { font-size: 1.8rem; margin: 0 0 20px; }
.content-panel h2:not(:first-child), .prose h2:not(:first-child) { margin-top: 38px; }
.content-panel ul, .content-panel ol, .prose ul, .prose ol { margin-bottom: 0; }
.content-panel li + li, .prose li + li { margin-top: 9px; }
.panel-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.panel-dark h3, .panel-dark li { color: var(--white); }
.panel-list { margin-bottom: 0; }
.panel-list li::marker { color: var(--accent); }
.prose { color: #4e544d; font-size: 1.02rem; line-height: 1.9; }
.prose a { color: var(--accent); font-weight: 700; }
.notice { background: #ebece6; border-left: 4px solid var(--ink); color: #5d625b; padding: 18px 22px; }

.hero { background: var(--charcoal); color: var(--white); }
.hero-grid { display: grid; gap: 64px; grid-template-columns: minmax(0, 1fr) 380px; margin: 0 auto; max-width: var(--max-width); padding: 86px 28px 92px; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 5.5vw, 5rem); margin: 0 0 22px; }
.hero-subtitle { color: rgba(255, 254, 249, .72); font-size: 1.05rem; max-width: 42rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag { border: 1px solid rgba(255, 254, 249, .24); border-radius: 999px; color: rgba(255, 254, 249, .7); font-size: .72rem; padding: 4px 10px; }
.tag-status { border-color: #d38368; color: #f1aa92; }
.decision-card { align-self: end; background: var(--surface); color: var(--ink); padding: 30px; }
.decision-card-label { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.decision-card h2 { font-size: 1.7rem; margin-bottom: 26px; }
.decision-pairs { margin: 0; }
.decision-pair { border-top: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 48px 1fr; padding: 14px 0; }
.decision-pair dt { color: var(--accent); font-size: .78rem; font-weight: 800; }
.decision-pair dd { margin: 0; }

.facts-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.fact { background: var(--surface); border: 1px solid var(--line); min-height: 155px; padding: 22px; }
.fact-label { color: var(--muted); display: block; font-size: .78rem; }
.fact-value { display: block; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.06em; margin: 16px 0 6px; }
.fact-note { color: var(--muted); font-size: .75rem; }

.scenario-table { background: var(--surface); border-collapse: collapse; width: 100%; }
.scenario-table th, .scenario-table td { border-bottom: 1px solid var(--line); padding: 15px 0; text-align: left; }
.scenario-table tr:last-child th, .scenario-table tr:last-child td { border-bottom: 0; }
.scenario-table th { font-weight: 600; }
.scenario-table td { text-align: right; }
.score { color: var(--accent); letter-spacing: .1em; }
.cost-box { border-top: 4px solid var(--accent); }
.cost-box h2 { font-size: 1.7rem; margin-bottom: 12px; }
.cost-box p { color: var(--muted); margin-bottom: 0; }

.gear-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.gear-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 24px; }
.gear-card small { color: var(--accent); font-weight: 800; letter-spacing: .08em; }
.gear-card h3 { margin: 12px 0 8px; }
.gear-card p { color: var(--muted); font-size: .9rem; }
.gear-card .button { align-self: flex-start; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; list-style: none; padding: 20px 42px 20px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--accent); content: "+"; font-size: 1.4rem; position: absolute; right: 4px; top: 15px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { color: var(--muted); padding: 0 42px 20px 0; }
.sources { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding-top: 22px; }
.sources p { margin-bottom: 8px; }
.source-link { color: var(--accent); }

.tool-layout { display: grid; gap: 18px; grid-template-columns: 330px minmax(0, 1fr); }
.tool-form { align-self: start; display: grid; gap: 18px; }
.tool-form label { color: var(--muted); display: grid; font-size: .84rem; font-weight: 700; gap: 7px; }
.tool-form input, .tool-form select { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-height: 46px; padding: 8px 12px; width: 100%; }
.tool-form input:focus, .tool-form select:focus { border-color: var(--accent); outline: 2px solid rgba(198, 83, 50, .18); }
.tool-form .button { margin-top: 8px; width: 100%; }
.tool-result { min-height: 330px; }
.tool-result h2 { font-size: 2rem; margin-bottom: 12px; }
.tool-result p { color: var(--muted); }
.tool-result ul { color: var(--muted); }
.tool-result strong { color: var(--ink); }

.catalog-feature { align-items: stretch; background: var(--charcoal); color: var(--white); display: grid; grid-template-columns: 1.12fr .88fr; margin: 0 0 72px; }
.catalog-feature-media { min-height: 330px; overflow: hidden; }
.catalog-feature-media img { height: 100%; object-fit: cover; width: 100%; }
.catalog-feature-copy { align-self: center; padding: 42px 48px; }
.catalog-feature-copy h2 { color: var(--white); font-size: 2rem; max-width: 12ch; }
.catalog-feature-copy p { color: rgba(255, 254, 249, .68); }

:focus-visible { outline: 3px solid rgba(198, 83, 50, .38); outline-offset: 4px; }

@media (max-width: 920px) {
  .home-hero-grid, .catalog-feature { grid-template-columns: 1fr; }
  .home-hero-grid { min-height: 0; }
  .home-hero-copy { min-height: 570px; padding-top: 92px; }
  .home-hero-media, .catalog-feature-media { min-height: 420px; }
  .home-hero-media { order: -1; }
  .home-hero-copy { order: 1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-aside { max-width: 420px; }
  .catalog-feature-copy { padding: 42px 30px 48px; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; gap: 18px; padding: 18px 20px; }
  .site-nav { flex-wrap: wrap; gap: 10px 16px; justify-content: flex-end; }
  .brand-mark { max-width: 145px; white-space: normal; }
  .home-hero .site-header { padding-left: 20px; padding-right: 20px; }
  .home-hero-copy { min-height: 520px; padding: 72px 28px 64px; }
  .home-hero-copy h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .home-hero-media { min-height: 300px; }
  .home-main { padding: 0 20px; }
  .home-intro-grid { display: block; padding: 70px 0; }
  .home-intro-grid h2 { max-width: 12ch; }
  .home-quicklinks { margin-top: 44px; }
  .home-photo-band { display: block; margin-left: -20px; margin-right: -20px; }
  .home-photo-media { min-height: 250px; }
  .home-photo-copy { padding: 34px 28px 40px; }
  .home-section { padding-top: 70px; }
  .section-heading { align-items: flex-start; display: block; }
  .section-heading > :last-child { margin-top: 15px; }
  .home-entry-grid, .module-grid, .content-grid, .two-column, .tool-layout { grid-template-columns: 1fr; }
  .category-grid, .knowledge-grid, .sample-grid, .gear-grid { grid-template-columns: 1fr; }
  .category-card, .knowledge-card, .sample-card, .module-card { min-height: 185px; }
  .callout { align-items: flex-start; display: block; margin-top: 70px; padding: 28px; }
  .callout .button { margin-top: 24px; }
  .site-footer { margin-top: 70px; padding-left: 20px; padding-right: 20px; }
  .breadcrumb, .content-shell, .catalog-hero { padding-left: 20px; padding-right: 20px; }
  .catalog-hero { gap: 28px; padding-bottom: 52px; padding-top: 48px; }
  .catalog-hero h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
  .catalog-feature { margin-bottom: 50px; }
  .catalog-feature-media { min-height: 260px; }
  .compact-shell { padding-top: 42px; }
  .content-shell > section, .content-shell > article, .content-shell > .notice { margin-bottom: 50px; }
  .content-panel, .panel, .tool-result, .tool-form, .cost-box { padding: 24px; }
  .hero-grid { display: block; padding: 60px 20px 66px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .decision-card { margin-top: 38px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { min-height: 140px; padding: 16px; }
  .fact-value { font-size: 1.7rem; }
}
