/* ─── The Shameless Wall — Modern Editorial Bookstore ──────────
   Inspired by: Bookshop.org × Apple Books × Modern Library.
   Type:  Fraunces (display, variable opsz/SOFT/wght/ital)
          Plus Jakarta Sans (UI / metadata)
   Color: warm cream + ink + single terracotta accent.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --paper:       #fbf8f2;
  --paper-warm:  #f5efe3;
  --paper-deep:  #ece4d2;
  --card:        #ffffff;
  --rule:        #e6dfd0;
  --rule-soft:   #f0e9d8;

  /* Ink */
  --ink:         #14110d;
  --ink-soft:    #3c352b;
  --ink-mute:    #6b5f4f;
  --ink-faint:   #a39681;

  /* Accent — earthy terracotta */
  --accent:      #b04528;
  --accent-deep: #84321d;
  --accent-soft: #e8a48a;

  /* Type */
  --serif:       'Fraunces', 'Charter', 'Iowan Old Style', Georgia, serif;
  --sans:        'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Variable axes */
  --serif-display: 'Fraunces', serif;
  --opsz-display: 144;
  --opsz-text:    14;
  --soft-warm:    100;
  --soft-cool:    0;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 0.8, 0.28, 1);
  --t-fast:      180ms;
  --t-mid:       320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'kern', 'ss01';
  font-variation-settings: 'opsz' var(--opsz-text);
}

a { color: inherit; }

/* ─── Top bar ──────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-family: var(--sans);
}
.brand-name {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: 'opsz' 14, 'SOFT' 50;
}
.topnav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.topnav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease-out);
}
.topnav a:hover { color: var(--accent); }

/* ─── Masthead ─────────────────────────────────────────────── */

.masthead {
  padding: 96px 32px 64px;
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { max-width: 1080px; margin: 0 auto; }

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 28px;
}

.display {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 600;
  font-weight: 600;
  font-size: clamp(56px, 8.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  font-size: 22px;
  line-height: 1.5;
  max-width: 720px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.lede a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color var(--t-fast);
}
.lede a:hover { color: var(--accent); }

.byline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.byline-label { font-weight: 500; }
.byline-name { color: var(--ink); font-weight: 600; }
.byline-sep { color: var(--ink-faint); }

/* ─── Hero feature ─────────────────────────────────────────── */

.hero {
  padding: 64px 32px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 72px;
  align-items: center;
}
.hero-cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 4px;
  background: var(--card);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20,17,13,0.05),
    0 8px 24px rgba(20,17,13,0.10),
    0 32px 80px rgba(20,17,13,0.18);
  transform: rotate(-1.5deg);
  transition: transform var(--t-mid) var(--ease-out);
}
.hero-cover:hover { transform: rotate(-0.5deg) translateY(-4px); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero-title {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero-title-zh {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', 'PingFang SC', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: -8px 0 16px;
  color: var(--ink-mute);
}

.hero-author {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  font-size: 24px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.hero-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  align-items: center;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta .pill {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-bio {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero-cta:hover { background: var(--accent); transform: translateY(-1px); }
.hero-cta-arrow { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* ─── Filter bar ───────────────────────────────────────────── */

.filter-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--sans);
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-right: 8px;
}
.chip {
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--ink-mute); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip.chip-zh {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', serif, var(--sans);
  font-weight: 500;
}
.chip.chip-zh.active {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.filter-divider {
  color: var(--ink-faint);
  margin: 0 4px;
  user-select: none;
}

/* ─── Wall (grid of book cards) ────────────────────────────── */

.wall {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 36px 28px;
}

/* Bilingual filter mode: every visible card shows EN + ZH spreads */
.wall.bilingual .card { grid-column: span 2; }
.wall.bilingual .cover-wrap {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: visible;
}
.wall.bilingual .card-edition {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 4px 14px rgba(20,17,13,0.10),
    0 16px 32px rgba(20,17,13,0.06);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.wall.bilingual .card-link:hover .card-edition {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 8px 20px rgba(20,17,13,0.14),
    0 28px 56px rgba(20,17,13,0.12);
}
.wall.bilingual .card-edition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.wall.bilingual .card-edition .edition-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(20, 17, 13, 0.85);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 6px;
  border-radius: 2px;
  line-height: 1;
}
.wall.bilingual .card-edition .edition-label[lang="zh-CN"] {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 0;
  padding: 2px 6px;
}
.wall.bilingual .flip-btn { display: none !important; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
}

/* Card */
.card { position: relative; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 4px 14px rgba(20,17,13,0.10),
    0 16px 32px rgba(20,17,13,0.06);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.card-link:hover .cover-wrap {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 8px 20px rgba(20,17,13,0.14),
    0 28px 56px rgba(20,17,13,0.18);
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Edition flip button — only shown when a Chinese cover exists */
.flip-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.94);
  color: var(--ink);
  border: 1px solid rgba(20, 17, 13, 0.12);
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: opacity 200ms var(--ease-out),
              transform 200ms var(--ease-out),
              background 160ms,
              color 160ms;
  box-shadow:
    0 1px 2px rgba(20,17,13,0.08),
    0 4px 12px rgba(20,17,13,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card.has-zh-cover .flip-btn { display: grid; place-items: center; }
.card-link:hover .flip-btn,
.flip-btn:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.flip-btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.card.flipped .flip-btn {
  /* Switched to Chinese cover; button now offers "EN" return */
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.flip-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-body { padding: 14px 4px 0; }
.card-title {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 50, 'wght' 500;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link:hover .card-title { color: var(--accent); }
.card-title-zh {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', 'PingFang SC', serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title-zh:empty { display: none; }

.card-author {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 14, 'SOFT' 50;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  cursor: pointer;
  display: inline-block;
  transition: color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.card-author:hover,
.card-author:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}
.card-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.meta-handle { color: var(--accent); font-weight: 600; }
.meta-dot { color: var(--ink-faint); }
.meta-year { font-variant-numeric: tabular-nums; }

/* ─── Author modal ─────────────────────────────────────────── */

.author-modal {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(960px, 92vw);
  width: 960px;
  max-height: 86vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 1px 4px rgba(20, 17, 13, 0.10),
    0 24px 60px rgba(20, 17, 13, 0.30),
    0 60px 140px rgba(20, 17, 13, 0.30);
  overflow: hidden;
  /* Native dialog centers itself; use margins to refine on tall screens */
  margin: auto;
}
.author-modal::backdrop {
  background: rgba(20, 17, 13, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.author-modal[open] {
  animation: modalIn 280ms var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.author-modal-inner {
  padding: 48px 52px 56px;
  max-height: 86vh;
  overflow-y: auto;
}

.author-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
}
.author-modal-close:hover { background: var(--paper-deep); color: var(--ink); }

.author-modal-header { max-width: 720px; }
.author-modal-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 12px;
}
.author-modal-name {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 600;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.author-modal-handle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.author-modal-handle a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.author-modal-handle a:hover { border-bottom-color: var(--accent); }
.author-modal-bio {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
  white-space: pre-line;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.author-modal-links {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0;
}
.author-modal-links a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-mute);
  margin-right: 16px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.author-modal-links a:hover { color: var(--accent); border-color: var(--accent); }

.author-modal-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 24px;
}
.author-modal-rule::before,
.author-modal-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.author-modal-count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.author-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 22px;
}
.mini-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mini-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 4px 14px rgba(20,17,13,0.10);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}

/* Side-by-side EN + ZH covers when a book has both editions */
.mini-card.dual {
  grid-column: span 2;
}
.mini-cover-wrap.dual {
  aspect-ratio: auto;            /* drop fixed 2:3, height set by inner editions */
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: visible;
}
.mini-edition {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 4px 14px rgba(20,17,13,0.10);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.mini-card.dual a:hover .mini-edition {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 8px 20px rgba(20,17,13,0.14);
}
.mini-edition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.edition-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(20, 17, 13, 0.78);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1;
}
.edition-label[lang="zh-CN"] {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', serif;
  font-size: 11px;
  letter-spacing: 0;
  padding: 1px 5px;
}
.mini-card a:hover .mini-cover-wrap {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(20,17,13,0.04),
    0 8px 20px rgba(20,17,13,0.14),
    0 18px 40px rgba(20,17,13,0.10);
}
.mini-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.mini-title {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 50, 'wght' 500;
  font-size: 15px;
  line-height: 1.25;
  margin: 12px 0 4px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-card a:hover .mini-title { color: var(--accent); }
.mini-title-zh {
  font-family: 'Source Han Serif SC', 'Songti SC', 'Noto Serif SC', serif;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-title-zh:empty { display: none; }
.mini-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .author-modal-inner { padding: 36px 24px 40px; }
  .author-modal-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 14px; }
}

/* ─── About ───────────────────────────────────────────────── */

.about {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 96px 32px;
}
.about-inner { max-width: 720px; margin: 0 auto; }
.about h2 {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.about p {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.about strong { color: var(--ink); font-weight: 600; }
.about-disclaimer { color: var(--ink-mute); font-size: 17px; }
.about-disclaimer em { color: var(--accent); }

/* ─── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 32px;
  background: var(--paper);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-brand {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 36, 'SOFT' 100, 'wght' 600;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 4px;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  margin: 0;
}
.footer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.footer-col { line-height: 1.6; }
.footer-col em { font-style: italic; color: var(--ink); }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { max-width: 280px; }
  .topnav { gap: 18px; }
  .masthead { padding: 56px 24px 36px; }
  .wall { gap: 28px 18px; padding: 24px 18px 64px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .topbar-inner { padding: 12px 18px; }
  .brand-name { display: none; }
  .topnav { font-size: 13px; gap: 14px; }
  .filter-bar { padding: 24px 18px 4px; gap: 6px; }
  .chip { font-size: 12px; padding: 6px 11px; }
}
