/* ============================================================
   CROSSBOX DIGITAL — Light theme (preview)
   Quiet, editorial light system: warm paper, near-black ink,
   acid kept as a small brand signal instead of a surface colour.
   Active only under <html data-theme="light">. Load after the
   other stylesheets.
   ============================================================ */

:root[data-theme=light]{
  color-scheme:light;
  --bg:#fafaf7;
  --bg-2:#f3f3ee;
  --surface:#ffffff;
  --text:#111210;
  --muted:#5f625b;
  --line:#e2e3dc;
  --line-soft:#ecede7;
  --acid:#111210;          /* links/markers turn ink; lime stays for accents below */
  --acid-soft:#f1f6dc;
  --lime:#d6ff3f;
  --lime-ink:#4f6b00;
  --action:#111210;
  --radius:18px;
  --radius-sm:10px;
}

[data-theme=light] body{background:var(--bg)}
[data-theme=light] ::selection{background:var(--lime);color:#111210}
[data-theme=light] ::-webkit-scrollbar-thumb{background:#d4d5ce}
[data-theme=light] .noise,[data-theme=light] .cursor,[data-theme=light] .cursor-dot{display:none}

/* ---------- nav ---------- */
[data-theme=light] .nav,[data-theme=light] .nav.is-scrolled{background:rgba(250,250,247,.82);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom-color:var(--line)}
[data-theme=light] .nav-logo-img,[data-theme=light] .footer-logo-img{content:url(/assets/brand/logo-ink.svg);filter:none}
[data-theme=light] .nav-links>a:hover,[data-theme=light] .nav-links .service-toggle:hover,[data-theme=light] .nav-links .service-toggle[aria-expanded=true]{color:var(--text)}
[data-theme=light] .service-panel{background:#fff;box-shadow:0 24px 60px rgba(17,18,16,.08)}
[data-theme=light] .lang-menu{background:#fff;border-color:var(--line);border-radius:var(--radius-sm);box-shadow:0 12px 32px rgba(17,18,16,.08)}

/* ---------- buttons: ink pills, lime on hover ---------- */
[data-theme=light] .btn{border-radius:999px;border-color:var(--line)}
[data-theme=light] .btn::before{background:var(--lime)}
[data-theme=light] .btn:hover{color:#111210}
[data-theme=light] .btn-acid,[data-theme=light] .study-cta{background:#111210;border-color:#111210;color:#fff}
[data-theme=light] .btn-acid::before{background:var(--lime)}
[data-theme=light] .btn-acid:hover{color:#111210}
[data-theme=light] .btn-ghost{background:#fff}
[data-theme=light] .booking-disclosure>summary{border-radius:999px;background:#111210;color:#fff}

/* ---------- hero ---------- */
[data-theme=light] .studio-intro h1{letter-spacing:-.075em;font-weight:680}
[data-theme=light] .studio-intro h1 b{color:var(--lime-ink)}
[data-theme=light] .studio-home .hero-deck{color:var(--muted)}
[data-theme=light] .box-edition{color:#111210}
/* The card is only the closed box; the opened book sits straight on the page, as in dark. */
[data-theme=light] .box-edition:not([open]){border-radius:var(--radius);background:radial-gradient(ellipse at 50% 38%,#ffffff 0,#eef0e6 48%,#e3e6d8 100%);box-shadow:inset 0 0 0 1px var(--line)}
[data-theme=light] .box-edition[open]{background:none;border-radius:0;box-shadow:none}
[data-theme=light] .book-shell{box-shadow:0 18px 30px -12px rgba(17,18,16,.28)}
[data-theme=light] .book-arrows button{border-color:#c9cbc3}
[data-theme=light] .edition-caption{color:#5f625b}
[data-theme=light] .edition-handle{border-top-color:#d6d8ce;color:#111210}
[data-theme=light] .edition-handle small{color:#6c6f66}
[data-theme=light] .box-edition[open] .edition-handle{color:#5f625b}
[data-theme=light] .box-launch{background:#111210;color:var(--lime)}

/* client logos sit on paper already */
[data-theme=light] .client-strip{border-top-color:var(--line)}
/* Colour badges keep their brand colour; white wordmarks turn ink; the
   dark wordmarks that dark mode inverts (.inv) show as they are. */
[data-theme=light] .marquee-logos img,[data-theme=light] .marquee-logos img.inv{filter:none;opacity:1}
[data-theme=light] .marquee-logos img:not(.full):not(.inv){filter:brightness(0);opacity:.82}
[data-theme=light] .client-strip .marquee-logos .on-paper{background:none;padding:0}

/* ---------- section rhythm ---------- */
[data-theme=light] .studio-section{border-top-color:var(--line)}
[data-theme=light] .studio-home h2{font-weight:640;letter-spacing:-.045em}

/* ---------- work ---------- */
[data-theme=light] .folio-photo,[data-theme=light] .folio-thumb{border-radius:var(--radius);background:#ecede6}
[data-theme=light] .folio-thumb{border-radius:var(--radius-sm);border-color:var(--line)}
[data-theme=light] .folio-go{background:#fff;color:#111210;box-shadow:0 4px 14px rgba(17,18,16,.12)}
[data-theme=light] .folio-index i{color:var(--muted)}
[data-theme=light] .shop-inset{border-radius:6px}

/* ---------- services ---------- */
[data-theme=light] .service-art>span{color:var(--lime-ink)}
[data-theme=light] .research-note summary span:first-child{color:var(--text)}

/* ---------- proof / A/B test ---------- */
[data-theme=light] .lab-story li:before{color:var(--lime-ink)}
[data-theme=light] .lab-story li:not(:last-child):after{background:var(--line)}
[data-theme=light] .test-print{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
[data-theme=light] .test-screen{background:#f0f1ea}
[data-theme=light] .test-screen img{border-radius:6px;box-shadow:0 .8rem 2rem rgba(17,18,16,.08)}
[data-theme=light] .test-print figcaption{background:#fff;border-top:1px solid var(--line)}
[data-theme=light] .test-print strong{background:linear-gradient(transparent 62%,var(--lime) 62%,var(--lime) 92%,transparent 92%);padding-inline:.06em}

/* ---------- founder ---------- */
[data-theme=light] .founder-print img{border-radius:var(--radius)}

/* ---------- FAQ ---------- */
[data-theme=light] .question-list summary::after{color:var(--text)}

/* ---------- closing CTA: ink panel ---------- */
[data-theme=light] .studio-close{background:#111210;color:#f4f4ef;border-radius:24px;padding-inline:clamp(1.5rem,4.5vw,4rem);width:var(--frame);max-width:var(--rail);margin-inline:auto}
[data-theme=light] .studio-close h2{color:#fff}
[data-theme=light] .studio-close h2 b,[data-theme=light] .studio-close h2 em{color:var(--lime)}
[data-theme=light] .studio-close .close-action>p{color:#c9cbc3}
[data-theme=light] .studio-close .booking-disclosure>summary{background:var(--lime);color:#111210}
[data-theme=light] .studio-close .contact-address{color:#e7e8e1}
[data-theme=light] .studio-close .calendly-block{border-radius:var(--radius-sm);overflow:hidden}

/* ---------- footer ---------- */
[data-theme=light] .footer-col a:hover,[data-theme=light] .footer-cookies:hover{color:var(--text)}
[data-theme=light] .footer-watermark{-webkit-text-stroke:1px rgba(17,18,16,.07)}

/* ---------- inherited light fixes from site-frame.css that assumed the old palette ---------- */
[data-theme=light] .btn-ghost::before,[data-theme=light] .study .btn:before{background:var(--lime)}
[data-theme=light] .blog-row:hover,[data-theme=light] .lang-menu a:hover{background:var(--bg-2);color:var(--text)}

/* Prose links: a quiet hairline underline that darkens on hover. No highlighter fill on paper. */
[data-theme=light] .post-body a:not(.btn),[data-theme=light] .post-callout a,[data-theme=light] .route-intro a,
[data-theme=light] .resource .post-body a:not(.btn),[data-theme=light] .resource .cl-alt a,[data-theme=light] .resource .lead-consent a,[data-theme=light] .resource .mc-block a,[data-theme=light] .resource .res-method a{
  color:var(--text);text-decoration:underline;text-decoration-color:rgba(17,18,16,.3);text-decoration-thickness:1px;text-underline-offset:.22em;
  transition:text-decoration-color .2s,text-decoration-thickness .2s,color .2s}
[data-theme=light] .post-body a:not(.btn):hover,[data-theme=light] .post-callout a:hover,[data-theme=light] .route-intro a:hover,
[data-theme=light] .resource .post-body a:not(.btn):hover,[data-theme=light] .resource .cl-alt a:hover,[data-theme=light] .resource .lead-consent a:hover,[data-theme=light] .resource .mc-block a:hover,[data-theme=light] .resource .res-method a:hover{
  background:none;color:var(--text);text-decoration-color:var(--text);text-decoration-thickness:2px}
[data-theme=light] .post-body a:focus-visible,[data-theme=light] .post-callout a:focus-visible{outline-color:var(--text)}
[data-theme=light] .cta-card-more{color:var(--muted)!important}

@media(max-width:720px){
  [data-theme=light] .studio-close{border-radius:18px;padding-inline:1.25rem}
}

/* ---------- carried over from the first light draft (site-frame.css) ---------- */
[data-theme=light] .founder-words h1 em,[data-theme=light] .study h1 span{color:var(--lime-ink)}
[data-theme=light] .work-result i{background:#a3a79c}[data-theme=light] .work-result p:last-of-type i{background:var(--lime-ink)}
[data-theme=light] .study-cta .btn{background:var(--lime);border-color:var(--lime);color:#111210}
[data-theme=light] .study-cta .btn::before{background:#fff}
[data-theme=light] .outline{color:var(--text);-webkit-text-stroke:0}

/* ---------- articles, service and resource pages ---------- */
[data-theme=light] .cta-card{border:1px solid var(--line);border-left:3px solid var(--lime);background:#fff;border-radius:var(--radius-sm)}
[data-theme=light] .post-body .cta-card-eyebrow,[data-theme=light] .cta-card-eyebrow{color:var(--lime-ink)}
[data-theme=light] .post-body .cta-card-actions a.btn-acid{color:#fff}
[data-theme=light] .post-body .cta-card-actions a.btn:hover{background:var(--lime);color:#111210}
[data-theme=light] .post-body .cta-card-actions a.btn:not(.btn-acid){color:#111210}

[data-theme=light] .post-cta{border-radius:var(--radius);background:#fff;border:1px solid var(--line)}

/* ---------- team ---------- */
[data-theme=light] .team-button{border-radius:999px;padding-inline:1.2rem}
[data-theme=light] .team-button:hover{background:var(--lime);color:#111210}
[data-theme=light] .team-portrait{background:#e9eae3}
[data-theme=light] .team-person:first-child .team-portrait-label{background:var(--lime);color:#111210}
[data-theme=light] .team-blueprint{background:#111210;color:#f4f4ef;border-radius:24px;width:var(--frame);max-width:var(--rail);margin-inline:auto;padding-inline:clamp(1.5rem,4.5vw,4rem)}
[data-theme=light] .team-blueprint .team-wrap{width:auto}
[data-theme=light] .team-blueprint h2,[data-theme=light] .team-blueprint h3{color:#fff}
[data-theme=light] .team-blueprint .team-lead,[data-theme=light] .team-deliverables p,[data-theme=light] .team-blueprint-handover{color:#c9cbc3}
[data-theme=light] .team-deliverables li{border-bottom-color:#2f312c}
[data-theme=light] .team-button-dark{background:var(--lime);color:#111210}
[data-theme=light] .team-button-dark:hover{background:#fff;color:#111210}
[data-theme=light] .team-blueprint :focus-visible{outline-color:var(--lime)}
[data-theme=light] .team-proof-image{border-radius:var(--radius)}

/* ---------- light / dark switch (styled in both themes) ---------- */
.theme-toggle{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--muted);transition:color .2s,background-color .2s}
.theme-toggle:hover{color:var(--text);background:var(--line-soft)}
.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
:root:not([data-theme=light]) .theme-toggle .theme-moon{display:none}
:root:not([data-theme=light]) .theme-toggle .theme-sun{display:block}
@media(max-width:720px){.theme-toggle{width:40px;height:40px;margin-right:-.35rem}}
