@font-face{font-family:"Cormorant Garamond";src:url("/tangledtunes/CormorantGaramond.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url("/tangledtunes/CormorantGaramond-Italic.woff2") format("woff2");font-weight:300 700;font-style:italic;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("/tangledtunes/NunitoSans.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap}

:root{
  color-scheme:dark;
  --espresso:#17110E;--umber:#2A1C14;--board:#211710;--board-edge:rgba(232,185,100,.14);
  --cream:#F3E6CF;--muted:#C9B79A;
  --brass:#E8B964;--ember:#E9774F;--jade:#86BFA0;--saffron:#F4A93B;
  --rule:rgba(232,185,100,.2);
  --serif:"Cormorant Garamond","Cormorant",Garamond,"Iowan Old Style",Georgia,serif;
  --body:"Nunito Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--espresso)}
body{margin:0;min-height:100vh;overflow-x:hidden;overflow-x:clip;isolation:isolate;color:var(--cream);font:400 17px/1.65 var(--body);-webkit-font-smoothing:antialiased;
  background:
    radial-gradient(90% 60% at 82% 0%,rgba(42,28,20,1) 0%,rgba(42,28,20,0) 70%),
    radial-gradient(50% 40% at 70% 50%,rgba(232,185,100,.07),transparent 70%),
    radial-gradient(70% 40% at 0% 55%,rgba(42,28,20,.75) 0%,rgba(42,28,20,0) 70%),
    linear-gradient(180deg,#1C1410 0%,var(--espresso) 38%,#1A130F 72%,#21160F 100%);
  background-color:var(--espresso)}
/* A fine film grain over the background, under the content. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.3;mix-blend-mode:soft-light;background:url(/tangledtunes/grain.webp) 0 0/180px}
img{display:block;max-width:100%;height:auto}
svg{display:block}
h1,h2,h3,p,figure,ul,ol{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:500;color:var(--cream);letter-spacing:-.005em;text-wrap:balance;font-variant-numeric:lining-nums}
h1{font-size:clamp(60px,15vw,124px);line-height:.92;letter-spacing:-.015em}
h2{font-size:clamp(40px,7.4vw,58px);line-height:1.02}
h3{font-size:27px;line-height:1.15;font-weight:600}
p{max-width:64ch}
strong{font-weight:700}
code{font-size:.9em;overflow-wrap:anywhere;color:var(--cream);background:rgba(42,28,20,.9);border:1px solid var(--rule);padding:1px 6px;border-radius:6px}
a{color:var(--brass);text-decoration-color:rgba(232,185,100,.45);text-decoration-thickness:1.5px;text-underline-offset:4px}
a:hover{color:var(--cream);text-decoration-color:var(--brass)}
a,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--brass);outline-offset:4px;border-radius:6px}
main:focus{outline:none}
.wrap{width:min(1120px,100% - 40px);margin-inline:auto}
.small{font-size:14px;line-height:1.6}
.defs{position:absolute;width:0;height:0;overflow:hidden}

.skip-link{position:absolute;left:16px;top:-90px;z-index:10;padding:12px 18px;background:var(--brass);color:var(--espresso);font-weight:800;text-decoration:none;border-radius:999px}
.skip-link:focus{top:12px;color:var(--espresso)}

/* Header and footer */
.site-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-block:18px}
.brand{display:inline-flex;align-items:center;gap:12px;font-family:var(--serif);font-weight:600;font-size:27px;line-height:1;color:var(--cream);text-decoration:none;letter-spacing:.005em}
.brand:hover{color:var(--cream)}
.brand img{width:40px;height:40px;border-radius:11px;box-shadow:0 0 0 1px var(--rule)}
.site-header nav,.site-footer nav{display:flex;flex-wrap:wrap;gap:0 22px}
.site-header nav a,.site-footer nav a{display:inline-block;padding-block:12px;font-size:15px;font-weight:600;letter-spacing:.01em;color:var(--muted);text-decoration:none}
.site-header nav a:hover,.site-footer nav a:hover{color:var(--cream);text-decoration:underline;text-decoration-color:var(--brass)}
.site-footer{display:grid;gap:10px;padding:8px 0 44px;margin-top:24px;--c:#C9B79A}
.site-footer .string-rule{margin-bottom:26px;opacity:.7}
.footer-brand{font-size:28px}
.site-footer p{font-size:15px;color:var(--muted)}
.site-footer .copyright,.site-footer .credits{font-size:13px}
.site-footer .credits a{color:var(--muted)}

/* A string as a section rule: a peg, a line with a faint glow, and a cream arrow. */
.string-rule{position:relative;height:14px;margin-bottom:28px;color:var(--c,var(--brass))}
.string-rule.short{width:112px}
.string-rule::before{content:"";position:absolute;inset:0 12px 0 0;
  background:
    radial-gradient(circle at 5px 50%,currentColor 0 4px,transparent 4.6px),
    linear-gradient(currentColor,currentColor) 6px 50%/calc(100% - 6px) 1.5px no-repeat;
  filter:drop-shadow(0 0 5px currentColor);opacity:.75}
.string-rule::after{content:"";position:absolute;right:0;top:50%;width:14px;height:14px;margin-top:-7px;background:var(--cream);clip-path:polygon(100% 50%,0 0,0 100%);opacity:.85}

/* Landing: hero */
.hero{display:grid;gap:34px;padding:22px 0 72px}
.hero-copy{position:relative;z-index:1}
.title-string{width:min(420px,88%);height:auto;margin:14px 0 2px;overflow:visible}
.ts-halo{fill:none;stroke:var(--brass);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;opacity:.16}
.ts-core{fill:none;stroke:var(--brass);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;animation:draw 1.8s cubic-bezier(.45,.05,.25,1) .2s both}
.ts-peg{fill:var(--brass)}
.ts-arrow{fill:var(--cream);animation:appear .5s ease 1.75s both}
.tagline{margin-top:6px;font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(30px,6.6vw,42px);line-height:1.15;color:var(--brass)}
.intro{margin-top:22px;font-size:19px;line-height:1.65;max-width:34em}

/* Store buttons: a brass glyph and two lines of type on an umber pill. */
.store-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.store-link{display:inline-flex;align-items:center;gap:14px;min-width:220px;min-height:60px;padding:10px 24px 10px 20px;border-radius:16px;color:var(--cream);text-decoration:none;background:linear-gradient(180deg,#2E1F16,#22170F);box-shadow:0 0 0 1px rgba(232,185,100,.32),0 14px 30px -18px rgba(0,0,0,.9);transition:box-shadow .2s ease,transform .2s ease}
.store-link:hover{color:var(--cream);transform:translateY(-1px);box-shadow:0 0 0 1px var(--brass),0 0 22px rgba(232,185,100,.22),0 14px 30px -18px rgba(0,0,0,.9)}
.store-link svg{flex:none;width:26px;height:26px;fill:var(--brass)}
.store-link span{display:block;font-size:19px;font-weight:700;line-height:1.15;letter-spacing:.005em}
.store-link small{display:block;margin-bottom:2px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* The hero tangle: the og.jpg strings, drawn on one after another. */
/* The glow box reaches past the art, but its gradient is transparent by the art's edge, so clipping here hides nothing
   and keeps phones from panning sideways. */
.hero-art{position:relative;isolation:isolate;overflow:clip;justify-self:center;width:min(340px,86vw);aspect-ratio:1}
.hero-art::before{content:"";position:absolute;inset:-18%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(232,185,100,.16),rgba(233,119,79,.06) 55%,transparent 75%)}
.tangle{width:100%;height:100%;overflow:visible}
.tangle .tg-grid{opacity:.2}
.tangle .tg-motes{fill:var(--brass)}
.tg-string path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;animation:draw 1.2s cubic-bezier(.45,.05,.25,1) both;animation-delay:calc(.35s + var(--i) * 140ms)}
.tg-string .tg-wide{stroke-width:12.6px;stroke-opacity:.55;filter:url(#tg-glow-wide);mix-blend-mode:screen}
.tg-string .tg-glow{stroke-width:7.35px;stroke-opacity:.8;filter:url(#tg-glow);mix-blend-mode:screen}
.tg-string .tg-core{stroke-width:5.25px}
.tg-string .tg-hot{stroke:#FFF4E0;stroke-opacity:.6;stroke-width:1.37px}
.tg-peg{fill:currentColor}
.tg-peg-hot{fill:#FFF4E0;fill-opacity:.65}
.tg-peg,.tg-peg-hot{animation:appear .45s ease both;animation-delay:calc(.35s + var(--i) * 140ms)}
.tg-arrow{fill:var(--cream);animation:appear .45s ease both;animation-delay:calc(1.4s + var(--i) * 140ms)}

/* Landing: sections */
.section{padding:52px 0 54px}
.section-lede{margin-top:12px;font-size:18px;color:var(--muted)}

.steps{display:grid;gap:40px;margin-top:38px;padding:0;list-style:none}
.step .board{width:100%;max-width:420px;height:auto;margin-bottom:22px;border-radius:16px;box-shadow:0 0 0 1px var(--board-edge),0 24px 40px -28px rgba(0,0,0,.8)}
.step h3{margin-bottom:8px}
.step p{color:var(--muted)}
.board-bg{fill:var(--board)}
.board .str{stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
.board .halo{stroke-width:7;opacity:.8;filter:url(#tt-blur)}
.board .core{stroke-width:3.4}
.board .stuck .core{opacity:.5}
.board .buzz{fill:none;stroke:var(--ember);stroke-width:2;stroke-linecap:round}
.board .peg{fill:currentColor;stroke:none}
.board .arrow{fill:var(--cream)}
.board .cut{fill:none;stroke:var(--board);stroke-width:15}
.board .exit{fill:none;stroke:var(--brass);stroke-width:2;stroke-dasharray:2 6;stroke-linecap:round;opacity:.55}
.board .touch{fill:none;stroke:var(--cream);stroke-width:1.5;opacity:.35}
.board .touch-inner{fill:var(--cream);stroke:none;opacity:.22}
.board .trail{fill:none;stroke:url(#tt-trail);stroke-width:3.4;stroke-linecap:round;opacity:.55}
.board .mote{fill:var(--brass);opacity:.85}
.board .mote-2{opacity:.55}
.board .mote-3{opacity:.4}
.notes .note-on{fill:var(--brass)}
.notes .note-now{fill:var(--ember)}
.notes .note-now-ring{fill:none;stroke:var(--ember);stroke-width:1.5;opacity:.5}
.notes .note-off{fill:none;stroke:var(--muted);stroke-width:1.4;opacity:.45}

/* Songs sit on a full width band of warm umber. */
.songs{position:relative;isolation:isolate}
.songs::before{content:"";position:absolute;z-index:-1;inset:0 calc(50% - 50vw);pointer-events:none;background:linear-gradient(180deg,rgba(42,28,20,0),rgba(42,28,20,.75) 12%,rgba(42,28,20,.75) 88%,rgba(42,28,20,0))}
.songs-grid{display:grid;gap:34px;align-items:center}
.songs-note{margin-top:16px;color:var(--muted)}
.programme{width:100%;max-width:640px;margin-inline:auto;padding:0;list-style:none}
.programme li{display:flex;align-items:baseline;gap:12px;padding:13px 0}
.programme li+li{border-top:1px solid rgba(232,185,100,.12)}
.programme .song{font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(23px,5.2vw,30px);line-height:1.2;color:var(--cream)}
.programme .leader{flex:1 1 24px;min-width:16px;height:4px;align-self:center;margin-top:8px;background:radial-gradient(circle,rgba(201,183,154,.55) 1px,transparent 1.4px) 0 50%/8px 4px repeat-x}
.programme .origin{flex:none;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:right}
.programme .more{display:block;font-family:var(--serif);font-style:italic;font-size:22px;color:var(--brass)}

.calm-grid{display:grid;gap:30px;margin-top:36px}
.calm-item{position:relative;padding-left:30px}
.calm-item::before{content:"";position:absolute;left:4px;top:13px;width:10px;height:10px;border-radius:50%;background:var(--bead);box-shadow:0 0 12px var(--bead)}
.calm-item::after{content:"";position:absolute;left:8px;top:28px;bottom:4px;width:2px;border-radius:2px;background:linear-gradient(var(--bead),transparent);opacity:.5}
.calm-item h3{margin-bottom:6px}
.calm-item p{color:var(--muted)}

.endless-grid{display:grid;gap:40px;margin-top:34px}
.endless-art{width:120px;height:120px;margin-bottom:18px;overflow:visible}
.endless-item h3{margin-bottom:8px}
.endless-item p{color:var(--muted)}
.staff{fill:none;stroke:var(--cream);stroke-width:1;opacity:.08}
.phrase-line{fill:none;stroke:var(--cream);stroke-width:1.5;stroke-linejoin:round;opacity:.2}
.stamp-seal{fill:rgba(232,185,100,.08);stroke:var(--brass);stroke-width:1.4;stroke-dasharray:2 3.2;opacity:.8}
.stamp-note{fill:var(--cream)}
.stamps .stamp-on{fill:var(--brass)}
.stamps .stamp-now{fill:var(--ember)}
.stamps .stamp-now-ring{fill:none;stroke:var(--ember);stroke-width:1.5;opacity:.5}
.stamps .stamp-off{fill:none;stroke:var(--muted);stroke-width:1.3;opacity:.45}
.star-edge{stroke:rgba(232,185,100,.24);stroke-width:1.5;stroke-linejoin:round}

.faq-help{margin-top:12px;color:var(--muted)}
.faq{margin-top:16px;max-width:760px}
.faq details{border-bottom:1px solid rgba(232,185,100,.16)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;padding:12px 0;font-size:18px;font-weight:600;line-height:1.4;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";content:"+"/"";flex:none;font-family:var(--serif);font-size:32px;line-height:1;color:var(--brass)}
.faq details[open] summary::after{content:"\2212";content:"\2212"/""}
.faq details>p{padding-bottom:18px;color:var(--muted)}
.faq details>p+p{margin-top:10px}

.closing{position:relative;margin:20px auto 76px;max-width:660px;padding:42px 26px 38px;text-align:center;border-radius:28px;background:radial-gradient(120% 90% at 50% 0%,rgba(233,151,79,.14),transparent 65%),linear-gradient(180deg,#2A1C14,#20160F);box-shadow:0 0 0 1px var(--rule),0 30px 60px -30px rgba(0,0,0,.8)}
.closing img{margin:0 auto 20px;width:88px;height:88px;border-radius:22px;box-shadow:0 0 0 1px var(--rule),0 10px 30px rgba(0,0,0,.45)}
.closing p{margin:14px auto 0;color:var(--muted)}
.closing .small{margin-top:24px;color:var(--muted)}
.closing .store-links{justify-content:center;margin-top:26px}

/* Legal and support */
.legal{max-width:720px;margin:30px auto 76px}
.legal>h1{font-size:clamp(52px,11vw,80px);line-height:1}
.legal .updated{margin:14px 0 30px;font-size:14px;color:var(--muted)}
.legal .lede{margin-top:18px;font-size:19px}
.legal h2{margin:44px 0 10px;font-size:34px;line-height:1.12;font-weight:600}
.legal h3{margin:26px 0 6px;font-family:var(--body);font-size:17px;font-weight:700;letter-spacing:0}
.legal p+p{margin-top:14px}
.legal ul,.legal ol{margin-top:12px;padding-left:22px}
.legal li+li{margin-top:8px}
.legal li::marker{color:var(--brass)}
.legal ul+p,.legal ol+p{margin-top:14px}
.callout{position:relative;margin:28px 0;padding:22px 24px 22px 44px;border-radius:20px;background:linear-gradient(180deg,rgba(42,28,20,.95),rgba(33,23,16,.95));box-shadow:0 0 0 1px var(--rule)}
.callout::before{content:"";position:absolute;left:20px;top:26px;width:9px;height:9px;border-radius:50%;background:var(--ember);box-shadow:0 0 10px var(--ember)}
.callout::after{content:"";position:absolute;left:23.5px;top:38px;bottom:24px;width:2px;border-radius:2px;background:linear-gradient(var(--ember),rgba(233,119,79,.1))}
.legal .callout h2{margin:0 0 6px;font-size:28px}
.callout p+p{margin-top:8px}
.legal .faq{max-width:none}
.toc{margin:28px 0 8px;padding:20px 24px 22px;border-radius:20px;box-shadow:0 0 0 1px var(--rule)}
.toc-title{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.legal .toc ol{margin-top:10px;padding-left:24px}
.legal .toc li{padding:3px 0;break-inside:avoid;font-size:15px;line-height:1.45}
.legal .toc li+li{margin-top:0}
.toc a{color:var(--cream);text-decoration:none}
.toc a:hover{color:var(--brass);text-decoration:underline}

@media (min-width:560px){
  .legal .toc ol{columns:2;column-gap:36px}
}
@media (min-width:760px){
  .brand{font-size:30px}
  .brand img{width:44px;height:44px;border-radius:12px}
  .site-header{padding-block:24px}
  .hero{grid-template-columns:1fr 1fr;align-items:center;gap:40px;min-height:min(820px,calc(100svh - 92px));padding:24px 0 40px}
  .hero-art{width:min(560px,100%);justify-self:end}
  .section{padding:96px 0 0}
  .section.songs{padding-bottom:64px}
  .songs + .section{padding-top:56px}
  .steps{grid-template-columns:repeat(3,1fr);gap:30px;margin-top:44px}
  .songs-grid{grid-template-columns:1fr 1.05fr;gap:64px}
  .calm-grid{grid-template-columns:1fr 1fr;gap:40px 56px}
  .endless-grid{grid-template-columns:repeat(3,1fr);gap:40px}
  .faq-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;align-items:start}
  .faq-grid .faq{margin-top:0}
  .closing{margin-top:96px;padding:52px 48px 46px}
  .site-footer{grid-template-columns:1fr auto;align-items:start;column-gap:32px}
  .site-footer .string-rule,.site-footer .copyright,.site-footer .credits{grid-column:1/-1}
  .legal{margin-top:48px}
}
@media (max-width:559px){
  .site-header{flex-wrap:nowrap;padding-block:14px}
  .brand{font-size:22px;gap:10px}
  .brand img{width:32px;height:32px;border-radius:9px}
  .site-header nav{gap:0 14px}
  .site-header nav a{font-size:14px}
  .programme li{flex-direction:column;align-items:flex-start;gap:2px}
  .programme .leader{display:none}
  .programme .origin{text-align:left}
}
/* Keep the header on one row on the narrowest phones too. */
@media (max-width:374px){
  .site-header{gap:8px 12px}
  .brand{font-size:20px;gap:8px}
  .brand img{width:28px;height:28px;border-radius:8px}
  .site-header nav{gap:0 12px}
  .site-header nav a{font-size:13px;white-space:nowrap}
}
@media (max-width:339px){
  .wrap{width:calc(100% - 28px)}
  .brand{font-size:18px}
  .site-header nav{gap:0 10px}
}

@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes appear{from{opacity:0}to{opacity:1}}

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