:root {
  color-scheme: light;
  --ink: #211f1b;
  --muted: #746f66;
  --paper: #f2efe8;
  --surface: #fbfaf6;
  --line: #d8d2c7;
  --clay: #b84d32;
  --clay-dark: #84331f;
  --moss: #596255;
  --radius: .35rem;
  --shadow: 0 1.5rem 4rem rgb(58 47 36 / 12%);
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 20rem; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--paper); line-height: 1.75; }
body, button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.site-container { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.narrow-container { width: min(100% - 3rem, 58rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--clay); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgb(251 250 246 / 94%); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 2rem; }
.site-brand { display: inline-flex; min-width: 0; align-items: center; gap: .9rem; font-weight: 760; letter-spacing: -.02em; }
.brand-name { overflow: hidden; max-width: 20rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-symbol { position: relative; display: grid; width: 2rem; height: 2rem; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.brand-symbol i:first-child { border-right: 1px solid var(--ink); background: var(--clay); }
.brand-symbol i:last-child { align-self: end; height: 58%; background: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { position: relative; padding: .45rem 0; color: #48443e; font-size: .92rem; font-weight: 650; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; transform: scaleX(0); transform-origin: left; background: var(--clay); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .7rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.nav-toggle > span:not(.visually-hidden) { display: block; height: 1px; margin: .35rem 0; background: currentColor; }

.hero-section { position: relative; padding: clamp(3rem, 7vw, 7rem) 0 clamp(4rem, 9vw, 9rem); overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-section::before { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 1px; content: ""; background: var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(20rem, 1.15fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 10ch; margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(3rem, 7.5vw, 7.2rem); font-weight: 600; letter-spacing: -.075em; line-height: .98; }
.hero-description { max-width: 32rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-rule { display: block; width: 5rem; height: .28rem; margin-top: 2.5rem; background: var(--clay); }
.cover-slot { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #cfc6b8; }
.cover-slot img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-slot:hover img { transform: scale(1.025); }
.cover-slot img.is-broken { display: none; }
.cover-fallback { position: absolute; inset: 0; background: linear-gradient(132deg, #d8d0c4 0 35%, #9f9283 35% 37%, #b9afa1 37% 68%, #6d7169 68%); }
.cover-fallback::before, .cover-fallback::after, .cover-fallback i { position: absolute; content: ""; border: 1px solid rgb(255 255 255 / 55%); }
.cover-fallback::before { inset: 10%; }
.cover-fallback::after { top: 10%; bottom: 10%; left: 50%; }
.cover-fallback i { top: 50%; right: 10%; left: 10%; }
.hero-media { box-shadow: var(--shadow); }
.hero-feature { position: absolute; z-index: 3; inset: 0; display: flex; align-items: end; color: #fff; }
.hero-feature::after { position: absolute; z-index: 3; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgb(24 23 20 / 82%)); }
.hero-caption { position: relative; z-index: 4; display: grid; gap: .3rem; width: 100%; padding: clamp(1rem, 3vw, 2rem); }
.hero-caption small { font-size: .72rem; letter-spacing: .12em; }
.hero-caption strong { max-width: 28rem; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.3; }

.home-sections { padding: clamp(4rem, 9vw, 9rem) 0; }
.home-section + .home-section { margin-top: clamp(5rem, 10vw, 10rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr); align-items: end; gap: 3rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.section-index { margin: 0 0 .5rem; color: var(--clay); font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .page-heading h1, .article-heading h1 { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.section-heading > p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.content-card { min-width: 0; }
.card-cover { aspect-ratio: 4 / 3; }
.card-body { padding: 1.25rem 0 0; }
.card-meta { margin: 0 0 .45rem; color: var(--clay); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.card-body h3, .list-card-body h2 { margin: 0; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 1.38rem; line-height: 1.35; }
.card-body > p:last-child, .list-card-body > p { margin: .8rem 0 0; color: var(--muted); font-size: .94rem; }
.section-link, .read-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--clay-dark); font-size: .9rem; font-weight: 760; }
.section-link span, .read-link span { transition: transform .2s ease; }
.section-link:hover span, .read-link:hover span { transform: translateX(.3rem); }

.page-main { padding: 1.25rem 0 clamp(5rem, 10vw, 9rem); }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--clay-dark); }
.page-heading { display: grid; max-width: 68rem; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); gap: 3rem; margin: clamp(3rem, 7vw, 7rem) 0 3rem; }
.page-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -1.5rem; }
.page-heading h1 { font-size: clamp(3rem, 7vw, 6.8rem); }
.page-heading > p:last-child { align-self: end; margin: 0; color: var(--muted); }
.list-grid { border-top: 1px solid var(--ink); }
.list-card { display: grid; grid-template-columns: minmax(16rem, .44fr) minmax(0, .56fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.list-cover { aspect-ratio: 16 / 10; }
.list-card-body { align-self: center; }
.list-card-body h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span { display: inline-grid; min-width: 2.7rem; min-height: 2.7rem; padding: .25rem .6rem; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.pagination a:hover, .pagination .active { border-color: var(--clay); color: var(--clay); }

.article-panel { background: var(--surface); }
.article-heading { padding: clamp(2rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.article-heading h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 5.5rem); }
.article-heading > p:last-child, .article-meta { color: var(--muted); }
.article-cover { width: calc(100% - clamp(2rem, 8vw, 7rem)); margin: clamp(1rem, 4vw, 3.5rem) auto 0; aspect-ratio: 16 / 9; }
.article-body { padding: clamp(2rem, 6vw, 5rem); color: #3f3b35; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(1.02rem, 1.6vw, 1.12rem); }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3 { margin: 2.2em 0 .8em; color: var(--ink); line-height: 1.35; }
.article-body p { margin: 1.25em 0; }
.article-body a { color: var(--clay-dark); text-decoration: underline; text-underline-offset: .2em; }
.article-body img, .article-inline-cover { width: 100%; aspect-ratio: 16 / 9; margin: 2rem 0; object-fit: cover; background: linear-gradient(135deg, #d8d0c4, #6d7169); }
.article-adjacent { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.article-adjacent > * { display: grid; gap: .35rem; min-width: 0; padding: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.article-adjacent > :last-child { border-left: 1px solid var(--line); text-align: right; }
.article-adjacent small { color: var(--clay); font-size: .7rem; letter-spacing: .12em; }
.article-adjacent strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-panel .article-heading { border-bottom-color: var(--ink); }

.site-footer { padding-top: clamp(4rem, 8vw, 7rem); background: #211f1b; color: #c9c1b5; }
.footer-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / 18%); }
.footer-kicker { margin: 0; color: #d97557; font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
.footer-name { max-width: 16ch; margin: 0; color: #fff; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; text-align: right; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 3rem; }
.footer-group h2 { margin: 0 0 1rem; color: #fff; font-size: .72rem; letter-spacing: .16em; }
.footer-group ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer-group li, .footer-group a { color: #c9c1b5; }
.footer-group a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgb(255 255 255 / 18%); font-size: .8rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 64rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .site-container, .narrow-container { width: min(100% - 1.25rem, 78rem); }
  .header-inner { min-height: 4.25rem; }
  .brand-name { max-width: 13rem; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: .625rem; left: .625rem; display: none; gap: 0; padding: .6rem; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .75rem; }
  .site-nav a::after { display: none; }
  .hero-section::before { display: none; }
  .hero-grid, .section-heading, .page-heading, .list-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.5rem; }
  .hero-copy h1 { font-size: clamp(2.8rem, 16vw, 5rem); }
  .hero-media { width: calc(100% - 1rem); margin-left: auto; }
  .section-heading, .page-heading { gap: 1rem; }
  .page-heading .eyebrow { margin-bottom: 0; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .list-card { gap: 1.2rem; }
  .article-heading h1 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .article-adjacent { grid-template-columns: 1fr; }
  .article-adjacent > :last-child { border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .footer-intro { display: grid; }
  .footer-name { text-align: left; }
}

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