:root {
  color-scheme: light;
  --bg: #fbfbf9;
  --paper: #ffffff;
  --ink: #181716;
  --muted: #68625d;
  --faint: #f0efeb;
  --line: #dedbd4;
  --accent: #a83b32;
  --accent-strong: #74251f;
  --teal: #176f69;
  --teal-soft: #e7f2ef;
  --gold: #b8842c;
  --shadow: 0 24px 70px rgba(37, 31, 25, 0.09);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(251, 251, 249, 0.94), rgba(247, 248, 246, 0.98)),
    linear-gradient(90deg, rgba(168, 59, 50, 0.04), transparent 38%, rgba(23, 111, 105, 0.05));
  color: var(--ink);
  line-height: 1.84;
  text-rendering: optimizeLegibility;
}

body.is-searching [data-search-item].is-hidden {
  display: none;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

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

.read-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(222, 219, 212, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(116, 37, 31, 0.24);
  background: #fff;
  color: var(--accent-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15px;
}

.brand-text small {
  max-width: 310px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 7px 10px;
  color: var(--muted);
  text-decoration: none;
}

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

.page-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 74px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 40px;
  align-items: end;
  padding: 26px 0 42px;
}

.home-hero__copy {
  max-width: 720px;
}

.home-hero__image {
  margin: 0;
}

.home-hero__image img,
.article-hero img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.home-hero__image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
}

h2 {
  margin-top: 44px;
  font-size: clamp(25px, 4vw, 34px);
}

h3 {
  margin-top: 22px;
  font-size: 21px;
}

.lede {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.75;
}

.search-box {
  margin-top: 28px;
}

.search-box input {
  width: min(100%, 640px);
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 14px 40px rgba(37, 31, 25, 0.06);
}

.search-box input:focus {
  outline: 2px solid rgba(23, 111, 105, 0.24);
  outline-offset: 2px;
  border-color: var(--teal);
}

.search-box--wide input {
  width: 100%;
}

.review-shelf,
.reader-header,
.related,
.site-footer {
  border-top: 1px solid var(--line);
}

.review-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  gap: 28px;
  align-items: end;
  padding-top: 34px;
}

.review-shelf h2 {
  margin-top: 0;
}

.review-shelf p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.shelf-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  padding: 18px 0 0 22px;
  border-left: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.shelf-stats strong {
  color: var(--accent-strong);
  font-size: 25px;
  line-height: 1;
}

.shelf-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feature-card,
.risk-panel,
.editor-checklist {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.feature-card h3,
.risk-item h3 {
  margin-top: 8px;
  font-size: 19px;
}

.feature-card p,
.risk-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-top: 0;
}

.section-link,
.button-link {
  color: var(--accent-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
}

.feature-card a,
.article-row a,
.compact-link,
.risk-item a {
  color: inherit;
  text-decoration: none;
}

.feature-card a:hover,
.article-row a:hover,
.compact-link:hover span,
.risk-item a:hover {
  color: var(--accent);
}

.article-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-row h3 {
  margin-top: 7px;
  font-size: clamp(20px, 3vw, 26px);
}

.article-row p:not(.row-meta) {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.article-row img {
  width: 138px;
  height: 92px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.row-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: var(--teal);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
}

.row-meta span::before,
.meta-line span::before {
  content: "/";
  margin-right: 9px;
  color: var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  margin-top: 62px;
  align-items: start;
}

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

.compact-list--dense .compact-link {
  padding-block: 12px;
}

.compact-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.compact-link span {
  color: var(--ink);
  font-weight: 700;
}

.compact-link small {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.risk-panel {
  padding: 22px;
}

.risk-panel h2 {
  margin-top: 0;
  font-size: 26px;
}

.risk-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.button-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--accent);
  text-decoration: none;
}

.reader-header {
  padding-top: 34px;
  padding-bottom: 28px;
}

.list-header {
  max-width: 820px;
}

.reader-header h1 {
  max-width: 900px;
  font-size: clamp(32px, 6vw, 58px);
}

.meta-line {
  margin-top: 18px;
  color: var(--muted);
}

.article-hero {
  margin: 10px 0 34px;
}

.article-hero img {
  max-height: 520px;
  object-fit: contain;
}

.reader-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 44px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.toc strong {
  color: var(--ink);
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.article-body {
  min-width: 0;
  font-size: 18px;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: #2b2926;
}

.article-body p {
  margin: 18px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
}

.review-note,
.jcp-signal-grid,
.editor-checklist {
  margin: 28px 0;
}

.review-note {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.review-note h2 {
  margin-top: 0;
}

.jcp-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.jcp-signal-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.jcp-signal-grid span {
  display: block;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

.jcp-signal-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.table-wrap {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
}

.table-wrap table,
.article-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

.table-wrap th,
.table-wrap td,
.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th,
.article-body th {
  background: #f7f7f4;
  color: var(--ink);
}

.editor-checklist {
  padding: 22px;
  background: var(--teal-soft);
}

.editor-checklist h2 {
  margin-top: 0;
  font-size: 25px;
}

.review-directory-row {
  border-bottom: 1px solid var(--line);
}

.review-directory-row a {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
}

.review-directory-row strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.review-directory-row span {
  color: var(--muted);
  line-height: 1.7;
}

.review-directory-row small {
  color: var(--teal);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.related {
  margin-top: 58px;
  padding-top: 8px;
}

.site-footer {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

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

.site-footer a {
  color: var(--accent-strong);
}

.site-footer span {
  margin: 0 8px;
  color: var(--line);
}

@media (max-width: 900px) {
  .site-top {
    display: grid;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    max-width: min(72vw, 420px);
  }

  .home-hero,
  .review-shelf,
  .two-column,
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 26px;
    padding-top: 18px;
  }

  .feature-list,
  .jcp-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-stats {
    padding-left: 0;
    border-left: 0;
  }

  .review-directory-row a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .review-directory-row small {
    white-space: normal;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 0;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1080px);
  }

  .site-top {
    padding-inline: 14px;
  }

  .site-nav {
    margin-inline: -4px;
  }

  h1,
  .reader-header h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .lede,
  .article-body {
    font-size: 16px;
  }

  .feature-list,
  .jcp-signal-grid,
  .toc {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row img {
    width: 100%;
    height: auto;
    max-height: 210px;
  }

  .section-head {
    display: block;
  }
}
