/* Each design owns its type, composition and surfaces; interaction-engine owns movement. */
:root[data-design=tactile]{--sans:"DM Sans",sans-serif;--family-display:Manrope,sans-serif;--family-radius:36px;--family-control:999px;--family-shadow:0 12px 32px #542b1814,inset 0 1px 0 #fff5;--family-section:64px}
:root[data-design=gallery]{--sans:Arial,sans-serif;--family-display:"Cormorant Garamond",Georgia,serif;--family-weight:400;--family-radius:4px;--family-control:4px;--family-shadow:none;--family-section:0}
:root[data-design=terminal]{--sans:Consolas,"Courier New",monospace;--family-display:Consolas,"Courier New",monospace;--family-radius:6px;--family-control:4px;--family-shadow:none;--family-section:0}
:root[data-design=blueprint]{--sans:"Segoe UI",sans-serif;--family-display:"Space Grotesk",sans-serif;--family-radius:0;--family-control:0;--family-shadow:6px 6px 0 var(--line);--family-section:0}
:root[data-design=bold]{--sans:Arial,sans-serif;--family-display:Oswald,"Arial Narrow",sans-serif;--family-weight:600;--family-radius:16px;--family-control:8px;--family-shadow:8px 8px 0 var(--ink);--family-section:24px}
/* Rounded geometry is shared by request; palettes, type and composition stay distinct. */
:root[data-design=tactile]{--family-radius:40px;--family-control:999px;--family-section:64px}
:root[data-design=gallery]{--family-radius:28px;--family-control:999px;--family-section:40px}
:root[data-design=terminal]{--family-radius:24px;--family-control:999px;--family-section:32px}
:root[data-design=blueprint]{--family-radius:32px;--family-control:999px;--family-section:48px}
:root[data-design=bold]{--family-radius:36px;--family-control:999px;--family-section:56px}

/* Complete native palettes. Optional palette overrides remain available in Design. */
:root[data-design=tactile][data-palette=native]{--paper:#fff1e6;--surface:#fffaf4;--card:#fffaf4;--ink:#3a231c;--line:#d9bbaa;--accent:#a93620;--orange:#a93620;--orange-ink:#fffaf4;--dark:#f4ddcc;--dark-surface:#fffaf4;--dark-ink:#3a231c;--dark-line:#d9bbaa;--design-accent:#a93620;--focus:#a93620}
:root[data-design=tactile][data-palette=native][data-theme=dark]{--paper:#251b19;--surface:#352725;--card:#352725;--ink:#fff0e6;--line:#76564a;--accent:#ffb097;--orange:#ffb097;--orange-ink:#251b19;--dark:#2b201c;--dark-surface:#352725;--dark-ink:#fff0e6;--dark-line:#76564a;--design-accent:#ffb097;--focus:#ffb097}
:root[data-design=gallery][data-palette=native]{--paper:#fffdf9;--surface:#f0ede7;--card:#fffdf9;--ink:#211d1a;--line:#bcb4a9;--accent:#9d2839;--orange:#9d2839;--orange-ink:#fffdf9;--dark:#fffdf9;--dark-surface:#f0ede7;--dark-ink:#211d1a;--dark-line:#bcb4a9;--design-accent:#9d2839;--focus:#9d2839}
:root[data-design=gallery][data-palette=native][data-theme=dark]{--paper:#171517;--surface:#272327;--card:#272327;--ink:#fff6ee;--line:#6b5e65;--accent:#ffabb8;--orange:#ffabb8;--orange-ink:#171517;--dark:#171517;--dark-surface:#272327;--dark-ink:#fff6ee;--dark-line:#6b5e65;--design-accent:#ffabb8;--focus:#ffabb8}
:root[data-design=terminal][data-palette=native]{--paper:#eaf5f8;--surface:#d9e9f0;--card:#f6fcff;--ink:#112c3b;--line:#91afbd;--accent:#005970;--orange:#005970;--orange-ink:#f6fcff;--dark:#eaf5f8;--dark-surface:#f6fcff;--dark-ink:#112c3b;--dark-line:#91afbd;--design-accent:#005970;--focus:#005970}
:root[data-design=terminal][data-palette=native][data-theme=dark]{--paper:#09131e;--surface:#101f2d;--card:#101f2d;--ink:#d9f5ff;--line:#3e6275;--accent:#7ee5ff;--orange:#7ee5ff;--orange-ink:#09131e;--dark:#09131e;--dark-surface:#101f2d;--dark-ink:#d9f5ff;--dark-line:#3e6275;--design-accent:#7ee5ff;--focus:#7ee5ff}
:root[data-design=blueprint][data-palette=native]{--paper:#e8efff;--surface:#fff;--card:#fff;--ink:#102e75;--line:#9eb4e4;--accent:#1746bd;--orange:#1746bd;--orange-ink:#fff;--dark:#dbe6ff;--dark-surface:#fff;--dark-ink:#102e75;--dark-line:#9eb4e4;--design-accent:#1746bd;--focus:#1746bd}
:root[data-design=blueprint][data-palette=native][data-theme=dark]{--paper:#081b4b;--surface:#102a62;--card:#102a62;--ink:#eff5ff;--line:#5574b7;--accent:#b4d0ff;--orange:#b4d0ff;--orange-ink:#081b4b;--dark:#0b2054;--dark-surface:#102a62;--dark-ink:#eff5ff;--dark-line:#5574b7;--design-accent:#b4d0ff;--focus:#b4d0ff}
:root[data-design=bold][data-palette=native]{--paper:#ffe872;--surface:#fff6c8;--card:#fff6c8;--ink:#241c17;--line:#241c17;--accent:#a21d22;--orange:#a21d22;--orange-ink:#fff6c8;--dark:#ffd257;--dark-surface:#fff6c8;--dark-ink:#241c17;--dark-line:#241c17;--design-accent:#a21d22;--focus:#a21d22}
:root[data-design=bold][data-palette=native][data-theme=dark]{--paper:#241c25;--surface:#392c39;--card:#392c39;--ink:#ffe872;--line:#ffe872;--accent:#ffb1b4;--orange:#ffb1b4;--orange-ink:#241c25;--dark:#2d222d;--dark-surface:#392c39;--dark-ink:#ffe872;--dark-line:#ffe872;--design-accent:#ffb1b4;--focus:#ffb1b4}

:root[data-design]:not([data-design=editorial]) :is(h1,h2,h3,h4,.milestone-number){font-family:var(--family-display);font-weight:var(--family-weight,700)}
:root[data-design][data-palette] :is(.highlight-tech,.highlight-creator){font-weight:700}
:root[data-design]:not([data-design=editorial]) :is(.window-frame,.video-image,.site-header){border-radius:var(--family-radius)}
:root[data-design]:not([data-design=editorial]) :is(.small-project,.repo-card,.channel-card,.collaboration-case,.noteydraw-project,.creator-analytics,.creator-thumbnails figure,.analytics-charts figure,.social-link){border-radius:var(--family-radius);box-shadow:var(--family-shadow)}
:root[data-design]:not([data-design=editorial]) :is(.work-section,.contact-section){border-radius:var(--family-section) var(--family-section) 0 0}
:root[data-design]:not([data-design=editorial]) .creator-channel-logo{border-radius:var(--family-radius)}
:root[data-design]:not([data-design=editorial]) .hero-channels a{border-radius:var(--family-control)}
:root[data-design]:not([data-design=editorial]) :is(.header-actions select,.design-menu,.design-menu button){border-radius:var(--family-control);font-family:var(--sans)}
:root[data-design]:not([data-design=editorial])[data-palette=native] :is(.button,.copy-button,.audio-play-button,.design-picker>summary,.design-menu button){border-radius:var(--family-control);font-family:var(--sans);background:var(--ink);color:var(--paper);border:1px solid var(--ink);box-shadow:var(--family-shadow)}
:root[data-design]:not([data-design=editorial])[data-palette=native] :is(.button.secondary,.design-menu button){background:var(--surface);color:var(--ink)}
@media(hover:hover) and (pointer:fine){
 :root[data-design]:not([data-design=editorial])[data-palette=native] :is(.button,.copy-button,.audio-play-button,.design-picker>summary,.design-menu button):hover{background:var(--accent);color:var(--paper);box-shadow:var(--family-shadow)}
}
:root[data-design]:not([data-design=editorial])[data-palette=native] .design-menu button[aria-pressed=true]{background:var(--ink);color:var(--paper)}

/* Distinct compositions beyond the introductory heading. */
:root[data-design=tactile] .wrap{max-width:1100px}
:root[data-design=tactile] .section-heading{text-align:center;display:block}
:root[data-design=tactile] .section-heading>p{margin:24px auto 0;max-width:680px}
:root[data-design=tactile] .repos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
:root[data-design=tactile] .collaboration-case{grid-template-columns:1fr;padding:48px}
:root[data-design=tactile] .case-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
:root[data-design=tactile] .creator-analytics dl{grid-template-columns:repeat(2,minmax(0,1fr))}

:root[data-design=gallery] :is(h1,h2,h3,h4){font-weight:400;letter-spacing:-.04em}
:root[data-design=gallery] .hero{max-width:1040px;text-align:left;border-bottom:1px solid var(--line);padding-bottom:48px}
:root[data-design=gallery] .hero h1{font-size:clamp(64px,8vw,120px)}
:root[data-design=gallery] .project-pair{grid-template-columns:1fr;gap:56px}
:root[data-design=gallery] .small-project{padding:48px;border-width:0 0 1px;background:transparent}
:root[data-design=gallery] .small-project>p:not(.project-category){max-width:800px}
:root[data-design=gallery] .small-project h3{font-size:clamp(42px,5vw,72px)}
:root[data-design=gallery] .repos-grid{grid-template-columns:1fr}
:root[data-design=gallery] .repo-card{display:grid;grid-template-columns:80px 1fr;gap:12px 32px;background:transparent;border-width:0 0 1px}
:root[data-design=gallery] .repo-logo{grid-row:1/4;margin:0}
:root[data-design=gallery] .repo-card :is(.repo-card-top,.repo-desc,.repo-card-bottom){grid-column:2}
:root[data-design=gallery] .creator-thumbnails{grid-template-columns:1fr 1fr}
:root[data-design=gallery] .collaboration-case{border-width:1px 0;background:transparent}

:root[data-design=terminal] :is(h1,h2,h3,h4){letter-spacing:-.05em}
:root[data-design=terminal] .section-top{border-bottom:1px dashed var(--line);padding-bottom:20px}
:root[data-design=terminal] .section-heading{display:block}
:root[data-design=terminal] .section-heading h2{font-size:clamp(36px,4vw,56px)}
:root[data-design=terminal] .section-heading>p{max-width:800px;margin-top:24px}
:root[data-design=terminal] .repos-grid{grid-template-columns:1fr;gap:0}
:root[data-design=terminal] .repo-card{border-width:1px 0 0;padding:32px 0;background:transparent}
:root[data-design=terminal] .repo-logo{width:48px;height:48px}
:root[data-design=terminal] .social-links{grid-template-columns:1fr}
:root[data-design=terminal] .collaboration-case{grid-template-columns:1fr;border-style:dashed}
:root[data-design=terminal] .case-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
:root[data-design=terminal] :is(.small-project,.noteydraw-project,.creator-analytics){border-style:dashed}

:root[data-design=blueprint] :is(h1,h2,h3,h4){text-transform:uppercase;letter-spacing:.015em}
:root[data-design=blueprint] .collaboration-case{grid-template-columns:1.2fr 1fr;border:2px solid var(--ink)}
:root[data-design=blueprint] :is(.small-project,.repo-card,.creator-thumbnails figure){border:1px solid var(--ink)}
:root[data-design=blueprint] .repos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
:root[data-design=blueprint] .creator-grid{grid-template-columns:1.4fr 1fr}
:root[data-design=blueprint] .channel-side{display:flex;flex-direction:column}
:root[data-design=blueprint] .about-grid{grid-template-columns:1fr 1fr;gap:64px}

:root[data-design=bold] :is(h1,h2,h3,h4){text-transform:uppercase;letter-spacing:.005em;font-weight:400}
:root[data-design=bold] .hero h1{line-height:.95;font-size:clamp(70px,8vw,128px)}
:root[data-design=bold] .section-heading h2{font-size:clamp(48px,6vw,84px)}
:root[data-design=bold] :is(.small-project,.repo-card,.channel-card,.collaboration-case,.creator-thumbnails figure){border:3px solid var(--ink)}
:root[data-design=bold] .collaboration-case{grid-template-columns:1fr 1fr;background:var(--orange);color:var(--orange-ink)}
:root[data-design=bold] .collaboration-case :is(.highlight-tech,.highlight-creator){color:inherit;text-decoration-color:currentColor}
:root[data-design=bold] .open-invitation{background:var(--paper);color:var(--ink);padding:24px;border-radius:8px}
:root[data-design=bold] .repos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
:root[data-design=bold] .channel-side{gap:32px}
:root[data-design=bold] .channel-card{padding:32px;background:var(--surface)}

@media(max-width:900px){
 :root[data-design]:not([data-design=editorial]) :is(.project-pair,.repos-grid,.creator-grid,.about-grid,.collaboration-case){grid-template-columns:1fr}
 :root[data-design=tactile] .case-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-design=gallery] .small-project{padding:32px 0}
 :root[data-design=blueprint] .creator-section{padding-inline:24px}
}
@media(max-width:600px){
 :root[data-design]:not([data-design=editorial]) :is(h1,h2,h3,h4,.repo-name){overflow-wrap:anywhere}
 :root[data-design]:not([data-design=editorial]) .contact-heading{flex-wrap:wrap}
 :root[data-design]:not([data-design=editorial]) .contact-heading h2{min-width:0;overflow-wrap:anywhere}
 :root[data-design]:not([data-design=editorial]) :is(.case-facts,.creator-analytics dl,.creator-thumbnails,.social-links){grid-template-columns:1fr}
 :root[data-design]:not([data-design=editorial]) .collaboration-case{padding:24px}
 :root[data-design=gallery] .repo-card{display:flex;padding:24px 0}
 :root[data-design=bold] .hero h1{font-size:clamp(56px,15vw,80px)}
 :root[data-design=terminal] .small-project{display:block}
}
/* The compact theme chooser keeps its original restrained corners. */
:root[data-design][data-palette] .design-picker{--family-control:28px}
:root[data-design][data-palette] .design-picker .design-menu{border-radius:16px}
:root[data-design][data-palette] .design-picker .design-menu button{border-radius:8px}
