:root {
  color-scheme: dark;
  --ink: #f2eee8;
  --muted: #afa6a0;
  --paper: #191516;
  --paper-2: #211b1d;
  --line: #3b3033;
  --accent: #e54e4e;
  --accent-soft: #52252a;
  --gold: #d9ae72;
  --cyan: #78c7c5;
  --black: #0f0c0d;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(229, 78, 78, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 78, 78, 0.05) 1px, transparent 1px),
    var(--black);
  background-size: 64px 64px;
}

.hero::before {
  content: "東方";
  position: absolute;
  right: -0.03em;
  bottom: -0.28em;
  color: rgba(229, 78, 78, 0.055);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(18rem, 37vw, 42rem);
  line-height: 1;
  pointer-events: none;
}

.topbar,
.hero-grid,
.section,
.stats,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-family: Georgia, "Yu Mincho", serif;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 70px;
  align-items: center;
  padding: 90px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 26px;
  max-width: 760px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(3.5rem, 7.8vw, 7.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lede { max-width: 680px; color: #c9c0ba; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--accent); background: var(--accent); color: white; }
.button.secondary { background: rgba(15, 12, 13, 0.78); color: var(--ink); }

.now-card {
  padding: 30px;
  border: 1px solid #49383d;
  border-radius: var(--radius);
  background: rgba(25, 21, 22, 0.92);
  box-shadow: 18px 18px 0 rgba(229, 78, 78, 0.1);
}

.card-kicker { margin-bottom: 8px; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.18em; }
.now-date { margin-bottom: 6px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 1.05rem; }
.now-card h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; line-height: 1.15; }
.now-card ol { margin: 26px 0; padding: 0; list-style: none; counter-reset: stores; }
.now-card li {
  counter-increment: stores;
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.now-card li::before { content: "0" counter(stores); color: var(--accent); font-family: ui-monospace, monospace; }
.now-card li strong, .now-card li span { grid-column: 2; }
.now-card li span { color: var(--muted); font-size: 0.9rem; }
.now-note { margin-bottom: 0; color: var(--muted); font-size: 0.82rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats article { padding: 30px; border-right: 1px solid var(--line); background: var(--paper); }
.stats article:last-child { border-right: 0; }
.stats strong { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.stats span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 96px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading h2, .notes h2 { margin-bottom: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 500; }
.section-heading > p { max-width: 520px; margin-bottom: 0; color: var(--muted); }

.route { border-bottom: 1px solid var(--line); }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.store-number { color: var(--accent); font-family: ui-monospace, monospace; }
.store-card h3 { margin: 28px 0 8px; font-size: 1.35rem; }
.store-hours { color: var(--gold); }
.store-address, .store-note { color: var(--muted); font-size: 0.88rem; }
.store-card a { margin-top: auto; color: var(--cyan); text-underline-offset: 4px; }

.catalogue-heading { margin-bottom: 24px; }
.controls { position: sticky; top: 12px; z-index: 5; margin-bottom: 30px; padding: 14px; display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 12, 13, 0.94); backdrop-filter: blur(12px); }
.search-field { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.search-field svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { width: 100%; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field kbd { color: var(--muted); }
.filter-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; }
.chip { white-space: nowrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: white; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.album-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}
.album-card:hover { transform: translateY(-3px); border-color: #6d5057; }
.album-card.priority { border-color: #774149; }
.album-card::after {
  content: attr(data-index);
  position: absolute;
  right: 14px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.025);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
}
.album-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.68rem; }
.tag.priority { border-color: var(--accent); color: #ffaaa6; }
.tag.price { border-color: #7f613b; color: var(--gold); }
.album-card h3 { margin-bottom: 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.45rem; line-height: 1.25; }
.album-artist { color: var(--cyan); font-size: 0.92rem; }
.album-meta { margin-top: auto; color: var(--muted); font-size: 0.8rem; }
.album-offer { margin-top: 12px; color: var(--gold); font-weight: 750; }
.load-more { width: 100%; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; }
.load-more[hidden] { display: none; }

.notes { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; border-top: 1px solid var(--line); }
.note-grid { display: grid; gap: 12px; }
.note-grid article { display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.note-grid span { grid-row: 1 / 3; color: var(--accent); font-family: ui-monospace, monospace; }
.note-grid h3 { margin-bottom: 4px; }
.note-grid p { margin-bottom: 0; color: var(--muted); }

.album-dialog { width: min(760px, calc(100% - 28px)); max-height: 88vh; padding: 0; border: 1px solid #60464c; border-radius: 22px; background: var(--paper); color: var(--ink); }
.album-dialog::backdrop { background: rgba(4, 3, 3, 0.78); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; top: 14px; z-index: 2; float: right; width: 42px; height: 42px; margin: 14px; border: 1px solid var(--line); border-radius: 50%; background: var(--black); color: white; cursor: pointer; }
.dialog-body { padding: 42px; }
.dialog-body h2 { max-width: 600px; margin-bottom: 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.dialog-artist { color: var(--cyan); }
.dialog-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-section h3 { font-size: 1rem; }
.offer-card { margin: 10px 0; padding: 16px; border: 1px solid #755b38; border-radius: 12px; }
.offer-card strong { color: var(--gold); font-size: 1.25rem; }
.offer-card p { margin: 4px 0; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shop-link { padding: 12px 14px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.shop-link:hover { border-color: var(--cyan); }
.track-list { margin: 0; padding-left: 20px; color: var(--muted); }

footer { padding: 28px 0 54px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
footer p { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; }
  .now-card { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats article:nth-child(2) { border-right: 0; }
  .stats article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .store-grid, .album-grid { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr; gap: 40px; }
  .controls { position: static; flex-direction: column; }
}

@media (max-width: 620px) {
  .topbar, .hero-grid, .section, .stats, footer { width: min(100% - 24px, 1180px); }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-grid { gap: 40px; padding-bottom: 72px; }
  h1 { font-size: 3.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stats article { padding: 22px 16px; }
  .stats strong { font-size: 2rem; }
  .section { padding: 70px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .store-grid, .album-grid { grid-template-columns: 1fr; }
  .store-card { min-height: 250px; }
  .filter-row { width: 100%; }
  .album-card { min-height: 235px; }
  .dialog-body { padding: 26px; }
  .link-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
