:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e2d5;
  --ink: #17221d;
  --muted: #667069;
  --line: #bcc2b7;
  --accent: #d45d35;
  --accent-dark: #a84020;
  --sage: #98a99e;
  --white: #fffdf7;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 620px), rgba(23, 34, 29, .07) calc(50% - 620px), rgba(23, 34, 29, .07) calc(50% - 619px), transparent calc(50% - 619px)),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

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

.site-header {
  width: min(calc(100% - 48px), var(--page));
  margin: 24px auto 0;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-top: 7px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.045em;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.edition {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.edition span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
}

.nav-row {
  display: flex;
  min-height: 54px;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--white);
}

.primary-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: stretch;
}

.primary-nav a {
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:first-child {
  padding-left: 22px;
}

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

.nav-note {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.layout {
  width: min(calc(100% - 48px), var(--page));
  margin: 34px auto 72px;
}

.home-layout,
.category-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.side-rail {
  position: sticky;
  top: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rail-nav {
  border-top: 2px solid var(--ink);
}

.rail-nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.rail-nav small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rail-note {
  margin-top: 20px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 253, 247, .6);
  font-size: 13px;
}

.rail-note strong {
  display: block;
  margin-bottom: 5px;
}

.rail-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, .75fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}

.lead-story h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 720;
  letter-spacing: -.06em;
  line-height: .98;
}

.lead-story h1 a {
  text-decoration: none;
}

.lead-image {
  display: block;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--ink);
}

.lead-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform .45s ease;
}

.lead-image:hover img {
  transform: scale(1.02);
}

.dek {
  max-width: 750px;
  margin: 0 0 18px;
  color: #404b45;
  font-size: 18px;
  line-height: 1.65;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.story-meta a {
  color: var(--accent-dark);
}

.picks {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.picks ol {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.picks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(23, 34, 29, .3);
}

.picks li span {
  color: var(--accent-dark);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.picks li a {
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
  text-decoration: none;
}

.picks-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.latest-section,
.category-strip {
  padding: 45px 0;
  border-bottom: 1px solid var(--ink);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.section-heading > a,
.section-heading > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.edition-count {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 20px;
}

.all-grid {
  row-gap: 42px;
}

.story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.story-image {
  display: block;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.story-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
  transition: transform .4s ease;
}

.story-image:hover img {
  transform: scale(1.035);
}

.story-card .story-meta {
  justify-content: space-between;
}

.story-card h2 {
  margin: 8px 0 9px;
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1.32;
}

.story-card h2 a {
  text-decoration: none;
}

.story-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.story-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.story-card.compact h2 {
  font-size: 18px;
}

.category-description {
  max-width: 660px;
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.method-banner {
  margin: 45px 0 0;
  padding: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.method-banner h2 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: -.05em;
}

.method-banner > p:not(.eyebrow) {
  max-width: 680px;
  color: #dfe4dd;
}

.method-banner a {
  display: inline-block;
  margin-top: 8px;
  color: #edb39f;
  font-weight: 750;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  font-weight: 700;
}

.category-page,
.about-page {
  width: min(calc(100% - 48px), var(--page));
  margin: 36px auto 72px;
}

.page-intro {
  max-width: 840px;
  padding: 36px 0 45px;
}

.page-intro h1,
.about-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -.07em;
  line-height: .95;
}

.page-intro > p:last-child,
.about-hero > p:last-child {
  max-width: 720px;
  color: #405049;
  font-size: 19px;
}

.category-layout {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.article-layout {
  display: grid;
  width: min(calc(100% - 48px), 1320px);
  grid-template-columns: 190px minmax(0, 760px) 230px;
  gap: 38px;
  align-items: start;
  margin: 42px auto 90px;
}

.article-index,
.article-margin {
  position: sticky;
  top: 20px;
}

.article-index nav {
  display: grid;
  border-top: 2px solid var(--ink);
}

.article-index a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.article-index a:hover,
.article-index a.is-active {
  color: var(--accent-dark);
  font-weight: 750;
}

.article-body {
  min-width: 0;
}

.article-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--ink);
}

.article-header h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 720;
  letter-spacing: -.06em;
  line-height: 1.05;
}

.article-hero {
  margin: 26px 0 32px;
}

.article-hero img {
  border: 1px solid var(--ink);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-hero figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.article-body > section {
  padding: 25px 0 12px;
  scroll-margin-top: 24px;
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: 30px;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.article-body p {
  margin: 0 0 19px;
  font-size: 17px;
  line-height: 1.9;
}

.check-list,
.step-list,
.margin-card ol {
  padding-left: 22px;
}

.check-list li,
.step-list li,
.margin-card li {
  margin-bottom: 9px;
  padding-left: 5px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  background: var(--paper-deep);
}

tr:last-child td {
  border-bottom: 0;
}

.source-note {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .6);
  font-size: 13px;
}

.source-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.article-next {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.article-next .story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-next .story-card > p {
  display: none;
}

.margin-card {
  margin-bottom: 20px;
  padding: 17px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 13px;
}

.margin-card p,
.margin-card li {
  line-height: 1.55;
}

.margin-card ol {
  margin: 0;
  padding-left: 19px;
}

.margin-card a {
  color: var(--accent-dark);
}

.about-hero {
  padding: 54px 0 45px;
  border-bottom: 1px solid var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-grid section {
  padding: 38px 34px 38px 0;
  border-bottom: 1px solid var(--line);
}

.about-grid section:nth-child(odd) {
  padding-right: 45px;
  border-right: 1px solid var(--line);
}

.about-grid section:nth-child(even) {
  padding-left: 45px;
}

.about-grid h2 {
  margin: 0 0 16px;
  font-size: 30px;
  letter-spacing: -.04em;
  line-height: 1.2;
}

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

.site-footer {
  padding: 44px 24px 28px;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  width: min(100%, var(--page));
  grid-template-columns: 1.45fr .8fr .9fr 1fr;
  gap: 42px;
  margin: 0 auto;
}

.footer-grid h2 {
  margin: 0 0 13px;
  font-size: 27px;
  letter-spacing: -.04em;
}

.footer-grid p:not(.eyebrow),
.footer-grid li {
  color: #bcc8bf;
  font-size: 13px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 7px;
}

.footer-grid .eyebrow {
  color: #edab94;
}

@media (max-width: 1080px) {
  .home-layout,
  .category-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
  }

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

  .article-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .article-margin {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
    font-size: 16px;
  }

  .site-header,
  .layout,
  .category-page,
  .about-page,
  .article-layout {
    width: min(calc(100% - 28px), var(--page));
  }

  .site-header {
    margin-top: 12px;
  }

  .masthead {
    padding: 15px 0;
    border-top-width: 5px;
  }

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

  .brand strong {
    font-size: 23px;
  }

  .edition {
    display: none;
  }

  .nav-row {
    min-height: 50px;
  }

  .menu-toggle {
    display: block;
    width: 72px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 119px;
    left: 14px;
    z-index: 20;
    width: calc(100% - 28px);
    padding: 8px;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 8px 8px 0 var(--sage);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-note {
    margin-left: auto;
    font-size: 10px;
  }

  .layout,
  .category-page,
  .about-page {
    margin-top: 22px;
  }

  .home-layout,
  .category-layout {
    display: block;
  }

  .side-rail {
    position: static;
    margin-bottom: 26px;
  }

  .rail-nav {
    display: flex;
    overflow-x: auto;
    gap: 0;
  }

  .rail-nav a {
    min-width: max-content;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-top: 0;
  }

  .rail-nav small {
    display: none;
  }

  .rail-note {
    display: none;
  }

  .opening {
    display: block;
    padding-bottom: 30px;
  }

  .lead-story h1,
  .article-header h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.03;
  }

  .picks {
    margin-top: 28px;
  }

  .latest-section,
  .category-strip {
    padding: 34px 0;
  }

  .story-grid,
  .article-next .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .category-description {
    margin-top: -8px;
  }

  .method-banner {
    padding: 24px 20px;
  }

  .method-banner h2 {
    font-size: 32px;
  }

  .page-intro {
    padding: 24px 0 32px;
  }

  .page-intro h1,
  .about-hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .about-hero h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .article-layout {
    display: block;
    margin-top: 24px;
  }

  .article-index {
    display: none;
  }

  .article-header h1 {
    margin-top: 10px;
  }

  .article-body p {
    font-size: 16px;
    line-height: 1.85;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-hero {
    margin: 20px 0 24px;
  }

  .article-next .story-card:nth-child(n + 3) {
    display: none;
  }

  .about-hero {
    padding-top: 32px;
  }

  .about-grid {
    display: block;
  }

  .about-grid section,
  .about-grid section:nth-child(odd),
  .about-grid section:nth-child(even) {
    padding: 28px 0;
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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