/* Amiao — a cat's photo journal */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212;
}

:root {
  --paper: #f7f3ea;
  --paper-2: #ece6d9;
  --surface: #fbf8f1;
  --ink: #111111;
  --ink-2: #37332c;
  --muted: #756d60;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.38);
  --accent: #ff4d2e;
  --accent-soft: #f3c9bd;
  --band: #e63f1f;
  --on-accent: #f7f3ea;
  --footer-bg: #111111;
  --footer-fg: #f7f3ea;
  --footer-muted: rgba(247, 243, 234, 0.62);
  --lb-bg: #0d0c0a;
  --lb-ink: #f7f3ea;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia,
    "Times New Roman", serif;
  --wrap: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0f0e0c;
  --paper-2: #1a1814;
  --surface: #171510;
  --ink: #f5f0e6;
  --ink-2: #d0c8b9;
  --muted: #9b9284;
  --line: rgba(245, 240, 230, 0.16);
  --line-strong: rgba(245, 240, 230, 0.4);
  --accent: #ff6a45;
  --accent-soft: #3b221b;
  --band: #d63a1c;
  --footer-bg: #080807;
  --footer-fg: #f5f0e6;
  --footer-muted: rgba(245, 240, 230, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--paper);
  border-radius: 999px;
}

html.lb-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 69px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-cn {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-en {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: end;
  padding-block: clamp(36px, 6vh, 74px) clamp(72px, 11vh, 142px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-bottom: clamp(6px, 2vw, 24px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-kicker .eyebrow::before {
  display: none;
}

.hero-edition {
  flex: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.hero-title {
  margin: 24px 0 0;
  font-size: clamp(4.1rem, 9.8vw, 10rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-script {
  margin: 24px 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.005em;
}

.hero-lede {
  max-width: none;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-stats b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-scroll span {
  transition: transform 0.3s var(--ease);
}

.hero-scroll:hover {
  color: var(--accent);
}

.hero-scroll:hover span {
  transform: translateY(3px);
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(460px, 66vh, 730px);
  min-width: 0;
}

.hero-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-collage figure:first-child {
  grid-row: 1 / 3;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.hero-collage figure:hover img {
  transform: scale(1.035);
}

.hero-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 9px 11px 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}

/* Statement */

.statement {
  background: var(--band);
  color: var(--on-accent);
  padding-block: clamp(56px, 8vw, 104px);
}

.statement-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 2.38fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.statement .eyebrow {
  color: color-mix(in srgb, var(--on-accent) 88%, transparent);
}

.statement .eyebrow::before {
  background: var(--on-accent);
}

.statement-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.statement-note {
  margin: 0;
  color: color-mix(in srgb, var(--on-accent) 82%, transparent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.statement-text {
  max-width: none;
  margin: 0;
  color: var(--on-accent);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

/* Collections */

.collections {
  padding-bottom: clamp(72px, 12vh, 150px);
  scroll-margin-top: 84px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-head h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.18em;
  margin: 12px 0 0;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-count {
  margin-top: 0.1em;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.55em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.chip.is-active span {
  color: color-mix(in srgb, var(--on-accent) 70%, transparent);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px) clamp(18px, 2.4vw, 32px);
}

.album-card {
  display: block;
  grid-column: span 6;
  min-width: 0;
}

.album-card[hidden] {
  display: none;
}

.album-card.is-featured {
  grid-column: 1 / -1;
}

.album-card:nth-child(2) {
  grid-column: 1 / span 7;
}

.album-card:nth-child(3) {
  grid-column: 9 / span 4;
  margin-top: clamp(48px, 8vw, 120px);
}

.album-card:nth-child(4) {
  grid-column: 2 / span 5;
}

.album-card:nth-child(5) {
  grid-column: 8 / span 5;
  margin-top: clamp(24px, 5vw, 80px);
}

.album-card:nth-child(6) {
  grid-column: 1 / span 5;
}

.album-card:nth-child(7) {
  grid-column: 7 / span 6;
  margin-top: clamp(24px, 4vw, 64px);
}

.album-grid.is-filtered .album-card,
.album-grid.is-filtered .album-card:nth-child(n) {
  grid-column: span 6;
  margin-top: 0;
}

.album-grid.is-filtered .album-card.is-featured {
  grid-column: 1 / -1;
}

.album-grid.is-filtered .album-card .album-cover {
  aspect-ratio: 4 / 5;
}

.album-grid.is-filtered .album-card.is-featured .album-cover {
  aspect-ratio: 16 / 9;
}

.album-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.album-card:nth-child(2) .album-cover,
.album-card:nth-child(4) .album-cover {
  aspect-ratio: 3 / 2;
}

.album-card.is-featured .album-cover {
  aspect-ratio: 16 / 9;
}

.album-cover::before {
  content: attr(data-no);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 10px 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 1s var(--ease);
}

.album-card:hover .album-cover img {
  transform: scale(1.035);
}

.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 11, 9, 0.42), transparent 46%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.album-card:hover .album-cover::after {
  opacity: 1;
}

.album-cover-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.album-card:hover .album-cover-label {
  opacity: 1;
  transform: none;
}

.album-body {
  padding-top: 16px;
}

.album-main {
  min-width: 0;
}

.album-card.is-featured .album-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}

.album-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.album-card.is-featured .album-title {
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
}

.album-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s var(--ease), transform 0.3s var(--ease);
}

.album-card:hover .album-arrow {
  transform: translate(3px, -3px);
}

.album-desc {
  max-width: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-card.is-featured .album-desc {
  max-width: none;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.album-card.is-featured .album-arrow {
  display: none;
}

.album-meta {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-meta .dot {
  margin-inline: 8px;
  opacity: 0.6;
}

.album-card.is-featured .album-meta {
  margin-top: 18px;
}

/* About teaser */

.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-block: clamp(72px, 11vh, 140px);
  border-top: 3px solid var(--accent);
}

.about-teaser figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}

.about-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser h2 {
  margin: 20px 0 0;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.about-teaser p {
  max-width: none;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link span {
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Footer */

.site-footer {
  margin-top: clamp(40px, 7vw, 90px);
  border-top: 3px solid var(--accent);
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding-block: 44px 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-mark {
  color: var(--footer-fg);
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  letter-spacing: 0.01em;
}

.footer-mark::after {
  content: ".";
  color: var(--accent);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--footer-fg);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.footer-label {
  color: var(--footer-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 243, 234, 0.18);
}

.footer-note {
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-icp {
  color: var(--footer-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

.footer-icp:hover {
  color: var(--footer-fg);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease);
}

.to-top:hover {
  color: var(--accent);
}

/* Album page */

.album-page {
  padding-top: clamp(20px, 3vh, 40px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a {
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.album-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 5vh, 64px);
  padding-top: clamp(22px, 3vw, 36px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.album-head h1 {
  margin: 18px 0 0;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.album-lede {
  max-width: none;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
}

.album-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.album-facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 120px);
}

.g-item {
  position: relative;
  width: calc(33.333% - 6px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ar);
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
}

.no-js .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.no-js .g-item {
  aspect-ratio: var(--ar);
}

.g-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s var(--ease);
}

.g-item:hover img {
  transform: scale(1.025);
  filter: brightness(0.94);
}

/* Pager */

.album-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pager-link.next {
  align-items: flex-end;
  text-align: right;
}

.pager-link span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager-link strong {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  transition: color 0.2s var(--ease);
}

.pager-link:hover strong {
  color: var(--accent);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lb-ink);
}

.lightbox::backdrop {
  background: rgba(10, 9, 7, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: clamp(14px, 2.4vw, 30px);
}

.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.lb-album {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.68);
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-btn {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 999px;
  background: transparent;
  color: var(--lb-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lb-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.lightbox :focus-visible {
  outline-color: var(--lb-ink);
}

.lb-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px clamp(8px, 4vw, 64px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lb-stage::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: inherit;
  filter: blur(56px) brightness(0.26);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.lb-stage img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lb-stage img.is-loaded {
  opacity: 1;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(38px, 4.4vw, 52px);
  height: clamp(38px, 4.4vw, 52px);
  padding: 0;
  border: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 50%;
  background: rgba(18, 17, 14, 0.45);
  color: var(--lb-ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lb-nav:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.lb-nav.prev {
  left: clamp(8px, 2vw, 26px);
}

.lb-nav.next {
  right: clamp(8px, 2vw, 26px);
}

.lb-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: rgba(244, 241, 234, 0.62);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-count {
  font-variant-numeric: tabular-nums;
}

.lb-hint {
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* About page */

.about-page {
  padding-top: clamp(36px, 6vh, 72px);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 120px);
  border-top: 3px solid var(--accent);
  padding-top: clamp(24px, 4vw, 44px);
}

.about-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.about-hero h2 {
  margin: 22px 0 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.about-hero--xiaobai {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 72px);
}

.about-body {
  max-width: none;
  margin-top: 28px;
}

.about-body p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-facts b {
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-facts span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-facts--global {
  margin-block: 0;
  padding-block: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-hero figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}

.about-hero--xiaobai figure {
  aspect-ratio: 4 / 3;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-quote {
  margin: clamp(64px, 10vw, 128px) 0 0;
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--band);
  color: var(--on-accent);
}

.about-quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 2.38fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.about-quote blockquote {
  max-width: none;
  margin: 0;
  color: var(--on-accent);
  font-size: clamp(2rem, 5.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: pretty;
}

.about-quote .eyebrow {
  color: color-mix(in srgb, var(--on-accent) 88%, transparent);
}

.about-quote .eyebrow::before {
  background: var(--on-accent);
}

/* 404 */

.notfound {
  display: grid;
  place-content: center;
  min-height: calc(100vh - 66px);
  padding: var(--gutter);
  text-align: center;
}

.notfound .code {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 12rem);
  font-style: italic;
  line-height: 1;
}

.notfound h1 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.notfound p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notfound .text-link {
  margin-top: 32px;
  justify-content: center;
}

/* Entrance */

.hero-copy {
  animation: rise 0.9s var(--ease) both;
}

.hero-collage {
  animation: rise 1s var(--ease) 0.08s both;
}

.hero-collage figure {
  animation: frame-in 1.05s var(--ease) both;
}

.hero-collage figure:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-collage figure:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes frame-in {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-collage {
    height: clamp(380px, 52vh, 560px);
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 6vw, 72px) clamp(18px, 3vw, 30px);
  }

  .album-grid .album-card,
  .album-grid .album-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .album-grid .album-card.is-featured {
    grid-column: 1 / -1;
  }

  .album-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .about-hero--xiaobai figure {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  .album-card.is-featured .album-body {
    display: block;
  }

  .album-card.is-featured .album-desc {
    margin-top: 9px;
  }

  .statement-inner,
  .about-quote-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .statement-side {
    gap: 12px;
  }

  .about-teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-teaser figure {
    aspect-ratio: 4 / 3;
  }

  .album-pager {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pager-link.next {
    align-items: flex-start;
    text-align: left;
  }

  .lb-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-collage {
    display: flex;
    height: auto;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 4px;
  }

  .hero-collage::-webkit-scrollbar {
    display: none;
  }

  .hero-collage figure {
    flex: 0 0 64vw;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .hero-collage figure:first-child {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

  .brand-en {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-kicker {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-title {
    font-size: clamp(3.4rem, 15vw, 4.8rem);
  }

  .hero-stamp {
    font-size: 18px;
    padding: 7px 9px 9px;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-scroll {
    margin-top: 34px;
  }

  .about-hero figure {
    aspect-ratio: 4 / 5;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    width: 100%;
    padding-bottom: 0;
  }

  .chip {
    flex: none;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .album-card.is-featured {
    grid-column: auto;
  }

  .album-grid .album-card .album-cover,
  .album-grid .album-card.is-featured .album-cover {
    aspect-ratio: 4 / 5;
  }

  .album-card.is-featured .album-body {
    display: block;
  }

  .album-card.is-featured .album-desc {
    margin-top: 9px;
    font-size: 14.5px;
  }

  .album-card.is-featured .album-title {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .album-card.is-featured .album-meta {
    margin-top: 13px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lb-btn {
    min-width: 40px;
    padding: 0;
  }

  .lb-stage {
    padding: 6px;
  }

  .lb-nav {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

}
