:root {
  --ink: #102f52;
  --ink-soft: #38536e;
  --paper: #f7f1e7;
  --paper-deep: #eee3d2;
  --paper-light: #fffdf8;
  --blue-wash: #b8c8d7;
  --blue-wash-soft: #dce5ec;
  --gold: #b98a2e;
  --gold-soft: #e3c77c;
  --line: rgba(16, 47, 82, 0.16);
  --shadow: 0 24px 60px rgba(37, 47, 53, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 7%, rgba(184, 200, 215, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 34%, rgba(227, 199, 124, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  line-height: 1.72;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(16, 47, 82, 0.025) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(185, 138, 46, 0.02) 11px 12px);
  mix-blend-mode: multiply;
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.8rem;
  left: 0.8rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid rgba(16, 47, 82, 0.08);
}

.nav-shell,
.shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: ui-serif, Georgia, serif;
  font-size: 0.82rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 36vw;
  min-width: 440px;
  min-height: 300px;
  right: -12vw;
  bottom: -17vw;
  background: var(--blue-wash);
  opacity: 0.42;
  border-radius: 45% 55% 20% 80%;
  transform: rotate(-8deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 7rem 0 8rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 700px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.hero-line {
  display: block;
  width: min(520px, 72vw);
  height: 2px;
  margin-top: 3.5rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: rotate(-2deg);
  transform-origin: left;
}

.section { padding: 7.5rem 0; }
.section-quiet { background: rgba(255, 253, 248, 0.6); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1.28fr);
  gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle {
  min-height: 280px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 34px rgba(16, 47, 82, 0.055);
}

.principle-number {
  color: var(--gold);
  font-family: ui-serif, Georgia, serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.principle h3 {
  margin: 3.4rem 0 0.75rem;
  font-size: 1.55rem;
  font-weight: 600;
}

.principle p { margin: 0; color: var(--ink-soft); }

.community-section {
  border-block: 1px solid var(--line);
  background: rgba(238, 227, 210, 0.36);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.practice-item {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(255, 253, 248, 0.92);
}

.practice-item span {
  color: var(--gold);
  font-family: ui-serif, Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.practice-item strong {
  font-size: 1.18rem;
  font-weight: 600;
}

.source-links { margin-top: 4rem; }

.source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.source-links a:last-child { border-bottom: 1px solid var(--line); }
.source-links a:hover,
.source-links a:focus-visible { color: var(--gold); }

.preview-notice {
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(227, 199, 124, 0.14);
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.report-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.7rem;
  overflow: hidden;
  border: 1px solid rgba(16, 47, 82, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(238, 227, 210, 0.92));
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.report-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 110px;
  right: -48px;
  bottom: -32px;
  background: var(--blue-wash);
  opacity: 0.5;
  border-radius: 62% 38% 0 100%;
  transform: rotate(-10deg);
}

.report-card:hover,
.report-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  outline: none;
}

.report-card-kicker {
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.report-card h3 {
  max-width: 11ch;
  margin: 3rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.28;
  font-weight: 600;
}

.report-card p { margin: 0; color: var(--ink-soft); }

.report-card .report-card-summary {
  position: relative;
  z-index: 2;
  max-width: 24ch;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.report-card-cta {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

.empty-state {
  padding: 3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
}

.archive-note {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4rem;
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.archive-note h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.2; }
.archive-note p { margin: 0; color: rgba(255, 255, 255, 0.76); }

.page-hero { padding: 6rem 0 3rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { max-width: 760px; margin: 1.4rem 0 0; color: var(--ink-soft); font-size: 1.08rem; }

.report-toolbar {
  position: sticky;
  z-index: 15;
  top: 72px;
  padding: 0.85rem 0;
  border-block: 1px solid var(--line);
  background: rgba(247, 241, 231, 0.9);
  backdrop-filter: blur(14px);
}

.report-toolbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

.back-link { text-decoration: none; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }

.report-pages {
  width: min(1080px, calc(100% - 1.25rem));
  margin: 3rem auto 6rem;
  display: grid;
  gap: 1.25rem;
}

.report-page-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(16, 47, 82, 0.1);
  box-shadow: 0 16px 42px rgba(16, 47, 82, 0.12);
  background: var(--paper-light);
}

.redacted-page {
  aspect-ratio: 3 / 4;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 47, 82, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(238, 227, 210, 0.94));
  box-shadow: 0 16px 42px rgba(16, 47, 82, 0.11);
}

.redacted-page::before {
  content: "";
  position: absolute;
  inset: 10% 9%;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 52% 2px no-repeat,
    repeating-linear-gradient(180deg, rgba(16, 47, 82, 0.12) 0 9px, transparent 9px 28px);
  opacity: 0.52;
  filter: blur(5px);
}

.redacted-page::after {
  content: "";
  position: absolute;
  width: 54%;
  height: 25%;
  right: -12%;
  bottom: -8%;
  border-radius: 70% 30% 0 100%;
  background: var(--blue-wash);
  opacity: 0.52;
}

.redacted-label {
  position: relative;
  z-index: 2;
  max-width: 76%;
  padding: 1.4rem 1.7rem;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 253, 248, 0.92);
  text-align: center;
  box-shadow: 0 14px 32px rgba(16, 47, 82, 0.08);
}

.redacted-label strong { display: block; font-size: 1.35rem; }
.redacted-label span { display: block; margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.92rem; }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 0 7rem;
  font-size: 1.03rem;
}

.prose h2 { margin: 3.2rem 0 1rem; font-size: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--ink); text-underline-offset: 0.2em; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(238, 227, 210, 0.62);
}

.footer-shell {
  padding: 2rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-links a { text-underline-offset: 0.2em; }
.public-security-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.public-security-link img { width: 20px; height: 20px; flex: 0 0 20px; }

.not-found {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1rem;
}

.not-found-code { color: var(--gold); font-family: ui-serif, Georgia, serif; font-size: 1rem; letter-spacing: 0.2em; }
.not-found h1 { max-width: none; margin-top: 1rem; font-size: clamp(2.4rem, 6vw, 5rem); }
.not-found p { color: var(--ink-soft); }
.text-link { text-underline-offset: 0.24em; }

@media (max-width: 900px) {
  .hero { min-height: 620px; }
  .section-heading,
  .archive-note { grid-template-columns: 1fr; gap: 1.5rem; }
  .principles,
  .report-grid,
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav-shell { min-height: 64px; }
  .nav-links a:first-child { display: none; }
  .hero { min-height: 590px; }
  .hero-copy { padding: 5rem 0 6rem; }
  .section { padding: 5rem 0; }
  .section-heading { margin-bottom: 2.2rem; }
  .principles,
  .report-grid,
  .practice-grid { grid-template-columns: 1fr; }
  .principle { min-height: 240px; }
  .report-card { min-height: 285px; }
  .archive-note { padding: 2rem 1.4rem; }
  .footer-shell { flex-direction: column; gap: 1rem; }
  .report-toolbar { top: 64px; }
  .report-toolbar .shell { align-items: flex-start; }
  .redacted-label { padding: 1rem; }
  .redacted-label strong { font-size: 1.05rem; }
}

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