:root {
  --red: #ff2d22;
  --black: #0a0a0a;
  --paper: #f7f7f3;
  --line: #b9b9b4;
  --muted: #656560;
  --display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); font-family: var(--body); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.utility-bar { height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: var(--black); color: white; border-bottom: 1px solid #333; font-size: 11px; letter-spacing: .12em; }
.wordmark { font-family: Arial Black, var(--display); text-decoration: none; }
.edition { opacity: .7; }
.menu-toggle { justify-self: end; border: 0; background: none; color: white; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; display: none; }
.site-nav { height: 43px; display: flex; justify-content: center; gap: 42px; align-items: center; background: var(--black); color: white; font-size: 12px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--red); }

.masthead { position: relative; min-height: 285px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--red); border-bottom: 1px solid var(--black); }
.masthead h1 { margin: 0; font-family: Arial Black, var(--display); font-size: clamp(92px, 19vw, 285px); line-height: .75; letter-spacing: -.09em; transform: scaleX(.9); transform-origin: center; color: var(--black); white-space: nowrap; }
.masthead p, .masthead span { position: absolute; margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.masthead p { left: 24px; top: 22px; }
.masthead span { right: 24px; bottom: 18px; }
.ticker { display: flex; justify-content: center; gap: 0; min-height: 44px; border-bottom: 1px solid var(--black); background: white; overflow-x: auto; }
.ticker span { padding: 15px 28px 13px; border-left: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ticker span:last-child { border-right: 1px solid var(--line); }

.section-shell { padding: 54px 24px 70px; border-bottom: 1px solid var(--black); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 28px; border-top: 8px solid var(--black); border-bottom: 1px solid var(--black); padding: 10px 0 8px; }
.section-heading h2 { margin: 0; font-family: Arial Black, var(--display); font-size: clamp(35px, 5vw, 65px); letter-spacing: -.06em; line-height: .9; }
.section-heading > span { font-size: 11px; font-weight: 800; letter-spacing: .15em; }

.lead-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
.lead-story { min-width: 0; padding: 16px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.cover { position: relative; width: 100%; aspect-ratio: 1; padding: 19px; border: 0; color: white; text-align: left; overflow: hidden; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
.cover:hover { filter: saturate(1.15); }
.cover:focus-visible, .mini-cover:focus-visible, .filter:focus-visible, .open-detail:focus-visible { outline: 3px solid #3975ff; outline-offset: 3px; }
.cover strong { position: absolute; left: 8%; bottom: 7%; z-index: 2; font-family: Arial Black, var(--display); font-size: clamp(42px, 7vw, 115px); line-height: .78; letter-spacing: -.09em; }
.cover-kicker, .cover-index { position: absolute; z-index: 2; top: 19px; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.cover-kicker { left: 19px; }
.cover-index { right: 19px; }
.cover--silence { background: radial-gradient(circle at 64% 34%, rgba(255,255,255,.95) 0 1.5%, transparent 1.7%), radial-gradient(circle at 67% 36%, rgba(255,255,255,.25) 0 9%, transparent 9.3%), linear-gradient(135deg, #291358 0%, #40278b 41%, #eb5559 100%); }
.cover--silence::after { content: ""; position: absolute; width: 55%; height: 90%; right: -6%; bottom: -15%; border-radius: 50% 50% 20% 30%; background: rgba(4, 3, 20, .62); transform: rotate(-15deg); }
.cover--night { background: linear-gradient(160deg, #0b0c17, #121730 60%, #2d4a67); }
.cover--night::before { content: ""; position: absolute; inset: 9% 13%; border: 1px solid rgba(255,255,255,.35); box-shadow: 22px 22px 0 rgba(255,45,34,.85); }
.cover--demon { background: radial-gradient(circle at 52% 50%, #f8d69a 0 8%, transparent 8.5%), repeating-radial-gradient(circle at 52% 50%, transparent 0 12%, rgba(252,215,148,.32) 12.3% 12.8%, transparent 13% 18%), #3b130b; }
.cover--demon::after { content: "妖"; position: absolute; right: 7%; top: 13%; font-family: serif; font-size: clamp(70px, 11vw, 180px); color: rgba(255,226,173,.13); }
.lead-story:not(.lead-story--primary) .cover strong { font-size: clamp(38px, 4.4vw, 70px); }
.lead-copy { padding: 15px 2px 3px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lead-copy h3, .work-card h3 { margin: 0; font-family: Arial Black, var(--display); letter-spacing: -.045em; }
.lead-copy h3 { font-size: clamp(26px, 3vw, 48px); line-height: .94; }
.credit { margin: 8px 0; font-family: Georgia, "Songti SC", serif; font-size: 14px; }
.dek { margin: 14px 0; color: #353532; font-family: Georgia, "Songti SC", serif; font-size: 14px; line-height: 1.7; }
.text-link { border: 0; border-bottom: 1px solid; padding: 0 0 3px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.text-link:hover { color: var(--red); }

.section-heading--filters { align-items: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter { padding: 8px 13px; border: 1px solid var(--black); border-radius: 999px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.filter:hover, .filter.is-active { background: var(--black); color: white; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
.work-card { min-width: 0; padding: 14px 14px 23px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); background: var(--paper); }
.work-card[hidden] { display: none; }
.mini-cover { position: relative; display: block; width: 100%; aspect-ratio: 1; margin-bottom: 15px; padding: 16px; border: 0; overflow: hidden; background: #ddd; color: white; text-align: left; text-decoration: none; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.mini-cover:hover { transform: scale(.985); filter: contrast(1.08); }
.mini-cover span { position: absolute; z-index: 2; left: 16px; bottom: 14px; max-width: 82%; font-family: Arial Black, var(--display); font-size: clamp(25px, 3vw, 46px); line-height: .84; letter-spacing: -.07em; }
.mini-cover b { position: absolute; z-index: 3; right: 12px; top: 10px; font-size: 10px; letter-spacing: .12em; }
.mini-cover img { position: absolute; width: 180%; height: 180%; left: -40%; top: -40%; object-fit: cover; filter: grayscale(1) contrast(1.25); }
.mini-cover--silence { background: linear-gradient(135deg, #2b155a, #5040a5 48%, #e04a52); }
.mini-cover--night { background: linear-gradient(165deg, #070914, #202949); }
.mini-cover--xiang { background: linear-gradient(130deg, #25150d, #7a250d 54%, #d69d43); }
.mini-cover--jealousy { background: linear-gradient(120deg, #163029, #3b7156); }
.mini-cover--writing { background: repeating-linear-gradient(0deg, #ece8df 0 9%, #222 9.5% 10%, #ece8df 10.5% 19%); color: var(--black); }
.mini-cover--matrix { background: radial-gradient(circle, #ff3a2e 0 2%, transparent 2.3%), repeating-radial-gradient(circle, transparent 0 13%, #ff3a2e 13.2% 13.8%, transparent 14% 21%), #050505; }
.mini-cover--demon { background: radial-gradient(circle at center, #e8b664 0 7%, transparent 7.5%), repeating-radial-gradient(circle at center, transparent 0 14%, rgba(232,182,100,.6) 14.4% 15%, transparent 15.3% 22%), #351006; }
.mini-cover--overmind { background: linear-gradient(135deg, #020202 0 42%, #cdfb50 42% 46%, #171717 46% 100%); }
.mini-cover--image { background: #efefed; }
.mini-cover--trojan { background: linear-gradient(45deg, #ff342a 0 20%, #111 20% 80%, #ff342a 80%); }
.mini-cover--rules { background: linear-gradient(90deg, #f2e6c8 0 48%, #111 48% 52%, #f2e6c8 52%); color: #111; }
.mini-cover--career { background: conic-gradient(from 40deg, #e5322a, #141414, #ffb300, #141414, #e5322a); }
.mini-cover--data { background: linear-gradient(135deg, #104c72, #1aa1a8); }
.mini-cover--device { background: repeating-linear-gradient(135deg, #171717 0 12px, #3b3b3b 12px 13px); }
.mini-cover--collection { background: repeating-linear-gradient(90deg, #111 0 15%, #ff2d22 15% 16%, #111 16% 31%); }
.corner-mark::before,
.corner-mark::after { content: ""; position: absolute; z-index: 6; right: 0; top: 0; width: 62px; height: 62px; opacity: 0; transform: translate(10px, -10px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.corner-mark::before { background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner-mark::after { width: 48px; height: 48px; background: var(--red); clip-path: polygon(0 0, 100% 0, 69% 31%, 100% 31%, 100% 62%, 69% 62%, 100% 100%, 64% 100%, 30% 66%, 64% 66%, 64% 35%, 30% 35%, 64% 0); }
.corner-mark:hover::before,
.corner-mark:hover::after,
.corner-mark:focus-visible::before,
.corner-mark:focus-visible::after { opacity: 1; transform: translate(0, 0); }
.corner-mark:hover b,
.corner-mark:focus-visible b { opacity: 0; }
.work-card h3 { font-size: 24px; line-height: 1; }
.work-card > p:not(.eyebrow) { min-height: 44px; margin: 9px 0 15px; color: #444; font-family: Georgia, "Songti SC", serif; font-size: 13px; line-height: 1.6; }
.work-card > p.honor { min-height: 0; margin: -5px 0 15px; color: var(--red); font-family: var(--body); font-size: 10px; font-weight: 900; line-height: 1.4; }
.meta { display: block; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.is-archived .meta::before { content: "ARCHIVE · "; color: var(--red); }
.empty-state { padding: 40px; text-align: center; }
.read-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid; font-size: 10px; font-weight: 900; text-decoration: none; }
.read-link:hover { color: var(--red); }
.collection-card { background: #ecece6; }
.download-list { margin-top: 17px; border-top: 1px solid var(--black); }
.download-list a { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; text-decoration: none; }
.download-list a:hover { color: var(--red); padding-left: 5px; }
.download-list em { color: var(--muted); font-size: 9px; font-style: normal; letter-spacing: .08em; }

.about { display: grid; grid-template-columns: .8fr 2fr 1.2fr; align-items: end; gap: 28px; background: var(--black); color: white; }
.about-number { font-family: Arial Black, var(--display); font-size: clamp(130px, 20vw, 300px); line-height: .72; letter-spacing: -.12em; color: var(--red); }
.about-copy h2 { max-width: 760px; margin: 0; font-family: Arial Black, var(--display); font-size: clamp(35px, 5vw, 72px); line-height: .91; letter-spacing: -.06em; }
.about-copy > p:last-child { max-width: 640px; margin: 24px 0 0; color: #c7c7c2; font-family: Georgia, "Songti SC", serif; line-height: 1.8; }
.about-stats { display: grid; border-top: 1px solid #555; }
.about-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #555; }
.about-stats strong { font-size: 30px; }
.about-stats span { color: #aaa; font-size: 11px; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 24px; background: var(--red); }
footer div { display: flex; gap: 20px; align-items: baseline; }
footer strong { font-family: Arial Black, var(--display); font-size: 28px; }
footer span, footer a { font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.work-dialog { width: min(620px, calc(100% - 32px)); padding: 34px; border: 1px solid var(--black); background: var(--paper); color: var(--black); box-shadow: 18px 18px 0 var(--red); }
.work-dialog::backdrop { background: rgba(0,0,0,.78); }
.work-dialog h2 { margin: 0; font-family: Arial Black, var(--display); font-size: clamp(42px, 8vw, 84px); line-height: .85; letter-spacing: -.07em; }
.dialog-close { position: absolute; right: 15px; top: 10px; border: 0; background: none; font-size: 32px; cursor: pointer; }
.dialog-lead { margin: 24px 0; font-family: Georgia, "Songti SC", serif; font-size: 17px; line-height: 1.8; }
.work-dialog dl { margin: 0 0 28px; border-top: 1px solid; }
.work-dialog dl div { display: grid; grid-template-columns: 90px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.work-dialog dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.work-dialog dd { margin: 0; font-size: 13px; }
.download-button { display: inline-block; padding: 12px 18px; background: var(--black); color: white; font-size: 12px; font-weight: 800; text-decoration: none; }
.download-button:hover { background: var(--red); color: var(--black); }

@media (max-width: 980px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-story--primary { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr 2fr; }
  .about-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 680px) {
  .utility-bar { grid-template-columns: 1fr auto; padding: 0 15px; }
  .edition { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; height: auto; padding: 16px; flex-direction: column; gap: 16px; }
  .site-nav.is-open { display: flex; }
  .masthead { min-height: 180px; }
  .masthead h1 { font-size: 26vw; }
  .masthead p { left: 15px; top: 14px; }
  .masthead span { right: 15px; bottom: 12px; }
  .ticker { justify-content: flex-start; }
  .section-shell { padding: 38px 15px 54px; }
  .section-heading--filters { display: block; }
  .filters { margin-top: 15px; justify-content: flex-start; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story--primary { grid-column: auto; display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { padding: 10px 10px 19px; }
  .work-card h3 { font-size: 19px; }
  .mini-cover span { font-size: 23px; }
  .work-card > p:not(.eyebrow) { min-height: 0; }
  .about { grid-template-columns: 1fr; }
  .about-number { font-size: 180px; }
  .about-stats { grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  footer, footer div { align-items: flex-start; flex-direction: column; }
  .work-dialog { padding: 28px 22px; box-shadow: 8px 8px 0 var(--red); }
}

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