:root {
  --ink: #171b22;
  --muted: #667085;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --soft: #efebe1;
  --line: #ded8ca;
  --accent: #0d766f;
  --accent-dark: #095b56;
  --gold: #a66f16;
  --shadow: 0 18px 44px rgba(28, 24, 18, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--accent);
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 216, 202, 0.8);
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 6px;
  color: #363b45;
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.hero {
  min-height: 68dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(92px, 14vw, 168px) clamp(22px, 6vw, 88px) clamp(56px, 9vw, 104px);
  background: #20242b;
}

.hero-content {
  max-width: 780px;
  color: #fff;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.panel-line {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.93);
}

.panel-line span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 900;
}

.panel-line strong {
  font-size: 18px;
}

.panel-line p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #85e5d8;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 21px;
}

.hero-actions,
.filter-row,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.filter,
.reaction-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  color: #fff;
  background: var(--accent-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.band,
.page-shell,
.article-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.band,
.page-shell,
.article-shell {
  padding: clamp(48px, 7vw, 86px) 0;
}

.section-head,
.page-header,
.article-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow),
.page-header p,
.article-header p,
.content-card p,
.theme-card p,
.list-item p,
.empty-state p,
.principle p {
  color: var(--muted);
}

.section-grid,
.theme-grid,
.card-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-item,
.theme-card,
.content-card,
.principle,
.toolbar,
.list-item,
.article-page,
.empty-state,
.about-stats,
.engagement,
.comment-form,
.comment-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.025);
}

.proof-item,
.principle,
.theme-card {
  padding: 22px;
}

.proof-item strong {
  display: block;
  font-size: 22px;
}

.proof-item p,
.theme-card p {
  margin: 10px 0 16px;
}

.theme-card > span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.theme-card h2 {
  font-size: 28px;
}

.content-card {
  overflow: hidden;
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

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

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin-top: 12px;
}

.card-body p {
  min-height: 72px;
  margin: 12px 0 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span,
.meta-row a {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf6;
}

.meta-row a {
  border-color: rgba(13, 118, 111, 0.28);
  background: rgba(13, 118, 111, 0.08);
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-weight: 850;
}

.article-list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px;
}

.list-item p {
  margin: 8px 0 0;
}

.toolbar {
  display: grid;
  gap: 16px;
  padding: 16px;
  margin: 30px 0;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.search-box input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.filter,
.reaction-button {
  color: var(--ink);
  border-color: var(--line);
  background: #fbfaf6;
}

.filter.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

[hidden] {
  display: none !important;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 850;
}

.article-page {
  overflow: hidden;
}

.article-header {
  padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 64px) 20px;
}

.article-cover {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.article-content {
  max-width: 820px;
  padding: clamp(24px, 5vw, 64px);
}

.article-content h2 {
  margin-top: 42px;
  font-size: clamp(26px, 3vw, 36px);
}

.article-content h3 {
  margin-top: 32px;
}

.article-content p,
.article-content li {
  color: #343941;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: #fbfaf6;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
}

.empty-state {
  padding: clamp(40px, 8vw, 80px);
  text-align: center;
}

.empty-list .empty-state {
  width: 100%;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
}

.about-stats div {
  padding: 20px;
  border-radius: 6px;
  background: #fbfaf6;
}

.about-stats strong {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.about-stats span {
  color: var(--muted);
}

.engagement {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.reaction-row {
  margin-bottom: 22px;
}

.reaction-button span {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 850;
}

.reaction-button:disabled,
.comment-form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.comment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfaf6;
}

.comment-item {
  padding: 16px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.comment-item p {
  margin: 10px 0 0;
}

.comment-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.comment-form textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.comment-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero,
  .section-grid,
  .theme-grid,
  .card-grid,
  .principle-grid,
  .about-stats,
  .comment-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .band,
  .page-shell,
  .article-shell {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
