html.dark { color-scheme: dark; }
html.dark body { background: #121214; color: #e7e5e4; }

/* backgrounds */
html.dark :where(.bg-white)       { background-color: #1a1a1d; }
html.dark :where(.bg-accent-50)   { background-color: #141418; }
html.dark :where(.bg-gray-50)     { background-color: #222226; }
html.dark :where(.bg-brand-50)    { background-color: #2a2018; }
html.dark :where(.bg-brand-100)   { background-color: #3a2a1c; }
html.dark :where(.bg-green-50)    { background-color: #1f2a22; }
html.dark :where(.bg-yellow-50)   { background-color: #2d2a1a; }

/* text */
html.dark :where(.text-brand-900, .text-brand-800) { color: #f5e9dd; }
html.dark :where(.text-brand-700, .text-brand-600) { color: #e39a52; }
html.dark :where(.text-gray-700, .text-gray-600, .text-slate-600) { color: #d6d3d1; }
html.dark :where(.text-gray-500) { color: #a8a29e; }
html.dark :where(.text-gray-400) { color: #8a8580; }

/* borders */
html.dark :where(.border-gray-100, .border-gray-200, .border-accent-100,
                 .border-accent-200, .border-brand-100, .border-brand-200) {
  border-color: #2e2e33;
}

/* language selector */
html.dark :where(.language-selector) { background-color: #1a1a1d; }

/* contact form */
html.dark :where(.form-input) {
  background-color: #222226; border-color: #3a3a40; color: #e7e5e4;
}
html.dark .form-input:focus { background-color: #222226; }
html.dark .form-input::placeholder { color: #8a8580; }
html.dark .form-input option { background: #1a1a1d; color: #e7e5e4; }

/* logos need a light plate so they stay visible */
html.dark nav a img,
html.dark footer img,
html.dark .partner-slide img {
  background: #ffffff; border-radius: 10px; padding: 4px;
}

/* theme toggle button */
#themeToggle {
  position: static !important;
  inset: auto !important;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9999px;
  background: #ffffff; color: #cd7f32;
  border: 1px solid #cd7f32;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}

#themeToggle { margin-inline: 8px; }

#themeToggle:hover { background: #cd7f32; color: #ffffff; }
html.dark #themeToggle { background: #1a1a1d; }
html.dark #themeToggle:hover { background: #cd7f32; }

@media (min-width: 768px) {
  #themeToggle { width: 42px; height: 42px; }
}
@media (max-width: 400px) {
  #themeToggle { width: 32px; height: 32px; margin-inline: 6px; }
}
html.dark body, html.dark nav, html.dark section, html.dark footer {
  transition: background-color .3s ease, color .3s ease;
}
html.dark #intro { background: #121214 !important; }
html.dark #intro button { background: #1a1a1d !important; color: #e39a52 !important; }