:root {
  color-scheme: light dark;
}

html[data-theme] body,
html[data-theme] header,
html[data-theme] section,
html[data-theme] footer,
html[data-theme] a,
html[data-theme] button,
html[data-theme] div,
html[data-theme] p,
html[data-theme] span,
html[data-theme] h1,
html[data-theme] h2,
html[data-theme] h3 {
  transition-property: background-color, border-color, color, fill, opacity, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.theme-toggle {
  align-items: center;
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  padding: 0;
  width: 2.25rem;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: #c41818;
  color: #ffb84d;
  outline: none;
}

.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 24, 24, 0.25);
}

.theme-toggle__icon {
  display: block;
  height: 1rem;
  width: 1rem;
}

.theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

html[data-theme="light"] header {
  background: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] header {
  background: rgba(13, 17, 23, 0.9) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] header > div:first-of-type {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] footer,
html[data-theme="light"] footer.bg-iron-950 {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] footer *,
html[data-theme="light"] footer .text-white,
html[data-theme="light"] footer .text-white\/70,
html[data-theme="light"] footer .text-iron-300,
html[data-theme="light"] footer .text-iron-400,
html[data-theme="light"] footer .text-iron-500 {
  color: #0f172a !important;
}

html[data-theme="light"] footer p,
html[data-theme="light"] footer li,
html[data-theme="light"] footer .text-xs,
html[data-theme="light"] footer .text-sm {
  color: #334155 !important;
}

html[data-theme="light"] footer a:hover {
  color: #c41818 !important;
}

html[data-theme="light"] footer .border-iron-600,
html[data-theme="light"] footer .border-iron-700,
html[data-theme="light"] footer .border-iron-800 {
  border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-parchment-100,
html[data-theme="dark"] .bg-iron-50 {
  background-color: #101820 !important;
}

html[data-theme="dark"] .bg-iron-100,
html[data-theme="dark"] .bg-iron-200 {
  background-color: #1f2937 !important;
}

html[data-theme="dark"] .text-iron-900,
html[data-theme="dark"] .text-iron-800 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .text-iron-700,
html[data-theme="dark"] .text-iron-600 {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .text-iron-500 {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .border-iron-100,
html[data-theme="dark"] .border-iron-200,
html[data-theme="dark"] .border-iron-300 {
  border-color: #334155 !important;
}

html[data-theme="dark"] .fill-iron-50 {
  fill: #101820 !important;
}

html[data-theme="dark"] .bg-graph-paper,
html[data-theme="dark"] .bg-blueprint-grid {
  background-color: #101820 !important;
}

html[data-theme="light"] .bg-iron-950,
html[data-theme="light"] .bg-iron-900,
html[data-theme="light"] .bg-iron-800 {
  background-color: #f8fafc !important;
}

html[data-theme="light"] .bg-iron-700 {
  background-color: #cbd5e1 !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-iron-100,
html[data-theme="light"] .text-iron-200,
html[data-theme="light"] .text-iron-300 {
  color: #0f172a !important;
}

html[data-theme="light"] .text-iron-400,
html[data-theme="light"] .text-iron-500 {
  color: #475569 !important;
}

html[data-theme="light"] .border-iron-600,
html[data-theme="light"] .border-iron-700,
html[data-theme="light"] .border-iron-800 {
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .fill-iron-50 {
  fill: #f8fafc !important;
}

html[data-theme="light"] .from-iron-950 {
  --tw-gradient-from: rgba(248, 250, 252, 0.96) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(248, 250, 252, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html[data-theme="light"] .via-iron-950\/75 {
  --tw-gradient-to: rgba(248, 250, 252, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgba(248, 250, 252, 0.78) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

html[data-theme="light"] .bg-rust-500,
html[data-theme="light"] .bg-rust-600,
html[data-theme="light"] .bg-\[\#25D366\] {
  color: #ffffff !important;
}

html[data-theme="light"] .bg-rust-500 *,
html[data-theme="light"] .bg-rust-600 *,
html[data-theme="light"] .bg-\[\#25D366\] * {
  color: inherit !important;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #fee2e2 100%) !important;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 > .absolute.inset-0.bg-blueprint-grid {
  opacity: 0.18;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 > .absolute.inset-0.bg-gradient-to-r {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 237, 0.64)) !important;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 h2,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 p,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .text-white,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .text-iron-300 {
  color: #0f172a !important;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 .text-rust-400,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .text-rust-500 {
  color: #c41818 !important;
}

html[data-theme="light"] main > section:last-of-type.bg-iron-950 .bg-rust-500,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .bg-rust-500 *,
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .bg-\[\#128C7E\],
html[data-theme="light"] main > section:last-of-type.bg-iron-950 .bg-\[\#128C7E\] * {
  color: #ffffff !important;
}
