:root {
  color-scheme: light;
  --paper: #f8f3e6;
  --ink: #1e211e;
  --red: #bc372a;
  --blue: #dceaf0;
  --line: #c8c4b5;
  --muted: #544f46;
  --sans: "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Georgia", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 3px solid #2e6586; outline-offset: 4px; }
:where(h1, h2, p, figure) { margin: 0; }
:where(p) { line-height: 1.7; }
:where(h1, h2) { font-family: var(--serif); font-weight: 900; }
:where(section[id]) { scroll-margin-top: 1.2rem; }
.screen { scroll-snap-align: start; scroll-snap-stop: always; }
.intro-screen { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.intro-content { display: grid; align-content: center; min-width: 0; padding-block-start: clamp(.75rem, 2.5svh, 1.5rem); }
#gallery, #story { scroll-margin-top: 0; }
.shell { width: min(1140px, calc(100% - 3.5rem)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; z-index: 2; padding: .7rem; background: white; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid #353832; background: #1a1c19; color: var(--paper); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; letter-spacing: -.05em; text-decoration: none; font-size: 1.38rem; white-space: nowrap; }
.brand-logo { width: 36px; height: 36px; mix-blend-mode: screen; filter: invert(1) grayscale(1); }
.brand-period { color: #ed806a; }
.desktop-nav { display: flex; flex-wrap: wrap; gap: clamp(.9rem, 4vw, 2.8rem); }
nav a { font-size: .94rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.site-header a:hover { color: #f6df9b; }
.site-header :focus-visible { outline-color: #f6df9b; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary, .gallery-controls button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: var(--paper); cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary { border-color: #85877e; background: transparent; color: var(--paper); }
.mobile-menu summary:hover, .mobile-menu[open] summary { background: var(--paper); color: var(--ink); }
.gallery-controls button:hover { background: var(--ink); color: var(--paper); }
.mobile-menu nav {
  position: absolute; top: calc(100% + .65rem); left: 0; display: grid;
  min-width: 12rem; padding: .4rem; border: 1px solid #64675d;
  background: #1a1c19; box-shadow: 4px 4px 0 #1a1c1940;
}
.mobile-menu nav a { padding: .75rem .8rem; }
.mobile-menu nav a + a { border-top: 1px solid #51554b; }
.language { text-decoration: none; font: 700 .86rem var(--sans); border: 1px solid #85877e; border-radius: 100px; padding: .52rem .88rem; white-space: nowrap; }
.site-header .language:hover { background: var(--paper); color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(1.6rem, 5.2vw, 5.5rem); padding-block: clamp(1.75rem, 6svh, 5rem) clamp(1.25rem, 4svh, 2.3rem); }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .83rem; font-weight: 900; letter-spacing: .14em; color: var(--red); }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(3rem, min(7.15vw, 13svh), 7.2rem); line-height: 1.06; letter-spacing: -.085em; margin: .85rem 0 1.15rem; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--red); }
:lang(en) .hero h1 { font-size: clamp(2.55rem, min(5.9vw, 10.2svh), 5.15rem); }
.hero-intro { max-width: 29rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.16rem); }
.actions, .source-links { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 46px; padding: .75rem 1.25rem;
  border: 1px solid var(--ink); border-radius: 3px 9px 3px 7px; background: transparent; color: var(--ink);
  font-weight: 750; text-decoration: none; line-height: 1.22; text-align: center;
  transition: transform 150ms, box-shadow 150ms, background-color 150ms;
}
.button.primary { color: var(--paper); background: var(--ink); box-shadow: 3px 3px 0 var(--red); }
.button.buy-button { color: #fffdf5; background: var(--red); }
.button-platform-icon { width: 1.3rem; height: 1.3rem; object-fit: contain; flex: none; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); }
.button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--red); }

.hero-art {
  position: relative; width: min(100%, 57svh); min-width: 0; justify-self: center; z-index: 0; padding: .68rem .68rem .85rem;
  border: 1px solid var(--ink); background: #fffaf0; transform: rotate(2.3deg);
  box-shadow: 8px 9px 0 #dcd3bd;
}
.tape {
  position: absolute; z-index: 1; top: -.75rem; left: 38%; width: 25%; height: 1.65rem; transform: rotate(-7deg);
  background: rgba(228, 194, 120, .69); clip-path: polygon(2% 3%, 100% 0, 95% 23%, 99% 50%, 95% 77%, 100% 100%, 0 96%, 4% 74%, 0 46%, 4% 27%);
}
.frame {
  position: relative; display: grid; isolation: isolate; place-items: center; aspect-ratio: 1.22;
  overflow: hidden; border: 1px solid var(--ink);
  background: radial-gradient(#7e9ca233 1px, transparent 1.25px) 0 0 / 7px 7px, var(--blue);
}
.sun { position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; background: #f6df9b; border: 1px solid var(--ink); border-radius: 50% 48% 49% 50%; transform: translate(1%, -1%); }
.hero-logo { width: 66%; height: auto; mix-blend-mode: multiply; transform: rotate(-5deg) translateY(1%); }
.sparkle { position: absolute; font-size: clamp(1.4rem, 3vw, 2.7rem); line-height: 1; }
.sparkle-top { top: 10%; right: 9%; color: var(--red); }
.sparkle-bottom { bottom: 17%; left: 10%; font-size: clamp(1.3rem, 2.8vw, 2.15rem); }
.trail { position: absolute; width: 17%; height: 11%; border-bottom: 1px dashed var(--ink); border-radius: 50%; transform: rotate(-14deg); bottom: 14%; left: 18%; opacity: .78; }
.seal { position: absolute; bottom: 9%; right: 6%; padding: .28rem .34rem; background: var(--red); color: #fff9e7; font: 900 clamp(.95rem, 2vw, 1.5rem)/.92 var(--serif); border: 1px solid var(--ink); transform: rotate(-8deg); }
.art-signature { position: absolute; bottom: 6%; left: 7%; font: italic 1.12rem var(--serif); }
.hero-art figcaption { margin: .78rem .3rem .02rem; font: italic 1rem/1.3 var(--serif); text-align: center; }

.hero-address { padding-block-start: clamp(.6rem, 3svh, 1.85rem); }
.scroll-cue {
  display: grid; place-items: center; width: 44px; height: 44px; margin: .25rem auto .5rem;
  border-radius: 50%; color: #8a806e;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink); }
.scroll-cue svg { width: 36px; height: 36px; animation: scroll-cue-down 3s ease-in-out infinite; }
@keyframes scroll-cue-down {
  0%, 30%, 100% { transform: translateY(0); }
  62% { transform: translateY(6px); }
}
.address { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.25rem; padding: .8rem 1rem; border: 1px solid var(--line); background: #fffcf3; }
.address > div { min-width: 0; }
.address-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 750; margin-bottom: .25rem; }
.address code { font: 500 .91rem/1.5 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: none; min-height: 42px; padding: .4rem .7rem; border: 1px solid var(--line); background: transparent; font-size: .87rem; font-weight: 750; }
.copy-button:hover { background: #eee7d5; }
.copy-button svg { width: 1.1rem; height: 1.1rem; }

.wall {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh; min-height: 26rem; padding: clamp(.95rem, 4.1svh, 2.5rem) 0 .85rem; border-block: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 27px, #5b7d7320 27px 28px), #e2eadf;
}
.wall-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem; }
.wall-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; }
h2 { font-size: clamp(2.2rem, 4.7vw, 4rem); line-height: 1.09; letter-spacing: -.07em; }
.wall h2 { font-size: clamp(2rem, min(5.2vw, 7.2svh), 3.6rem); }
.wall-kicker { margin-bottom: .5rem; }
.wall-count { padding: .52rem .8rem; border: 1px solid var(--ink); background: var(--paper); font-size: .88rem; font-weight: 750; transform: rotate(-3deg); }
.section-intro { max-width: 39rem; margin-block: .55rem clamp(.75rem, 2.4svh, 1.4rem); color: var(--muted); }
.gallery-controls { display: flex; gap: .4rem; }
.gallery-controls button { border-radius: 50%; }
.gallery-controls button span { display: grid; place-items: center; }
.gallery-window {
  --gallery-gap: clamp(.75rem, 1.6vw, 1.25rem);
  --wall-art-height: clamp(10rem, calc(100svh - 24rem), 32rem);
  container-type: size; min-height: 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  width: 100%; padding: .45rem 0 .7rem; scrollbar-width: thin;
}
.gallery-window:focus-visible { outline-offset: -3px; }
.gallery-window.is-looping { scrollbar-width: none; cursor: grab; }
.gallery-window.is-looping::-webkit-scrollbar { display: none; }
.gallery-window.is-dragging { cursor: grabbing; user-select: none; }
.gallery-window.is-dragging a { cursor: grabbing; }
.gallery-track, .gallery-group { display: flex; width: max-content; }
.gallery-track { align-items: start; }
@supports (height: 1cqh) {
  .gallery-track { --wall-art-height: max(9rem, calc(100cqh - 13rem)); }
}
.gallery-group { flex: none; gap: var(--gallery-gap); padding-inline-end: var(--gallery-gap); }
.gallery-column {
  display: flex; flex: none; flex-direction: column; gap: var(--gallery-gap);
  width: calc(var(--wall-art-height) * var(--column-ratio) + 1rem);
}
.work { min-width: 0; padding: .45rem; border: 1px solid var(--ink); background: #fffcf4; box-shadow: 3px 4px 0 #8b9a8e55; }
.work-art { display: block; background: #f1ecdf; cursor: zoom-in; }
.work-art img { width: 100%; height: auto; }
.work figcaption { height: 4.25rem; min-width: 0; padding: .45rem .2rem .25rem; display: grid; gap: .22rem; align-content: start; }
.work-title {
  font-family: var(--serif); font-size: clamp(.9rem, 1.4vw, 1.06rem); font-weight: 800; line-height: 1.12;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.work-credit { width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; color: var(--muted); }
.gallery-hint { color: var(--muted); font-size: .875rem; margin-top: .5rem; }

.story {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: clamp(28rem, 44vw, 38rem); background: #f0e3b4;
}
.story-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 58%; }
.story::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #f8f3e6f8 0%, #f8f3e6ed 29%, #f8f3e6c2 46%, #f8f3e626 69%, transparent 82%);
}
.story-copy { padding-block: clamp(3.1rem, 6vw, 5.25rem); }
.story p, .token p { margin-top: .8rem; max-width: 42rem; }
.story p, .story .source-links { max-width: 33rem; }
.source-links { margin-top: 1rem; }
.source-links a { font-size: .94rem; font-weight: 750; }
.token { padding-block: clamp(3.4rem, 7vw, 5.4rem); background: #20251f; color: var(--paper); }
.token-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); }
.token h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.token p { color: #e2dbc8; }
.address-dark { margin-block: 1.05rem; border-color: #707469; background: #2c312b; }
.address-dark .address-label { color: #e2dbc8; }
.address-dark .copy-button:hover { background: #3d453b; }
.token-actions { margin-top: .85rem; }
.token .pump-button { color: var(--paper); border-color: #92988a; }
.token .wallet-button { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.wallet-button .button-platform-icon { border-radius: .25rem; }
.token .swap-note { margin-top: .55rem; font-size: .875rem; }
.community { border-left: 1px solid #707469; padding-left: clamp(2rem, 5vw, 4rem); }
.social-list { display: grid; gap: .6rem; margin-top: 1.05rem; }
.social { display: flex; gap: .7rem; align-items: center; border: 1px solid #707469; padding: .72rem; text-decoration: none; }
.social:hover { color: #f6df9b; border-color: #f6df9b; }
.social small { display: block; font-size: .81rem; opacity: .85; }
.site-footer { padding-block: 1.45rem; background: #000; color: var(--paper); }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; }
.site-footer strong { letter-spacing: -.05em; }
.site-footer p { font-size: .84rem; color: #ddd8cb; }

.lightbox {
  width: max-content; max-width: min(780px, calc(100% - 1rem)); max-height: 96dvh;
  padding: .4rem .5rem .65rem; border: 0; background: transparent; color: var(--ink); overscroll-behavior: contain;
}
.lightbox::backdrop { background: #181914ce; }
.lightbox-close { margin: 0 0 .5rem auto; }
.lightbox-inner {
  padding: clamp(.5rem, 2vw, 1.15rem); border: 2px solid var(--ink);
  background: #fffcf4; box-shadow: 4px 5px 0 #0005; touch-action: pan-y pinch-zoom;
}
.lightbox-image { width: auto; height: auto; max-height: min(40rem, max(9rem, calc(100dvh - 13.5rem))); margin-inline: auto; }
.lightbox-caption {
  contain: inline-size; padding-top: .65rem; display: flex; flex-wrap: wrap;
  gap: .45rem .7rem; justify-content: space-between; align-items: center;
}
.lightbox-caption > div:first-child { flex: 1 1 6rem; min-width: 0; overflow-wrap: anywhere; }
.lightbox-caption h2 { margin-bottom: .28rem; font-size: clamp(1.1rem, 3vw, 1.6rem); }
.lightbox-caption a { font-size: .82rem; }
.lightbox-controls { display: flex; gap: .45rem; flex: none; }
.lightbox button { display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; }
.lightbox button:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 850px) {
  .hero { gap: 1.8rem; }
  .story::after { background: linear-gradient(90deg, #f8f3e6f8 0%, #f8f3e6ed 43%, #f8f3e6c2 62%, transparent 96%); }
  .token-inner { grid-template-columns: 1fr; }
  .community { border-left: 0; border-top: 1px solid #707469; padding: 1.55rem 0 0; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 59px; gap: .65rem; padding-block: .4rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .site-header .brand { gap: .28rem; font-size: 1.15rem; }
  .brand-logo { width: 30px; height: 30px; }
  .language { padding-inline: .64rem; }
  .intro-content { padding-block-start: .75rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: clamp(.85rem, 2.5svh, 1.4rem) .85rem; gap: clamp(.85rem, 2svh, 1.4rem); }
  .hero-copy { display: contents; }
  .hero-text { grid-row: 1; }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(2.15rem, 8.85vw, 3.65rem); margin-block: .32rem .55rem; }
  .hero-intro { line-height: 1.48; }
  .hero-art { grid-row: 2; width: min(91%, 35svh, 23rem); padding: .52rem .52rem .6rem; }
  :lang(en) .hero-art { width: min(91%, 31svh, 23rem); }
  .hero-art figcaption { margin-top: .55rem; }
  .hero-actions { grid-row: 3; margin-top: .15rem; display: grid; grid-template-columns: 1fr 1fr; gap: .48rem; }
  .hero-actions .button { min-height: 44px; padding: .55rem .6rem; }
  .hero-actions .buy-button { grid-column: 1 / -1; }
  .hero-address { padding-block-start: 1.35rem; }
  .hero-address .address { flex-wrap: nowrap; padding: .52rem .66rem; gap: .45rem; }
  .hero-address .address code { font-size: .75rem; }
  .hero-address .copy-button { padding-inline: .48rem; font-size: .78rem; }
  .wall-tools { justify-content: space-between; width: 100%; }
  .story { min-height: 35rem; align-items: start; }
  .story-copy { padding-block: 2.9rem 12rem; }
  .story-art { object-position: 88% center; }
  .story::after { background: linear-gradient(180deg, #f8f3e6fa 0%, #f8f3e6ee 42%, #f8f3e6c2 58%, #f8f3e626 81%, transparent 94%); }
  .address { flex-wrap: wrap; }
}
@media (max-height: 700px) {
  .gallery-window { --wall-art-height: clamp(9rem, calc(100svh - 17rem), 22rem); }
  .gallery-column { flex-direction: row; width: auto; }
  .gallery-column .work { width: min-content; flex: none; }
  .work-art img { height: var(--wall-art-height); width: auto; max-width: none; }
  @supports (height: 1cqh) {
    .gallery-track { --wall-art-height: max(9rem, calc(100cqh - 6.75rem)); }
  }
}
@media (min-width: 651px) and (max-height: 700px) {
  .intro-content { padding-block-start: 0; }
  .hero { padding-block: 1rem .6rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-address { padding-block-start: .75rem; }
  .hero-address .address { padding-block: .6rem; }
}
@media (max-width: 650px) and (max-height: 700px) {
  .intro-content { padding-block-start: 0; }
  .hero { padding-block: .4rem; gap: .4rem; }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(1.85rem, 8.2vw, 2.6rem); margin-block: .25rem .4rem; }
  .hero-intro { font-size: .91rem; line-height: 1.42; }
  .hero-art, :lang(en) .hero-art { width: min(91%, 22svh, 18rem); padding: .4rem .4rem .48rem; }
  .hero-art figcaption { font-size: .86rem; margin-top: .45rem; }
  .hero-actions { gap: .4rem; }
  .hero-actions .button { padding: .42rem .45rem; font-size: .9rem; gap: .35rem; }
  .hero-actions .button-platform-icon { width: 1.12rem; height: 1.12rem; }
  .hero-address { padding-block-start: .1rem; }
  .scroll-cue { margin-bottom: .25rem; }
}
@media (max-width: 650px) and (max-height: 620px) {
  .hero-address { display: none; }
}
@media (max-width: 365px) {
  .work { padding: .4rem; }
  .work figcaption { padding-inline: 0; }
  .hero-actions .button { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .scroll-cue svg { animation: none; }
}
