/* Brand colors stay fixed on accent panels; reading surfaces adapt to appearance. */
:root{color-scheme:light;--brand-graphite:#252137;--brand-paper:#fff9f0;--brand-violet:#6d3df5;--brand-violet-deep:#5424d0}
.logo-dark{display:none}
.app-store-badge .badge-on-dark{display:none}
.appearance-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.appearance-control:hover{background:var(--lavender);border-color:var(--violet)}
.appearance-control:focus-visible{outline:3px solid var(--violet);outline-offset:4px}
.appearance-sun{display:none}
[data-theme=dark] .appearance-moon{display:none}
[data-theme=dark] .appearance-sun{display:block}
/* Collapse the expanded navigation before its links and appearance control crowd. */
@media(max-width:1150px){
  .header-inner{flex-wrap:wrap;gap:0;min-height:82px}
  .js .menu-toggle{display:flex;color:var(--ink)}
  .main-navigation{width:100%;justify-content:space-between;padding-bottom:16px;gap:12px;flex-wrap:wrap}
  .js .main-navigation{display:none}
  .js .main-navigation.is-open{display:flex;flex-direction:column;align-items:stretch;border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
  .js .main-navigation>a{padding:13px;font-size:14px}
  .js .main-navigation .button{margin-top:8px}
  .appearance-control{align-self:flex-start;margin:8px 13px}
  .js .main-navigation>a.app-store-badge{align-self:flex-start;padding:0;margin:8px 13px}
}
@media screen{
  :root[data-theme=dark]{color-scheme:dark;--paper:var(--brand-graphite);--ink:var(--brand-paper);--lavender:color-mix(in srgb,#eee7ff 9%,var(--brand-graphite));--muted:color-mix(in srgb,var(--brand-paper) 73%,var(--brand-graphite));--line:color-mix(in srgb,#eee7ff 27%,var(--brand-graphite));--violet:color-mix(in srgb,var(--brand-violet) 44%,var(--brand-paper));--violet-deep:color-mix(in srgb,var(--brand-violet) 30%,var(--brand-paper))}
  [data-theme=dark] .logo-light{display:none}
  [data-theme=dark] .logo-dark{display:block}
  [data-theme=dark] .app-store-badge .badge-on-light{display:none}
  [data-theme=dark] .app-store-badge .badge-on-dark{display:block}
  [data-theme=dark] ::selection{background:var(--lime);color:var(--brand-graphite)}
  [data-theme=dark] .site-header{border-bottom-color:var(--line)}
  [data-theme=dark] .button{background:var(--brand-violet);color:var(--brand-paper)}
  [data-theme=dark] .button:hover{background:var(--brand-violet-deep)}
  [data-theme=dark] .button-lime{background:var(--lime);color:var(--brand-graphite)}
  [data-theme=dark] .button-lime:hover{background:#d2f163}
  [data-theme=dark] .site-footer,[data-theme=dark] .benefit-strip{background:var(--brand-graphite);color:var(--brand-paper);border-top:1px solid var(--line)}
  [data-theme=dark] .download-section{background:var(--brand-violet);color:var(--brand-paper)}
  [data-theme=dark] .download-section .eyebrow{color:var(--brand-paper)}
  [data-theme=dark] .workflow-panel{background:var(--lavender)}
  [data-theme=dark] .workflow-screen{border-color:var(--brand-graphite)}
  [data-theme=dark] .projects-section{background:color-mix(in srgb,var(--brand-violet) 10%,var(--brand-graphite))}
  [data-theme=dark] .project-card>p,[data-theme=dark] .holes-copy>p:not(.eyebrow),[data-theme=dark] .files-copy>p:not(.eyebrow),[data-theme=dark] .tips-welcome>p:not(.eyebrow),[data-theme=dark] .article-body,[data-theme=dark] .guide-body,[data-theme=dark] .tutorial-prose,[data-theme=dark] .tutorial-personalize>p:not(.eyebrow){color:var(--muted)}
  [data-theme=dark] .project-index,[data-theme=dark] .project-image-caption,[data-theme=dark] .feature-icon,[data-theme=dark] .hole-type-icon,[data-theme=dark] .idea-sticker,[data-theme=dark] .file-sheet-front,[data-theme=dark] .tips-toolkit>span:nth-child(2),[data-theme=dark] .tips-toolkit>span:nth-child(3),[data-theme=dark] .help-topic-card:nth-child(3n+2) .help-topic-icon,[data-theme=dark] .help-topic-card:nth-child(3n+3) .help-topic-icon{color:var(--brand-graphite)}
  [data-theme=dark] .file-sheet-back{background:var(--brand-violet);color:var(--brand-paper)}
  [data-theme=dark] .pricing-card-pro,[data-theme=dark] .licensing-summary>div:nth-child(2),[data-theme=dark] .admin-counts>div:nth-child(2),[data-theme=dark] .admin-feedback{background:color-mix(in srgb,var(--lime) 12%,var(--brand-graphite))}
  [data-theme=dark] .pricing-card .plan-terms{border-top-color:var(--line)}
  [data-theme=dark] .feedback-form,[data-theme=dark] .walkthrough-card,[data-theme=dark] .canvas-placeholder{background:var(--lavender)}
  [data-theme=dark] .walkthrough-search,[data-theme=dark] .walkthrough-card,[data-theme=dark] .walkthrough-empty,[data-theme=dark] .canvas-placeholder,[data-theme=dark] .canvas-embed iframe,[data-theme=dark] .canvas-lesson,[data-theme=dark] .tutorial-completion{border-color:var(--line)}
  [data-theme=dark] .walkthrough-search input,[data-theme=dark] .walkthrough-search select{background:var(--paper);color:var(--ink);border-color:var(--line)}
  [data-theme=dark] .tutorial-step-number{background:var(--brand-violet);color:var(--brand-paper)}
  [data-theme=dark] .tutorial-technique{background:var(--lavender)}
  [data-theme=dark] .tutorial-checkpoint{background:color-mix(in srgb,var(--lime) 10%,var(--brand-graphite));border-color:color-mix(in srgb,var(--lime) 30%,var(--brand-graphite))}
  [data-theme=dark] .tutorial-checkpoint>span{color:var(--lime)}
  [data-theme=dark] .tutorial-checkpoint>p{color:var(--ink)}
  [data-theme=dark] .hero-ipad::before{background:radial-gradient(ellipse at 55% 45%,color-mix(in srgb,var(--brand-violet) 22%,var(--brand-graphite)),transparent 72%)}
  [data-theme=dark] .hero-template-label{color:var(--violet);border-color:var(--line)}
  [data-theme=dark] .hero-carousel-controls button:hover{background:var(--lavender);color:var(--violet)}
  [data-theme=dark] .hero-carousel-scenes button[aria-current=true]{background:var(--brand-violet);color:var(--brand-paper)}
  [data-theme=dark] .form-error,[data-theme=dark] .feedback-errors{background:var(--lavender);color:var(--coral);border-color:var(--coral)}
  [data-theme=dark] .feedback-field-error,[data-theme=dark] .admin-delete-link{color:var(--coral)}
  [data-theme=dark] .feedback-field [aria-invalid=true],[data-theme=dark] .feedback-kind[aria-invalid=true] .feedback-type-options label{border-color:var(--coral)}
  /* Screenshots, diagrams, and the embedded modeling canvas retain their own colors. */
}
@media print{.appearance-control{display:none!important}}
