/* Custom foundations for the existing STILL photography journal. */
:root {
  --canvas: #f5f4ef;
  --surface: #eeeee6;
  --ink: #223d33;
  --muted: #69706a;
  --line: #d9ddd2;
  --accent: #426047;
  --accent-soft: #e5e9dd;
  --darkroom: #131a16;
  --darkroom-text: #f0f2e9;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shape-pill: 100px;
  --shape-circle: 50%;
  --shape-control: 3px;
  --page-width: 1400px;
  --page-gutter: clamp(22px, 4.4vw, 76px);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --motion-quick: 220ms;
  --motion-reveal: 850ms;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, a, label { touch-action: manipulation; }
button { border: 0; padding: 0; }
button, a, label, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { color: var(--canvas); background: var(--accent); }
button svg, a svg { flex-shrink: 0; }
button { background: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .075em; }
.page-width { width: calc(100% - var(--page-gutter) * 2); max-width: var(--page-width); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 100; color: var(--canvas); background: var(--ink); padding: 12px 20px; border-radius: var(--shape-pill); }
.skip-link:focus { top: 14px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress,0)); pointer-events: none; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--shape-circle); background: var(--accent); box-shadow: 0 0 0 3px #4260470c; }
.site-header { position: sticky; top: 0; z-index: 30; background: #f5f4efed; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 89px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-chinese { font-size: 24px; line-height: 1; font-weight: 650; letter-spacing: .13em; }
.brand-english { display: block; font-family: var(--font-editorial); font-size: 11px; font-weight: 400; letter-spacing: .32em; margin-top: 7px; }
.brand-tagline { display: block; font-size: 9px; line-height: 1.8; letter-spacing: .14em; border-left: 1px solid var(--line); padding-left: 16px; margin-left: 3px; color: var(--muted); }
.primary-nav { display: flex; align-items: center; gap: clamp(22px,3vw,48px); font-size: 12px; }
.primary-nav a, .primary-nav button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; white-space: nowrap; padding: 0; color: var(--muted); transition: color var(--motion-quick); }
.primary-nav a:hover, .primary-nav button:hover, .primary-nav .is-current { color: var(--ink); }
.primary-nav .is-current::after { content: ""; position: absolute; bottom: 0; left: 0; width: 4px; height: 4px; border-radius: var(--shape-circle); background: var(--accent); }
.nav-count { font-family: var(--font-mono); font-size: 9px; color: var(--muted); transform: translateY(-5px); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); padding: 6px 0; white-space: nowrap; }
.motion-toggle svg { animation: breathe-spark 10s linear infinite; }
.motion-toggle.is-calm svg { animation: none; }
.darkroom-button { border: 1px solid var(--ink); border-radius: var(--shape-pill); display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; gap: 22px; font-size: 11px; white-space: nowrap; transition: color var(--motion-quick), background var(--motion-quick); }
.darkroom-button:hover { background: var(--ink); color: var(--canvas); }
.hero { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; padding-top: 65px; padding-bottom: 29px; column-gap: 8px; }
.hero-copy { position: relative; z-index: 2; padding-top: 9px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font: 9px var(--font-mono); letter-spacing: .1em; white-space: nowrap; animation: enter-up var(--motion-reveal) both; }
.edition-tag { font-size: 8px; border: 1px solid var(--line); padding: 3px 6px; margin-left: 1px; color: var(--muted); }
.hero h1 { position: relative; width: max-content; max-width: 100%; margin-top: 32px; font-size: clamp(62px,6.2vw,104px); line-height: 1.24; font-weight: 550; letter-spacing: -.065em; animation: enter-up var(--motion-reveal) .1s both; }
.hero h1 > span:first-child { color: var(--accent); }
.title-spark { position: absolute; right: -66px; top: 49%; transform: rotate(12deg); }
.title-spark svg { stroke-width: 1; animation: breathe-spark 18s linear infinite; }
.hero-english { font-family: var(--font-editorial); font-size: clamp(23px,2.2vw,35px); line-height: 1.25; margin-top: 13px; letter-spacing: -.035em; animation: enter-up var(--motion-reveal) .17s both; }
.hero-english span { font-style: italic; color: var(--accent); }
.hero-description { color: var(--muted); font-size: 12px; line-height: 2; letter-spacing: .04em; margin-top: 25px; animation: enter-up var(--motion-reveal) .22s both; }
.hero-cta { display: inline-flex; align-items: center; gap: 23px; font-size: 12px; font-weight: 500; margin-top: 30px; animation: enter-up var(--motion-reveal) .28s both; }
.circle-arrow { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--shape-circle); transition: background var(--motion-quick), color var(--motion-quick), transform var(--motion-quick); }
.hero-cta:hover .circle-arrow, .next-story-link:hover .circle-arrow { background: var(--ink); color: var(--canvas); transform: rotate(45deg); }
.hero-footnote { display: flex; gap: 8px; align-items: center; margin-top: 38px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.hero-footnote .mono { font-size: 8px; }
.tiny-viewfinder { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--accent); position: relative; }
.tiny-viewfinder::after { content: ""; position: absolute; inset: 3px; border-radius: var(--shape-circle); border: 1px solid var(--accent); }
.hero-footnote-line { width: 32px; height: 1px; background: var(--line); margin-inline: 5px; }
.hero-stage { position: relative; align-self: center; height: 516px; min-width: 0; perspective: 1100px; isolation: isolate; --mx: 0; --my: 0; }
.stage-orbit { position: absolute; width: 83%; aspect-ratio: 1; border-radius: var(--shape-circle); border: 1px solid #42604716; left: 9%; top: 5%; transform: rotate(-20deg); }
.stage-orbit::before { content: ""; position: absolute; inset: 27px -19px; border: 1px dashed #42604711; border-radius: var(--shape-circle); }
.stage-coordinate { position: absolute; right: 19%; top: 3px; font-size: 8px; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.floating-frame { position: absolute; transition: transform 650ms var(--ease-out); transform: translate3d(calc(var(--mx) * var(--depth, 10px)),calc(var(--my) * var(--depth, 10px)),0); animation: print-arrive 1.2s var(--ease-out) both; }
.hero-print { position: relative; width: 100%; height: 100%; display: block; padding: 7px; background: #fafbf6; box-shadow: 0 15px 30px #1c2f2426, 0 2px 4px #1c2f2411; transform: rotate(var(--rotation,0deg)); animation: float-print 7s ease-in-out infinite; animation-delay: var(--float-delay,0s); transition: box-shadow 400ms, scale 400ms; }
.hero-print::before { content: ""; position: absolute; z-index: 2; background: #e6e6d391; width: 58px; height: 19px; top: -9px; left: calc(50% - 29px); transform: rotate(-4deg); box-shadow: 0 1px 1px #00000004; }
.hero-print:hover, .hero-print:focus-visible { animation-play-state: paused; scale: 1.035; box-shadow: 0 20px 45px #1c2f2435; z-index: 4; }
.frame-main { width: 78%; height: 320px; left: 4%; top: 91px; z-index: 2; --rotation: -7deg; --depth: 16px; }
.frame-main .photo-image { height: calc(100% - 31px); }
.print-caption { display: flex; align-items: center; justify-content: space-between; padding: 11px 5px 0; font-size: 9px; color: var(--ink); }
.print-caption span:last-child { font: 7px var(--font-mono); letter-spacing: .08em; }
.frame-sea { width: 28%; height: 177px; right: 2%; top: 23px; z-index: 1; --rotation: 11deg; --depth: -18px; animation-delay: .15s; --float-delay: -2.5s; }
.frame-sea .hero-print, .frame-dunes .hero-print { padding-bottom: 22px; }
.frame-dunes { width: 33%; height: 211px; right: 0; bottom: 37px; z-index: 4; --rotation: 9deg; --depth: 29px; animation-delay: .32s; --float-delay: -4.5s; }
.frame-dunes .hero-print::before { left: auto; right: 10px; transform: rotate(24deg); }
.small-print-number { position: absolute; bottom: 7px; left: 9px; font: 7px var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.frame-forest { width: 26%; height: 180px; left: 0; bottom: 4px; z-index: 3; --rotation: -13deg; --depth: 22px; animation-delay: .24s; --float-delay: -1.5s; }
.frame-forest .hero-print { padding: 6px 6px 18px; }
.frame-forest .hero-print::before { display: none; }
.hero-stamp { position: absolute; bottom: 2%; left: 39%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100px; height: 100px; gap: 8px; border: 1px solid #42604770; border-radius: var(--shape-circle); transform: rotate(-16deg); color: var(--accent); z-index: 5; pointer-events: none; }
.hero-stamp span { font: 7px var(--font-mono); letter-spacing: .15em; }
.stage-note { position: absolute; right: 0; top: -14px; display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; transform: rotate(3deg); }
.stage-note span { display: block; font-size: 8px; margin-top: 8px; text-align: right; opacity: .8; }
.stage-plus { position: absolute; font-size: 22px; font-weight: 200; opacity: .5; }
.plus-one { left: 0; top: 18px; }
.plus-two { right: 2px; bottom: 6px; }
.hero-bottom-row { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 43px; font-size: 8px; color: var(--muted); letter-spacing: .07em; }
.dot-separator { margin-inline: 8px; }
.journal-ticker { overflow: hidden; border-block: 1px solid var(--line); margin-top: 10px; padding-block: 21px; background: #eeeee650; }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker-copy { display: flex; align-items: center; gap: 43px; padding-right: 43px; white-space: nowrap; font-size: 29px; letter-spacing: -.02em; }
.ticker-copy > span:first-child { font-size: 22px; font-weight: 450; letter-spacing: .1em; }
.ticker-italic { font-family: var(--font-editorial); font-style: italic; font-size: 36px; }
.ticker-copy > span:nth-last-of-type(2) { font-size: 23px; font-weight: 400; letter-spacing: .1em; }
.ticker-outline { color: transparent; -webkit-text-stroke: 1px var(--accent); font-size: 23px; letter-spacing: .1em; }
.ticker-copy svg { color: var(--accent); stroke-width: 1; }
.gallery-section { padding-top: 66px; scroll-margin-top: 15px; }
.section-kicker { display: flex; align-items: center; gap: 20px; font-size: 9px; color: var(--muted); }
.section-kicker > .mono { font-size: 9px; color: var(--ink); }
.section-rule { flex: 1; height: 1px; background: var(--line); margin-left: 15px; }
.section-kicker svg { color: var(--accent); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 25px; margin-bottom: 35px; }
.gallery-heading h2 { font-size: clamp(31px,3.1vw,49px); font-weight: 450; letter-spacing: -.055em; line-height: 1.5; }
.gallery-heading h2 span { font-family: var(--font-editorial), var(--font-body); color: var(--accent); }
.gallery-heading p { color: var(--muted); font-size: 10px; line-height: 1.9; padding-bottom: 5px; }
.issue-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.issue-tab { position: relative; display: flex; align-items: center; gap: 16px; text-align: left; padding: 21px 22px; border-right: 1px solid var(--line); color: var(--muted); transition: background var(--motion-quick), color var(--motion-quick); }
.issue-tab:last-child { border-right: 0; }
.issue-tab:first-child { padding-left: 0; }
.issue-tab.is-active:first-child { padding-left: 20px; }
.issue-tab.is-active { color: var(--ink); background: var(--accent-soft); }
.issue-tab.is-active::before { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); }
.issue-tab:hover { background: var(--accent-soft); color: var(--ink); }
.issue-tab-number { font-size: 9px; }
.issue-tab-name { font-size: 14px; font-weight: 450; }
.issue-tab-count { font-size: 8px; margin-top: -8px; margin-left: -9px; }
.issue-tab > svg { margin-left: auto; }
.collection-info { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 33px 29px; }
.collection-caption { display: flex; align-items: center; gap: 22px; }
.collection-number { display: flex; align-items: center; justify-content: center; width: 51px; height: 57px; border: 1px solid var(--line); font-size: 18px; letter-spacing: -.07em; position: relative; }
.collection-number::before { content: ""; position: absolute; top: -1px; left: 11px; right: 11px; border-top: 2px solid var(--accent); }
.collection-caption h3 { font-size: 20px; font-weight: 500; letter-spacing: .025em; line-height: 1.5; }
.collection-caption h3 span { font-family: var(--font-editorial); font-size: 21px; font-weight: 400; font-style: italic; letter-spacing: -.025em; margin-left: 14px; color: var(--accent); }
.collection-caption p { font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.random-button { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; white-space: nowrap; padding: 10px 0 10px 12px; }
.random-button svg:last-child { margin-left: 12px; transition: transform var(--motion-quick); }
.random-button:hover svg:last-child { transform: translate(2px,-2px); }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 16px; border-top: 1px solid var(--line); }
.toolbar-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-count { font-size: 8px; color: var(--muted); }
.toolbar-divider { display: block; height: 13px; width: 1px; background: var(--line); }
.favorites-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.favorites-filter.is-active { color: var(--accent); }
.favorites-filter.is-active svg { fill: var(--accent); }
.favorites-filter .mono { font-size: 9px; }
.layout-switcher { display: flex; align-items: center; gap: 3px; border: 0; padding: 0; margin: 0; }
.layout-choice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 9px; padding: 8px 10px; border-radius: var(--shape-control); color: var(--muted); cursor: pointer; transition: background var(--motion-quick), color var(--motion-quick); }
.layout-choice.is-active { background: var(--accent-soft); color: var(--ink); }
.layout-choice:hover { color: var(--ink); }
.layout-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-gallery.layout-masonry { columns: 4; column-gap: 20px; }
.photo-card { break-inside: avoid; display: inline-block; width: 100%; vertical-align: top; margin-bottom: 23px; animation: enter-up 650ms var(--ease-out) var(--delay,0ms) both; }
.photo-card-visual { position: relative; }
.photo-open { position: relative; width: 100%; display: block; aspect-ratio: var(--photo-ratio,4/5); overflow: hidden; background: var(--surface); }
.photo-image { width: 100%; height: 100%; position: relative; display: block; overflow: hidden; background: #d9e0d4; }
.photo-image img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform 900ms var(--ease-out), filter 900ms; }
.photo-image[data-state="ready"] img { opacity: 1; }
.image-loading { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 27px; height: 27px; background: #dfe5daaa; pointer-events: none; }
.image-loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 20%,#ffffff45 45%,transparent 70%); animation: image-loading 1.6s ease-in-out infinite; }
.image-loading-mark { width: 19px; height: 19px; border: 1px solid #42604750; position: relative; }
.image-loading-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid #42604770; border-radius: var(--shape-circle); }
.image-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; min-height: 100px; color: var(--ink); font-size: 12px; }
.image-error small { font-size: 9px; color: var(--muted); }
.photo-number { position: absolute; pointer-events: none; top: 12px; left: 12px; font-size: 9px; color: #fff; text-shadow: 0 1px 8px #000; padding: 4px; background: #14261c48; }
.photo-favorite { display: grid; place-items: center; position: absolute; top: 11px; right: 11px; width: 29px; height: 29px; background: #f5f4efed; color: var(--ink); border-radius: var(--shape-circle); transition: background var(--motion-quick), transform var(--motion-quick); }
.photo-favorite:hover { transform: scale(1.12); background: var(--canvas); }
.photo-favorite.is-saved { background: var(--accent); color: white; }
.photo-favorite.is-saved svg { fill: currentColor; }
.photo-hover-label { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; font-size: 10px; opacity: 0; transform: translate(-50%,-30%); padding: 11px 14px; border-radius: var(--shape-pill); background: #18251a80; backdrop-filter: blur(6px); transition: opacity 350ms, transform 350ms; }
.photo-frame-corner { position: absolute; width: 17px; height: 17px; border-color: #ffffffae; border-style: solid; opacity: 0; transition: opacity 350ms, inset 500ms; }
.corner-top { top: 21px; left: 21px; border-width: 1px 0 0 1px; }
.corner-bottom { bottom: 21px; right: 21px; border-width: 0 1px 1px 0; }
.photo-open:hover .photo-image img, .photo-open:focus-visible .photo-image img { transform: scale(1.055); filter: brightness(.86); }
.photo-open:hover .photo-hover-label, .photo-open:focus-visible .photo-hover-label { opacity: 1; transform: translate(-50%,-50%); }
.photo-open:hover .photo-frame-corner, .photo-open:focus-visible .photo-frame-corner { opacity: 1; }
.photo-card-caption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; padding-top: 12px; }
.photo-card-caption h4 { font-size: 11px; font-weight: 450; }
.photo-card-caption > span { grid-row: 2; font-size: 8px; color: var(--muted); letter-spacing: 0; }
.photo-card-caption > svg { grid-column: 2; grid-row: 1 / 3; color: var(--muted); opacity: .7; }
.photo-gallery.layout-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px 20px; }
.layout-grid .photo-open { aspect-ratio: 1; }
.layout-grid .photo-card { margin-bottom: 0; }
.photo-gallery.layout-film { display: flex; align-items: flex-start; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; scrollbar-color: var(--accent) var(--surface); padding-block: 16px 25px; border-block: 8px dotted var(--line); }
.layout-film .photo-card { min-width: min(380px,75vw); width: min(380px,75vw); scroll-snap-align: start; margin-bottom: 0; }
.layout-film .photo-open { aspect-ratio: 4 / 5; }
.film-controls { display: flex; gap: 8px; }
.film-instructions { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 0 0 14px; }
.small-icon-button { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--shape-circle); transition: color var(--motion-quick), background var(--motion-quick); }
.small-icon-button:hover { background: var(--ink); color: var(--canvas); }
.empty-collection { display: flex; align-items: center; flex-direction: column; padding: 80px 20px; border: 1px dashed var(--line); background: var(--surface); text-align: center; }
.empty-collection > svg { stroke-width: 1; color: var(--accent); margin-bottom: 20px; }
.empty-collection h3 { font-size: 24px; font-weight: 400; }
.empty-collection p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-block: 15px 25px; }
.filled-button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 12px 20px; background: var(--ink); color: var(--canvas); border-radius: var(--shape-pill); font-size: 12px; transition: background var(--motion-quick), transform var(--motion-quick); }
.filled-button:hover { background: var(--accent); transform: translateY(-2px); }
.collection-end { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 25px; color: var(--muted); }
.collection-end > .mono { font-size: 8px; }
.end-line { width: 55px; height: 1px; background: var(--line); }
.collection-end svg { color: var(--accent); }
.storage-notice { margin-top: 20px; font-size: 12px; color: var(--muted); }
.next-story { margin-top: 77px; display: grid; grid-template-columns: 1fr 1fr; background: var(--accent-soft); min-height: 355px; overflow: hidden; }
.next-story-copy { padding: 43px 0 38px 52px; }
.next-story-copy > .mono { font-size: 8px; color: var(--muted); }
.next-story-copy h2 { font-size: 41px; font-weight: 400; letter-spacing: -.03em; line-height: 1.45; margin-top: 20px; }
.next-story-copy h2 span { color: var(--accent); }
.next-story-copy > p { font-size: 11px; color: var(--muted); margin-top: 12px; }
.next-story-link { display: flex; align-items: center; gap: 42px; margin-top: 25px; font-family: var(--font-mono); font-size: 9px; }
.next-story-link strong { font-family: var(--font-body); font-size: 13px; font-weight: 400; margin-left: 13px; }
.next-story-link .circle-arrow { width: 38px; height: 38px; }
.next-story-art { position: relative; min-height: 335px; }
.next-story-print { position: absolute; width: 57%; height: 83%; left: 20%; top: 30px; padding: 9px 9px 28px; background: var(--canvas); transform: rotate(9deg); box-shadow: 0 15px 25px #27362c20; transition: transform 900ms var(--ease-out); }
.next-story:hover .next-story-print { transform: rotate(3deg) translateY(-7px); }
.next-story-print > span:last-child { display: block; color: var(--muted); font-size: 7px; margin-top: 9px; letter-spacing: .12em; }
.next-story-spark { position: absolute; left: 7%; bottom: 40px; transform: rotate(-12deg); }
.next-story-spark svg { stroke-width: 1; }
.site-footer { margin-top: 63px; padding-bottom: 23px; }
.footer-top { display: flex; align-items: center; gap: 30px; padding-bottom: 30px; }
.footer-top > p { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.back-top { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: var(--shape-circle); transition: transform var(--motion-quick), background var(--motion-quick); }
.back-top:hover { transform: translateY(-4px); background: var(--accent-soft); }
.back-top svg { transform: rotate(-45deg); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; }
.footer-bottom .mono { font-size: 8px; letter-spacing: .025em; }
.footer-bottom > button { display: flex; align-items: center; gap: 4px; font-size: 9px; padding: 0; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-presence { display: inline-flex; align-items: center; gap: 7px; }
.footer-presence .status-dot { width: 4px; height: 4px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 50; display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100vw - 32px); border-radius: var(--shape-pill); padding: 13px 20px; box-shadow: 0 8px 28px #13261b20; font-size: 11px; background: var(--ink); color: var(--canvas); transform: translate(-50%,20px); opacity: 0; pointer-events: none; transition: opacity 250ms, transform 250ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.about-dialog { position: fixed; padding: 48px; width: min(560px,calc(100% - 36px)); max-height: calc(100dvh - 44px); overflow: auto; background: var(--canvas); color: var(--ink); border: 0; margin: auto; box-shadow: 0 20px 100px #13261b33; }
.about-dialog::backdrop { background: #17231bd1; backdrop-filter: blur(7px); }
.about-dialog[open] { animation: enter-up 400ms var(--ease-out); }
.about-close { position: absolute; right: 20px; top: 20px; }
.about-kicker { display: block; margin-top: 26px; color: var(--muted); font-size: 9px; }
.about-dialog h2 { font-size: 39px; font-weight: 400; line-height: 1.5; letter-spacing: -.05em; margin-top: 20px; }
.about-dialog h2 span { color: var(--accent); }
.about-dialog > p { font-size: 13px; line-height: 2; color: var(--muted); margin-top: 22px; }
.about-note { margin-block: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.about-note h3 { font-size: 12px; font-weight: 500; }
.about-note p { font-size: 11px; line-height: 1.9; color: var(--muted); margin-top: 12px; }
.photo-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--darkroom); color: var(--darkroom-text); }
.photo-viewer::backdrop { background: var(--darkroom); }
.photo-viewer[open] { animation: viewer-enter 350ms var(--ease-out); }
.photo-viewer :focus-visible { outline-color: #d8e6bd; }
.viewer-shell { height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.viewer-header { height: 78px; min-height: 78px; display: flex; align-items: center; gap: 28px; padding-inline: 30px; border-bottom: 1px solid #f0f2e91a; }
.viewer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.viewer-brand > span { display: flex; align-items: center; gap: 15px; }
.viewer-brand .mono { color: #b9c4b7; font-size: 8px; }
.viewer-issue { margin-left: auto; color: #b9c4b7; font-size: 10px; }
.viewer-issue > span { font-family: var(--font-body); font-size: 11px; margin-left: 8px; }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--shape-circle); transition: background var(--motion-quick); color: #cfd6cc; }
.viewer-icon:hover, .viewer-icon.is-active { background: #f0f2e91a; color: white; }
.viewer-icon.is-saved { color: #d8e6bd; }
.viewer-icon.is-saved svg { fill: currentColor; }
.viewer-action-separator { width: 1px; height: 20px; background: #f0f2e926; margin-inline: 7px; }
.viewer-main { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 25px 92px 15px; }
.viewer-pan { height: 100%; width: 100%; overflow: hidden; scrollbar-color: #79926d #1c2720; touch-action: pan-y; }
.viewer-pan.is-zoomed { overflow: auto; touch-action: pan-x pan-y; }
.viewer-photo-button { display: block; height: 100%; width: 100%; padding: 0; cursor: zoom-in; }
.viewer-photo-button .photo-image { background: transparent; }
.viewer-photo-button img { object-fit: contain; transition: opacity 400ms; }
.viewer-photo-button .image-loading { background: var(--darkroom); }
.viewer-photo-button .image-error { background: #d9e0d4; }
.is-zoomed .viewer-photo-button { width: 175%; height: 175%; cursor: zoom-out; }
.viewer-nav { position: absolute; top: calc(50% - 22px); width: 43px; height: 43px; border-radius: var(--shape-circle); display: grid; place-items: center; border: 1px solid #f0f2e92e; z-index: 1; background: #131a1680; transition: background var(--motion-quick), transform var(--motion-quick); }
.viewer-nav:hover { background: #f0f2e91a; transform: scale(1.08); }
.viewer-prev { left: 27px; }
.viewer-next { right: 27px; }
.viewer-caption-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 92px 19px; gap: 20px; }
.viewer-counter { color: #e0e9d7; font-size: 13px; letter-spacing: .02em; }
.viewer-counter > span { color: #b0bdab; font-size: 10px; }
.viewer-title-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.viewer-caption-row h2 { font-size: 19px; font-weight: 400; letter-spacing: .06em; }
.viewer-english { font-family: var(--font-editorial); font-size: 20px; font-style: italic; color: #b6c4ac; }
.viewer-credit { color: #b0bdab; font-size: 9px; margin-top: 10px; padding-left: 57px; }
.viewer-credit > span { margin-inline: 5px; }
.slideshow-button { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 10px 16px; border: 1px solid #f0f2e92e; border-radius: var(--shape-pill); white-space: nowrap; color: #d4dfcd; }
.slideshow-button:hover, .slideshow-button.is-active { background: #f0f2e914; }
.viewer-thumbnails { display: flex; gap: 9px; flex-shrink: 0; overflow-x: auto; margin-inline: 92px; padding-block: 4px 11px; min-height: 74px; scrollbar-width: thin; scrollbar-color: #64765d transparent; }
.viewer-thumbnail { position: relative; flex-shrink: 0; width: 76px; height: 51px; padding: 0; opacity: .55; border: 1px solid transparent; transition: opacity var(--motion-quick), border-color var(--motion-quick); }
.viewer-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.viewer-thumbnail:hover, .viewer-thumbnail.is-current { opacity: 1; }
.viewer-thumbnail.is-current { outline: 1px solid #d8e6bd; outline-offset: 3px; }
.viewer-thumbnail > span { position: absolute; bottom: 3px; right: 4px; color: white; font-size: 8px; text-shadow: 0 1px 5px #000; }
.viewer-footer { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 13px 30px 17px; color: #b0bdab; min-height: 45px; }
.viewer-footer > .mono { font-size: 8px; }
.viewer-footer > .mono > span { margin-inline: 5px; }
.viewer-notice { font-size: 10px; color: #bbc7b7; }
.viewer-details { position: absolute; top: 18px; right: 84px; width: min(300px,calc(100% - 40px)); max-height: calc(100% - 30px); overflow: auto; background: #1c2921f5; border: 1px solid #f0f2e92e; z-index: 3; padding: 15px 22px 22px; box-shadow: 0 15px 40px #0005; animation: enter-up 250ms var(--ease-out); }
.viewer-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer-details .mono { font-size: 8px; color: #b9c4b7; }
.viewer-details h3 { font-size: 24px; font-weight: 400; margin-top: 18px; }
.viewer-details > p { color: #c0ccba; font-size: 12px; line-height: 1.9; margin-top: 15px; }
.viewer-details dl { border-top: 1px solid #f0f2e92e; padding-top: 18px; margin-top: 20px; font-size: 11px; }
.viewer-details dl > div { display: flex; gap: 15px; margin-bottom: 14px; }
.viewer-details dt { flex-shrink: 0; color: #b9c4b7; min-width: 45px; }
.viewer-details dd { margin: 0; }
.viewer-details > a { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; color: #deebd1; padding-top: 9px; text-decoration: underline; text-underline-offset: 5px; }
.viewer-retry { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #c0ccba; margin-top: 20px; padding: 0; }
.viewer-details > small { display: block; font-size: 9px; line-height: 1.9; color: #b9c4b7; margin-top: 20px; }
.slideshow-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #c8d9ac; transform-origin: left; animation: slideshow-progress 5s linear both; pointer-events: none; }
/* Keep essential content visible even if a browser freezes animations at frame zero. */
@keyframes enter-up { from { transform: translateY(15px); } to { transform: translateY(0); } }
@keyframes viewer-enter { from { transform: scale(1.015); } to { transform: scale(1); } }
@keyframes print-arrive { from { translate: 0 20px; } to { translate: 0 0; } }
@keyframes float-print { 0%,100% { transform: rotate(var(--rotation,0deg)) translateY(0); } 50% { transform: rotate(calc(var(--rotation,0deg) + 1.3deg)) translateY(-9px); } }
@keyframes breathe-spark { to { rotate: 360deg; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes image-loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes slideshow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  .photo-card { animation: photo-reveal 1s var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 20%; }
  @keyframes photo-reveal { from { transform: translateY(25px); } to { transform: translateY(0); } }
}
@media (min-width: 1550px) {
  .hero { padding-top: 80px; padding-bottom: 32px; }
  .hero-stage { height: 590px; }
  .frame-main { height: 375px; top: 104px; }
  .frame-sea { height: 198px; }
  .frame-dunes { height: 237px; bottom: 42px; }
  .frame-forest { height: 205px; }
  .hero-footnote { margin-top: 45px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 20px; min-height: 80px; }
  .brand-tagline { display: none; }
  .header-actions { gap: 16px; }
  .primary-nav { gap: 24px; font-size: 11px; }
  .motion-toggle span { display: none; }
  .hero { padding-top: 56px; grid-template-columns: .94fr 1.06fr; }
  .hero-stage { height: 465px; }
  .frame-main { height: 290px; left: 4%; top: 88px; }
  .frame-forest { height: 153px; bottom: 4px; }
  .frame-dunes { height: 181px; bottom: 38px; }
  .frame-sea { height: 153px; top: 39px; }
  .hero-stamp { width: 82px; height: 82px; gap: 6px; bottom: 6px; }
  .hero-stamp span { font-size: 6px; }
  .hero-stamp svg { width: 22px; height: 22px; }
  .hero-kicker { font-size: 8px; gap: 8px; }
  .edition-tag { display: none; }
  .hero h1 { font-size: 70px; margin-top: 29px; }
  .title-spark { right: -45px; }
  .title-spark svg { width: 37px; height: 37px; }
  .hero-description { margin-top: 22px; }
  .hero-footnote { margin-top: 32px; gap: 6px; }
  .hero-footnote-line { width: 16px; }
  .hero-footnote .mono { font-size: 7px; }
  .hero-bottom-row { margin-top: 35px; font-size: 7px; }
  .photo-gallery.layout-masonry { column-gap: 16px; }
  .photo-gallery.layout-grid { gap: 20px 16px; }
  .issue-tab { gap: 11px; padding-inline: 17px; }
  .issue-tab-name { font-size: 13px; }
  .issue-tab-number { font-size: 8px; }
  .collection-caption h3 span { font-size: 19px; }
  .collection-caption p { max-width: 500px; }
  .next-story-copy { padding-left: 38px; }
  .footer-bottom { font-size: 8px; }
  .footer-presence { display: none; }
}
@media (max-width: 800px) {
  .primary-nav { gap: 22px; }
  .header-actions { gap: 14px; }
  .darkroom-button { padding: 10px 13px; gap: 13px; }
  .hero { grid-template-columns: 1fr 1fr; padding-top: 42px; }
  .hero h1 { font-size: 60px; }
  .title-spark { right: -35px; }
  .title-spark svg { width: 30px; height: 30px; }
  .hero-kicker { font-size: 6px; letter-spacing: .04em; gap: 7px; }
  .hero-stage { height: 422px; }
  .frame-main { height: 240px; left: 5%; top: 100px; width: 80%; }
  .frame-sea { top: 53px; height: 123px; right: 0; }
  .frame-dunes { height: 157px; width: 36%; bottom: 24px; right: -2px; }
  .frame-forest { height: 130px; bottom: 2px; }
  .hero-stamp { width: 72px; height: 72px; left: 36%; bottom: -4px; }
  .hero-stamp span { font-size: 5px; }
  .print-caption { padding-top: 9px; font-size: 7px; }
  .print-caption span:last-child { font-size: 5px; }
  .hero-english { font-size: 23px; }
  .hero-description { font-size: 11px; margin-top: 20px; }
  .hero-cta { margin-top: 25px; font-size: 11px; gap: 15px; }
  .hero-cta .circle-arrow { width: 38px; height: 38px; }
  .hero-cta .circle-arrow svg { width: 21px; }
  .hero-footnote { font-size: 8px; margin-top: 31px; }
  .hero-footnote-line, .hero-footnote .mono, .hero-footnote > svg { display: none; }
  .stage-note { font-size: 8px; top: 8px; }
  .stage-note span { font-size: 6px; }
  .stage-coordinate { font-size: 6px; }
  .hero-bottom-row { margin-top: 38px; font-size: 6px; letter-spacing: .03em; }
  .dot-separator { margin-inline: 4px; }
  .ticker-copy { gap: 28px; padding-right: 28px; }
  .ticker-copy > span:first-child { font-size: 18px; }
  .ticker-italic { font-size: 30px; }
  .ticker-copy > span:nth-last-of-type(2), .ticker-outline { font-size: 20px; }
  .journal-ticker { padding-block: 18px; }
  .gallery-section { padding-top: 47px; }
  .gallery-heading { margin-top: 24px; margin-bottom: 27px; }
  .gallery-heading h2 { font-size: 33px; }
  .gallery-heading p { font-size: 9px; }
  .photo-gallery.layout-masonry { columns: 3; }
  .photo-gallery.layout-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .issue-tab { gap: 8px; padding: 18px 12px; }
  .issue-tab:first-child, .issue-tab.is-active:first-child { padding-left: 12px; }
  .issue-tab-name { font-size: 12px; }
  .issue-tab-number { font-size: 7px; }
  .issue-tab-count { font-size: 7px; margin-left: -5px; }
  .issue-tab > svg { width: 14px; }
  .collection-caption { gap: 14px; }
  .collection-caption h3 { font-size: 18px; }
  .collection-caption h3 span { font-size: 17px; margin-left: 10px; }
  .collection-caption p { max-width: 410px; font-size: 9px; }
  .collection-number { width: 42px; height: 53px; font-size: 15px; }
  .random-button { font-size: 9px; gap: 6px; }
  .random-button svg:last-child { margin-left: 2px; }
  .layout-choice { padding-inline: 8px; }
  .photo-card-caption h4 { font-size: 10px; }
  .photo-card-caption > span { font-size: 7px; }
  .photo-favorite { width: 26px; height: 26px; top: 8px; right: 8px; }
  .photo-number { left: 7px; top: 7px; }
  .next-story { margin-top: 62px; min-height: 315px; }
  .next-story-copy { padding: 35px 0 33px 30px; }
  .next-story-copy h2 { font-size: 34px; }
  .next-story-art { min-height: 310px; }
  .next-story-print { width: 63%; height: 77%; left: 23%; }
  .next-story-spark { left: 1%; }
  .next-story-spark svg { width: 52px; height: 52px; }
  .viewer-header { padding-inline: 20px; gap: 16px; height: 69px; min-height: 69px; }
  .viewer-brand .mono { display: none; }
  .viewer-main { padding: 20px 65px 12px; }
  .viewer-prev { left: 15px; }
  .viewer-next { right: 15px; }
  .viewer-nav { width: 35px; height: 35px; }
  .viewer-nav svg { width: 19px; }
  .viewer-caption-row { padding-inline: 65px; }
  .viewer-thumbnails { margin-inline: 65px; }
  .viewer-english { display: none; }
  .viewer-details { right: 65px; }
  .viewer-footer { padding-inline: 22px; }
  .viewer-footer > .mono:last-child { display: none; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 22px; }
  html { scroll-padding-top: 122px; }
  .header-inner { min-height: 99px; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 14px 10px; }
  .brand { gap: 9px; }
  .brand > svg { width: 29px; height: 29px; }
  .brand-chinese { font-size: 20px; }
  .brand-english { font-size: 8px; margin-top: 5px; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 38px; font-size: 10px; }
  .primary-nav a, .primary-nav button { min-height: 26px; }
  .primary-nav .is-current::after { bottom: -1px; }
  .nav-count { font-size: 7px; }
  .header-actions { grid-row: 1; grid-column: 2; gap: 18px; }
  .darkroom-button { padding: 8px 12px; gap: 12px; font-size: 10px; }
  .motion-toggle { padding: 7px 0; }
  .hero { display: flex; flex-direction: column; padding-top: 31px; padding-bottom: 22px; }
  .hero-copy { padding-top: 0; }
  .hero-kicker { font-size: 7px; letter-spacing: .08em; gap: 9px; }
  .edition-tag { display: block; font-size: 6px; }
  .hero h1 { font-size: clamp(57px,12.5vw,74px); line-height: 1.2; margin-top: 25px; letter-spacing: -.065em; }
  .title-spark { right: -53px; top: 54%; }
  .title-spark svg { width: 37px; height: 37px; }
  .hero-english { position: absolute; top: 182px; right: 0; width: 108px; font-size: 23px; margin-top: 0; line-height: 1.15; text-align: right; }
  .hero-english span { display: block; }
  .hero-description { margin-top: 23px; font-size: 10px; line-height: 1.9; }
  .hero-cta { margin-top: 21px; font-size: 11px; gap: 22px; }
  .hero-cta .circle-arrow { width: 35px; height: 35px; }
  .hero-footnote { display: none; }
  .hero-stage { width: 100%; height: 355px; margin-top: 20px; }
  .frame-main { width: 76%; height: 221px; left: 9%; top: 64px; }
  .frame-sea { width: 26%; height: 119px; right: 1%; top: 15px; }
  .frame-dunes { height: 147px; width: 30%; bottom: 17px; right: 0; }
  .frame-forest { height: 130px; width: 25%; bottom: 2px; left: 2%; }
  .hero-stamp { width: 76px; height: 76px; left: 39%; bottom: -5px; }
  .hero-stamp span { font-size: 5.5px; }
  .stage-orbit { width: 77%; top: 0; left: 14%; }
  .stage-coordinate { top: -3px; right: 33%; font-size: 6px; }
  .stage-note { display: none; }
  .plus-one { left: 1%; top: 6px; font-size: 18px; }
  .plus-two { display: none; }
  .print-caption { font-size: 7px; }
  .print-caption span:last-child { font-size: 6px; }
  .small-print-number { font-size: 6px; }
  .hero-bottom-row { display: block; margin-top: 32px; font-size: 6px; text-align: center; }
  .hero-bottom-row > span:first-child { display: none; }
  .journal-ticker { margin-top: 0; padding-block: 13px; }
  .ticker-copy { gap: 23px; padding-right: 23px; }
  .ticker-copy > span:first-child { font-size: 15px; }
  .ticker-italic { font-size: 26px; }
  .ticker-copy > span:nth-last-of-type(2), .ticker-outline { font-size: 17px; }
  .ticker-copy svg { width: 17px; height: 17px; }
  .gallery-section { padding-top: 37px; }
  .section-kicker { font-size: 8px; gap: 12px; }
  .section-kicker > .mono { font-size: 8px; }
  .section-rule { margin-left: 0; }
  .section-kicker > svg { width: 15px; }
  .gallery-heading { display: block; margin-top: 20px; margin-bottom: 23px; }
  .gallery-heading h2 { font-size: clamp(28px,7.3vw,39px); }
  .gallery-heading > p { font-size: 9px; margin-top: 9px; }
  .gallery-heading > p br { display: none; }
  .issue-tabs { gap: 0; }
  .issue-tab { padding: 13px 7px; gap: 4px; flex-wrap: wrap; justify-content: center; }
  .issue-tab:first-child, .issue-tab.is-active:first-child { padding-left: 7px; }
  .issue-tab-number { width: 100%; text-align: center; font-size: 7px; margin-bottom: 2px; }
  .issue-tab-name { font-size: 11px; }
  .issue-tab-count { font-size: 6px; margin-left: 0; }
  .issue-tab > svg { display: none; }
  .collection-info { align-items: flex-start; padding-block: 24px 20px; gap: 6px; }
  .collection-caption { gap: 10px; min-width: 0; }
  .collection-number { width: 33px; height: 43px; flex-shrink: 0; font-size: 13px; }
  .collection-number::before { inset-inline: 7px; }
  .collection-caption h3 { font-size: 16px; letter-spacing: 0; }
  .collection-caption h3 span { display: block; margin-left: 0; margin-top: 1px; font-size: 16px; }
  .collection-caption p { font-size: 9px; max-width: 240px; margin-top: 7px; line-height: 1.8; }
  .random-button { font-size: 0; padding: 5px; margin-top: 7px; gap: 0; border: 1px solid var(--line); border-radius: var(--shape-circle); width: 29px; height: 29px; justify-content: center; }
  .random-button svg:last-child { display: none; }
  .random-button > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .gallery-toolbar { padding-block: 12px; gap: 8px; }
  .toolbar-summary { gap: 8px; }
  .photo-count { font-size: 7px; letter-spacing: .02em; }
  .toolbar-divider { height: 10px; }
  .favorites-filter { font-size: 9px; gap: 4px; }
  .favorites-filter svg { width: 12px; }
  .favorites-filter .mono { font-size: 8px; }
  .layout-switcher { gap: 2px; }
  .layout-choice { width: 29px; padding: 7px 6px; }
  .layout-choice span { display: none; }
  .layout-choice svg { width: 15px; }
  .photo-gallery.layout-masonry { columns: 2; column-gap: 12px; }
  .photo-gallery.layout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 12px; }
  .photo-card { margin-bottom: 19px; }
  .photo-card-caption { padding-top: 9px; gap: 4px; }
  .photo-card-caption h4 { font-size: 10px; }
  .photo-card-caption > span { font-size: 6px; }
  .photo-card-caption > svg { width: 11px; }
  .photo-number { font-size: 7px; top: 6px; left: 6px; padding: 3px; }
  .photo-favorite { width: 25px; height: 25px; top: 7px; right: 7px; }
  .photo-favorite svg { width: 13px; }
  .photo-hover-label { font-size: 8px; gap: 5px; padding: 8px 10px; }
  .photo-hover-label svg { width: 14px; }
  .corner-top { top: 14px; left: 14px; }
  .corner-bottom { bottom: 14px; right: 14px; }
  .collection-end { margin-top: 20px; gap: 10px; }
  .collection-end .mono { font-size: 7px; }
  .end-line { width: 35px; }
  .empty-collection { padding: 50px 14px; }
  .empty-collection h3 { font-size: 20px; }
  .empty-collection p { font-size: 11px; }
  .next-story { min-height: 270px; margin-top: 45px; grid-template-columns: 1.15fr 1fr; width: calc(100% - 28px); }
  .next-story-copy { padding: 28px 0 26px 22px; position: relative; z-index: 1; }
  .next-story-copy > .mono { display: block; width: 205px; max-width: 160%; font-size: 6px; }
  .next-story-copy h2 { font-size: 29px; margin-top: 19px; }
  .next-story-copy > p { font-size: 9px; max-width: 150px; line-height: 1.8; }
  .next-story-link { gap: 12px; font-size: 7px; margin-top: 22px; }
  .next-story-link > span:first-child { display: flex; flex-direction: column; gap: 5px; text-align: left; }
  .next-story-link strong { font-size: 11px; margin-left: 0; }
  .next-story-link .circle-arrow { width: 30px; height: 30px; }
  .next-story-link .circle-arrow svg { width: 18px; }
  .next-story-art { min-height: 270px; }
  .next-story-print { width: 85%; height: 68%; left: 11%; top: 58px; padding: 5px 5px 20px; transform: rotate(11deg); }
  .next-story-print > span:last-child { font-size: 5px; margin-top: 7px; letter-spacing: .01em; }
  .next-story-spark { left: 1%; bottom: 6px; }
  .next-story-spark svg { width: 37px; height: 37px; }
  .site-footer { margin-top: 38px; padding-bottom: 21px; }
  .footer-top { padding-bottom: 22px; gap: 12px; }
  .footer-top > p { font-size: 9px; letter-spacing: .02em; }
  .back-top { width: 30px; height: 30px; margin-left: 5px; }
  .back-top svg { width: 18px; }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 13px; font-size: 8px; padding-top: 15px; }
  .footer-bottom > .mono { width: 100%; font-size: 7px; }
  .footer-bottom > button { font-size: 8px; }
  .toast { padding: 12px 16px; font-size: 10px; bottom: 16px; }
  .about-dialog { padding: 37px 27px 30px; }
  .about-dialog h2 { font-size: 32px; }
  .about-dialog > p { font-size: 12px; }
  .viewer-header { height: 62px; min-height: 62px; padding-inline: 15px; gap: 10px; }
  .viewer-brand { font-size: 16px; gap: 8px; }
  .viewer-brand > svg { width: 21px; }
  .viewer-issue { display: none; }
  .viewer-actions { margin-left: auto; gap: 2px; }
  .viewer-icon { width: 31px; height: 31px; }
  .viewer-icon svg { width: 18px; height: 18px; }
  .viewer-action-separator { margin-inline: 3px; height: 17px; }
  .fullscreen-button { display: none; }
  .viewer-main { padding: 15px 15px 8px; }
  .viewer-pan { touch-action: pan-y; }
  .viewer-nav { top: calc(100% - 48px); width: 31px; height: 31px; background: #131a16d9; }
  .viewer-prev { left: 24px; }
  .viewer-next { right: 24px; }
  .viewer-caption-row { padding: 14px 20px 15px; gap: 12px; align-items: flex-start; }
  .viewer-title-line { gap: 8px; }
  .viewer-caption-row h2 { font-size: 16px; }
  .viewer-counter { font-size: 11px; }
  .viewer-counter > span { font-size: 8px; }
  .viewer-credit { padding-left: 0; font-size: 8px; margin-top: 7px; }
  .slideshow-button { padding: 8px 10px; font-size: 9px; gap: 6px; }
  .slideshow-button svg { width: 12px; }
  .viewer-thumbnails { margin-inline: 20px; gap: 8px; min-height: 66px; padding-top: 4px; }
  .viewer-thumbnail { width: 65px; height: 44px; }
  .viewer-footer { min-height: 54px; padding: 10px 20px 17px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .viewer-footer > .mono { font-size: 7px; }
  .viewer-notice { font-size: 9px; line-height: 1.6; }
  .viewer-details { right: 20px; top: 13px; width: calc(100% - 40px); max-height: calc(100% - 27px); padding: 12px 20px 18px; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 17px; }
  .hero h1 { font-size: 56px; }
  .title-spark { right: -40px; }
  .title-spark svg { width: 29px; }
  .hero-english { top: 188px; width: 96px; font-size: 20px; }
  .hero-stage { height: 315px; }
  .frame-main { height: 195px; top: 56px; }
  .frame-sea { height: 105px; }
  .frame-dunes { height: 129px; }
  .frame-forest { height: 116px; }
  .hero-stamp { width: 63px; height: 63px; gap: 5px; }
  .hero-stamp span { font-size: 4px; }
  .hero-stamp svg { width: 18px; }
  .primary-nav { gap: 30px; }
  .favorites-filter > span:first-of-type { display: none; }
  .viewer-brand > span { font-size: 14px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .viewer-header { height: 47px; min-height: 47px; }
  .viewer-main { padding-block: 8px; }
  .viewer-caption-row { padding-block: 7px; }
  .viewer-caption-row h2 { font-size: 14px; }
  .viewer-credit { display: none; }
  .viewer-thumbnails { min-height: 47px; padding-block: 3px 5px; }
  .viewer-thumbnail { width: 50px; height: 33px; }
  .viewer-footer { min-height: 30px; padding-block: 6px; flex-direction: row; }
}
html[data-motion="calm"] { scroll-behavior: auto; }
html[data-motion="calm"] *, html[data-motion="calm"] *::before, html[data-motion="calm"] *::after { animation: none !important; transition-duration: .01ms !important; }
html[data-motion="calm"] .floating-frame { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .floating-frame { transform: none; }
}
@media (forced-colors: active) {
  .photo-favorite, .photo-number, .viewer-nav, .layout-choice.is-active { border: 1px solid ButtonText; }
  .layout-choice.is-active, .issue-tab.is-active { outline: 1px solid Highlight; }
}
