:root {
  --ink: #192432;
  --muted: #506071;
  --blue: #235bc6;
  --line: #d8dfe6;
  --wash: #eff4f6;
  --paper: #fff;
  --bound: 1296px;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 1.2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex: none; }
[hidden] { display: none !important; }
::selection { background: #d2e5ff; color: #102449; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.bound { width: min(var(--bound), 91%); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 15; padding: .6rem 1rem; background: #fff; color: var(--ink); }
.skip:focus { top: 1rem; }
.mast { background: #fff; position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand-symbol { width: 2.85rem; height: auto; }
.brand-type { width: 6.3rem; height: auto; }
.main-nav, .tools { display: flex; align-items: center; }
.main-nav { align-self: stretch; align-items: stretch; gap: clamp(1.7rem, 3.5vw, 3.2rem); }
.main-nav a { display: flex; align-items: center; position: relative; font-size: .96rem; font-weight: 550; }
.main-nav a[aria-current], .main-nav a:hover, .tools a:hover, .tools button:hover { color: var(--blue); }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: .69rem; left: 0; right: 0; height: 2px; background: var(--blue); }
.tools { gap: .62rem; }
.icon-button { display: inline-grid; place-items: center; padding: .49rem; border-radius: 3px; }
.icon-button:hover { background: #eef3fa; }
.admin-link, .small-button, .hero-button, .reader-actions { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.admin-link { font-size: .9rem; border-left: 1px solid var(--line); padding-left: .9rem; }
.admin-link svg { width: 1.03rem; }
#menu-button, #mobile-nav { display: none; }

.hero, .topic-lead { background: var(--wash); border-bottom: 1px solid #dfe6eb; }
.hero-spread { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: stretch; gap: clamp(1.8rem, 3.2vw, 3.5rem); padding-block: clamp(1.7rem, 2.5vw, 2.7rem); }
.hero-copy, .topic-heading { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: .76rem; font: 600 .82rem/1.5 var(--sans); letter-spacing: .13em; color: var(--blue); }
.eyebrow::before { content: ""; display: block; background: var(--blue); width: 1.9rem; height: 2px; }
.eyebrow > span { display: none; }
.hero-copy h1, .topic-heading h1, .utility h1, .reader h1 { font-family: var(--serif); }
.hero-copy h1 { font-size: clamp(2.75rem, 5.1vw, 5.05rem); font-weight: 650; line-height: 1.34; letter-spacing: .02em; margin: .84rem 0 0; }
.hero-button { margin-top: clamp(1.2rem, 2vw, 1.85rem); background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 3px; padding: .63rem 1.08rem; font-size: .92rem; font-weight: 550; }
.hero-button:hover { background: #194ba9; border-color: #194ba9; }
.hero-button svg { width: 1.1rem; height: 1.1rem; }
.hero-photo { overflow: hidden; background: #d3dce1; }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 1.86; object-fit: cover; object-position: 64% 47%; }
.explore, .listing { padding-block: clamp(1.8rem, 2.9vw, 2.8rem) 3rem; }
.section-heading { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1.15rem; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-heading h2 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.4; letter-spacing: .04em; font-weight: 650; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.05rem, 2vw, 1.7rem); }
.topic-card { display: block; min-width: 0; }
.card-photo { width: 100%; aspect-ratio: 2.18; overflow: hidden; background: #e1e6e9; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .28s ease; }
.topic-card:hover img { transform: scale(1.035); }
.topic-card:hover h3 { color: var(--blue); }
.card-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .72rem; padding: .74rem 0 0; }
.card-text h3 { font: 650 clamp(1.42rem, 1.95vw, 1.84rem)/1.36 var(--serif); letter-spacing: .045em; }
.card-text span { color: #4e657c; font: 500 .81rem/1.5 var(--sans); letter-spacing: .07em; }
.card-text p { width: 100%; color: var(--muted); font-size: 1rem; line-height: 1.65; margin-top: .34rem; }
.latest { padding-bottom: 3rem; }
.live-note { padding-bottom: 1.5rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); background: #f5f7f8; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.35rem; padding-block: 1.65rem; }
.footer-brand { font: 700 1.06rem/1.5 Arial, sans-serif; letter-spacing: .055em; }
.footer-brand span { display: inline-block; font: 400 .86rem var(--sans); color: var(--muted); margin-left: .8rem; padding-left: .8rem; border-left: 1px solid #bac5ce; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .89rem; color: #4c5865; }
footer a:hover, .back-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.topic-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 1.8rem; align-items: stretch; }
.topic-spread img { width: 100%; height: 15.5rem; object-fit: cover; }
.topic-heading h1, .utility h1 { font-size: clamp(2.45rem, 3.9vw, 3.8rem); font-weight: 650; margin: .4rem 0 .5rem; line-height: 1.28; }
.topic-heading > p:last-child, .subtle, .notice, .empty-text { color: var(--muted); }
.listing { min-height: 41vh; }
.blank-state { padding: 2.65rem 1rem; background: #f7f9fb; color: var(--muted); text-align: center; }
.blank-state > svg { width: 1.65rem; height: 1.65rem; color: #566d86; }
.blank-state h2 { font-size: 1.05rem; font-weight: 500; margin: .37rem 0 .7rem; }
.small-button { background: #fff; color: #254d83; border: 1px solid #a6b9d0; border-radius: 3px; padding: .5rem .85rem; font-size: .9rem; }
.small-button:hover { background: #eaf1fb; border-color: #709ada; }
.small-button svg { width: 1rem; height: 1rem; }
.entry { display: flex; align-items: baseline; gap: 1.15rem; border-bottom: 1px solid var(--line); padding: 1.1rem 0; overflow-wrap: anywhere; }
.entry-topic, .topic-pill { color: var(--blue); font-size: .85rem; white-space: nowrap; }
.entry-copy { flex: 1; }
.entry-title { font-weight: 600; font-size: 1.17rem; line-height: 1.5; }
.entry:hover .entry-title, .entry-title a:hover { color: var(--blue); }
.entry-summary { color: var(--muted); font-size: 1rem; margin-top: .22rem; }
.entry time, .reader time { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.utility { min-height: 65vh; padding-block: 3.2rem; }
.utility > h1 { margin: .8rem 0; }
.utility .entries { margin-top: 1.5rem; }
.utility .small-button { margin-top: 1rem; }
.reader { max-width: 780px; min-height: 65vh; padding-block: 3rem; }
.reader-head { display: flex; gap: 1rem; align-items: center; }
.topic-pill { border: 1px solid #b9c9dc; border-radius: 2px; padding: .12rem .45rem; }
.reader h1 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.4; margin: 1rem 0; overflow-wrap: anywhere; }
.standfirst { color: var(--muted); font-size: 1.14rem; white-space: pre-line; }
.reader-actions { margin: 1.35rem 0; }
.article-body { border-top: 1px solid var(--line); padding-top: .5rem; }
.article-body p { margin: 1.05rem 0; font-size: 1.08rem; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-top: 1.35rem; color: var(--blue); font-size: .95rem; }
button[aria-pressed=true] svg { color: var(--blue); fill: #bbd5ff; }
dialog { color: var(--ink); background: #fff; border: 1px solid #c6d3df; max-width: calc(100% - 2rem); width: 38rem; max-height: 80dvh; border-radius: 5px; margin: 11vh auto auto; padding: 1.45rem; box-shadow: 0 15px 85px #15283c42; }
dialog::backdrop { background: #13233475; }
.dialog-head, .search-field { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.dialog-head h2 { font-size: 1.42rem; }
.search-field { margin: 1rem 0; padding: .6rem .75rem; border: 1px solid #9eafbf; border-radius: 3px; background: #fafcfd; }
.search-field:focus-within { border-color: var(--blue); }
.search-field input { font: inherit; flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: 0; }
#result-count { color: var(--muted); font-size: .9rem; margin: .65rem 0; }
.utility article.entry, #search-results article.entry { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: center; }
.entry > p.entry-summary { grid-column: 2/-1; }
.saved-remove { word-break: keep-all; color: var(--blue); font-size: .84rem; padding: .2rem; grid-row: 1; grid-column: 3; }
.saved-remove:hover { text-decoration: underline; }
.notice, .empty-text { padding: .85rem 0; }
#toast { position: fixed; z-index: 10; bottom: 1.2rem; left: 50%; transform: translateX(-50%); opacity: 0; background: #23394e; color: white; padding: .55rem .95rem; border-radius: 3px; font-size: .9rem; pointer-events: none; }
#toast.show { opacity: 1; }

@media (max-width: 1020px) {
  .hero-spread { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 1.55rem; }
  .hero-photo img { aspect-ratio: 1.5; }
  .hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 3.5rem); }
  .card-text { gap: .2rem .55rem; }
}
@media (max-width: 720px) {
  .bound { width: calc(100% - 2.4rem); }
  .mast-inner { height: 3.85rem; gap: 1rem; }
  .brand-symbol { width: 2.3rem; }
  .brand-type { width: 5.1rem; }
  .brand { gap: .35rem; }
  .main-nav, .tools .admin-link { display: none; }
  #menu-button { display: inline-grid; }
  .tools { gap: .15rem; }
  .icon-button { min-width: 2.4rem; min-height: 2.4rem; }
  #mobile-nav:not([hidden]) { display: flex; flex-wrap: wrap; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-block: 1px solid var(--line); padding: .5rem .9rem; box-shadow: 0 6px 12px #111c2c14; }
  #mobile-nav a { padding: .44rem .66rem; }
  #mobile-nav [aria-current] { color: var(--blue); }
  .hero-spread, .topic-spread { grid-template-columns: 1fr; gap: 1.35rem; padding: 1.8rem 0 1.35rem; }
  .hero-copy h1 { font-size: clamp(2.7rem, 9vw, 3.9rem); margin: .52rem 0 0; }
  .hero-button { margin-top: 1rem; }
  .hero-photo img { aspect-ratio: 1.95; object-position: 59% center; }
  .explore, .listing { padding: 1.6rem 0 2.4rem; }
  .section-heading { margin-bottom: .95rem; }
  .topic-grid { grid-template-columns: 1fr; gap: 1.45rem; }
  .card-photo { aspect-ratio: 2.2; }
  .card-text { padding-top: .55rem; }
  .footer-inner { display: grid; gap: 1rem; padding-block: 1.5rem; }
  .topic-spread img { height: auto; aspect-ratio: 2.5; }
  .entry { gap: .65rem; }
  .entry time { display: none; }
  .entry-title { font-size: 1.07rem; }
  .reader, .utility { padding-block: 2rem; }
  .article-body p { font-size: 1rem; }
}
@media (max-width: 375px) {
  .bound { width: calc(100% - 1.8rem); }
  .hero-copy h1 { font-size: 2.55rem; }
  .tools { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
