/* Hongxing Mahua | editorial film archive, 2026 */
:root {
  color-scheme: light;
  --paper: #f6f1e9;
  --ink: #22352f;
  --muted: #617069;
  --forest: #143f35;
  --line: #dfd8ca;
  --gold: #b97c40;
  --panel: #fffdf8;
  --shadow: 0 18px 55px rgba(29, 46, 38, .09);
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #b67a40;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  padding: 8px 14px;
  background: white;
}
.skip-link:focus {
  top: 10px;
}
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 85px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: .08em;
  font-size: 18px;
}
.brand-logo {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #efc58c;
  font-size: 23px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .20em;
  color: var(--muted);
  line-height: 1.3;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 21px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a[aria-current="page"] {
  color: var(--gold);
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero {
  background: #13382f;
  color: white;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  min-height: 500px;
}
.hero-copy {
  align-self: center;
  padding: 60px 56px 62px max(24px, calc((100vw - 1180px)/2));
}
.hero .eyebrow {
  color: #ecc695;
}
.hero h1 {
  margin: 22px 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 3.35vw, 58px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .03em;
}
.hero p {
  font-size: 15px;
  color: #d9e1da;
  max-width: 490px;
}
.hero-image {
  position: relative;
  min-height: 440px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  position: absolute;
  inset: 0;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #13382f 0%, transparent 29%);
  pointer-events: none;
}
.pill-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 23px;
  background: #ebc18d;
  border-radius: 24px;
  color: #263c31;
  font-weight: 800;
  font-size: 14px;
}
.intro {
  padding: 38px 0 18px;
}
.intro-bar {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 28px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}
.intro-bar strong {
  color: var(--forest);
  letter-spacing: .09em;
}
.intro-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.section-block {
  padding: 48px 0 30px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.section-head h2 {
  font-size: clamp(25px, 2.8vw, 36px);
  letter-spacing: .03em;
  line-height: 1.3;
  margin: 9px 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.category {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  padding: 23px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease;
}
.category:hover {
  transform: translateY(-4px);
  color: white;
}
.category::after {
  content: "";
  width: 170px;
  height: 170px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  position: absolute;
  right: -65px;
  top: -60px;
  box-shadow: 0 0 0 22px #ffffff12, 0 0 0 50px #ffffff07;
}
.category:nth-child(1) {
  background: #345b4a;
}
.category:nth-child(2) {
  background: #ad6b52;
}
.category:nth-child(3) {
  background: #3f5068;
}
.category:nth-child(4) {
  background: #806357;
}
.category-number {
  font: 700 12px Georgia,serif;
  letter-spacing: .16em;
  opacity: .8;
}
.category h3 {
  font-size: 23px;
  margin: 0;
  font-weight: 750;
}
.category p {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .86;
}
.editorial {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--forest);
  margin-top: 48px;
  border-radius: 24px;
  overflow: hidden;
  color: white;
}
.editorial img {
  width: 100%;
  height: 100%;
  min-height: 335px;
  object-fit: cover;
}
.editorial-content {
  padding: 42px 44px;
  align-self: center;
}
.editorial h2 {
  font: 700 clamp(25px, 3vw, 39px)/1.4 "Noto Serif SC", serif;
  margin: 10px 0;
}
.editorial p {
  color: #d2dfd7;
}
.editorial a {
  color: #e8c18c;
  font-weight: 700;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}
.story-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 22px rgba(42,51,44,.03);
  min-width: 0;
}
.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1d3333;
}
.story-card-content {
  padding: 19px 20px 23px;
}
.story-card h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 8px 0;
}
.story-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 8px 0 0;
}
.story-tag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.story-card a:hover h3 {
  color: #a97144;
}
.note {
  background: #e7e9df;
  border-radius: 20px;
  margin: 40px auto 68px;
  padding: 29px 36px;
}
.note h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.note p {
  margin: 0;
  color: #54675d;
  font-size: 14px;
}
.breadcrumb {
  padding: 24px 0 3px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-top {
  margin: 25px 0 32px;
  max-width: 820px;
}
.page-top h1 {
  font: 750 clamp(30px,4vw,47px)/1.4 "Noto Serif SC", serif;
  margin: 12px 0 15px;
}
.page-top p {
  color: var(--muted);
  font-size: 16px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 750px) minmax(210px, 1fr);
  gap: 44px;
  align-items: start;
}
.article-body {
  background: var(--panel);
  padding: 30px 34px 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}
.article-body .cover {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  object-fit: cover;
}
.article-body h2 {
  font: 700 23px/1.55 "Noto Serif SC", serif;
  margin: 38px 0 14px;
  color: var(--forest);
}
.article-body p {
  font-size: 15px;
  line-height: 2.15;
  margin: 14px 0;
}
.article-body ul {
  padding-left: 20px;
}
.article-body li {
  margin: 8px 0;
}
.sidebar {
  position: sticky;
  top: 24px;
  border-left: 1px solid var(--line);
  padding: 8px 0 10px 20px;
}
.sidebar h2 {
  font-size: 18px;
  margin: 0 0 15px;
}
.sidebar a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.article-related {
  margin: 30px 0 65px;
}
.article-related h2 {
  font-size: 24px;
}
.article-related .story-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.site-footer {
  background: #152f28;
  color: #dbe6df;
  padding: 45px 0 20px;
  margin-top: 62px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 35px;
}
.site-footer h2 {
  font-size: 20px;
  color: white;
  margin: 0 0 8px;
}
.site-footer p {
  font-size: 13px;
  color: #afc3b7;
  max-width: 550px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px 22px;
  font-size: 13px;
}
.copyright {
  border-top: 1px solid #ffffff24;
  margin-top: 27px;
  padding-top: 15px;
  font-size: 12px;
  color: #a2bbac;
}
@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px 0;
    gap: 15px;
  }
  .main-nav {
    justify-content: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding: 40px 25px;
  }
  .category-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .story-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
}
@media (max-width: 650px) {
  .container {
    width: min(100% - 30px, 1180px);
  }
  .brand {
    font-size: 16px;
  }
  .main-nav {
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    gap: 20px;
    scrollbar-width: thin;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    padding: 37px 22px 28px;
  }
  .hero h1 {
    font-size: clamp(31px, 8vw, 43px);
    margin: 12px 0;
  }
  .hero-image {
    min-height: 240px;
  }
  .hero-image img {
    position: absolute;
    object-position: 70% center;
  }
  .hero-image::after {
    background: linear-gradient(#13382f, transparent 30%);
  }
  .intro {
    padding: 18px 0 0;
  }
  .intro-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }
  .section-block {
    padding: 30px 0 14px;
  }
  .section-head {
    display: block;
  }
  .category-grid {
    gap: 10px;
  }
  .category {
    padding: 17px;
    min-height: 180px;
  }
  .category h3 {
    font-size: 19px;
  }
  .editorial {
    display: flex;
    flex-direction: column;
    margin-top: 27px;
  }
  .editorial img {
    min-height: 220px;
    max-height: 250px;
  }
  .editorial-content {
    padding: 25px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .story-card-content {
    padding: 16px 18px;
  }
  .story-card img {
    aspect-ratio: 16/9;
  }
  .page-top {
    margin: 20px 0;
  }
  .article-body {
    padding: 18px;
  }
  .article-body h2 {
    font-size: 20px;
  }
  .article-related .story-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .note {
    padding: 20px;
    margin-bottom: 30px;
  }
}
@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .category {
    transition: none;
  }
}

/* v2: layout safeguards and accessible navigation */
html {
  overflow-wrap: break-word;
}
body {
  min-width: 0;
}
.container, .hero-grid, .hero-copy, .story-grid, .story-card, .editorial-content {
  min-width: 0;
}
.story-card > a {
  display: block;
  height: 100%;
}
.story-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.main-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}
.article-body, .page-top {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .hero-image {
    height: 250px;
    min-height: 250px;
  }
  .hero-copy {
    padding-inline: 20px;
  }
  .hero h1 {
    overflow-wrap: anywhere;
  }
  .main-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .story-card img {
    aspect-ratio: 16 / 10;
  }
  .editorial img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }
  .brand small {
    letter-spacing: .08em;
  }
}
