:root {
  color-scheme: dark;
  --ink: #edf1e9;
  --muted: #b8c2b8;
  --paper: #173534;
  --paper-deep: #102929;
  --panel: #1c4140;
  --line: rgba(237, 241, 233, 0.17);
  --accent: #e5b365;
  --accent-bright: #f2c579;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(229, 179, 101, 0.09), transparent 26rem),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 18px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--accent-bright);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper);
  background: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.hero {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 690px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 58%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 29, 29, 0.9) 0%, rgba(9, 29, 29, 0.64) 40%, transparent 72%),
    linear-gradient(0deg, rgba(9, 29, 29, 0.75) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 105px 70px 170px;
}

.eyebrow,
.entry-meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 610px;
  margin: 0 0 32px;
  color: #d1d9d0;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button-solid {
  color: #173534;
  background: var(--accent);
}

.button:hover,
.button:focus-visible {
  color: #173534;
  background: var(--accent-bright);
}

.text-link,
.inline-link {
  color: var(--accent-bright);
  text-underline-offset: 4px;
}

.hero-meta {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  margin: 0;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  border: 1px solid rgba(237, 241, 233, 0.25);
  background: rgba(10, 31, 31, 0.7);
  backdrop-filter: blur(12px);
}

dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

dd {
  margin: 2px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
}

.journal,
.weather,
.about-teaser {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.journal {
  padding: 112px 0 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.035em;
}

.featured-entry {
  margin: 54px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  border: 1px solid var(--line);
}

.featured-image {
  min-height: 430px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.featured-copy {
  padding: 54px 46px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
}

h3 {
  margin-bottom: 16px;
  font-size: 29px;
  line-height: 1.38;
}

h3 a {
  text-decoration: none;
}

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

.featured-copy > p:not(.entry-meta) {
  margin: 0 0 26px;
  color: var(--muted);
}

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

.entry-grid article {
  min-height: 276px;
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--line);
}

.entry-grid article + article {
  padding-left: 32px;
}

.entry-grid article:last-child {
  border-right: 0;
}

.entry-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.weather {
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weather-heading > p:last-child {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
}

.weather > dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.weather > dl > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.weather dd {
  font-size: 20px;
}

.about-teaser {
  padding: 104px 0 116px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.about-teaser > div:last-child > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.page-shell,
.article-shell {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
}

.page-intro {
  max-width: 780px;
  padding: 100px 0 62px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1,
.article-header h1,
.error-page h1 {
  font-size: clamp(44px, 6vw, 70px);
}

.page-intro > p:last-child,
.article-deck {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.prose {
  padding: 58px 0 100px;
}

.prose section {
  max-width: 760px;
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child {
  border-bottom: 0;
}

.prose h2 {
  margin-bottom: 18px;
  font-size: 32px;
}

.prose p {
  color: #d0d9ce;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.95;
}

.article-header {
  max-width: 820px;
  padding: 92px 0 44px;
}

.article-image {
  width: calc(100% + 260px);
  max-width: none;
  height: 520px;
  margin-left: -130px;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 66px;
}

.field-note {
  margin: 38px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(229, 179, 101, 0.07);
}

.field-note p {
  margin-bottom: 0;
  font-size: 16px;
}

.article-nav {
  padding: 30px 0 88px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--accent-bright);
  text-underline-offset: 4px;
}

.error-page {
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.error-page > p:not(.eyebrow) {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
}

footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

.footer-brand {
  margin-bottom: 4px !important;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
}

footer nav {
  gap: 20px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
  }

  .hero-copy {
    padding: 82px 42px 190px;
  }

  .hero-meta {
    right: 24px;
    left: 24px;
    bottom: 24px;
    justify-content: space-between;
  }

  .featured-entry {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 360px;
  }

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

  .entry-grid article,
  .entry-grid article + article {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .entry-grid article:last-child {
    border-bottom: 0;
  }

  .weather,
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .article-image {
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 420px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .journal,
  .weather,
  .about-teaser,
  footer,
  .page-shell,
  .article-shell {
    width: min(100% - 32px, var(--max-width));
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    gap: 15px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 660px;
    margin-top: 16px;
  }

  .hero-copy {
    padding: 64px 26px 230px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-meta > div:last-child {
    display: none;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .journal {
    padding-top: 82px;
  }

  .featured-copy {
    padding: 36px 24px;
  }

  .featured-image {
    min-height: 260px;
  }

  .page-intro {
    padding-top: 72px;
  }

  .article-header {
    padding-top: 64px;
  }

  .article-image {
    height: 280px;
  }

  .article-nav {
    gap: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    gap: 18px;
    flex-direction: column;
  }
}

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

  .featured-image img {
    transition: none;
  }
}
