:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf8f5;
  --bg-2: #f5efed;
  --card: #fffdfb;
  --card-2: #f0e9e7;
  --plum: #eae1ed;
  --ink: #211b28;
  --muted: #554b60;
  --faint: #61566b;
  --line: rgb(46 33 52 / 14%);
  --line-2: rgb(46 33 52 / 30%);
  --coral: #b13f31;
  --on-coral: #fff;
  --cyan: #07645f;
  --on-cyan: #fff;
  --pink: #8e3d65;
  --mint: #246d54;
  --warn: #805014;
  --error: #a53128;
  --glass: rgb(255 253 251 / 72%);
  --glass-line: var(--line);
}

.theme-toggle[data-theme-toggle] {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

:root:not([data-theme]) .theme-toggle[data-theme-toggle] { display: none; }
.theme-toggle[data-theme-toggle]:hover { background: var(--card-2); }
.theme-toggle[data-theme-toggle]::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19m0-14-1.5 1.5m-11 11L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root[data-theme="light"] .theme-toggle[data-theme-toggle]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 14.1A9 9 0 0 1 9.9 3.2 9 9 0 1 0 20.8 14.1Z'/%3E%3C/svg%3E");
}

@media (forced-colors: active) {
  .theme-toggle[data-theme-toggle]::before {
    forced-color-adjust: none;
    background: ButtonText;
  }
}
