:root,
[data-theme="a"] {
  --bg: #f3f0e8;
  --bg-elevated: #fbfaf6;
  --ink: #2c3329;
  --muted: #5e6759;
  --line: #d9d4c6;
  --accent: #6b7f62;
  --accent-ink: #f7f8f4;
  --hero-panel: #e4e6d9;
  --radius: 18px;
  --header-h: 72px;
  --font-body: "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans", "PingFang SC", sans-serif;
  --font-display: "Manrope", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.jm-logo__name,
.jm-foot__brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.jm-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.jm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.jm-topbar__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jm-topbar__side {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.jm-topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jm-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;
}

.jm-lang {
  position: relative;
  display: inline-flex;
}

.jm-lang__select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 11em;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-elevated);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235e6759' d='M1.2 1.2 6 6l4.8-4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.jm-lang__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.jm-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jm-logo__name {
  font-size: 22px;
}

.jm-logo__tagline {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.jm-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.jm-nav a:hover {
  color: var(--accent);
}

.jm-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}

.jm-burger__line {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.jm-hero {
  padding: 48px 0 24px;
}

.jm-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.jm-hero__intro {
  display: block;
}

.jm-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jm-hero h1,
.jm-detail__info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 52px);
}

.jm-lede {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 38em;
}

.jm-hero__art {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hero-panel);
  aspect-ratio: 4 / 5;
}

.jm-hero__art img,
.jm-item__media img,
.jm-gallery__stage img,
.jm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}

.jm-btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.jm-band {
  padding: 48px 0 64px;
}

.jm-band__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.jm-band__head h2,
.jm-about h2 {
  margin: 0;
  font-size: 28px;
}

.jm-band__head p {
  margin: 0;
  color: var(--muted);
}

.jm-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.jm-items--related {
  grid-template-columns: repeat(3, 1fr);
}

.jm-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.jm-item__link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jm-item:hover .jm-item__media img {
  transform: scale(1.03);
}

.jm-item__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--hero-panel);
}

.jm-item__media img {
  transition: transform 0.35s ease;
}

.jm-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.jm-item__media .jm-chip {
  position: absolute;
  top: 12px;
  left: 12px;
}

.jm-item__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.jm-item__body h3 {
  margin: 0;
  font-size: 18px;
}

.jm-item__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.jm-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.jm-price strong {
  font-size: 18px;
}

.jm-price s {
  color: var(--muted);
  font-size: 13px;
}

.jm-price--big strong {
  font-size: 28px;
}

.jm-band--about {
  padding-top: 0;
}

.jm-about {
  max-width: 720px;
}

.jm-about p {
  color: var(--muted);
}

.jm-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.jm-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.jm-foot__brandcol {
  display: block;
}

.jm-foot__brand {
  margin: 0 0 8px;
  font-size: 20px;
}

.jm-foot__copy,
.jm-foot__contact p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.jm-back {
  display: inline-block;
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.jm-detail__layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 24px;
}

.jm-gallery__stage {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hero-panel);
  aspect-ratio: 1;
}

.jm-gallery__rail {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.jm-gallery__cell {
  display: block;
}

.jm-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--hero-panel);
  aspect-ratio: 1;
  cursor: pointer;
}

.jm-thumb--on {
  border-color: var(--accent);
}

.jm-detail__intro {
  display: block;
}

.jm-detail__intro .jm-chip {
  margin-bottom: 12px;
}

.jm-specs {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
}

.jm-specs li {
  margin-bottom: 8px;
}

.jm-desc {
  color: var(--muted);
  margin: 0 0 24px;
}

.jm-buybar .jm-buybar__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1023px) {
  .jm-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .jm-hero__inner,
  .jm-detail__layout,
  .jm-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .jm-wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .jm-topbar__inner {
    flex-wrap: wrap;
  }

  .jm-topbar__side {
    margin-left: 0;
  }

  .jm-burger {
    display: inline-block;
  }

  .jm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .jm-nav a {
    padding: 10px 0;
  }

  body.jm-nav-open .jm-nav {
    display: flex;
  }

  .jm-hero {
    padding-top: 28px;
  }

  .jm-hero__inner,
  .jm-detail__layout,
  .jm-foot__grid,
  .jm-band__head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .jm-hero__art {
    order: -1;
    aspect-ratio: 5 / 4;
  }

  .jm-items,
  .jm-items--related {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .jm-item__body {
    padding: 12px;
  }

  .jm-item__body h3 {
    font-size: 16px;
  }

  .jm-item__body p {
    display: none;
  }

  body.jm-page--detail {
    padding-bottom: 92px;
  }

  .jm-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
  }

  .jm-buybar .jm-btn {
    flex: 0 0 auto;
  }

  .jm-buybar .jm-buybar__note {
    margin: 0;
    flex: 1;
  }
}
