/* Shared spacing and typography for the music site and Zen Shop. */
:root {
  --content-width: 1240px;
  --page-gutter: clamp(18px, 4vw, 56px);
  --section-space: clamp(48px, 6vw, 84px);
  --grid-gap: clamp(20px, 2.3vw, 30px);
  --body-leading: 1.85;
  --header-height: 88px;
}

html { scroll-padding-top: calc(var(--header-height) + 16px); }
.container { width: min(var(--content-width), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.container > *, .section-intro > *, .header > *, .footer-main > *, .library-toolbar > *, .shop-toolbar > * { min-width: 0; }
.section { padding-block: var(--section-space); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.45; letter-spacing: -.025em; }
.eyebrow { font-size: 10px; line-height: 1.8; letter-spacing: .16em; text-wrap: balance; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 32px; margin-bottom: 30px; }
.section-intro h2 { max-width: 32ch; }
.section-intro .eyebrow { margin-bottom: 12px; }
.section-intro > p { display: block; max-width: 36ch; font-size: 13px; line-height: var(--body-leading); text-align: right; padding-bottom: 4px; }
.section-intro > .text-link { justify-self: end; margin-bottom: 4px; }
.button { min-height: 48px; max-width: 100%; padding: 13px 22px; font-size: 13px; line-height: 1.6; text-align: center; text-wrap: balance; }
.text-link { max-width: 100%; font-size: 12px; line-height: 1.7; text-wrap: balance; }

/* The header, every content section, and the footer share the same margins. */
.header { position: sticky; top: 0; z-index: 40; padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2)); min-height: var(--header-height); height: auto; gap: 24px; box-shadow: 0 4px 20px #163b280a; }
.brand { min-width: 190px; gap: 10px; padding-block: 16px; flex-shrink: 0; }
.brand > span { font-size: 26px; }
.brand small { font-size: 8px; letter-spacing: .22em; white-space: nowrap; }
.desktop-nav { gap: clamp(18px, 2.2vw, 30px); font-size: 13px; }
.desktop-nav a { white-space: nowrap; }
.header-actions { flex-shrink: 0; }
.youtube-link { min-height: 42px; font-size: 12px; white-space: nowrap; }
.mobile-nav { position: absolute; top: 100%; inset-inline: 0; padding: 12px var(--page-gutter) 20px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); box-shadow: 0 10px 15px #17251d10; }

/* Keep the hero in normal document flow so larger text cannot collide with its footer. */
.hero { height: auto; min-height: 640px; }
.hero-content { padding-top: clamp(64px, 7vw, 100px); padding-bottom: 116px; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.35; letter-spacing: -.035em; margin-top: 22px; }
.hero .eyebrow { font-size: 10px; letter-spacing: .2em; }
.hero-copy { font-family: var(--serif); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.9; max-width: 48ch; margin-top: 24px; }
.hero-actions { gap: 20px 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-secondary { font-size: 13px; line-height: 1.7; }
.hero-signature { font-size: 11px; line-height: 1.8; letter-spacing: .1em; margin-top: 24px; }
.hero-bottom { left: max(var(--page-gutter), calc((100% - var(--content-width)) / 2)); right: max(var(--page-gutter), calc((100% - var(--content-width)) / 2)); font-size: 10px; letter-spacing: .14em; gap: 20px; padding-block: 18px; }
.hero-bottom a { font-size: 11px; }

.moods { padding-bottom: 32px; }
.mood-grid { gap: 16px; align-items: stretch; }
.mood { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 14px; padding: 26px 20px; min-height: 112px; }
.mood > span:nth-child(2) { min-width: 0; }
.mood strong { font-size: 16px; line-height: 1.5; font-weight: 500; white-space: normal; text-wrap: balance; }
.mood small { max-width: none; font-size: 11px; line-height: 1.75; margin-top: 7px; text-wrap: pretty; }
.mood-symbol, .mood-icon { width: 30px; min-width: 30px; }
.featured-section { padding-top: 24px; padding-bottom: var(--section-space); }
.featured-grid, .music-grid { gap: 32px var(--grid-gap); align-items: start; }
.featured-card .track-info { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; gap: 10px; align-items: start; padding-top: 18px; }
.featured-card .track-number { display: block; font-size: 20px; }
.featured-card .track-title { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; min-height: 3.2em; text-wrap: balance; }
.track-tags { font-size: 11px; line-height: 1.8; margin-top: 8px; text-wrap: pretty; }
.music-card .track-info { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; align-items: start; padding-top: 16px; }
.music-card .track-title { font-size: 17px; line-height: 1.65; }
.music-card .track-title span { min-height: 3.3em; }
.music-card .track-tags { font-size: 11px; margin-top: 8px; }
.save-button, .music-card .save-button, .featured-card .save-button { width: 40px; height: 40px; margin-right: 0; }
.duration { font-size: 10px; padding: 3px 7px; }

.library { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 20px 28px; padding-bottom: 22px; }
.filters { gap: 8px; }
.filter { min-height: 42px; max-width: 100%; padding: 10px 14px; font-size: 12px; line-height: 1.6; white-space: normal; text-wrap: balance; }
.favorite-filter { margin-left: 0; padding-left: 16px; }
.search-box { width: 100%; max-width: none; min-height: 46px; gap: 12px; padding-block: 10px; }
.search-box input { font-size: 14px; line-height: 1.7; }
.search-box svg { width: 20px; height: 20px; }
.library-meta { font-size: 12px; line-height: 1.8; margin-block: 16px 26px; gap: 16px; flex-wrap: wrap; }
.library-meta label { font-size: 11px; gap: 8px; }
.library-meta select { max-width: 235px; min-height: 42px; font-size: 12px; }
.load-more-wrap { margin-top: 36px; }
.catalog-note { max-width: 96ch; margin: 24px auto 0; font-size: 11px; line-height: 1.9; text-align: center; overflow-wrap: anywhere; }
.empty { padding-block: 48px 24px; }
.empty p { max-width: 60ch; margin-inline: auto; font-size: 14px; line-height: var(--body-leading); }

.quiet-quote { padding-block: 64px; }
.quiet-quote p { max-width: min(48%, 520px); font-size: clamp(18px, 1.9vw, 24px); line-height: 1.85; letter-spacing: -.015em; }
.quiet-quote .quote-line { white-space: nowrap; }
.quiet-quote em { white-space: nowrap; }
.quiet-quote .eyebrow { font-size: 9px; line-height: 1.9; letter-spacing: .14em; margin-top: 24px; }
.about { gap: clamp(36px, 6vw, 84px); padding-block: var(--section-space); }
.about-visual { width: 100%; height: auto; aspect-ratio: 1.05; min-height: 360px; }
.about-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; }
.about-seal { right: 24px; bottom: 24px; padding: 20px 26px; font-size: 26px; }
.about-copy { min-width: 0; }
.about-copy h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.5; max-width: 22ch; margin: 14px 0 24px; }
.about-copy > p:not(.eyebrow) { max-width: 60ch; font-size: 14px; line-height: 1.95; margin-top: 18px; }
.about-copy > p:not(.eyebrow):not(.about-thanks) { text-align: justify; text-align-last: left; text-justify: inter-word; }
.about-copy p.about-thanks { font-size: 16px; line-height: 1.85; text-wrap: balance; }
.about-copy .button { margin-top: 26px; font-size: 12px; }

.footer-main { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(240px, 1.5fr) auto; align-items: center; gap: 24px 40px; padding-block: 48px; }
.footer-brand { width: auto; font-size: 32px; line-height: 1.3; }
.footer-main > p { max-width: 30ch; font-size: 14px; line-height: 1.9; text-align: justify; text-align-last: left; text-justify: inter-word; text-wrap: balance; }
.footer-main .text-link { font-size: 12px; justify-self: end; }
.footer-socials { display: grid; justify-items: start; justify-self: end; gap: 4px; max-width: 100%; }
.footer-socials .text-link { justify-self: start; min-height: 44px; gap: 10px; }
.footer-facebook svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; stroke: none; }
.footer-bottom { gap: 16px 24px; flex-wrap: wrap; align-items: center; padding-block: 22px; font-size: 10px; line-height: 1.8; }
.footer-bottom > span:first-child { width: auto; }
.footer-bottom > a { margin-left: auto; }
.player-heading { padding: 8px 16px 8px 26px; }
.player-heading .eyebrow { font-size: 9px; letter-spacing: .12em; }
.player-details { padding: 24px 28px; }
.player-details h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.55; max-width: 100%; text-wrap: balance; }
.player-details .eyebrow { font-size: 10px; }
.player-actions { flex-wrap: wrap; align-items: center; gap: 16px; }
.player-actions .button, .player-actions .text-link { font-size: 12px; }
.player-note { max-width: 70ch; font-size: 11px; line-height: 1.85; margin-top: 20px; }
.toast { font-size: 12px; line-height: 1.7; }

/* Zen Shop uses the same content width, rhythm and type scale. */
.shop-hero { min-height: 490px; }
.shop-hero-copy { padding-block: clamp(56px, 6vw, 84px); }
.shop-hero h1 { max-width: 19ch; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.4; letter-spacing: -.03em; }
.shop-hero-copy > p:not(.eyebrow) { max-width: 58ch; font-size: 14px; line-height: 1.95; margin-top: 22px; }
.shop-hero-actions { gap: 18px 26px; margin-top: 28px; align-items: center; }
.shop-hero-actions .button { font-size: 12px; }
.shop-hero-actions .shop-hero-link { font-size: 12px; line-height: 1.7; }
.shop-catalog { padding-block: var(--section-space); }
.shop-catalog .section-intro { margin-bottom: 24px; }
.shop-catalog .section-intro h2 { font-size: clamp(28px, 3vw, 38px); }
.shop-catalog .section-intro .text-link { font-size: 12px; }
.affiliate-disclosure { max-width: 100ch; font-size: 12px; line-height: 1.95; margin-bottom: 26px; }
.disclosure-symbol { margin-top: 3px; }
.shop-source-row { align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.shop-source-row .text-link { font-size: 12px; }
.shop-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; padding-block: 18px; }
.shop-catalog .filters { max-width: none; }
.shop-toolbar .search-box { width: 100%; max-width: 420px; }
.product-grid { gap: 30px var(--grid-gap); align-items: stretch; }
.product-content { padding: 22px; }
.product-category { font-size: 10px; line-height: 1.8; letter-spacing: .1em; min-height: 1.8em; }
.product-content h3 { font-size: 18px; line-height: 1.65; min-height: 4.95em; margin-top: 10px; text-wrap: pretty; }
.product-bottom { padding-top: 22px; }
.product-price { margin-bottom: 14px; }
.product-price span { font-size: 12px; line-height: 1.8; }
.product-button { min-height: 48px; font-size: 12px; }
.shop-empty { padding: 42px 24px; }
.shop-empty h3 { max-width: 26ch; margin: 14px auto 0; font-size: clamp(24px, 2.8vw, 30px); }
.shop-empty > p:not(.eyebrow) { max-width: 54ch; font-size: 14px; line-height: var(--body-leading); }
.shop-empty .eyebrow, .shop-note .eyebrow { font-size: 10px; }
.shop-empty .button, .shop-note .text-link { font-size: 12px; }
.shop-note { padding-block: 54px; }
.shop-note .container > p:not(.eyebrow) { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.7; }

@media (max-width: 1100px) {
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-toolbar { grid-template-columns: minmax(0, 1fr); }
  .library-toolbar .search-box { max-width: 420px; }
  .footer-main { grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr); }
  .footer-main .text-link { grid-column: 2; justify-self: start; }
  .footer-socials { grid-column: 2; justify-self: start; }
  .footer-socials .text-link { grid-column: auto; }
}

@media (max-width: 900px) {
  :root { --header-height: 80px; }
  .header { gap: 16px; }
  .brand { min-width: 0; padding-block: 13px; }
  .brand img { width: 44px; height: 44px; }
  .brand > span { font-size: 25px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: grid; top: 100%; padding-inline: var(--page-gutter); }
  .mobile-nav a { padding-block: 14px; font-size: 14px; line-height: 1.7; }
  .section-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .section-intro > p { display: block; max-width: 54ch; font-size: 13px; text-align: left; padding-bottom: 0; }
  .section-intro > .text-link { justify-self: start; margin-bottom: 0; }
  .featured-section .section-intro h2, .moods .section-intro h2 { max-width: 30ch; }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .featured-card .track-info { grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; }
  .featured-card .track-number { display: none; }
  .featured-card .track-title { font-size: 17px; }
  .quiet-quote { min-height: 560px; align-items: start; padding-block: 48px; text-align: center; }
  .quiet-quote p { max-width: min(100%, 520px); font-size: 20px; margin-inline: auto; }
  .quote-background { object-position: 50% 64%; }
  .quiet-quote:before { background: linear-gradient(180deg,#061a0ded 0%,#061a0dbf 33%,#061a0d0a 67%,#061a0d40); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-visual { max-width: 640px; min-height: 340px; aspect-ratio: 1.45; }
  .about-copy { max-width: 68ch; }
  .about-copy h2 { font-size: clamp(30px, 4vw, 38px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --page-gutter: 20px; --header-height: 76px; }
  .header { gap: 12px; }
  .brand { gap: 8px; padding-block: 13px; }
  .brand img { width: 38px; height: 38px; }
  .brand > span { font-size: 23px; }
  .brand small { font-size: 7px; letter-spacing: .18em; }
  .youtube-link { width: 42px; height: 42px; padding: 10px; justify-content: center; }
  .youtube-link > span { display: none; }
  .youtube-link svg { width: 20px; height: 20px; }
  .header-actions { gap: 4px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero { min-height: 600px; }
  .hero-content { padding-top: 62px; padding-bottom: 126px; }
  .hero h1 { font-size: clamp(31px, 9.8vw, 44px); margin-top: 20px; line-height: 1.4; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .15em; }
  .hero-copy { font-size: clamp(13px, 3.8vw, 16px); line-height: 1.95; margin-top: 22px; max-width: none; }
  .hero-actions { gap: 16px 22px; margin-top: 26px; }
  .hero-actions .button { font-size: 12px; padding-inline: 18px; }
  .hero-secondary { font-size: 12px; gap: 12px; }
  .hero-signature { font-size: 10px; letter-spacing: .06em; margin-top: 24px; }
  .hero-bottom { flex-wrap: wrap; align-items: start; gap: 8px; padding-block: 16px; }
  .hero-bottom > span { font-size: 8px; letter-spacing: .12em; }
  .hero-bottom a { font-size: 10px; gap: 12px; margin-left: auto; }
  .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .section-intro h2, .shop-catalog .section-intro h2 { font-size: clamp(27px, 7vw, 32px); }
  .section-intro > p { font-size: 13px; }
  .mood-grid { gap: 12px; }
  .mood { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 20px 16px; min-height: 170px; }
  .mood-symbol, .mood-icon { width: 28px; height: 28px; min-width: 28px; font-size: 28px; }
  .mood strong { font-size: 15px; line-height: 1.45; min-height: 2.9em; }
  .mood small { font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .mood-arrow { top: 12px; right: 12px; }
  .featured-grid, .music-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-grid, .music-grid { gap: 28px; }
  .featured-card .track-info { grid-template-columns: 24px minmax(0, 1fr) 40px; gap: 10px; }
  .featured-card .track-number { display: block; font-size: 19px; }
  .featured-card .track-title { font-size: 19px; }
  .music-card .track-title { font-size: 18px; }
  .save-button, .music-card .save-button, .featured-card .save-button { width: 40px; height: 40px; }
  .filter { font-size: 12px; padding: 10px 12px; }
  .favorite-filter { border-left: 0; padding-left: 12px; }
  .library-toolbar .search-box, .shop-toolbar .search-box { max-width: none; }
  .search-box input { font-size: 16px; }
  .library-meta { display: grid; grid-template-columns: minmax(0, 1fr); font-size: 12px; align-items: start; gap: 10px; }
  .library-meta label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-size: 11px; }
  .library-meta select { width: 100%; min-width: 0; font-size: 12px; max-width: none; }
  .catalog-note { font-size: 11px; line-height: 1.9; text-align: left; }
  .quiet-quote { min-height: 570px; }
  .quiet-quote p { max-width: 100%; font-size: 20px; }
  .quiet-quote .quote-line { white-space: normal; }
  .quiet-quote .eyebrow { font-size: 9px; max-width: 32ch; margin-inline: auto; }
  .about-visual { min-height: 320px; aspect-ratio: 1.05; }
  .about-seal { right: 18px; bottom: 18px; padding: 16px 20px; font-size: 24px; }
  .about-seal span { font-size: 7px; letter-spacing: .18em; }
  .about-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.95; }
  .about-copy p.about-thanks { font-size: 16px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; padding-block: 36px; }
  .footer-main .text-link { grid-column: auto; justify-self: start; font-size: 12px; }
  .footer-socials { grid-column: auto; }
  .footer-main > p { font-size: 14px; }
  .footer-brand { font-size: 30px; }
  .footer-bottom { font-size: 10px; gap: 12px; padding-block: 20px; }
  .footer-bottom > span:first-child { width: 100%; }
  .footer-bottom > a { margin-left: 0; }
  .player-heading { padding-left: 18px; }
  .player-heading .eyebrow { font-size: 8px; max-width: 30ch; }
  .player-details { padding: 20px 18px; }
  .player-actions { align-items: start; gap: 16px; }
  .player-note { font-size: 11px; }
  .shop-hero { min-height: 540px; }
  .shop-hero-copy { padding-block: 56px; }
  .shop-hero h1 { font-size: clamp(32px, 9.4vw, 42px); max-width: 19ch; line-height: 1.5; }
  .shop-hero .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .shop-hero-copy > p:not(.eyebrow) { max-width: 42ch; font-size: 14px; line-height: 1.9; }
  .shop-hero-actions { align-items: start; gap: 18px; margin-top: 26px; }
  .shop-hero-actions .button { font-size: 12px; padding: 13px 18px; }
  .shop-hero-actions .shop-hero-link { font-size: 12px; }
  .affiliate-disclosure { font-size: 12px; line-height: 1.9; }
  .shop-source-row { align-items: start; font-size: 12px; }
  .shop-source-row .text-link { font-size: 12px; white-space: normal; }
  .shop-toolbar { gap: 18px; }
  .product-content { padding: 22px; }
  .product-content h3 { font-size: 18px; min-height: 4.95em; }
  .shop-note { padding-block: 44px; }
  .shop-note .eyebrow { font-size: 9px; }
  .shop-note .container > p:not(.eyebrow) { font-size: 25px; }
}

@media (max-width: 359px) {
  :root { --page-gutter: 18px; }
  .brand > span { font-size: 21px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 6px; }
  .hero h1 { font-size: 31px; }
  .hero-copy { font-size: 13px; }
  .hero-actions { gap: 16px; }
  .hero-secondary { font-size: 11px; }
  .mood { padding-inline: 13px; }
  .mood strong { font-size: 14px; }
  .mood small { font-size: 11px; }
  .shop-hero h1 { font-size: 31px; }
}
