/* Version 3.0. Graphite retains the original 2.0 colours; graphite is the default. */
html[data-theme="earth"] {
  --bg:#0d0907;
  --fg:#f3ece3;
  --muted:#d4c1af;
  --accent:#d0af8e;
  --line:#806852;
  color-scheme:dark;
}
html[data-theme="graphite"] { color-scheme:dark; }

/* Theme selector: shared across all pages and languages. */
.header-tools { display:flex;align-items:center;gap:14px;flex-shrink:0; }
.theme-switch { display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:3px; }
.theme-switch button {
  appearance:none;margin:0;background:transparent;border:0;border-radius:0;
  padding:8px 9px;color:var(--muted);font:300 11px/1.3 "Helvetica Neue",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.025em;text-transform:none;white-space:nowrap;cursor:pointer;
}
.theme-switch button+button { border-left:1px solid var(--line); }
.theme-switch button[aria-pressed="true"] { color:var(--fg);background:rgba(185,185,181,.12); }
.theme-switch button:hover { color:var(--fg); }
.theme-switch button:focus-visible { outline:2px solid var(--accent);outline-offset:3px;position:relative;z-index:1; }
@media(max-width:1100px) {
  header { flex-wrap:wrap; }
  header .header-tools { margin-left:auto; }
  header nav { order:3;width:100%;margin-left:0; }
}
@media(max-width:760px) {
  header { display:flex; }
  header .header-tools { order:2;width:100%;margin-left:0;justify-content:space-between;gap:12px; }
  .header-tools .language-switch { margin-left:0; }
  header nav { margin-top:0; }
  .theme-switch button { padding:9px 12px;font-size:12px; }
}

/* Earth palette approved in the 10 October 2026 colour preview. */
html[data-theme="earth"] body { background:var(--bg);color:var(--fg); }
html[data-theme="earth"] .hero { background:#0d0907; }
html[data-theme="earth"] .tone-light { background:#15100d; }
html[data-theme="earth"] .tone-light.intro-gradient {
  background:linear-gradient(165deg,#0d0907 0%,#15100d 48%,#211712 100%);
}
html[data-theme="earth"] .tone-light-alt { background:#211712; }
html[data-theme="earth"] .instagram-section { background:#15100d; }
html[data-theme="earth"] .project-image { background:#15100d; }
html[data-theme="earth"] .bio section:nth-child(even) { background:#15100d; }
html[data-theme="earth"] .service-hero { background:linear-gradient(150deg,#0d0907,#15100d 65%,#0d0907); }
html[data-theme="earth"] .service-contact { background:#15100d; }
html[data-theme="earth"] footer { background:#0d0907; }

html[data-theme="earth"] .hero-copy p,
html[data-theme="earth"] .intro p,
html[data-theme="earth"] .cv-text p,
html[data-theme="earth"] .detail,
html[data-theme="earth"] .work-detail p,
html[data-theme="earth"] .commission-cta blockquote,
html[data-theme="earth"] .service-hero p,
html[data-theme="earth"] .service-contact-row p { color:var(--fg); }
html[data-theme="earth"] .press-quote p { color:var(--fg)!important; }

html[data-theme="earth"] header nav a,
html[data-theme="earth"] .language-switch a[aria-current="page"] { color:var(--fg); }
html[data-theme="earth"] .language-switch a { color:var(--muted); }
html[data-theme="earth"] .language-switch a[aria-current="page"] { border-bottom-color:var(--accent); }
html[data-theme="earth"] .instagram-section .eyebrow { color:var(--accent); }
html[data-theme="earth"] .instagram-profile,
html[data-theme="earth"] .instagram-card a,
html[data-theme="earth"] .instagram-note,
html[data-theme="earth"] .press-source,
html[data-theme="earth"] .press-credit,
html[data-theme="earth"] .press-year,
html[data-theme="earth"] .press-home-list small,
html[data-theme="earth"] .press-ingress,
html[data-theme="earth"] .audio-clips__track p,
html[data-theme="earth"] .work-media__label,
html[data-theme="earth"] .work-media__hint,
html[data-theme="earth"] .work-media figcaption,
html[data-theme="earth"] .resource-previews figcaption,
html[data-theme="earth"] .papillon-media figcaption,
html[data-theme="earth"] .louis-media figcaption,
html[data-theme="earth"] .festiva-media figcaption { color:var(--muted); }

html[data-theme="earth"] .work,
html[data-theme="earth"] .work-detail,
html[data-theme="earth"] .work-media,
html[data-theme="earth"] .papillon-media,
html[data-theme="earth"] .louis-media,
html[data-theme="earth"] .festiva-media,
html[data-theme="earth"] .work-resources,
html[data-theme="earth"] .press-row,
html[data-theme="earth"] .press-home-list li { border-color:var(--line); }
html[data-theme="earth"] .outline-action,
html[data-theme="earth"] .commission-cta a,
html[data-theme="earth"] .hero-copy .commission-cta a,
html[data-theme="earth"] .sound-control button,
html[data-theme="earth"] .sound-upload,
html[data-theme="earth"] .work button,
html[data-theme="earth"] .press-open { color:var(--fg);border-color:var(--line); }
html[data-theme="earth"] .outline-action:hover,
html[data-theme="earth"] .outline-action:focus-visible,
html[data-theme="earth"] .commission-cta a:hover,
html[data-theme="earth"] .commission-cta a:focus-visible { background:#211712;border-color:var(--accent); }
html[data-theme="earth"] .service-card svg { stroke:var(--accent); }
html[data-theme="earth"] .gallery img { background:#15100d; }
html[data-theme="earth"] #image-dialog { background:#0d0907; }
html[data-theme="earth"] audio { accent-color:var(--accent); }

/* Consent controls follow the theme without changing consent or measurement. */
html[data-theme="earth"] .analytics-consent { background:#15100d;color:var(--fg);border-color:var(--line); }
html[data-theme="earth"] .analytics-consent p,
html[data-theme="earth"] .analytics-consent__actions a { color:var(--muted); }
html[data-theme="earth"] .analytics-consent__actions button { color:var(--fg);border-color:var(--line); }
html[data-theme="earth"] .analytics-consent__actions button:hover,
html[data-theme="earth"] .analytics-consent__actions button:focus-visible { background:#211712;outline-color:var(--accent); }

/* 3.3: warm earth gradient fades toward near-black; original framed switch unchanged. */
html[data-theme="earth"] .tone-light.intro-gradient {background:linear-gradient(165deg,#211712 0%,#15100d 45%,#0d0907 78%,#050403 100%);}

/* 11 October 2026: monochrome architecture carousel in every language and theme. */
#project-image #project-photo { filter: grayscale(1); }
