:root {
  --ink: #122033;
  --ink-soft: #41556c;
  --accent: #ad6a2b;
  --accent-soft: #d9984f;
  --paper: #fffdf9;
  --mist: #eef2f5;
  --panel: #ffffff;
  --line: rgba(18, 32, 51, 0.12);
  --line-strong: rgba(18, 32, 51, 0.2);
  --shadow: 0 18px 44px rgba(18, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(217, 152, 79, 0.16), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f4f1eb 100%);
}

a {
  color: inherit;
}

.node-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 5%;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 12px;
  color: var(--ink-soft);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.header-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.page-shell {
  padding: 0 5% 72px;
}

.hero {
  padding: 84px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-aside {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-aside {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,241,233,0.95) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(173, 106, 43, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Source Serif 4', serif;
  line-height: 1.08;
}

h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 72px);
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.signal-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,241,235,0.96) 100%);
  border: 1px solid var(--line);
}

.signal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.hero-aside h3 {
  font-size: 20px;
}

.hero-aside ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.hero-aside li,
.hero-aside p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.hero-aside p {
  margin: 12px 0 0;
}

.section-block {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-block h2 {
  font-size: clamp(30px, 3.7vw, 48px);
}

.section-intro {
  margin: 16px 0 0;
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.definition-grid,
.card-grid,
.faq-grid,
.related-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.definition-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up,
.faq-grid,
.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.node-card,
.faq-card,
.related-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel p,
.node-card p,
.faq-card p,
.related-card p,
.panel li,
.node-card li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.panel + .panel,
.node-card + .node-card {
  margin-top: 0;
}

.node-card strong,
.related-card strong,
.panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.facts-table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.facts-table th,
.facts-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.facts-table th {
  width: 28%;
  background: rgba(244, 241, 235, 0.92);
  font-weight: 800;
}

.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: none;
}

.plain-list,
.relationship-list,
.micro-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li,
.relationship-list li,
.micro-list li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.relationship-list li {
  font-family: 'Sora', sans-serif;
}

.faq-card h3,
.related-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.faq-card details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.faq-card details:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.faq-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.7;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  margin-top: 10px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-card a {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 800;
  color: var(--accent);
}

.footer-note {
  padding: 28px 5% 56px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.footer-note a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .definition-grid,
  .card-grid.three-up,
  .card-grid.two-up,
  .faq-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .node-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-links {
    justify-content: flex-start;
  }

  .hero,
  .page-shell {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero-copy,
  .hero-aside,
  .section-block {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .facts-table,
  .facts-table tbody,
  .facts-table tr,
  .facts-table th,
  .facts-table td {
    display: block;
    width: 100%;
  }

  .facts-table tr {
    border-bottom: 1px solid var(--line);
  }

  .facts-table tr:last-child {
    border-bottom: none;
  }

  .facts-table th,
  .facts-table td {
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}