:root {
  --paper: #f6f4ed;
  --paper-warm: #fbfaf4;
  --ink: #111412;
  --muted: #697067;
  --line: #d8d3c7;
  --line-strong: #bdb7aa;
  --panel: #ffffff;
  --field: #14231b;
  --signal: #5baa72;
  --warning: #c59b43;
  --shadow: 0 24px 70px rgba(22, 24, 21, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 35, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 27, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 4%, rgba(91, 170, 114, 0.24), transparent 31rem),
    radial-gradient(circle at 12% 30%, rgba(197, 155, 67, 0.09), transparent 24rem),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 211, 199, 0.64);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  object-fit: cover;
  background: white;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(22, 24, 21, 0.06);
}

nav a {
  padding: 8px 14px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}

nav a:hover,
nav a.active {
  background: var(--ink);
  color: white;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--signal);
  letter-spacing: 0.08em;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

.hero h1 {
  max-width: none;
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: #31382f;
  font-size: 19px;
}

.hero-intel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-intel span {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  padding: 6px 10px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: #465247;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 24, 21, 0.12);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
}

.hero-panel {
  position: relative;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: linear-gradient(145deg, #18231c, #0d100f);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(10px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.radar {
  position: relative;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(91, 170, 114, 0.7);
  border-radius: 50%;
}

.radar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 2px;
  transform-origin: left center;
  background: var(--signal);
  animation: sweep 4s linear infinite;
}

.radar span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.radar span:nth-child(1) { left: 24%; top: 34%; }
.radar span:nth-child(2) { left: 61%; top: 51%; }
.radar span:nth-child(3) { left: 42%; top: 70%; }

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.hero-panel dl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.hero-panel dl div {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 12px;
}

.hero-panel dt {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 12px;
}

.hero-panel dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  text-wrap: balance;
}

.section-heading p:last-child {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  position: relative;
  display: grid;
  grid-template-rows: 220px auto;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  min-width: 0;
  box-shadow: 0 16px 42px rgba(22, 24, 21, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 24px 54px rgba(22, 24, 21, 0.12);
}

.article-card.featured {
  grid-column: span 2;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: auto;
  min-height: 360px;
}

.card-media {
  background: var(--field);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.05);
  transition: transform .5s ease;
}

.article-card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.tag-row,
.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.article-kicker span {
  border: 1px solid var(--line);
  background: #f9f8f2;
  padding: 3px 8px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 12px;
}

.article-card h3 {
  font-size: 23px;
  line-height: 1.26;
  text-wrap: balance;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 13px;
}

.card-link {
  width: fit-content;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--signal);
  font-size: 13px;
  font-weight: 800;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.theme-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  transition: transform .25s ease, background .25s ease;
}

.theme-grid article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.86);
}

.theme-grid span {
  display: block;
  margin-bottom: 34px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--signal);
  font-weight: 800;
}

.theme-grid h3 {
  font-size: 25px;
}

.theme-grid p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 28px;
  align-items: start;
}

.about p:last-child {
  margin: 0;
  font-size: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.article-layout {
  padding: 42px 0 0;
}

.article-hero {
  max-width: 920px;
  margin: 0 auto 30px;
}

.article-hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 72px);
}

.article-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--muted);
}

.article-meta span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.68);
}

.article-cover {
  margin: 34px auto;
  max-width: 1040px;
  border: 1px solid var(--ink);
  background: var(--field);
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 0 48px;
  font-size: 18px;
  line-height: 1.95;
}

.article-body p,
.article-body section {
  margin: 0 0 18px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  margin: 42px 0 18px;
}

.article-body h1 {
  font-size: 34px;
}

.article-body h2 {
  font-size: 29px;
}

.article-body h3 {
  font-size: 24px;
}

.article-body strong {
  font-weight: 900;
}

.article-body figure {
  margin: 32px 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.article-body figure img {
  width: 100%;
  height: auto;
}

.article-source {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.article-source p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero-panel {
    min-height: 340px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .article-grid.compact,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .lead,
  .about p:last-child,
  .article-hero p {
    font-size: 17px;
  }

  .hero-panel dl {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-rows: 200px auto;
  }

  .article-body {
    font-size: 16px;
  }

  footer,
  .article-source {
    flex-direction: column;
  }
}
