/* Colours follow the theme chosen here or in any tool. The names match the cross stitch tool. */
:root{--bg:#F7DDE2;--surface:#ffffff;--ink:#3A0F18;--muted:#7A4450;--line:#EFC4CD;--accent:#8F1A2E;--accent-ink:#ffffff;color-scheme:light}
:root[data-skin="lavender"]{--bg:#ECE9F8;--ink:#221C3F;--muted:#5B5580;--line:#D3CDEE;--accent:#4B3FA3}
:root[data-skin="mint"]{--bg:#E3F3EC;--ink:#0F2F26;--muted:#3F6558;--line:#BFE0D2;--accent:#17685A}
:root[data-skin="sky"]{--bg:#E3EEF8;--ink:#12283D;--muted:#45617D;--line:#C2D7EB;--accent:#1F5C94}
:root[data-skin="classic"]{--bg:#eef0f4;--ink:#1b2233;--muted:#5d6678;--line:#d5d9e2;--accent:#b3203a}
:root[data-skin="dark"]{--bg:#141821;--surface:#1e2430;--ink:#e9ecf3;--muted:#9aa3b5;--line:#343c4c;--accent:#ff6b81;--accent-ink:#1b0a0e;color-scheme:dark}
:root{--soft:color-mix(in srgb,var(--bg) 35%,var(--surface));--accent-deep:color-mix(in srgb,var(--accent) 80%,var(--ink))}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-y:scroll}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Figtree,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:1rem;line-height:1.5}
img{max-width:100%;height:auto}
a{color:var(--accent)}
a:hover{color:var(--ink)}
h1,h2,h3{font-family:"Bricolage Grotesque",Figtree,sans-serif;font-weight:700;margin:0;line-height:1.1}
h1{font-size:clamp(2.1rem,6vw,3.5rem)}
h2{font-size:clamp(1.7rem,4vw,2.25rem)}
h3{font-size:1.4rem}
p{margin:0}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.band{padding:56px 0}
.white{background:var(--surface)}
.stack{display:flex;flex-direction:column;gap:16px}
.muted{color:var(--muted)}
.lead{font-size:1.2rem;color:var(--muted);max-width:36rem}
.eyebrow{font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
header.site{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
header.site .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding-top:8px;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-family:"Bricolage Grotesque",Figtree,sans-serif;font-size:1.4rem;font-weight:700}
.brand img{width:46px;height:auto}
nav.main{display:flex;gap:4px;margin-left:auto}
nav.main a{min-height:44px;padding:0 14px;display:flex;align-items:center;border-radius:22px;color:var(--ink);font-weight:600;text-decoration:none}
nav.main a[aria-current="page"]{background:var(--bg)}
nav.main a:hover{background:var(--soft)}
details.theme{position:relative}
details.theme summary{list-style:none;min-height:44px;padding:0 14px;display:flex;align-items:center;gap:8px;border-radius:22px;border:1px solid var(--line);color:var(--accent);font-weight:700;cursor:pointer;user-select:none}
details.theme summary::-webkit-details-marker{display:none}
details.theme summary svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
details.theme[open] summary,details.theme summary:hover{background:var(--soft)}
.themelist{position:absolute;right:0;top:calc(100% + 8px);width:220px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:2px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.themelist button{min-height:44px;padding:0 10px;display:flex;align-items:center;gap:12px;border:none;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.themelist button:hover{background:var(--soft)}
.themelist button[aria-pressed="true"]{background:var(--bg);font-weight:700}
.themelist i{flex:none;width:24px;height:24px;border-radius:12px;border:1px solid var(--line)}
.social{display:flex;flex-wrap:wrap;gap:8px}
.social a{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;border-radius:22px;border:1px solid var(--accent);color:var(--accent);font-weight:700;text-decoration:none}
.social a:hover{background:var(--accent);color:var(--accent-ink)}
.card h2{font-size:1.5rem}
.grid.three{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.grid.three{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid.three{grid-template-columns:1fr}}
.card .btn.follow{font-size:.95rem;padding:0 12px;white-space:nowrap}
.card .btn.off{background:transparent;border-style:dashed;color:var(--muted);border-color:var(--muted);cursor:default}
.btn{min-height:52px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;border-radius:26px;background:var(--accent);color:var(--accent-ink);font-size:1.05rem;font-weight:700;text-decoration:none;border:2px solid var(--accent);font-family:inherit;cursor:pointer}
.btn:hover{background:var(--accent-deep);border-color:var(--accent-deep);color:var(--accent-ink)}
.btn.ghost{background:var(--surface);color:var(--accent)}
.btn.ghost:hover{background:var(--soft);color:var(--accent);border-color:var(--accent)}
.btn.light{background:var(--surface);color:var(--accent);border-color:var(--surface)}
.btn.light:hover{background:var(--soft);color:var(--accent);border-color:var(--soft)}
.row{display:flex;flex-wrap:wrap;gap:12px}
.hero{display:flex;flex-wrap:wrap;align-items:center;gap:40px}
.hero>div:first-child{flex:1 1 420px}
.hero>div:last-child{flex:1 1 260px;display:flex;justify-content:center}
.hero img{width:100%;max-width:360px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.card{background:var(--surface);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:12px}
.card.pink{background:var(--bg)}
.card.soft{background:var(--soft);border:1px solid var(--line)}
a.card{text-decoration:none;color:var(--ink)}
a.card:hover{border-color:var(--accent);color:var(--ink)}
.card .btn{margin-top:auto;min-height:48px}
.tag{align-self:flex-start;padding:4px 12px;border-radius:12px;background:var(--accent);color:var(--accent-ink);font-size:.8rem;font-weight:700}
.tag.line{background:transparent;border:1px solid var(--accent);color:var(--accent)}
.num{font-family:"Bricolage Grotesque",Figtree,sans-serif;font-size:2.5rem;font-weight:700;color:var(--accent);line-height:1}
ol.steps{margin:0;padding:0;list-style:none}
.callout{background:var(--accent);color:var(--accent-ink);border-radius:24px;padding:36px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.callout>div{flex:1 1 320px}
.callout p{font-size:1.1rem}
article.guide{background:var(--surface);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px}
article.guide ul,article.guide ol{margin:0;padding-left:1.3rem;display:flex;flex-direction:column;gap:6px}
.narrow{max-width:760px}
form.fb{background:var(--surface);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:16px}
form.fb label,form.fb legend{font-weight:700}
form.fb fieldset{border:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
form.fb legend{padding:0;margin-bottom:6px}
form.fb .opt{min-height:48px;padding:0 14px;border-radius:14px;border:1px solid var(--muted);display:flex;align-items:center;gap:12px;font-weight:600}
form.fb input[type=radio]{width:20px;height:20px;accent-color:var(--accent)}
form.fb textarea,select{width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--muted);font:inherit;color:var(--ink);background:var(--surface)}
select{min-height:48px}
.field{display:flex;flex-direction:column;gap:6px}
.small{font-size:.9rem}
footer.site{padding:28px 0 40px;font-size:.95rem;color:var(--muted)}
footer.site .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
footer.site nav{display:flex;flex-wrap:wrap;gap:4px 18px}
footer.site a{min-height:44px;display:inline-flex;align-items:center}
main :target,article.guide{scroll-margin-top:130px}
@media (max-width:760px){
header.site .wrap{padding-left:16px;padding-right:16px}
.brand{flex:1;min-width:0;font-size:1.2rem}
.brand img{width:40px}
details.theme{order:2}
details.theme summary span{display:none}
details.theme summary{padding:0;width:44px;justify-content:center}
nav.main{order:3;flex:1 0 100%;margin-left:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:2px}
nav.main::-webkit-scrollbar{display:none}
nav.main a{flex:none;padding:0 11px;font-size:.95rem;min-height:40px}
}
@media (max-width:560px){.band{padding:40px 0}.callout{padding:26px}.btn{width:100%}}
