/*
Theme Name: ShenBaiJin Evidence
Theme URI: http://www.shenbaijin.com/
Author: Codex
Description: A bespoke premium classic WordPress theme for shenbaijin.com.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: shenbaijin-evidence
*/

:root {
  --ink: #081116;
  --ink-2: #13262b;
  --paper: #f5f7f2;
  --paper-2: #e8eee8;
  --porcelain: #fbfcf8;
  --teal: #49c8bf;
  --teal-deep: #0a6c72;
  --brass: #c9aa6b;
  --coral: #cf4f5d;
  --muted: #687579;
  --line: rgba(8, 17, 22, .14);
  --line-dark: rgba(245, 247, 242, .18);
  --shadow: 0 26px 80px rgba(8, 17, 22, .18);
  --max: 1180px;
  --wide: 1360px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.66;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  background: var(--teal);
  color: var(--ink);
}

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--teal);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 850;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  border-bottom: 1px solid rgba(245, 247, 242, .16);
  background: rgba(8, 17, 22, .9);
  color: var(--porcelain);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(var(--wide), calc(100% - 36px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 200, 191, .7);
  background: rgba(73, 200, 191, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.brand-name small {
  margin-top: 4px;
  color: rgba(245, 247, 242, .62);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: rgba(245, 247, 242, .76);
  font-size: .9rem;
  font-weight: 760;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-color: var(--teal);
  color: var(--porcelain);
}

.site-main {
  overflow: clip;
}

.atlas-hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 104px), 860px);
  color: var(--porcelain);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.atlas-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  transform: scale(1.01);
}

.atlas-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 22, .92) 0%, rgba(8, 17, 22, .72) 38%, rgba(8, 17, 22, .28) 74%, rgba(8, 17, 22, .78) 100%),
    linear-gradient(180deg, rgba(8, 17, 22, .2) 0%, rgba(8, 17, 22, .84) 100%);
}

.atlas-hero__inner {
  width: min(var(--wide), calc(100% - 36px));
  min-height: calc(clamp(680px, calc(100svh - 104px), 860px) - 152px);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) 0 34px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(280px, 360px);
  gap: clamp(34px, 8vw, 120px);
  align-items: center;
}

.atlas-hero__copy {
  max-width: 760px;
}

.kicker,
.section-label,
.docket-label {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.atlas-hero h1,
.entry-header h1,
.archive-head h1 {
  margin: 0;
  font-size: clamp(4.8rem, 11vw, 9.8rem);
  line-height: .86;
  font-weight: 900;
  letter-spacing: 0;
}

.atlas-hero h1 {
  width: min-content;
  text-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

.hero-thesis {
  width: min(650px, 100%);
  margin: 26px 0 0;
  color: rgba(245, 247, 242, .86);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.74;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
}

.button.secondary {
  color: var(--porcelain);
  background: rgba(245, 247, 242, .06);
}

.atlas-hero__docket {
  align-self: end;
  border: 1px solid rgba(245, 247, 242, .18);
  background: rgba(8, 17, 22, .52);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.atlas-hero__docket dl {
  margin: 0;
}

.atlas-hero__docket div {
  padding: 18px 0;
  border-top: 1px solid rgba(245, 247, 242, .14);
}

.atlas-hero__docket dt {
  color: var(--brass);
  font-weight: 900;
  text-transform: uppercase;
}

.atlas-hero__docket dd {
  margin: 6px 0 0;
  color: rgba(245, 247, 242, .76);
}

.atlas-hero__index {
  width: min(var(--wide), calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(245, 247, 242, .18);
  background: rgba(8, 17, 22, .62);
  backdrop-filter: blur(12px);
}

.atlas-hero__index a {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid rgba(245, 247, 242, .16);
  transition: background .2s ease, color .2s ease;
}

.atlas-hero__index a:last-child {
  border-right: 0;
}

.atlas-hero__index a:hover {
  background: rgba(73, 200, 191, .12);
}

.atlas-hero__index strong {
  display: block;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .9;
  font-weight: 900;
}

.atlas-hero__index span {
  display: block;
  margin-top: 13px;
  color: rgba(245, 247, 242, .76);
  font-weight: 760;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}

.manifesto {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--coral);
}

.manifesto-copy p {
  margin: 0;
  max-width: 930px;
  font-size: clamp(1.7rem, 4vw, 3.55rem);
  line-height: 1.16;
  font-weight: 850;
}

.protocol-panel {
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.18;
  font-weight: 900;
}

.protocol-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.protocol-steps li {
  display: grid;
  grid-template-columns: 64px minmax(150px, .35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.protocol-steps span {
  color: var(--coral);
  font-weight: 900;
}

.protocol-steps strong {
  font-size: 1.12rem;
  font-weight: 900;
}

.protocol-steps p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.atlas-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.atlas-matrix a {
  min-height: 360px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--porcelain);
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.atlas-matrix a:nth-child(2) {
  background: #eef3ee;
}

.atlas-matrix a:hover {
  z-index: 1;
  transform: translateY(-6px);
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: var(--shadow);
}

.atlas-matrix span {
  color: var(--coral);
  font-weight: 900;
}

.atlas-matrix strong {
  display: block;
  margin-top: 56px;
  font-size: clamp(1.42rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  font-weight: 900;
}

.atlas-matrix em {
  display: block;
  margin-top: 16px;
  color: var(--teal-deep);
  font-style: normal;
  font-size: .9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.atlas-matrix a:hover em {
  color: var(--teal);
}

.atlas-matrix p {
  margin: auto 0 0;
  color: var(--muted);
}

.atlas-matrix a:hover p {
  color: rgba(245, 247, 242, .76);
}

.latest-docket {
  display: grid;
  grid-template-columns: minmax(260px, .38fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.docket-sticky {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  border-bottom: 2px solid var(--teal-deep);
  color: var(--teal-deep);
  font-weight: 900;
}

.docket-list {
  border-top: 1px solid var(--line);
}

.docket-item a {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.docket-number {
  color: var(--coral);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.docket-item time {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.docket-item h3 {
  margin-bottom: 10px;
}

.docket-item p {
  grid-column: 3;
  margin: 0;
  color: var(--muted);
}

.docket-item a:hover h3 {
  color: var(--teal-deep);
}

.method-band {
  background: var(--ink);
  color: var(--porcelain);
  border-top: 1px solid var(--line-dark);
}

.method-band__inner {
  width: min(var(--wide), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 128px) 0;
}

.method-band h2 {
  max-width: 950px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.method-grid p {
  margin: 0;
  min-height: 190px;
  padding: 28px;
  background: #0b171d;
}

.method-grid strong,
.method-grid span {
  display: block;
}

.method-grid strong {
  color: var(--brass);
  font-size: 1.2rem;
  font-weight: 900;
}

.method-grid span {
  margin-top: 18px;
  color: rgba(245, 247, 242, .72);
}

.site-footer {
  background: #050b0e;
  color: var(--porcelain);
  border-top: 1px solid var(--line-dark);
  padding: 54px 0;
}

.footer-inner {
  width: min(var(--wide), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) auto minmax(260px, .8fr);
  gap: 32px;
  align-items: start;
}

.footer-inner strong {
  font-size: 1.4rem;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(245, 247, 242, .66);
}

.footer-callout {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(73, 200, 191, .5);
  padding: 8px 14px;
  color: var(--teal);
  font-weight: 900;
}

.footer-nav a {
  color: rgba(245, 247, 242, .7);
  font-size: .9rem;
  font-weight: 760;
}

.surface-shell,
.archive-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 132px) 0;
}

.entry-header,
.archive-head {
  max-width: 980px;
  margin-bottom: clamp(38px, 6vw, 78px);
}

.entry-header h1,
.archive-head h1 {
  width: auto;
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .94;
}

.entry-content {
  color: #1f3035;
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.86;
}

.entry-content > * {
  max-width: 760px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.1em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.4em;
  margin-bottom: .55em;
}

.entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.entry-content h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.entry-content a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.entry-content img {
  height: auto;
  margin: 28px 0;
}

.evidence-layout,
.paper-columns {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
}

.reading-rail {
  position: sticky;
  top: calc(var(--header) + 34px);
  border-top: 3px solid var(--coral);
  padding-top: 18px;
  color: var(--muted);
}

.reading-rail strong,
.reading-rail span {
  display: block;
}

.reading-rail strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.reading-rail span {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.post-nav {
  margin-top: 54px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.post-nav span {
  max-width: 46%;
}

.archive-head div,
.archive-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.evidence-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.evidence-list li {
  border-bottom: 1px solid var(--line);
}

.evidence-list article {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
}

.evidence-list time {
  color: var(--coral);
  font-weight: 900;
}

.evidence-list h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.evidence-list p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  margin-top: 36px;
  font-weight: 850;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

@media (max-width: 980px) {
  .admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav ul {
    gap: 12px 16px;
  }

  .site-nav a {
    min-height: 32px;
    font-size: .84rem;
  }

  .atlas-hero {
    min-height: auto;
  }

  .atlas-hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 28px;
  }

  .atlas-hero__docket {
    max-width: 520px;
  }

  .atlas-hero__index,
  .atlas-matrix,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-hero__index a:nth-child(2) {
    border-right: 0;
  }

  .atlas-hero__index a:nth-child(-n+2) {
    border-bottom: 1px solid rgba(245, 247, 242, .16);
  }

  .manifesto,
  .protocol-panel,
  .section-head,
  .latest-docket,
  .footer-inner,
  .evidence-layout,
  .paper-columns {
    grid-template-columns: 1fr;
  }

  .docket-sticky,
  .reading-rail {
    position: static;
  }

  .footer-callout {
    width: max-content;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 68px;
  }

  .header-inner,
  .section,
  .surface-shell,
  .archive-shell,
  .method-band__inner,
  .footer-inner,
  .atlas-hero__inner,
  .atlas-hero__index {
    width: min(100% - 28px, var(--max));
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name strong {
    font-size: 1rem;
  }

  .site-nav li:nth-child(n+5) {
    display: none;
  }

  .atlas-hero__image {
    object-position: 55% center;
    opacity: .72;
  }

  .atlas-hero__veil {
    background: linear-gradient(180deg, rgba(8, 17, 22, .94) 0%, rgba(8, 17, 22, .74) 46%, rgba(8, 17, 22, .95) 100%);
  }

  .atlas-hero h1 {
    font-size: clamp(4.3rem, 23vw, 6.2rem);
  }

  .hero-thesis {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .atlas-hero__docket {
    padding: 22px;
  }

  .atlas-hero__index,
  .atlas-matrix,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .atlas-hero__index a {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 247, 242, .16);
  }

  .atlas-hero__index a:last-child {
    border-bottom: 0;
  }

  .manifesto-copy p {
    font-size: clamp(1.9rem, 11vw, 2.6rem);
  }

  .protocol-steps li,
  .docket-item a,
  .evidence-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .docket-item p {
    grid-column: auto;
  }

  .atlas-matrix a {
    min-height: 280px;
  }

  .atlas-matrix strong {
    margin-top: 36px;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav span {
    max-width: none;
  }
}
