@font-face { font-family: Montserrat; src: url(assets/montserrat.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(assets/barlow-condensed.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Diary Sans SC"; src: url(assets/diary-sans-sc.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --paper: #141719;
  --ink: #f1eee9;
  --muted: #bcbfc1;
  --line: #dedee23b;
  --red: #fb897e;
  --action: #a83a33;
  --dark: #101214;
  --sans: "Arial", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: Montserrat, "Diary Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(18px, 4.2vw, 72px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 22px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: linear-gradient(140deg, #1417198a, #141719ea 75%), url(assets/control-atrium.webp) center 38% / cover; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
:focus-visible { outline: 2px solid #bd4035; outline-offset: 4px; }
.frame { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; transform: translateY(-160%); color: white; background: var(--action); padding: 8px 16px; }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); background: #0e1012cf; backdrop-filter: blur(10px); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; line-height: 1; }
.brand strong { display: block; font: 900 1.27rem/1 var(--display); letter-spacing: -.06em; }
.brand small { display: block; margin-top: 5px; font: 700 .75rem/1 var(--mono); letter-spacing: .025em; }
.brand-mark { display: block; width: 41px; height: 41px; flex: 0 0 41px; object-fit: cover; border: 1px solid var(--line); }
.top-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(17px, 3.2vw, 50px); font-weight: 700; font-size: .94rem; }
.top-nav a, .masthead-link, .site-footer nav a { transition: color .15s ease; }
.top-nav a:hover, .masthead-link:hover, .site-footer nav a:hover { color: var(--red); }
.masthead-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.masthead-link { font: 700 1rem var(--mono); letter-spacing: .06em; }
.language-switch { display: inline-flex; border: 1px solid var(--line); background: #171a1bbf; }
.language-switch button { background: transparent; border: 0; padding: 5px 9px; min-height: 34px; font-size: .875rem; white-space: nowrap; }
.language-switch button[aria-pressed="true"] { background: #e8dfd3; color: #22201f; font-weight: 700; }

.hero-wrap { padding-top: clamp(15px, 2vw, 29px); }
.hero { min-height: clamp(490px, 47vw, 650px); display: grid; align-items: end; position: relative; overflow: hidden; isolation: isolate; background: #212522; color: #f5f1e9; border: 1px solid var(--line); }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 54% 52%; }
.hero::after { content: ""; background: linear-gradient(90deg, #101311e8 0%, #121513aa 33%, #12151300 82%), linear-gradient(0deg, #101311bc 0%, transparent 50%); }
.hero-content { padding: clamp(30px, 5.25vw, 84px); padding-bottom: clamp(59px, 6.1vw, 94px); }
.eyebrow { color: var(--red); font: 700 1rem/1.3 var(--mono); letter-spacing: .12em; }
.hero-label { color: #f4eae0; display: flex; align-items: center; gap: 12px; }
.hero-label::before { content: ""; display: inline-block; flex: 0 0 23px; height: 3px; background: #e15c4e; }
.hero h1 { font: 900 clamp(4rem, 8.5vw, 8.6rem)/1.02 var(--display); letter-spacing: -.065em; margin: 13px 0 10px -.045em; max-width: 10ch; }
[lang="en"] .hero h1 { font-size: clamp(3rem, 7.25vw, 7.2rem); max-width: 12.5ch; }
.hero-period { color: #e15c4e; margin-left: .075em; }
.hero-lead { font-size: clamp(1.05rem, 1.65vw, 1.45rem); color: #e9e4d9; margin-bottom: 24px; }
.hero-credit { position: absolute; right: clamp(14px, 2.4vw, 36px); bottom: 18px; border-bottom: 1px solid #eee9dc83; color: #f5f1e9; font-size: .875rem; }
.hero-credit:hover { border-color: #f5f1e9; }
.button { display: inline-flex; min-height: 43px; width: fit-content; justify-content: center; align-items: center; border: 1px solid currentColor; padding: 8px 18px; white-space: nowrap; font-weight: 700; font-size: .94rem; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.red-button { color: white; background: var(--action); border-color: var(--action); }
.red-button:hover { background: #832118; border-color: #832118; }
.outline-button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link { width: fit-content; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.page-section { padding-block: clamp(45px, 6.5vw, 91px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: clamp(20px, 3vw, 35px); }
.section-heading h2 { font: 900 clamp(2.3rem, 4.35vw, 4.9rem)/1.12 var(--display); margin-top: 5px; letter-spacing: -.05em; }
.section-heading > p { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(15px, 2vw, 30px); }
.project-card figure { position: relative; background: #272a27; overflow: hidden; }
.project-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.project-card img, .journal-image img, .photo-button img { transition: transform .25s ease; }
.project-card a:hover img, .journal-image:hover img, .photo-button:hover img { transform: scale(1.035); }
.card-tag { position: absolute; top: 12px; left: 12px; background: #121416dd; color: var(--ink); border: 1px solid var(--line); padding: 3px 9px; font-size: .875rem; font-weight: 700; }
.project-card { border: 1px solid var(--line); background: #111316a8; }
.project-caption { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 14px 15px 12px; }
.project-caption h3 { font-size: clamp(1.45rem, 2.6vw, 2.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.045em; }
.project-caption h3 span { font-size: .65em; }
.project-caption p { color: var(--muted); margin-top: 5px; }
.project-caption time, .map-version { font: 700 1rem/1.4 var(--mono); letter-spacing: .055em; white-space: nowrap; }
.project-caption time { margin-top: 5px; }
.project-card a:hover h3 { color: var(--red); }

.journal-band { color: #edeae2; background: #11131698; border-block: 1px solid var(--line); }
.journal-band .section-heading, .journal-row { border-color: #6b6d65; }
.journal-feature { display: grid; grid-template-columns: 1.55fr 1fr; background: #202325bd; border: 1px solid var(--line); }
.journal-feature + .journal-feature { margin-top: clamp(15px, 2.6vw, 34px); }
.journal-image { display: block; overflow: hidden; }
.journal-image img { height: 100%; min-height: 300px; object-fit: cover; }
.journal-image.map-release-cover { display: grid; align-items: center; background: #121416; }
.journal-image.map-release-cover img { height: auto; min-height: 0; aspect-ratio: 16 / 9; object-fit: contain; }
.journal-copy { display: grid; justify-items: start; align-content: center; gap: 17px; padding: clamp(25px, 4vw, 68px); }
.journal-copy h3 { font: 850 clamp(1.7rem, 3.2vw, 3.5rem)/1.22 var(--display); letter-spacing: -.045em; }
.journal-copy > p:not(.eyebrow) { color: #cfcec5; max-width: 25em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.compact-filters { margin-bottom: 0; }
.filters button, .lightbox-controls button, .lightbox-close { border: 1px solid var(--line); background: transparent; padding: 5px 12px; min-height: 42px; font-size: .94rem; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.photo-button { text-align: left; display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.photo-clip { display: block; overflow: hidden; background: #272a27; }
.photo-button img { aspect-ratio: 16 / 10; object-fit: cover; }
.photo-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; padding-top: 6px; font-size: .875rem; }
.photo-caption span:last-child { color: var(--muted); }
.album-filter { border: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); background: #151719c7; }
.album-filter-summary { min-height: 108px; display: grid; grid-template-columns: clamp(110px, 17vw, 225px) 1fr auto; align-items: stretch; list-style: none; cursor: pointer; border-inline-start: 3px solid var(--red); background: linear-gradient(105deg, #20242562, #101214ba); }
.album-filter-summary::-webkit-details-marker { display: none; }
.album-filter-summary:hover { background-color: #34323266; }
.album-filter-cover { position: relative; overflow: hidden; background: #211f20; }
.album-filter-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.album-filter-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, #15171994); }
.album-filter-identity { display: grid; align-content: center; justify-items: start; gap: 3px; padding: 15px clamp(13px, 2.4vw, 31px); min-width: 0; }
.album-filter-title { font: 850 clamp(1.25rem, 3vw, 2.45rem)/1.14 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.album-filter-count { font-size: .875rem; color: var(--muted); }
.album-filter-toggle { display: flex; align-items: center; gap: 11px; align-self: center; margin-inline-end: clamp(12px, 2.5vw, 31px); padding: 8px 12px; min-height: 42px; border: 1px solid var(--line); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.album-filter-summary:hover .album-filter-toggle, .album-filter[open] .album-filter-toggle { color: var(--red); border-color: currentColor; }
.album-toggle-icon { position: relative; display: inline-block; width: 13px; height: 13px; }
.album-toggle-icon::before, .album-toggle-icon::after { content: ""; position: absolute; inset-inline: 0; top: 6px; height: 1px; background: currentColor; }
.album-toggle-icon::after { transform: rotate(90deg); }
.album-close-label, .album-filter[open] .album-open-label, .album-filter[open] .album-toggle-icon::after { display: none; }
.album-filter[open] .album-close-label { display: inline; }
.album-filter-panel { max-height: min(63dvh, 550px); overflow: auto; padding: clamp(14px, 2.6vw, 30px); border-top: 1px solid var(--line); background: #080a0bb0; }
.album-reset { min-height: 38px; padding: 5px 13px; border: 1px solid var(--line); background: #131517; font-weight: 700; font-size: .875rem; }
.album-reset:hover, .album-reset[aria-pressed="true"] { color: var(--red); border-color: currentColor; }
.album-choice-group { margin-top: 17px; }
.album-choice-group .eyebrow { padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.album-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 222px), 1fr)); gap: 7px; margin-top: 8px; }
.album-choice { display: grid; grid-template-columns: 69px 1fr; align-items: stretch; min-height: 58px; padding: 0; border: 1px solid var(--line); border-inline-start-width: 2px; background: #24262979; text-align: start; }
.album-choice:hover, .album-choice[aria-pressed="true"] { background: #52332f75; border-inline-start-color: var(--red); }
.album-choice[aria-pressed="true"] .album-choice-text strong { color: var(--red); }
.album-choice-image { position: relative; overflow: hidden; background: #141618; }
.album-choice-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-choice-text { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 6px 9px; font-size: .875rem; line-height: 1.3; }
.album-choice-text strong { overflow-wrap: anywhere; }
.album-choice-text small { color: var(--muted); font-size: .81rem; }
.album-filter-panel :focus-visible { outline-offset: -2px; }
.gallery-album + .gallery-album { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.gallery-heading h2, .gallery-heading h3 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.2; }
.gallery-heading h3 a:hover { color: var(--red); }
.maps-section, .series-section { padding-top: 0; }
.map-row { display: grid; align-items: center; grid-template-columns: 1fr minmax(112px, .35fr) auto; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.map-row h3 { font-size: 1.25rem; line-height: 1.3; }
.map-row p, .modpack { color: var(--muted); }
.modpack { margin-top: 14px; }
.modpack a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.series-grid > div { background: #131517e8; padding: clamp(17px, 3vw, 40px); display: grid; align-content: start; gap: 11px; }
.series-grid h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 27px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 23px; font-size: .94rem; font-weight: 700; }

.detail-view { padding-block: clamp(24px, 5vw, 72px); min-height: 65vh; }
.detail-top { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 19px; }
.detail-view h1 { font: 900 clamp(2.4rem, 5.8vw, 6rem)/1.08 var(--display); letter-spacing: -.06em; margin: 9px 0 13px; }
.detail-intro { font-size: clamp(1.05rem, 1.75vw, 1.4rem); max-width: 36em; }
.detail-intro p + p { margin-top: .7em; }
.source-note { color: var(--muted); margin-top: 9px; font-size: .94rem; }
.detail-hero { margin: clamp(20px, 3.3vw, 45px) 0; }
.detail-hero img { aspect-ratio: 2 / 1; object-fit: cover; background: var(--dark); }
.project-card .map-release-cover img, .detail-hero.map-release-cover img { height: auto; aspect-ratio: 16 / 9; }
.detail-hero figcaption { padding-top: 7px; color: var(--muted); font-size: .875rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.detail-section { border-top: 1px solid var(--line); margin-top: clamp(29px, 5vw, 62px); padding-top: 16px; }
.detail-section h2, .article-body h2 { font-size: clamp(1.45rem, 2.8vw, 2.5rem); margin-bottom: 13px; line-height: 1.2; }
.article-body { width: min(100%, 780px); margin-inline: auto; }
.article-body > p { margin: 0 0 18px; }
.video-heading { margin: 34px 0 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 16px; }
.video-heading h3 { font: 800 clamp(1.25rem, 2.2vw, 1.7rem)/1.2 var(--display); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.video-card { min-width: 0; }
.video-card .project-caption h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -.015em; }
.video-card .project-caption p { font-size: .9rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
[lang="en"] .top-nav { gap: clamp(12px, 2vw, 30px); }
[lang="en"] .top-nav a { font: 700 1.06rem/1.25 var(--mono); text-transform: uppercase; white-space: nowrap; letter-spacing: .035em; }
.series-grid ul { margin: 0; padding-inline-start: 1.15em; }
.article-page .detail-top h1 { font-size: clamp(2.2rem, 5.4vw, 5.2rem); max-width: 20ch; }
.article-page .article-body { background: #101214d9; border: 1px solid var(--line); padding: clamp(17px, 4.1vw, 64px); width: min(100%, 970px); margin-top: clamp(24px, 4vw, 52px); }
.article-body .original-article { font-size: 1.0625rem; line-height: 1.85; overflow-wrap: anywhere; }
.original-article p { margin: .9em 0; }
.original-article h2, .original-article h3 { margin: 1.5em 0 .6em; }
.original-article a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.original-article figure { margin: 1.5rem 0; }
.original-article img { max-width: 100%; width: auto; height: auto; margin-inline: auto; }
.original-article figcaption { color: var(--muted); text-align: center; padding-top: 6px; font-size: .9rem; }
.article-notice { color: var(--muted); margin-bottom: 16px; }
.article-contents { border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 16px; }
.article-contents summary { font-weight: 700; cursor: pointer; }
.article-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 24px; padding-inline-start: 1.5em; }
.article-contents button { border: 0; background: transparent; color: var(--red); padding: 3px 0; text-align: start; }
.article-contents button:hover { text-decoration: underline; }
.article-meta { color: var(--muted); margin-top: 10px; }
.video-detail-image img { aspect-ratio: 16 / 9; }
.guide-clips, .guide-index ul { padding-inline-start: 1.2rem; }
.guide-clips a, .guide-index a { display: inline-block; margin-inline-end: .65em; }
.guide-index { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }

dialog { color-scheme: dark; color: #f4ede2; background: #171a18; border: 1px solid #777872; width: min(94vw, 1120px); max-height: 93dvh; padding: 13px; }
dialog::backdrop { background: #101211e8; }
.lightbox-top { display: flex; justify-content: end; margin-bottom: 8px; }
dialog figure img { max-height: 67dvh; width: 100%; object-fit: contain; }
dialog figcaption { padding: 8px 1px; text-align: center; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lightbox-controls button:hover, .lightbox-close:hover { background: #41433d; }
.lightbox-controls button:disabled { opacity: .45; cursor: default; }

@media (max-width: 870px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 14px; padding-block: 14px 10px; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; gap: 6px clamp(15px, 4vw, 29px); }
  .top-nav a { padding-block: 3px; }
  .masthead-actions { grid-column: 2; grid-row: 1; }
  .masthead-link { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 475px; }
  .hero-image { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(0deg, #101311ed 0%, #12151360 59%, #12151318 100%); }
  .project-grid, .journal-feature { grid-template-columns: 1fr; }
  .journal-image img { min-height: 0; aspect-ratio: 16 / 9; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
  [lang="en"] .hero h1 { font-size: clamp(2rem, 8.2vw, 4.5rem); }
}
@media (max-width: 440px) {
  .hero { min-height: 420px; }
  .hero h1 { font-size: clamp(3.15rem, 11vw, 4rem); }
  .hero-content { padding-inline: 21px; }
  .map-row { grid-template-columns: 1fr auto; }
  .map-row .button { grid-column: 2; grid-row: 1 / span 2; }
  .series-grid { grid-template-columns: 1fr; }
  .photo-grid { gap: 14px 9px; }
  .video-grid { grid-template-columns: 1fr; }
  .article-contents ol { grid-template-columns: 1fr; }
  .album-filter-summary { grid-template-columns: 66px 1fr auto; min-height: 92px; }
  .album-filter-identity { padding: 10px; }
  .album-filter-toggle { width: 39px; min-height: 39px; justify-content: center; padding: 0; margin-inline-end: 9px; }
  .album-filter-toggle .album-open-label, .album-filter-toggle .album-close-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
