/* Melobleep: spa at dusk. Warm timber darks, mist lights, photography first. One deliberate look. */
:root {
  color-scheme: dark;
  --night: #15120f;
  --night-2: #1e1a16;
  --night-3: #2a241e;
  --glow: #efe7da;
  --glow-soft: #b9ad9d;
  --mist: #e9e6e0;
  --mist-2: #f4f2ee;
  --ink: #221d18;
  --ink-soft: #6b6157;
  --ember: #d6a36a;
  --line-dark: rgba(239, 231, 218, 0.14);
  --line-light: rgba(34, 29, 24, 0.14);
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gutter: 24px;                          /* side margin, every page and screen size */
  --section: clamp(72px, 10vw, 140px);     /* space above and below every section */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--glow); font: 300 17px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 3px; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h3 { font-size: 1.9rem; }
em { font-style: italic; }
.eyebrow { font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--glow-soft); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--glow-soft); max-width: 50ch; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.soft { color: var(--glow-soft); }

/* Light bands */
.light { background: var(--mist); color: var(--ink); }
.light .eyebrow, .light .lede, .light .soft { color: var(--ink-soft); }

section { padding-block: var(--section); }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }

/* Header */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; padding-block: 22px; flex-wrap: wrap; }
.logo { font: 500 1.9rem/1 var(--display); text-decoration: none; letter-spacing: 0.01em; }
.logo i { color: var(--ember); }
.nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 0.9rem; letter-spacing: 0.04em; }
.nav a { text-decoration: none; opacity: 0.82; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--ember); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 400 0.95rem var(--body); letter-spacing: 0.04em; text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 1px solid var(--glow); background: var(--glow); color: var(--night); cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--glow); }
.btn.ghost { background: transparent; color: var(--glow); border-color: var(--line-dark); }
.btn.ghost:hover { border-color: var(--glow); }
.light .btn { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.light .btn:hover { background: transparent; color: var(--ink); }
.light .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn[disabled] { opacity: .5; cursor: wait; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; min-height: min(60svh, 560px); display: grid; align-items: end; padding-block: 120px var(--section); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 38s var(--ease) infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,18,15,.72) 0%, rgba(21,18,15,.35) 45%, rgba(21,18,15,0) 70%), linear-gradient(180deg, rgba(21,18,15,.6) 0%, rgba(21,18,15,.2) 32%, rgba(21,18,15,.7) 78%, var(--night) 100%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero .wrap { display: grid; gap: 28px; width: 100%; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hero h1 { max-width: 18ch; }

/* Breathing ring: 5.5 s in, 5.5 s out */
.breath { display: grid; justify-items: center; gap: 14px; }
.ring { width: 118px; height: 118px; border-radius: 50%; border: 1px solid rgba(239,231,218,.5); display: grid; place-items: center; }
.ring::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: rgba(239,231,218,.2); box-shadow: 0 0 40px rgba(214,163,106,.4); animation: breathe 11s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(2.7); opacity: 1; } }
.breath span { font: 400 0.66rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--glow-soft); text-align: center; }


/* Room finder */
.picks { display: flex; gap: 10px; flex-wrap: wrap; }
.pick { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; background: rgba(21,18,15,.55); backdrop-filter: blur(8px); border: 1px solid var(--line-dark); }
.pick a { text-decoration: none; font: 400 1.25rem var(--display); }
.pick .play { width: 34px; height: 34px; }

/* Play button */
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(239,231,218,.5); background: rgba(21,18,15,.35); color: var(--glow); cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, transform .3s; padding: 0; }
.play:hover { background: var(--glow); color: var(--night); transform: scale(1.06); }
.play svg { width: 12px; height: 12px; fill: currentColor; }
.play .i-pause { display: none; }
.play.playing .i-play { display: none; }
.play.playing .i-pause { display: block; }
.play.playing { background: var(--ember); border-color: var(--ember); color: var(--night); }

/* Collections */
.price { font: 400 1.5rem var(--display); }
.price small { font: 300 .85rem var(--body); color: var(--glow-soft); }
.tag { font: 400 .68rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }

/* Runtime strip */

/* Split story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story figure { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.story figure img { width: 100%; height: 100%; object-fit: cover; }
.story .text { display: grid; gap: 22px; }
.story .text p { font-size: 1.12rem; max-width: 48ch; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; padding-top: 18px; }
.pillars div { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.pillars strong { font: 400 1.5rem/1.1 var(--display); }
.pillars span { font-size: .95rem; color: var(--ink-soft); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; padding: 36px clamp(18px, 2.5vw, 36px) 8px 0; }
.plan + .plan { border-left: 1px solid var(--line-light); padding-left: clamp(18px, 2.5vw, 36px); }
.plan .big { font: 400 3.6rem/1 var(--display); }
.plan .big small { font: 300 1rem var(--body); color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: currentColor; opacity: .6; }

/* Licence band */
.licence { position: relative; overflow: hidden; isolation: isolate; }
.licence > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.licence::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21,18,15,.72); }
.licence .wrap { display: grid; gap: 28px; }
.licence blockquote { margin: 0; font: italic 400 clamp(2rem, 4.3vw, 3.9rem)/1.1 var(--display); display: grid; }
.licence blockquote .one-line { white-space: nowrap; }
@media (max-width: 700px) { .licence blockquote .one-line { white-space: normal; } }

/* Toolkits */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 290px); gap: 18px; overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
.tk { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; position: relative; }
.tk figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; position: relative; background: var(--night-2); }
.tk figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tk:hover figure img { transform: scale(1.05); }
.tk figure .play { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.tk h3 { font-size: 1.6rem; line-height: 1.1; }
.tk h3 a { text-decoration: none; }
.tk h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tk .row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--glow-soft); }
.grid-tk { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 18px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-light); padding-block: 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 400 1.55rem/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.4rem var(--body); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 12px; color: var(--ink-soft); max-width: 62ch; }

/* Store filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip { font: 400 .9rem var(--body); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--glow-soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--glow); color: var(--night); border-color: var(--glow); }
[hidden] { display: none !important; }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.product-visual { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,15,.5), transparent 25%); }
.product-info { padding: 130px clamp(24px, 5vw, 80px) 80px; display: grid; gap: 30px; align-content: start; }
.product-info h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.crumbs { font-size: .85rem; color: var(--glow-soft); }
.crumbs a { color: var(--glow-soft); }
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 24px; border-block: 1px solid var(--line-dark); }
.buy .amount { font: 400 3rem/1 var(--display); }
.buy small { display: block; color: var(--glow-soft); font-size: .85rem; }
.rich { display: grid; gap: 16px; max-width: 60ch; }
.rich p, .rich li { opacity: .9; }
.rich strong { font-weight: 500; }
.rich ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.notice { padding: 14px 18px; border-radius: 4px; background: var(--night-3); font-size: .95rem; }
.light .notice { background: var(--mist-2); }

/* Blog */
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding-block: 28px; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.post-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); transition: color .3s; }
.post-row:hover h3 { color: #8b5f33; }
.post-row p { color: var(--ink-soft); padding-top: 8px; max-width: 70ch; }
.post-row time { font: 400 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 12px; }
.article { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.article h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.article h2 { font-size: 2.1rem; padding-top: 18px; }
.article h3 { font-size: 1.6rem; }
.article p, .article li { font-size: 1.08rem; line-height: 1.8; }

/* Plain page intro */
.intro { position: relative; padding-block: 170px var(--section); overflow: hidden; isolation: isolate; }
.intro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,18,15,.7), rgba(21,18,15,.85) 70%, var(--night)); }
.intro .wrap { display: grid; gap: 22px; }
/* Same space under every page intro: a dark section carries straight on from it, a light one keeps its usual padding */
.intro + section:not(.light) { padding-top: 0; }
.post-row:first-child { padding-top: 0; }

/* Forms */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow-soft); }
.field input, .field textarea { font: 300 1.1rem var(--body); padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: var(--glow); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ember); }
.field textarea { min-height: 140px; resize: vertical; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* Footer */
.site-foot { background: var(--night); border-top: 1px solid var(--line-dark); padding-block: 80px calc(48px + env(safe-area-inset-bottom, 0px)); }
.site-foot .wrap { display: grid; gap: 48px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; }
.foot-top p { font: italic 400 clamp(1.8rem, 3.5vw, 2.8rem)/1.1 var(--display); max-width: 20ch; }
.foot-bot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .88rem; color: var(--glow-soft); }
.foot-bot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bot a { text-decoration: none; }
.foot-bot a:hover { color: var(--glow); }

/* Mini player */
.player { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px; background: rgba(30,26,22,.94); backdrop-filter: blur(12px); border: 1px solid var(--line-dark); transition: transform .5s var(--ease), visibility .5s; max-width: calc(100% - 32px); visibility: hidden; }
.player.show { transform: translate(-50%, 0); visibility: visible; }
.player .bar { width: 140px; height: 2px; background: var(--line-dark); position: relative; flex: none; }
.player .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ember); }
.player strong { font: 400 1.2rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .story, .split, .product { grid-template-columns: 1fr; }
  .story figure { aspect-ratio: 4 / 3; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); }
  .product-visual { position: relative; height: 60svh; }
  .product-info { padding-top: 40px; }
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .pillars { grid-template-columns: 1fr; }
  .player .bar { display: none; }
  .breath { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.panel-foot { margin-top: 40px; }


.inline-link { color: var(--glow); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ember); white-space: nowrap; }
.inline-link:hover { color: var(--ember); }

/* Practitioner site (v2) */
#music .head { margin-bottom: 36px; }
#music .head .lede { max-width: 62ch; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: radial-gradient(circle at 50% 42%, rgba(214,163,106,.16), transparent 62%), var(--night-2); }
.ph .ring { width: 72px; height: 72px; }
.ph .ring::before { width: 24px; height: 24px; }
.ph small { font: 400 .62rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--glow-soft); }
.product-visual { background: var(--night-2); }
.light .inline-link, .inline-link { white-space: nowrap; }
.plans.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 900px) { .plans.plans-2 { grid-template-columns: 1fr; } }
.cur { display: inline-flex; align-items: center; }
.cur select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--glow-soft); border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; font: 400 .72rem var(--mono); letter-spacing: .12em; cursor: pointer; }
.cur select:hover, .cur select:focus-visible { color: var(--glow); border-color: var(--glow-soft); }
.cur option { color: #15120f; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { align-items: center; }

/* Toolkits section: a light "shop floor" after the dark hero, so the move from story to store is unmistakable */
#music.light { border-top: 1px solid var(--line-light); }
.light .tk .row { color: var(--ink-soft); }
.light .tk .tag { color: #9a6a38; }
.light .tk figure { background: var(--mist-2); box-shadow: 0 1px 0 rgba(34,29,24,.06); }
.light .inline-link { text-decoration-color: #b9824a; }
/* Why Melobleep now sits on the raised dark tone */
.story-dark { background: var(--night-2); }
/* Contact form consent line */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.check input { margin-top: 4px; flex: none; }
/* Blog list thumbnails */
.post-row { grid-template-columns: 220px 120px minmax(0, 1fr); align-items: start; }
.post-row .thumb { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--mist-2); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-row:hover .thumb img { transform: scale(1.04); }
@media (max-width: 900px) {
  .post-row { grid-template-columns: 110px minmax(0, 1fr); gap: 6px 16px; }
  .post-row .thumb { grid-row: span 2; }
  .post-row time { padding-top: 0; }
  .post-row p { display: none; }
}
.story-dark .pillars div { border-top-color: var(--line-dark); }
.story-dark .pillars span, .story-dark .text p { color: var(--glow-soft); }
.light .inline-link { color: var(--ink); } .light .inline-link:hover { color: #8b5f33; }
@media (max-width: 600px) {
  .grid-tk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .tk h3 { font-size: 1.2rem; }
  .tk .row { font-size: .78rem; }
  .tk .row > span:first-child { display: none; }
  .tk .tag { font-size: .58rem; letter-spacing: .12em; }
  .tk figure .play { right: 8px; bottom: 8px; transform: scale(.85); }
}

/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-radius: 6px; background: var(--night-3); color: var(--mist, #ece7df); box-shadow: 0 10px 40px rgba(0,0,0,.35); font-size: .95rem; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: inherit; }
.consent div { display: flex; gap: 10px; }
.consent .btn { padding: 10px 20px; }
/* Phones: the header wraps onto three rows, so give the hero room beneath it */
@media (max-width: 600px) { .hero { padding-top: 180px; } }

/* Parts hidden in the admin editor stay in the page but aren't shown to visitors.
   While editing (html.editing) they show faded so they can be brought back. */
html:not(.editing) [data-hidden] { display: none !important; }
