/* WERSJA RELAX — tonguedrum.kodai.com.pl
   Palette taken from the duo's own video: patina-green drum steel, graphite,
   golden-hour light, jute rim, and a pale forest haze instead of cream. */

@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/young-serif-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/young-serif-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/onest-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/onest-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/onest-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/onest-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/onest-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/onest-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Fragment Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/fragment-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Fragment Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/fragment-mono-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F; }

:root {
  --haze: #e9eee6;      /* forest haze, page background */
  --linen: #f7f6f0;     /* cards, light surfaces */
  --graphite: #1d2523;  /* text */
  --moss: #56645e;      /* secondary text */
  --patina: #2c6a5f;    /* drum steel, primary */
  --patina-deep: #1d4c44;
  --gold: #d6a23e;      /* golden hour: played tongues, highlights */
  --gold-soft: #f2dca6;
  --jute: #b48a55;      /* woven rim, small accents */
  --line: #c9d3c8;
  --radius: 14px;
  --display: "Young Serif", Georgia, serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--haze); color: var(--graphite);
  font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--patina-deep); text-underline-offset: .18em; }
a:hover { color: var(--patina); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: 1.2em; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.2rem; color: #2f3a37; max-width: 34em; }
.small { font-size: .9rem; color: var(--moss); }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: .8em 1em; border-radius: 6px; max-width: 46em; }
.notice--error { background: #f6d9cf; border-color: #b4472b; }
mark { background: var(--gold-soft); padding: 0 .2em; }

/* banner + header */
.banner { text-align: center; font-size: .9rem; padding: .5em var(--gutter); }
.banner--test { background: var(--graphite); color: var(--gold-soft); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
}
.wordmark { font: 400 1.02rem/1 var(--mono); letter-spacing: .08em; color: var(--graphite); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--patina); padding: 0 .1em; }
.top__nav { display: flex; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.top__nav a { color: var(--graphite); text-decoration: none; font-size: .95rem; }
.top__nav a:hover { color: var(--patina); text-decoration: underline; }
@media (max-width: 820px) { .top__nav { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; font: 600 1rem/1.2 var(--body);
  text-decoration: none; cursor: pointer; border: 2px solid var(--patina); transition: background .2s, color .2s, transform .2s;
}
.btn--solid { background: var(--patina); color: #fff; }
.btn--solid:hover { background: var(--patina-deep); color: #fff; border-color: var(--patina-deep); }
.btn--line { background: transparent; color: var(--patina-deep); }
.btn--line:hover { background: var(--linen); color: var(--patina-deep); }
.btn--wide { width: 100%; }
.btn:active { transform: translateY(1px); }

/* hero */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(8px, 3vw, 40px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero__proof { font-size: .95rem; color: var(--moss); max-width: 30em; border-top: 1px solid var(--line); padding-top: 1em; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* the playable drum (signature) */
.drumbox { margin: 0; display: grid; gap: 18px; justify-items: center; }
.drum { width: min(100%, 470px); height: auto; filter: drop-shadow(0 22px 30px rgba(23, 63, 56, .28)); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.drum__logo text { font: 400 15px var(--mono); letter-spacing: .32em; fill: #d9e6df; opacity: .85; }
.drum__logo .drum__logo-sub { font-size: 10px; letter-spacing: .5em; }
.tongue { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.tongue__hit { fill: transparent; }
.tongue__glow { fill: url(#glow); opacity: 0; transition: opacity .9s ease-out; pointer-events: none; }
.tongue__slot { fill: none; stroke: #0f2b26; stroke-width: 2.2; stroke-linecap: round; opacity: .8; pointer-events: none; }
.tongue__num { font: 400 15px var(--mono); fill: #e7efe9; pointer-events: none; }
.tongue__dot { fill: #e7efe9; pointer-events: none; }
.tongue:hover .tongue__slot, .tongue:focus-visible .tongue__slot { stroke: var(--gold-soft); opacity: 1; }
.tongue:focus-visible .tongue__hit { fill: rgba(242, 220, 166, .16); }
.tongue.is-lit .tongue__glow { opacity: 1; transition: opacity .04s; }
.tongue.is-lit .tongue__num, .tongue.is-lit .tongue__dot { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .tongue__glow { transition: none; } }

.drumbox figcaption { display: grid; justify-items: center; gap: 16px; }
.score { text-align: center; }
.score__line .m { white-space: nowrap; }
.score__title { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .3em; }
.score__title span { font: 400 .8rem var(--body); color: var(--moss); margin-left: .4em; }
.score__line { font: 400 1.2rem/1.9 var(--mono); margin: 0; max-width: 30em; }
.score__line .nd { padding: 0 .18em; border-radius: 4px; transition: background .25s; }
.score__line .nd.is-now { background: var(--gold); color: var(--graphite); transition: none; }
.score__line .bar { color: var(--line); padding: 0 .15em; }
.btn--play { background: var(--graphite); color: var(--linen); border-color: var(--graphite); }
.btn--play:hover { background: #000; color: #fff; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.btn--play[aria-pressed="true"] .play-icon { width: 12px; height: 12px; border: 0; background: currentColor; border-radius: 2px; }
.drumbox__hint { font-size: .85rem; color: var(--moss); text-align: center; max-width: 30em; margin: 0; }

/* numbered-notation digit with octave dots */
.nd { position: relative; display: inline-block; font-family: var(--mono); }
.nd--hi::before, .nd--lo::after {
  content: ""; position: absolute; left: 50%; width: .22em; height: .22em; margin-left: -.11em;
  border-radius: 50%; background: currentColor;
}
.nd--hi::before { top: -.05em; }
.nd--lo::after { bottom: .02em; }

/* photo band */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: clamp(260px, 46vw, 620px); object-fit: cover; object-position: 50% 45%; }
.band figcaption { position: absolute; right: var(--gutter); bottom: 14px; font: 400 .78rem var(--mono); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* sections */
.shop, .howto, .duo, .videos, .workshops, .faq { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.section-head { max-width: 44em; margin-bottom: 2.2em; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }
.card { background: var(--linen); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); scroll-margin-top: 24px; }
.card--feature { border: 2px solid var(--patina); box-shadow: 0 18px 40px -24px rgba(29, 76, 68, .55); }
.card__img { position: relative; aspect-ratio: 4 / 3; background: var(--patina-deep); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body .btn { margin-top: auto; }
.tag { position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--graphite); font: 600 .82rem/1 var(--body); padding: .5em .8em; border-radius: 999px; }
.tag--soon { background: var(--graphite); color: var(--gold-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; font-size: .97rem; }
.ticks li { padding-left: 1.5em; position: relative; margin-bottom: .35em; }
.ticks li::before { content: ""; position: absolute; left: .15em; top: .55em; width: .55em; height: .3em; border-left: 2px solid var(--patina); border-bottom: 2px solid var(--patina); transform: rotate(-45deg); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5em; margin-bottom: 1.1em; }
.price strong { font: 400 1.9rem/1 var(--display); }
.price span { font-size: .9rem; color: var(--moss); }

/* songbook page illustration (ebook card) */
.page {
  position: absolute; inset: 9% 16%; background: #fffdf7; border-radius: 4px; padding: 7% 9%;
  box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(-2.5deg); display: flex; flex-direction: column; justify-content: center;
}
.page__title { font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: .6em; }
.page__line { font: 400 clamp(1rem, 1.8vw, 1.25rem)/2 var(--mono); margin: 0; letter-spacing: .1em; }
.page__line i { font-style: normal; color: var(--line); padding: 0 .25em; }
.page__line--soft { color: var(--patina); }
.page__note { font: 400 .7rem var(--mono); color: var(--moss); margin: .8em 0 0; text-transform: uppercase; letter-spacing: .12em; }

/* how to read */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 2px solid var(--graphite); padding-top: 1.1em; }
.steps li h3::before { content: counter(step) ". "; color: var(--patina); }
.steps__demo { font: 400 2.6rem/1.4 var(--mono); color: var(--patina); margin: 0 0 .3em; letter-spacing: .25em; min-height: 1.5em; }

/* duo */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.duo__img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.duo__quote { font: 400 1.35rem/1.35 var(--display); color: var(--patina-deep); border-left: 3px solid var(--jute); padding-left: .8em; }
.bios { margin: 1.6em 0 0; display: grid; gap: 1.1em; }
.bios dt { font-weight: 600; }
.bios dd { margin: .2em 0 0; color: #34403c; font-size: .98rem; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* videos */
.videos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 860px) { .videos__grid { grid-template-columns: 1fr; max-width: 560px; } }
.yt { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--graphite); color: #fff; text-decoration: none; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 45%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(29,37,35,.75); }
.yt__play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.yt__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: .92rem; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos__note { margin-top: 1.2em; font-size: .92rem; color: var(--moss); }

/* workshops */
.workshops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.workshops__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.workshops__imgs img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.workshops__imgs img:last-child { transform: translateY(28px); }
@media (max-width: 860px) { .workshops { grid-template-columns: 1fr; } .workshops__imgs img:last-child { transform: none; } }

/* faq */
.faq { max-width: 860px; padding-bottom: clamp(56px, 8vw, 100px); }
.faq details { border-top: 1px solid var(--line); padding: .2em 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: .9em 2em .9em 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2em; top: .6em; font: 400 1.4rem var(--mono); color: var(--patina); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #34403c; max-width: 44em; }

/* narrow pages: buy, thanks, legal, messages */
.narrow { max-width: 820px; margin: 0 auto; padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 100px); }
.narrow h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.buy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 1.5em 0; }
.buy__grid:not(:has(img)) { grid-template-columns: 1fr; }
.buy__img { border-radius: var(--radius); }
@media (max-width: 700px) { .buy__grid { grid-template-columns: 1fr; } }
.buy__form { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; max-width: 160px; font-weight: 600; }
.field select { font: inherit; padding: .55em .7em; border-radius: 8px; border: 1px solid var(--moss); background: #fff; min-height: 46px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .97rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--patina); }
.download { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 1.5em 0; }
.download h2 { font-size: 1.5rem; }
.download code { word-break: break-all; font-size: .85rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.formbox { border: 1px dashed var(--moss); border-radius: 8px; padding: 18px; background: var(--linen); }

/* footer */
.foot { background: var(--graphite); color: #cfd8d3; padding: 48px var(--gutter) 28px; }
.foot a { color: var(--gold-soft); }
.foot__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.wordmark--foot { color: #fff; margin-bottom: 1em; }
.wordmark--foot span { color: var(--gold); }
.foot__small { max-width: var(--maxw); margin: 32px auto 0; font-size: .82rem; color: #93a19b; }
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr; } }
.tag--second { top: 52px; }
