/* ClearNote Sheets: storefront (layout and components from the approved mockup) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: var(--w-regular) var(--fs-md)/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: var(--w-light); line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: var(--w-medium); }
.skip:focus { top: 12px; }
.page { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.caps { text-transform: uppercase; letter-spacing: .16em; }

/* ---------- Info bar ---------- */
.infobar { background: var(--info-grad); color: #fff; text-align: center; }
.infobar__inner { max-width: var(--page); margin: 0 auto; padding: 10px var(--gutter); display: grid; justify-items: center; gap: 3px; }
.infobar__main { display: inline-flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; }
.infobar__main svg { width: 20px; height: 20px; flex: none; }
.infobar__sub { font-size: .75rem; font-weight: var(--w-medium); letter-spacing: .24em; text-transform: uppercase; opacity: .92; }
@media (max-width: 760px) {
  .infobar__inner { padding: 8px 14px; }
  .infobar__main { font-size: .6875rem; letter-spacing: .09em; gap: 8px; line-height: 1.45; text-wrap: balance; }
  .infobar__main svg { width: 15px; height: 15px; }
  .infobar__sub { font-size: .625rem; letter-spacing: .18em; }
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--page); margin: 0 auto; padding: 12px var(--gutter) 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions" "brand nav nav";
  column-gap: clamp(24px, 4vw, 60px); align-items: center;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 12px; min-width: 0; overflow: hidden; color: var(--ink); text-decoration: none; }
.brand__icon { flex: none; width: 76px; aspect-ratio: 860 / 1057; background: var(--logo-icon) center / contain no-repeat; }
.brand__text { display: grid; min-width: 0; }
.brand__word { font-weight: var(--w-light); font-size: 2.55rem; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.brand__tag { margin-top: 8px; font-size: .7rem; font-weight: var(--w-medium); letter-spacing: .27em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }

.search { grid-area: search; position: relative; width: 100%; max-width: 560px; }
.search__field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: var(--r-pill); background: var(--field-bg); border: 1px solid var(--line-strong); transition: border-color .2s ease, box-shadow .2s ease; }
.search__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.search__field svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: .9375rem; }
.search__input::placeholder { color: var(--ink-3); opacity: 1; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 520px); overflow: auto; padding: 6px; border-radius: var(--r-lg); background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.suggest { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); text-decoration: none; }
.suggest[aria-selected="true"], .suggest:hover { background: var(--hover); }
.suggest .cover { width: 44px; height: 44px; border-radius: var(--r-xs); }
.suggest__title { font-weight: var(--w-semibold); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__artist { font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__price { font-size: .875rem; font-weight: var(--w-semibold); }
.search__all { display: block; padding: 12px 10px 6px; font-size: .72rem; font-weight: var(--w-medium); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--accent-strong); }
.search__none { padding: 14px 10px; color: var(--ink-2); font-size: .875rem; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; }
.site-header .header-actions .icon-btn { width: 48px; height: 48px; }
.site-header .header-actions .icon-btn svg { width: 27px; height: 27px; }
.cart-count { position: absolute; top: 1px; right: -1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--badge-bg); color: #fff; font-size: 11px; font-weight: var(--w-semibold); line-height: 19px; text-align: center; }
.cart-count[data-dot] { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 7px; right: 7px; }
.menu-btn { display: none; }
.icon-btn[data-signed-in]::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #3E9D6B; box-shadow: 0 0 0 2px var(--header-bg); }

.nav { grid-area: nav; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav > a, .nav-drop__toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 2px 13px;
  font-size: .8125rem; font-weight: var(--w-medium); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.nav > a:hover, .nav-drop__toggle:hover { border-bottom-color: var(--line-strong); }
.nav > a[aria-current="page"], .nav-drop__toggle[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop__toggle svg { width: 12px; height: 12px; }
.nav-drop__menu { position: absolute; top: calc(100% + 1px); left: -14px; z-index: 50; min-width: 210px; padding: 8px; display: none; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { display: grid; }
.nav-drop__menu a { padding: 10px 12px; border-radius: var(--r-sm); font-size: .8125rem; text-decoration: none; color: var(--ink); }
.nav-drop__menu a:hover { background: var(--hover); }

.mobile-nav { max-width: var(--page); margin: 0 auto; padding: 4px var(--gutter) 14px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 13px 4px; font-size: .78rem; font-weight: var(--w-medium); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--accent-strong); }

@media (max-width: 960px) {
  .site-header { position: sticky; top: 0; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search search"; padding: 8px var(--gutter) 10px; row-gap: 8px; }
  .brand { padding-bottom: 0; gap: 8px; }
  .brand__icon { width: 42px; }
  .brand__word { font-size: 1.5rem; }
  .brand__tag { margin-top: 4px; font-size: .5rem; letter-spacing: .2em; }
  .search { max-width: none; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header .header-actions { gap: 0; }
  .site-header .header-actions .icon-btn { width: 42px; height: 42px; }
  .site-header .header-actions .icon-btn svg { width: 23px; height: 23px; }
}
@media (max-width: 480px) {
  .brand__icon { width: 34px; }
  .brand__word { font-size: 1.22rem; }
  .brand__tag { display: none; }
}
@media (max-width: 350px) { .brand__word { font-size: 1.06rem; } }


/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero__art { position: absolute; inset: 0; background: var(--hero-img) right center / auto 100% no-repeat; }
.hero__art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-bg) 0%, transparent 32%); opacity: .9; }
.hero__inner { position: relative; max-width: var(--page); margin: 0 auto; padding: 40px var(--gutter); min-height: clamp(340px, 32vw, 450px); display: flex; align-items: center; }
.hero__copy { max-width: 820px; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 3.5vw, 4.4rem); letter-spacing: -.035em; line-height: 1.03; color: var(--ink); }
.hero__sub { margin-top: 20px; font-size: clamp(.9rem, .8rem + .45vw, 1.2rem); letter-spacing: .27em; line-height: 1.75; text-transform: uppercase; color: var(--ink); }
.hero__copy .btn { margin-top: 28px; }
}

/* ---------- Browse tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 14px; }
.tile { position: relative; isolation: isolate; display: block; aspect-ratio: 2.12 / 1; overflow: hidden; border-radius: var(--r-md); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.tile { background: linear-gradient(120deg, #3A566F 0%, #22384C 58%, #172838 100%); }
.tile__art { position: absolute; inset: 9% 3% 9% 47%; z-index: 0; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 23, 32, .72) 0%, rgba(14, 23, 32, .35) 40%, rgba(14, 23, 32, 0) 68%); }
.tile__label, .tile__go { z-index: 2; }
.tile__sleeve { position: absolute; top: 8%; height: 84%; aspect-ratio: 1; left: calc(var(--i) * 15%); overflow: hidden; border-radius: 4px; box-shadow: 0 10px 22px rgba(0, 0, 0, .38); transform: rotate(calc((var(--i) - 1.5) * 3.5deg)); z-index: calc(10 - var(--i)); transition: left .45s var(--ease), transform .45s var(--ease); }
.tile__sleeve img, .tile__sleeve .cover { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.tile:hover .tile__sleeve { left: calc(var(--i) * 17%); transform: rotate(calc((var(--i) - 1.5) * 5deg)); }
.tile__face { position: absolute; top: 19%; height: 62%; aspect-ratio: 1; left: calc(var(--i) * 16%); overflow: hidden; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); z-index: calc(10 - var(--i)); transition: left .45s var(--ease); }
.tile__face img, .tile__face .cover { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.tile:hover .tile__face { left: calc(var(--i) * 18%); }
.tile__label { position: absolute; left: 28px; top: 25%; font-size: clamp(1.3rem, .95rem + 1vw, 2rem); font-weight: var(--w-light); line-height: 1.15; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.tile__go { position: absolute; left: 28px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1B2B3B; transition: transform .25s var(--ease); }
.tile__go svg { width: 15px; height: 15px; }
.tile:hover .tile__go { transform: translateX(3px); }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { aspect-ratio: 3.1 / 1; }
  .tile__art { inset: 12% 4% 12% 61%; }
  .tile__go { display: none; }
  .tile__label { top: 50%; transform: translateY(-50%); left: 20px; }
  .tile__label br { display: none; }
  .tile__go { left: auto; right: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .tile:hover .tile__go { transform: translateY(-50%) translateX(3px); }
}

/* ---------- Sections and cards ---------- */
.section { padding-top: clamp(28px, 4vw, 40px); }
.section__head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.section__title { flex: 1; display: flex; align-items: center; gap: 18px; min-width: 0; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.25rem); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.section__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section__note { color: var(--ink-2); }
.view-all, .link { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.view-all svg { width: 14px; height: 14px; }
.view-all:hover, .link:hover { color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 3px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px 16px; }
.cards--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card-bg); border-radius: var(--r-sm); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 1; overflow: hidden; }
.card__media .cover { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.cards--wide .card__media { aspect-ratio: 16 / 10; }
.card__body { display: grid; gap: 3px; padding: 12px 14px 14px; }
.card__title { font-size: .95rem; font-weight: var(--w-semibold); line-height: 1.3; text-decoration: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title::after { content: ""; position: absolute; inset: 0; }
.card__artist { font-size: .8125rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.card__price { font-size: 1.05rem; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.card__cart { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 34px; border-radius: var(--r-xs); background: var(--btn-grad); color: #fff; box-shadow: 0 3px 8px var(--btn-shadow); transition: background .2s ease; }
.card__cart:hover { background: var(--btn-grad-hover); }
.card__cart svg { width: 19px; height: 19px; }
.price { font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }

.carousel { position: relative; }
.carousel .cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -6px -6px 0; padding: 6px 6px 12px; }
.carousel .cards::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; }
.carousel__next { position: absolute; right: -16px; top: 24%; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--card-bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.carousel__next svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .cards--five { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -6px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 12px; }
  .cards--five::-webkit-scrollbar { display: none; }
  .cards--five .card { scroll-snap-align: start; }
  .carousel .cards { grid-auto-columns: 40%; margin: -6px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 12px; }
  .carousel__next { display: none; }
}
@media (max-width: 560px) {
  .cards--five, .carousel .cards { grid-auto-columns: 56%; }
  .cards:not(.cards--five):not(.cards--four):not(.carousel .cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}

/* ---------- Features ---------- */
.features { margin-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.features__inner { max-width: var(--page); margin: 0 auto; padding: 26px var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 6px 18px; text-align: center; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; color: var(--ink); }
.feature h3 { font-size: .8125rem; font-weight: var(--w-medium); letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--ink); }
.feature p { max-width: 26ch; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) {
  .features__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px var(--gutter); }
  .feature { padding: 18px 10px; }
  .feature + .feature { border-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid var(--line); }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--banner-bg); }
.banner__art { position: absolute; inset: 0 0 0 34%; overflow: hidden; perspective: 900px; }
.banner__sheet { position: absolute; right: -6%; top: 50%; width: 96%; max-width: 1000px; transform: translateY(-50%) rotateX(50deg) rotateZ(-5deg); transform-origin: 60% 50%; opacity: var(--sheet-opacity); filter: var(--sheet-filter); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 86%, transparent 100%); }
.banner__note { position: absolute; right: 17%; top: 50%; width: clamp(84px, 8.5vw, 132px); aspect-ratio: 860 / 1057; transform: translateY(-60%) rotate(9deg); background: var(--logo-icon) center / contain no-repeat; filter: drop-shadow(0 16px 20px rgba(27, 43, 59, .22)); }
.banner__note::before { content: ""; position: absolute; inset: -45%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); }
.banner__inner { position: relative; max-width: var(--page); margin: 0 auto; padding: 34px var(--gutter); min-height: clamp(180px, 16vw, 220px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.banner h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); letter-spacing: -.03em; color: var(--ink); }
.banner p { margin-top: 8px; font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.banner .btn { margin-top: 18px; }
@media (max-width: 760px) {
  .banner { display: flex; flex-direction: column; }
  .banner__inner { order: 1; min-height: 0; padding: 30px var(--gutter) 6px; }
  .banner__art { order: 2; position: relative; inset: auto; height: 170px; }
  .banner__sheet { right: -30%; width: 150%; }
  .banner__note { right: 22%; width: 86px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--page); margin: 0 auto; padding: 34px var(--gutter) 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.site-footer .brand { padding: 0; }
.site-footer .brand__icon { width: 50px; }
.site-footer .brand__word { font-size: 1.55rem; }
.site-footer__links { display: grid; justify-items: end; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.site-footer nav a { font-size: .7rem; font-weight: var(--w-medium); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer__fine { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-3); }
.theme-choice { display: flex; align-items: center; gap: 12px; }
.theme-choice__label { font-size: .7rem; font-weight: var(--w-medium); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.mobile-nav .theme-choice { justify-content: space-between; padding: 14px 4px 4px; }
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links, .site-footer nav { justify-items: start; justify-content: flex-start; }
}

/* ---------- Segmented controls ---------- */
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--field-bg); border: 1px solid var(--line); }
.segmented button, .segmented a { border: 0; background: transparent; cursor: pointer; padding: 8px 16px; border-radius: var(--r-pill); font-size: .72rem; font-weight: var(--w-medium); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; transition: background .2s ease, color .2s ease; }
.segmented [aria-selected="true"], .segmented [aria-current="page"], .segmented [aria-pressed="true"] { background: var(--btn-grad); color: #fff; }
.segmented--sm button { padding: 6px 12px; font-size: .64rem; }

/* ---------- Covers ---------- */
.cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); }
.cover--auto { position: relative; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; padding: 9% 10%; color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.cover--auto[data-v="0"] { --c1: #56728C; --c2: #2E465C; }
.cover--auto[data-v="1"] { --c1: #8AA2B6; --c2: #4D6983; }
.cover--auto[data-v="2"] { --c1: #E6ECF1; --c2: #B7C6D3; color: #1B2B3B; }
.cover--auto[data-v="3"] { --c1: #F4F2EE; --c2: #D7DEE4; color: #1B2B3B; }
.cover--auto[data-v="4"] { --c1: #3F5B74; --c2: #1E3245; }
.cover--auto .cover__staff { position: absolute; left: 0; right: 0; top: 18%; height: 30%; opacity: .28; }
.cover--auto .cover__title { position: relative; font-weight: var(--w-light); font-size: clamp(11px, 15cqi, 30px); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cover--auto .cover__artist { position: relative; margin-top: 4%; font-weight: var(--w-medium); font-size: clamp(8px, 7cqi, 14px); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover--tiny .cover__title, .cover--tiny .cover__artist, .cover--tiny .cover__staff { display: none; }
.cover--tiny::after { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-weight: var(--w-light); font-size: 1.15rem; }

/* ---------- Rows (catalog list view) ---------- */
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 8px 12px 8px 8px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .2s ease; }
.row:hover { box-shadow: var(--shadow); }
.row__thumb { display: block; overflow: hidden; border-radius: var(--r-xs); }
.row__thumb .cover { width: 62px; height: 62px; border-radius: var(--r-xs); }
.row__main { min-width: 0; }
.row__title { display: block; font-weight: var(--w-semibold); font-size: .9375rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.row__sub { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .8125rem; color: var(--ink-2); }
.row__sub a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub a:hover { color: var(--ink); text-decoration: underline; }
.row__end { display: flex; align-items: center; gap: 16px; }
.row__added { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.row .btn { --btn-h: 36px; padding: 0 14px; font-size: .68rem; }
.btn .label-short { display: none; }
@media (max-width: 900px) {
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .row__thumb .cover { width: 56px; height: 56px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
  .row__thumb .cover { width: 52px; height: 52px; }
  .row__end { display: grid; justify-items: end; gap: 4px; }
  .row .btn { --btn-h: 32px; padding: 0 10px; }
  .row .btn .label-long { display: none; }
  .row .btn .label-short { display: inline; }
}
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); font-size: .62rem; font-weight: var(--w-semibold); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); white-space: nowrap; flex: none; }
.tempo { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.tempo svg { width: .62em; height: 1.15em; flex: none; }
.timesig { display: inline-grid; justify-items: center; line-height: .82; font-weight: var(--w-light); font-variant-numeric: lining-nums; }
.timesig span { display: block; }

/* ---------- States ---------- */
.empty, .error-state { padding: clamp(26px, 4vw, 42px); border-radius: var(--r-lg); }
.empty h2, .error-state h2 { font-size: var(--fs-xl); }
.empty p, .error-state p { margin-top: 10px; max-width: 52ch; color: var(--ink-2); }
.empty .btn, .error-state .btn { margin-top: 18px; }
.skeleton { position: relative; overflow: hidden; background: var(--bg-deep); border-radius: var(--r-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; border-radius: 6px; margin-top: 10px; }

/* ---------- Catalog page ---------- */
.browse-head { display: grid; gap: 16px; padding: clamp(26px, 4vw, 44px) 0 6px; }
.browse-head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; }
.browse-head__sub { color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.toolbar__left, .toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search--page { width: 380px; max-width: 100%; }   /* room for the whole placeholder */
.select { appearance: none; -webkit-appearance: none; color: var(--ink); height: 40px; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2360788B' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: .72rem; font-weight: var(--w-medium); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 14px; border-radius: var(--r-pill); background: var(--btn-grad); color: #fff; font-size: .75rem; font-weight: var(--w-medium); text-decoration: none; }
.filter-chip svg { width: 18px; height: 18px; }
.count { margin-bottom: 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.view-toggle .icon-btn[aria-pressed="true"] { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-strong); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.az a, .az span { min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-xs); font-size: .8125rem; font-weight: var(--w-medium); text-decoration: none; }
.az a:hover { background: var(--hover); }
.az a[aria-current="true"] { background: var(--btn-grad); color: #fff; }
.az span { color: var(--ink-3); opacity: .45; }
.more-wrap { margin-top: 18px; }
.chip__count { color: var(--ink-3); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 16px; }
.album { display: block; text-decoration: none; }
.album .cover { box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.album:hover .cover { transform: translateY(-3px); }
.album__title { margin-top: 10px; font-size: .875rem; font-weight: var(--w-semibold); line-height: 1.3; }
.album__meta { font-size: .75rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .az { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .az::-webkit-scrollbar { display: none; }
  .az a, .az span { flex: none; }
  .search--page { max-width: none; flex: 1 1 100%; }
  .toolbar__left { flex: 1 1 100%; }
}

/* ---------- Song page ---------- */
.crumbs { padding: 22px 0 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.song { padding-top: 18px; }
.song__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.song__preview { margin: 0; }
.paper { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); cursor: zoom-in; overflow: hidden; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-lg); }
.paper img { width: 100%; height: auto; }
.paper__tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: var(--r-pill); font-size: .64rem; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #3F5B74; }
.paper__zoom { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #3F5B74; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.paper__zoom svg { width: 20px; height: 20px; }
.song__preview figcaption { margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
.paper--empty { aspect-ratio: 8.5 / 11; display: grid; place-items: center; cursor: default; color: #60788B; font-size: .875rem; }
.song__info { position: sticky; top: 24px; }
.song__panel { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.song__head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; }
.song__head .cover { width: 92px; height: 92px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.song__title { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.song__by { margin-top: 8px; color: var(--ink-2); }
.song__by a { color: var(--ink); font-weight: var(--w-medium); text-underline-offset: 3px; }
.song__buy { display: grid; gap: 14px; margin-top: 24px; }
.song__price { font-size: var(--fs-2xl); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.song__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.song__buttons .btn { padding: 0 16px; }
.song__assure { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.song__assure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
@media (max-width: 900px) { .song__grid { grid-template-columns: 1fr; } .song__info { position: static; order: -1; } }
@media (max-width: 420px) {
  .song__head { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .song__head .cover { width: 72px; height: 72px; }
  .song__buttons { grid-template-columns: 1fr; }
}
.lightbox { width: min(980px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 28, .75); }
.lightbox__inner { max-height: 92dvh; overflow: auto; border-radius: var(--r-md); background: #fff; }
.lightbox img { width: 100%; height: auto; }
.lightbox__close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #fff; color: #1B2B3B; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- About, FAQ, 404 ---------- */
.prose { max-width: 760px; padding: clamp(34px, 6vw, 64px) 0 clamp(40px, 6vw, 72px); }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.2rem); letter-spacing: -.03em; }
.prose__sub { margin-top: 14px; font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.prose p { margin-top: 16px; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.prose .btn { margin-top: 28px; }
.faq { display: grid; gap: 10px; margin-top: 28px; }
.faq details { padding: 0 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: var(--w-semibold); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: var(--w-light); font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 0 16px; font-size: .9375rem; line-height: 1.65; color: var(--ink-2); }
.lost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(40px, 8vw, 96px) 0; }
.lost h1 { font-size: var(--fs-3xl); letter-spacing: -.03em; }
.lost p { margin-top: 14px; max-width: 46ch; color: var(--ink-2); }
.lost__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lost__note { width: 150px; aspect-ratio: 860 / 1057; background: var(--logo-icon) center / contain no-repeat; transform: rotate(-12deg); }
@media (max-width: 640px) { .lost { grid-template-columns: 1fr; } .lost__note { width: 90px; order: -1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 12px 20px; border-radius: var(--r-pill); background: #2F4A62; color: #fff; font-weight: var(--w-medium); font-size: .875rem; box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: var(--danger); color: #fff; }

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

/* ---------- Account ---------- */
.account { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(44px, 6vw, 84px); }
.account__card { max-width: 460px; margin: 0 auto; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); }
.account__card h1 { margin-bottom: 4px; font-size: var(--fs-2xl); letter-spacing: -.02em; }
.account__card > p { margin-top: 10px; color: var(--ink-2); }
.account__tabs { display: flex; margin-bottom: 22px; }
.account__tabs button { flex: 1; }
.account__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }   /* long buttons wrap inside the card */
.account__lede { color: var(--ink-2); }
.form-msg.is-ok { color: var(--ok); }
.account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.account__head h1 { font-size: var(--fs-3xl); letter-spacing: -.03em; }
.account__email { margin-top: 4px; color: var(--ink-2); }
.account__head-actions { display: flex; gap: 10px; }
.account__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account__panel { display: grid; gap: 18px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-lg); }
.account__panel .section__title { font-size: 1.05rem; }
.purchases { display: grid; gap: 8px; }
.purchase { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.purchase__thumb .cover { width: 52px; height: 52px; border-radius: var(--r-xs); }
.purchase__thumb--empty { width: 52px; height: 52px; border-radius: var(--r-xs); background: var(--surface); }
.purchase__title { display: block; font-weight: var(--w-semibold); text-decoration: none; }
.purchase__meta { font-size: .8125rem; color: var(--ink-2); }
.purchase.is-refunded { opacity: .6; }
.purchases__empty { padding: 14px 4px; color: var(--ink-2); }
.account__note { font-size: .8125rem; color: var(--ink-2); }
@media (max-width: 800px) { .account__grid { grid-template-columns: 1fr; } }

/* ---------- Roomy home layout ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--soft { background: var(--soft-band); }
.band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; margin-bottom: clamp(26px, 4vw, 44px); }
.band__title { font-size: clamp(2rem, 1.35rem + 1.9vw, 2.9rem); font-weight: var(--w-light); letter-spacing: -.025em; line-height: 1.08; }
.band__lede { margin-top: 10px; max-width: 48ch; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
.band .view-all { font-size: 1rem; font-weight: var(--w-medium); color: var(--accent-strong); }
.section__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.02em; text-transform: none; white-space: normal; }
.section__title::after { display: none; }

/* product cards: open layout with big covers */
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.8vw, 40px); }
.card { overflow: visible; background: transparent; border-radius: 0; box-shadow: none; }
.card:hover { transform: none; box-shadow: none; }
.card__media { border-radius: 14px; box-shadow: 0 2px 6px rgba(27, 43, 59, .08), 0 14px 30px rgba(27, 43, 59, .12); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover .card__media { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(27, 43, 59, .1), 0 22px 44px rgba(27, 43, 59, .16); }
.card__body { gap: 4px; padding: 16px 2px 0; }
.card__title { font-size: 1.0625rem; }
.card__artist { font-size: .9375rem; }
.card__foot { margin-top: 12px; }
.card__price { font-size: 1.0625rem; }
.card__cart { width: 44px; height: 44px; border-radius: 50%; }

/* browse the catalog */
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.category { position: relative; display: grid; overflow: hidden; border-radius: 18px; background: var(--card-bg); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(27, 43, 59, .06), 0 12px 30px rgba(27, 43, 59, .08); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.category:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(27, 43, 59, .08), 0 22px 44px rgba(27, 43, 59, .14); }
.category__art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #3A566F 0%, #22384C 60%, #172838 100%); }
.category__body { display: grid; gap: 4px; padding: 20px 76px 24px 24px; }
.category__name { font-size: 1.45rem; font-weight: var(--w-light); letter-spacing: -.01em; }
.category__meta { font-size: .9375rem; color: var(--ink-2); }
.category__go { position: absolute; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--btn-grad); transition: transform .25s var(--ease); }
.category__go svg { width: 18px; height: 18px; }
.category:hover .category__go { transform: translateX(3px); }
.category__art .tile__sleeve { top: 15%; height: 70%; left: calc(10% + var(--i) * 14%); }
.category:hover .tile__sleeve { left: calc(8% + var(--i) * 16%); transform: rotate(calc((var(--i) - 1.5) * 5deg)); }
.category__art .tile__face { top: 21%; height: 58%; left: calc(9% + var(--i) * 17%); }
.category:hover .tile__face { left: calc(7% + var(--i) * 19%); }

/* recently added: two roomy columns */
.rows--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.rows--two .row { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 14px; }
.rows--two .row__thumb .cover { width: 68px; height: 68px; border-radius: 10px; }

/* features on a soft band */
.band.features { margin: 0; border: 0; }
.band .features__inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.band .feature { justify-items: start; gap: 12px; padding: 0; text-align: left; border: 0; }
.band .feature + .feature { border: 0; }
.band .feature svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; color: var(--accent-strong); background: var(--card-bg); box-shadow: 0 1px 2px rgba(27, 43, 59, .06), 0 6px 16px rgba(27, 43, 59, .08); }
.band .feature h3 { font-size: 1.05rem; font-weight: var(--w-semibold); letter-spacing: 0; text-transform: none; }
.band .feature p { max-width: 30ch; font-size: .95rem; line-height: 1.55; }

@media (max-width: 960px) {
  .cards--four { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -8px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter) 16px; }
  .cards--four::-webkit-scrollbar { display: none; }
  .cards--four .card { scroll-snap-align: start; }
  .cards--four, .cards--five, .carousel .cards { scroll-padding-inline: var(--gutter); }   /* cards stop at the page margin, not the screen edge */
  .categories { grid-template-columns: 1fr; max-width: 560px; }
  .rows--two { grid-template-columns: 1fr; }
  .band .features__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards--four { grid-auto-columns: 64%; }
  .band .features__inner { grid-template-columns: 1fr; }
  .rows--two .row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .rows--two .row__thumb .cover { width: 56px; height: 56px; }
}

.purchase__state { font-size: .75rem; font-weight: var(--w-semibold); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.account__waiting { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); font-size: .9rem; }
@media (max-width: 520px) {
  .purchase { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; }
  .purchase > :last-child { grid-column: 2; justify-self: start; }
}

/* ---------- Reference typography: Montserrat at normal spacing, heavier headlines ---------- */
.hero__title, .band__title, .section__title, .browse-head h1, .song__title, .prose h1, .banner h2, .lost h1,
.account__head h1, .account__card h1, .category__name { font-weight: var(--w-regular); letter-spacing: -.01em; }
.hero__title { line-height: 1.08; }
.hero__eyebrow { margin-bottom: 16px; font-size: .75rem; font-weight: var(--w-semibold); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.hero__sub { max-width: 34ch; margin-top: 18px; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.brand__word { font-weight: var(--w-light); letter-spacing: -.01em; }
.brand__word strong { font-weight: var(--w-semibold); }

/* ---------- Soft light across the site ---------- */
.site-header { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.hero__inner { z-index: 2; }
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.band--soft { background: var(--soft-band); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--rays) left top / min(1400px, 115%) auto no-repeat; opacity: .9; }
.banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--rays) left top / min(1100px, 90%) auto no-repeat; opacity: .8; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--rays) left top / 1000px auto no-repeat; opacity: .6; }
.site-footer__inner { position: relative; }
.site-footer__support { grid-column: 1 / -1; font-size: .875rem; color: var(--ink-2); }
.site-footer__support a { color: var(--ink); font-weight: var(--w-medium); }
/* glass glint across covers on hover */
.card__media { position: relative; }
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, .22) 55%, transparent 68%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.card:hover .card__media::after { transform: translateX(120%); }
.glass, .category, .rows--two .row { box-shadow: 0 1px 2px rgba(27, 43, 59, .05), 0 10px 28px rgba(27, 43, 59, .07), inset 0 1px 0 rgba(255, 255, 255, .9); }

/* ---------- Phone header: menu in the left corner, logo centred ---------- */
@media (max-width: 960px) {
  .site-header__inner { grid-template-columns: 76px minmax(0, 1fr) 76px; grid-template-areas: "menu brand actions" "search search search"; }
  .menu-btn { grid-area: menu; display: inline-grid; justify-self: start; margin-left: -8px; }
  .brand { justify-self: center; gap: 6px; }
  .header-actions { justify-self: end; margin-right: -6px; }
  .site-header .header-actions .icon-btn { width: 38px; height: 38px; }
  .site-header .header-actions .icon-btn svg { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .brand__icon { width: 30px; }
  .brand__word { font-size: 1.1rem; }
}
@media (max-width: 350px) { .brand__word { font-size: .98rem; } .brand__icon { width: 26px; } }

/* ---------- Round 7: translucent menu bar over the hero, pearl ivory, softer wordmark ---------- */
.brand__word strong { font-weight: var(--w-medium); }
.site-header { background: var(--header-bg); border-bottom: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 1px 0 rgba(27, 43, 59, .05); }
.site-footer { background: var(--bg-deep); }
@media (min-width: 961px) {
  body:has(.hero) .site-header { background: rgba(250, 248, 243, .5); }
  body:has(.hero) .hero { overflow: visible; }
  body:has(.hero) .hero__art { top: calc(var(--header-h) * -1); background-size: cover; background-position: 72% center; }   /* the whole picture, the note centred in the picture area at any width */
}
.hero__art::before { opacity: .55; }
/* sheet preview on the song page: one straight sheet of paper */
.song__preview { position: relative; }
.song__preview .paper { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(27, 43, 59, .06), 0 16px 36px rgba(27, 43, 59, .12); transition: box-shadow .3s var(--ease); }
.song__preview .paper:hover { box-shadow: 0 2px 4px rgba(27, 43, 59, .08), 0 22px 44px rgba(27, 43, 59, .16); }
.song__preview .paper img { position: relative; }
@media (prefers-reduced-motion: reduce) { .song__preview .paper { transition: none; } }

/* ---------- cart panel (our own cart; checkout on Payhip) ---------- */
button.card__cart { border: 0; padding: 0; font: inherit; cursor: pointer; }
.cart { position: fixed; inset: 0; z-index: 300; }
.cart[hidden] { display: none; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(23, 43, 59, .3); opacity: 0; transition: opacity .3s var(--ease); }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg);
  box-shadow: -14px 0 40px rgba(23, 43, 59, .18); transform: translateX(100%); transition: transform .32s var(--ease); outline: none; }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font-size: 1.25rem; font-weight: var(--w-regular); }
.cart__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.cart__close:hover { background: var(--hover); }
.cart__items { flex: 1; overflow-y: auto; margin: 0; padding: 4px 22px; list-style: none; }
.cart__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart__thumb { grid-row: 1 / 3; width: 56px; }
.cart__info { grid-row: 1 / 3; min-width: 0; }
.cart__title { display: block; color: var(--ink); font-weight: var(--w-medium); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart__title:hover { text-decoration: underline; }
.cart__artist { display: block; font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart__price { font-weight: var(--w-medium); text-align: right; }
.cart__remove { justify-self: end; padding: 0; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.cart__empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.cart__foot { display: grid; gap: 12px; padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.cart__total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart__checkout { width: 100%; justify-content: center; }
.cart__checkout:disabled { opacity: .5; cursor: default; }
.cart__note { margin: 0; font-size: .8rem; color: var(--ink-2); text-align: center; }
html.cart-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cart__panel, .cart__backdrop { transition: none; } }

/* ---------- Round 8 ---------- */
/* closing banner: the same picture as the hero */
.banner__art { inset: 0 0 0 26%; perspective: none; background: var(--banner-img, url("../assets/brand/banner.jpg?v=20261127")) 62% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
@media (max-width: 960px) {
  .banner__art { height: 220px; background-position: 66% center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%); mask-image: linear-gradient(180deg, transparent 0%, #000 24%); }
}
/* special announcement */
.announce { position: relative; z-index: 45; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 52px; background: var(--infobar-bg, linear-gradient(90deg, #172B3B, #3F5B74)); color: #F5F2EC; text-align: center; }
.announce__text { margin: 0; font-size: .8rem; font-weight: var(--w-medium); letter-spacing: .08em; }
.announce__text a { color: #FFFFFF; text-underline-offset: 3px; margin-left: 6px; }
.announce__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.announce__close:hover { background: rgba(255, 255, 255, .12); }
.announce__close svg { width: 18px; height: 18px; }
/* song lists: the New release tag sits by the title, so artist names have room */
/* one add-to-cart button everywhere */
.add-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: var(--btn-grad); color: #FFFFFF; font: inherit; font-size: .7rem; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 43, 59, .12), inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .2s, transform .15s; }
.add-btn:hover { background: var(--btn-grad-hover); }
.add-btn:active { transform: translateY(1px); }
.add-btn__icon { display: grid; }
.add-btn__icon svg { width: 17px; height: 17px; }
.add-btn.is-in-cart { background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
.add-btn--lg { height: 48px; padding: 0 24px; font-size: .78rem; }
.add-btn--choose { text-decoration: none; }
.cart__key { display: block; font-size: .8rem; color: var(--ink-2); }
.card__foot { flex-wrap: wrap; row-gap: 10px; }
.card__foot .add-btn { width: 100%; margin-left: 0; }   /* price, then the button the width of the card */
/* phone menu: drawer from the left, page dimmed and locked; the menu icon turns into an X */
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .28s var(--ease), top .28s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 6.2px; } .burger span:nth-child(3) { top: 12.4px; }
[aria-expanded="true"] .burger span:nth-child(1) { top: 6.2px; transform: rotate(45deg); }
[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger span:nth-child(3) { top: 6.2px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; left: 0; top: var(--menu-top, 0px); bottom: 0; z-index: 260; display: flex; flex-direction: column; width: min(330px, 84vw); max-width: none; margin: 0;
  padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; border: 0; border-right: 1px solid var(--line); background: var(--bg);
  box-shadow: 14px 0 40px rgba(23, 43, 59, .16); transform: translateX(-104%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s linear .32s; }
.mobile-nav.is-open { transform: none; visibility: visible; transition: transform .32s var(--ease); }
.mobile-nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.mobile-nav a:last-of-type { border-bottom: 0; }
.menu-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, 0px); z-index: 250; background: rgba(23, 43, 59, .38); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }
html.menu-open { overflow: hidden; }
@media (min-width: 961px) { .mobile-nav, .menu-backdrop { display: none !important; } }
/* cart panel */
.cart { z-index: 300; }
.cart__panel { width: min(400px, 88vw); background: linear-gradient(180deg, #FBF9F5 0%, var(--bg) 100%); border-left: 1px solid var(--line); }
.cart__head { gap: 14px; padding: 20px 20px 18px 22px; }
.cart__mark { flex: none; width: 34px; height: 42px; background: url("../assets/brand/crystal-note.png?v=20261127") center / contain no-repeat; }
.cart__heading { flex: 1; min-width: 0; }
.cart__heading h2 { font-size: 1.3rem; }
.cart__heading p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-2); }
.cart__close { display: grid; place-items: center; font-size: 0; }
.cart__close svg { width: 20px; height: 20px; }
.cart__items { padding: 10px 16px; }
.cart__item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0 14px; margin: 8px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(23, 43, 59, .05), 0 8px 20px rgba(23, 43, 59, .05); }
.cart__thumb { grid-row: auto; width: 64px; }
.cart__info { grid-row: auto; display: flex; flex-direction: column; gap: 1px; }
.cart__price { margin-top: 4px; text-align: left; font-size: .9rem; color: var(--ink); }
.cart__remove { align-self: start; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); text-decoration: none; }
.cart__remove:hover { background: var(--hover); color: var(--ink); }
.cart__remove svg { width: 16px; height: 16px; }
.cart__empty { display: grid; justify-items: center; gap: 14px; padding: 56px 12px; }
.cart__empty p { margin: 0; }
.cart__empty-mark { width: 54px; height: 66px; opacity: .9; background: url("../assets/brand/crystal-note.png?v=20261127") center / contain no-repeat; }
.cart__foot { gap: 10px; padding: 18px 22px calc(20px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .7); }
.cart__total { font-size: 1.05rem; }
.cart__fine { margin: -4px 0 4px; font-size: .78rem; color: var(--ink-2); }
.cart__checkout { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border: 0; border-radius: var(--r-pill); background: var(--btn-grad); color: #FFFFFF;
  font: inherit; font-size: .8rem; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px rgba(23, 43, 59, .2); }
.cart__checkout:hover { background: var(--btn-grad-hover); }
.cart__checkout svg { width: 17px; height: 17px; }
.cart__continue { justify-self: center; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: .82rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* "added to cart" message */
.cart-toast { position: fixed; z-index: 280; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; width: min(420px, calc(100vw - 28px));
  padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(251, 249, 245, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(23, 43, 59, .22); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cart-toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast__thumb { flex: none; width: 44px; }
.cart-toast__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; }
.cart-toast__text strong { font-weight: var(--w-semibold); }
.cart-toast__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cart-toast__btn { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--btn-grad); color: #FFFFFF; font: inherit; font-size: .7rem; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cart-count.bump { animation: cart-bump .5s var(--ease); }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-toast, .mobile-nav, .menu-backdrop, .burger span { transition: none; } .cart-count.bump { animation: none; } }
/* Google / Apple sign-in */
.oauth { display: grid; gap: 10px; margin: 18px 0 4px; }
.oauth__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: var(--r-pill); font: inherit; font-size: .9rem; font-weight: var(--w-medium); cursor: pointer; }
.oauth__btn svg { width: 20px; height: 20px; }
.oauth__btn--google { border: 1px solid var(--line-strong); background: #FFFFFF; color: #1F1F1F; }
.oauth__btn--apple { border: 0; background: #000000; color: #FFFFFF; }
.oauth__or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: .78rem; color: var(--ink-2); }
.oauth__or::before, .oauth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Round 9 ---------- */
/* the whole wordmark in the same slight bold */
.brand__word, .brand__word strong { font-weight: var(--w-medium); }
/* header: logo, menu links, then search, account and cart; search opens below */
.search-btn { grid-area: sbtn; }
.search--header { grid-area: search; width: 100%; max-width: 760px; justify-self: center; margin: 12px 0 4px; }
@media (min-width: 961px) {
  .site-header__inner { --hdr-gap: clamp(18px, 2.2vw, 40px); grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand nav sbtn actions" "search search search search"; padding: 14px var(--gutter); column-gap: var(--hdr-gap); }
  .site-header .brand { padding-bottom: 0; }
  .site-header .brand__icon { width: clamp(46px, 3.4vw, 60px); }
  .site-header .brand__word { font-size: clamp(1.6rem, 1.1rem + .9vw, 2.15rem); }
  .site-header .nav { justify-content: center; gap: clamp(12px, 1.5vw, 30px); }
  .site-header .search-btn { width: 48px; height: 48px; margin-right: calc(6px - var(--hdr-gap)); }   /* sits with account and cart, the same 6px apart */
  .site-header .search-btn svg { width: 27px; height: 27px; }
}
@media (min-width: 961px) and (max-width: 1399px) {
  .site-header__inner { grid-template-areas: "brand . sbtn actions" "nav nav nav nav" "search search search search"; padding-bottom: 0; }
  .site-header .nav { justify-content: space-between; margin-top: 10px; }
  .site-header .brand__tag { display: none; }
}
@media (max-width: 960px) {
  /* menu + search on the left mirror account + cart on the right: four 40px buttons, no gaps, logo centred */
  .site-header__inner { grid-template-columns: 40px 40px minmax(0, 1fr) 80px; grid-template-areas: "menu sbtn brand actions" "search search search search"; column-gap: 0; row-gap: 0; }
  .site-header .menu-btn { width: 40px; height: 40px; margin-left: -8px; }
  .site-header .search-btn { display: inline-grid; width: 40px; height: 40px; justify-self: start; margin-left: -8px; }
  .site-header .search-btn svg { width: 22px; height: 22px; }
  .site-header .header-actions { gap: 0; margin-right: -8px; }
  .site-header .header-actions .icon-btn { width: 40px; height: 40px; }
  .site-header .brand { margin: 0 6px; }
  .search--header { margin: 10px 0 2px; max-width: none; }
}
/* wider pages: more new releases per row */
@media (min-width: 961px) { .cards--four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
/* phone menu and cart: slide out under the header bar, which stays visible (its menu icon becomes the X) */
.mobile-nav { top: var(--drawer-top, 0px); z-index: 330; width: min(400px, 88vw); padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #FBF9F5 0%, var(--bg) 100%); border-right: 1px solid var(--line); }
.mobile-nav a { margin: 0 24px; }
.menu-backdrop { top: var(--drawer-top, 0px); z-index: 320; }
.cart { top: var(--drawer-top, 0px); }
/* song lists on phones: full titles and names; the "New" badge follows the title, never on the cover */
@media (max-width: 760px) {
  .row, .rows--two .row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb main" "thumb end"; align-items: start; row-gap: 8px; }
  .row__thumb { grid-area: thumb; }
  .row__main { grid-area: main; }
  .row__end { grid-area: end; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .row__title { white-space: normal; overflow: visible; text-overflow: clip; }
  .row__sub { flex-wrap: wrap; row-gap: 2px; }
  .row__sub a { white-space: normal; overflow: visible; text-overflow: clip; }
}
/* email list sign-up (footer) */
.subscribe { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 14px 28px; margin: 8px 0 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.subscribe__text { display: grid; gap: 4px; }
.subscribe__text strong { font-size: 1.1rem; font-weight: var(--w-medium); }
.subscribe__text span { font-size: .9rem; color: var(--ink-2); }
.subscribe__row { display: flex; gap: 10px; }
.subscribe__row input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFFFF; font: inherit; color: var(--ink); }
.subscribe__row .btn { flex: none; height: 48px; }
.subscribe__msg { grid-column: 1 / -1; margin: 0; font-size: .88rem; }
.subscribe__msg:empty { display: none; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; padding: 18px; } .subscribe__row { flex-direction: column; } }
/* custom arrangements */
.cta-arrange { padding: clamp(30px, 4vw, 54px) var(--gutter); }
.cta-arrange__inner { max-width: var(--page); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(100deg, #FFFFFF 0%, #F6F1E8 100%); box-shadow: 0 1px 2px rgba(23, 43, 59, .05), 0 12px 30px rgba(23, 43, 59, .07); }
.cta-arrange h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: var(--w-regular); }
.cta-arrange p { margin: 0; color: var(--ink-2); }
.arrange { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.arrange__hero { max-width: 780px; }
.arrange__hero h1 { margin: 10px 0 14px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: var(--w-regular); letter-spacing: -.01em; line-height: 1.08; }
.arrange__lede { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.arrange__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.arrange__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: clamp(36px, 5vw, 56px) 0; }
.arrange__item { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(23, 43, 59, .05), 0 10px 26px rgba(23, 43, 59, .06); }
.arrange__item h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: var(--w-medium); }
.arrange__item p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.arrange__form { max-width: 880px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .75); scroll-margin-top: 24px; }
.arrange__form h2 { margin: 0 0 18px; font-size: 1.5rem; font-weight: var(--w-regular); }
.arrange__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.arrange__form .field { display: grid; gap: 6px; margin-bottom: 14px; }
.arrange__form .field label { font-size: .82rem; font-weight: var(--w-medium); }
.arrange__form input, .arrange__form select, .arrange__form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; font: inherit; color: var(--ink); }
.arrange__form textarea { min-height: 120px; resize: vertical; }
.arrange__form .form-msg { margin: 0 0 14px; }
.arrange__form .form-msg:empty { display: none; }
@media (max-width: 760px) { .arrange__grid, .arrange__fields { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .site-header .brand { gap: 5px; }
  .site-header .brand__icon { width: 27px; }
  .site-header .brand__word { font-size: 1.02rem; letter-spacing: -.03em; }
}
@media (max-width: 360px) { .site-header .brand__word { font-size: .92rem; } .site-header .brand__icon { width: 23px; } }
@media (min-width: 961px) {
  .site-header .nav > a, .site-header .nav-drop__toggle { white-space: nowrap; letter-spacing: .1em; font-size: .72rem; }
}
@media (min-width: 961px) and (max-width: 1599px) { .site-header .brand__tag { display: none; } }

/* ---------- Round 10 ---------- */
/* song page: choose the key when a song is sold in more than one */
.keypick { margin: 4px 0 16px; }
.keypick__label { margin: 0 0 8px; font-size: .72rem; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.keypick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.keypick__opt { min-width: 64px; height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font: inherit; font-size: .9rem; font-weight: var(--w-medium); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s, background .2s, color .2s; }
.keypick__opt:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.keypick__opt[aria-checked="true"] { background: var(--btn-grad); color: #FFFFFF; box-shadow: none; }
.keypick__note { margin: 8px 0 0; font-size: .8rem; color: var(--ink-2); }

/* ---------- Round 11 ---------- */
/* listings: song and artist up front */
/* song page: song and artist, buying, then the sheet details */
.song__by { font-size: 1.05rem; }
.song__keyask { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.song__keyask a { color: var(--ink); font-weight: var(--w-medium); text-underline-offset: 3px; }
.song__details-title { margin: 26px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: var(--w-semibold); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.song__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.song__details > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.song__details dt { font-size: .75rem; color: var(--ink-2); }
.song__details dd { margin: 0; font-size: 1rem; font-weight: var(--w-medium); color: var(--ink); overflow-wrap: anywhere; }
.song__details dd a { color: inherit; text-underline-offset: 3px; }
.song__details .tempo svg { width: .62em; height: 1.1em; }
@media (max-width: 480px) { .song__details { grid-template-columns: 1fr; } }
/* artists page: photo and name in a list */
.artist-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 18px; margin-top: 18px; }
.artist-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 43, 59, .04), 0 8px 22px rgba(27, 43, 59, .06); transition: box-shadow .2s, transform .2s var(--ease); }
.artist-row:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27, 43, 59, .06), 0 14px 30px rgba(27, 43, 59, .1); }
.artist-row__photo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: linear-gradient(150deg, #8AA2B6, #3F5B74); color: #FFFFFF; font-size: 1.1rem; box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(27, 43, 59, .18); }
.artist-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-row__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.artist-row__name { font-size: 1.05rem; font-weight: var(--w-semibold); }
.artist-row__count { font-size: .85rem; color: var(--ink-2); }
.artist-row__go { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
@media (max-width: 480px) { .artist-rows { grid-template-columns: 1fr; } .artist-row__photo { width: 56px; height: 56px; } }

/* ---------- Round 12: interface guidelines ---------- */
/* headings: no lone word on the last line */
h1, h2, h3, .hero__title, .song__title, .band__title { text-wrap: balance; }
/* drawers: scrolling to the end doesn't scroll the page behind */
.cart__items, .mobile-nav { overscroll-behavior: contain; }
/* taps act at once (no double-tap zoom wait) */
a, button, .btn, .add-btn, label, select, summary { touch-action: manipulation; }
/* key picker: the chosen key shows a ring when moved to with the keyboard */
.keypick__opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* removed from the cart: a short undo */
.cart-toast__undo { flex: none; height: 38px; padding: 0 16px; border: 1.5px solid var(--accent-strong); border-radius: var(--r-pill); background: transparent; color: var(--accent-strong); font: inherit; font-size: .7rem; font-weight: var(--w-semibold); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cart-toast { z-index: 340; }   /* above the open cart, so Undo can be seen */

/* ---------- Round 13 ---------- */
/* the New badge, after the song title (left out in the New releases lists) */
.row__titleline, .card__titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row__titleline .row__title, .card__titleline .card__title { min-width: 0; }
.tag--new { flex: none; }
.song__new { margin: 0 0 12px; }
@media (max-width: 760px) {
  .row__titleline { display: block; }                 /* phones: the full title wraps, the badge follows it */
  .row__titleline .row__title { display: inline; }
  .row__titleline .tag--new { display: inline-flex; height: 18px; margin-left: 6px; padding: 0 7px; vertical-align: 2px; font-size: .56rem; }
}
.account__form .btn { white-space: normal; text-align: center; padding-left: 18px; padding-right: 18px; }
/* room between the last list or card and the footer */
.page--spaced { padding-bottom: clamp(48px, 6vw, 88px); }

/* ---------- Round 14: mobile-first refinement (premium, compact; the hero is the one big moment) ---------- */
/* light rays belong to the hero; the rest of the site stays calm */
.band::before, .site-footer::before { display: none; }
/* one corner radius, half the shadow */
.card__media, .sheetcard__paper, .category, .rows--two .row, .row, .artist-row { border-radius: var(--radius); }
.card__media { box-shadow: 0 1px 3px rgba(27, 43, 59, .05), 0 7px 16px rgba(27, 43, 59, .06); }
.card:hover .card__media { box-shadow: 0 2px 5px rgba(27, 43, 59, .06), 0 12px 24px rgba(27, 43, 59, .08); }
.glass, .category, .rows--two .row { box-shadow: 0 1px 2px rgba(27, 43, 59, .03), 0 5px 14px rgba(27, 43, 59, .04); }
.category:hover { box-shadow: 0 2px 5px rgba(27, 43, 59, .05), 0 11px 22px rgba(27, 43, 59, .07); }
.btn--solid, .btn--primary { box-shadow: 0 3px 8px var(--btn-shadow); }
/* calmer capitals */
.btn { letter-spacing: .1em; }
.btn--sm { letter-spacing: .08em; }
.add-btn { letter-spacing: .07em; }
.hero__eyebrow { letter-spacing: .14em; }
/* section headings: a touch heavier */
.band__title { font-weight: var(--w-medium); letter-spacing: -.02em; }

/* section heading with "View all" beside it */
.band__head--row { flex-wrap: nowrap; align-items: flex-end; }
.band__head--row > div { min-width: 0; }
.band__head--row .view-all { flex: none; }

/* product cards: info lines up whatever the title length; the button sits at the bottom */
.card { height: 100%; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__foot { margin-top: auto; padding-top: 10px; }

/* Popular / Featured sheets: the music itself, as a sheet of paper */
.sheetcard__paper { display: block; aspect-ratio: 1200 / 1553; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(27, 43, 59, .04), 0 6px 16px rgba(27, 43, 59, .06); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sheetcard__paper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheetcard:hover .sheetcard__paper { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27, 43, 59, .05), 0 12px 26px rgba(27, 43, 59, .08); }
.sheetcard .skeleton.sheetcard__paper { border: 0; }

/* Why ClearNote? */
.why__title { margin-bottom: clamp(24px, 3vw, 36px); text-align: center; }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 1100px; margin: 0 auto; }
.why__item { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.why__item svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; color: var(--accent-strong); background: var(--card-bg); box-shadow: 0 1px 2px rgba(27, 43, 59, .05), 0 3px 8px rgba(27, 43, 59, .05); }
.why__item h3 { margin: 4px 0 0; font-size: 1rem; font-weight: var(--w-semibold); letter-spacing: 0; text-transform: none; }
.why__item p { margin: 0; max-width: 24ch; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }

/* questions on the home page */
.home-faq__list { max-width: 820px; margin-top: 0; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: .9375rem; }
  /* hero: big and calm; the words on the light upper part, the crystal note smaller, bottom right, never under them */
  .hero__inner { min-height: clamp(600px, 78svh, 720px); padding: 40px var(--gutter) 0; align-items: flex-start; }
  .hero__art { inset: 0; background: var(--hero-bg); }
  .hero__art::before { display: none; }
  /* the picture fills the lower part and fades in from nothing, so there's no edge behind the button */
  .hero__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 47%;
    background: var(--hero-img-mobile) right bottom / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%); }
  .hero__copy { max-width: none; }
  .hero__eyebrow { margin-bottom: 18px; font-size: .72rem; }
  .hero__title { max-width: 13ch; font-size: clamp(2.15rem, 1.25rem + 4.6vw, 2.65rem); line-height: 1.08; letter-spacing: -.03em; }
  .hero__title br { display: none; }
  .hero__sub { margin-top: 18px; max-width: 30ch; font-size: clamp(1rem, .92rem + .4vw, 1.125rem); line-height: 1.55; }
  .hero__copy .btn { margin-top: 30px; --btn-h: 50px; padding: 0 26px; font-size: .78rem; letter-spacing: .08em; box-shadow: 0 2px 6px var(--btn-shadow); }

  /* everything after the hero: compact */
  .band { padding: 40px 0; }
  .band__head { margin-bottom: 18px; gap: 12px; }
  .band__title { font-size: 1.625rem; }
  .band__lede { margin-top: 6px; font-size: .9375rem; }
  .band .view-all { font-size: .9rem; }

  /* cards: about two in view, scroll sideways */
  .cards--four { grid-auto-columns: 45%; gap: 14px; }
  .card__body { gap: 2px; padding: 10px 2px 0; }
  .card__title { font-size: 1rem; }
  .card__artist { font-size: .84rem; }
  .card__price { font-size: 1rem; }
  .card__foot { padding-top: 8px; row-gap: 8px; }
  .add-btn--card { height: 36px; padding: 0 10px; font-size: .74rem; }
  .card__titleline .tag--new { height: 18px; padding: 0 6px; font-size: .56rem; }

  /* browse the catalog: compact rows (picture, name, arrow) */
  .categories { grid-template-columns: 1fr; gap: 10px; max-width: none; }
  .category { grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; }
  .category:hover { transform: none; }
  .category__art { aspect-ratio: auto; height: 76px; margin: 8px 0 8px 8px; border-radius: 9px; }
  .category__body { padding: 0 14px; }
  .category__name { font-size: 1.125rem; font-weight: var(--w-medium); }
  .category__go { position: static; width: 34px; height: 34px; margin-right: 14px; }
  .category__go svg { width: 15px; height: 15px; }

  /* why ClearNote: two by two */
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .why__item svg { width: 42px; height: 42px; padding: 11px; }
  .why__item h3 { font-size: .95rem; }
  .why__item p { font-size: .85rem; }

  .faq summary { padding: 14px 0; font-size: .95rem; }
}
/* tablets: the hero keeps the phone layout, a little wider */
@media (min-width: 561px) and (max-width: 760px) { .hero__art::after { height: 52%; } }
