:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --paper-deep: #e8e4d8;
  --paper-light: #faf8f2;
  --ink: #17342d;
  --ink-soft: #35524a;
  --muted: #68766f;
  --line: #c9d0c6;
  --line-dark: #a9b4aa;
  --accent: #b45e3d;
  --accent-dark: #88452f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
}

body::before {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--ink);
  content: "";
}

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

a {
  color: inherit;
}

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

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
}

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

.brand:hover {
  color: var(--ink);
}

.brand img {
  border-radius: 9px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong,
.footer-brand {
  font-size: 1rem;
  letter-spacing: 0.015em;
}

.brand small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.primary-nav a,
.site-footer nav a {
  position: relative;
  text-decoration: none;
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: clamp(60px, 9vw, 118px);
  align-items: center;
  min-height: 690px;
  padding-block: 90px;
}

.eyebrow,
.note-kicker,
.article-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin: 22px 0 28px;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.lede {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.text-link,
.card-link {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link span,
.card-link span {
  display: inline-block;
  margin-left: 4px;
}

.field-card {
  position: relative;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--paper-deep);
}

.field-card::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 34px;
  content: "";
  pointer-events: none;
}

.field-card-top,
.field-card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b9c8c1;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-card p {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 70px;
  left: 28px;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
}

.field-card-bottom {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
}

.cedar-rings {
  position: absolute;
  top: 82px;
  right: -40px;
  width: 260px;
  height: 260px;
}

.cedar-rings span {
  position: absolute;
  border: 1px solid rgba(243, 240, 231, 0.22);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-13deg);
}

.cedar-rings span:nth-child(1) { inset: 0; }
.cedar-rings span:nth-child(2) { inset: 34px; }
.cedar-rings span:nth-child(3) { inset: 69px; }
.cedar-rings span:nth-child(4) { inset: 103px; }

.section {
  padding-block: 104px;
}

.section-featured,
.desk-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.section-heading h2,
.desk-grid h2,
.page-lead h1,
.archive-header h1 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-heading.compact h2 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.rule-mark {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
}

.featured-note {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 64px;
  padding: 52px 0 4px;
}

.featured-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.featured-body {
  max-width: 720px;
}

.featured-body h3 {
  margin: 14px 0 22px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.featured-body h3 a,
.note-card h3 a,
.archive-row h2 a {
  text-decoration: none;
}

.featured-body > p:not(.note-kicker) {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-dark);
}

.note-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 34px 34px 32px;
  border-right: 1px solid var(--line);
}

.note-card:first-child {
  padding-left: 0;
}

.note-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.note-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 54px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.note-card h3 {
  margin: 14px 0 18px;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.17;
}

.note-card > p:not(.note-kicker) {
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-link {
  margin-top: auto;
}

.mobile-link {
  display: none;
  margin-top: 28px;
}

.desk-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 140px);
  align-items: start;
}

.section-copy {
  max-width: 530px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.desk-list {
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.desk-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.desk-list dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.desk-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.site-footer {
  color: #dce4df;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 50px;
  align-items: start;
  min-height: 230px;
  padding-block: 58px;
}

.footer-brand {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #9fb0a8;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: start;
  gap: 14px 36px;
}

.site-footer nav a:hover {
  color: white;
}

.footer-note {
  justify-self: end;
  max-width: 190px;
  text-align: right;
}

/* 内页与文章页 */
.page-lead,
.archive-header {
  padding-block: 96px 72px;
  border-bottom: 1px solid var(--line-dark);
}

.page-lead .lede,
.archive-header .lede {
  margin-top: 24px;
}

.article-header {
  padding-block: 92px 70px;
  border-bottom: 1px solid var(--line-dark);
}

.article-header h1 {
  max-width: 920px;
  margin: 20px 0 30px;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

.article-deck {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.62;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 700px);
  gap: clamp(40px, 8vw, 110px);
  justify-content: center;
  padding-block: 76px 110px;
}

.article-aside {
  position: sticky;
  top: 28px;
  align-self: start;
  padding-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.6;
}

.article-aside p {
  margin: 0 0 16px;
}

.article-aside a {
  text-underline-offset: 4px;
}

.prose {
  font-size: 1.12rem;
  line-height: 1.82;
}

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

.prose p {
  margin: 0 0 1.45em;
}

.prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 6px 0 6px 28px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  font-size: 1.28rem;
  line-height: 1.55;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.65em;
  padding-left: 0.25em;
}

.prose hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

.note-end {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.archive-list {
  padding-block: 50px 110px;
}

.archive-year {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  padding-top: 40px;
}

.archive-year > h2 {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.archive-rows {
  border-top: 1px solid var(--line-dark);
}

.archive-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  gap: 24px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.archive-row time,
.archive-row .archive-topic {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.archive-row h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.archive-topic {
  justify-self: end;
  text-transform: uppercase;
}

.standard-page {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(50px, 10vw, 140px);
  padding-block: 72px 110px;
}

.standard-page aside {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.6;
}

.standard-page aside p {
  max-width: 210px;
  margin: 0;
}

.standard-content {
  max-width: 690px;
  font-size: 1.1rem;
  line-height: 1.78;
}

.standard-content h2 {
  margin: 2em 0 0.65em;
  font-size: 1.8rem;
  font-weight: 500;
}

.standard-content p {
  margin: 0 0 1.35em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 42px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.principles div {
  min-height: 150px;
  padding: 24px;
  background: var(--paper-light);
}

.principles strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.6;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4px);
  padding: 40px 24px;
  text-align: center;
}

.error-page .brand {
  justify-content: center;
  margin-bottom: 62px;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.error-page h1 {
  max-width: 700px;
  margin: 18px auto 24px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.error-page > div > p:not(.error-code) {
  max-width: 540px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 80px 100px;
  }

  .field-card {
    width: min(100%, 480px);
    min-height: 390px;
  }

  .featured-note,
  .desk-grid,
  .standard-page {
    grid-template-columns: 1fr;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card:first-child,
  .note-card:last-child {
    min-height: auto;
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .note-card:last-child {
    border-bottom: 0;
  }

  .note-card-meta {
    margin-bottom: 30px;
  }

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

  .article-aside {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .footer-note {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-block: 20px;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero {
    gap: 60px;
    padding-block: 64px 84px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .field-card {
    min-height: 350px;
    padding: 22px;
    box-shadow: 10px 10px 0 var(--paper-deep);
  }

  .field-card p,
  .field-card-bottom {
    right: 22px;
    left: 22px;
  }

  .section {
    padding-block: 76px;
  }

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

  .featured-note {
    gap: 34px;
    padding-top: 38px;
  }

  .featured-body h3 {
    font-size: 2.65rem;
  }

  .desktop-link {
    display: none;
  }

  .mobile-link {
    display: inline-block;
  }

  .desk-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .article-header,
  .page-lead,
  .archive-header {
    padding-block: 68px 54px;
  }

  .article-layout {
    padding-block: 56px 80px;
  }

  .prose {
    font-size: 1.04rem;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-topic {
    justify-self: start;
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .article-aside,
  .note-end {
    display: none;
  }

  body {
    background: white;
  }

  .article-layout {
    display: block;
    padding: 30px 0;
  }
}
