:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #1f1a1d;
  --muted: #665861;
  --link: #c91f58;
  --link-hover: #8f143e;
  --accent: #ffb3c7;
  --accent-text: #1f1a1d;
  --border: rgba(201, 31, 88, 0.24);
  --toggle-bg: rgba(255, 255, 255, 0.9);
  --toggle-shadow: 0 10px 30px rgba(31, 26, 29, 0.12);
}

html[data-theme="dark"] {
  --bg: #09090b;
  --surface: rgba(20, 20, 24, 0.9);
  --text: #f5f3f4;
  --muted: #b7adb3;
  --link: #ff92b6;
  --link-hover: #ffd0df;
  --accent: #ff8fb1;
  --accent-text: #120d10;
  --border: rgba(255, 146, 182, 0.34);
  --toggle-bg: rgba(24, 24, 28, 0.9);
  --toggle-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  background: transparent;
  color: inherit;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body,
button,
input,
select,
textarea {
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
dt,
dd,
blockquote,
label {
  color: inherit;
}

h1 {
  color: #ffc0cb !important;
}

a {
  color: var(--link) !important;
}

a:hover {
  color: var(--link-hover) !important;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

a.button-link,
button.theme-toggle {
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--accent-text) !important;
  box-shadow: var(--toggle-shadow);
}

a.button-link {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 20px;
}

a.button-link:hover {
  background: var(--link);
  color: #ffffff !important;
}

button.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

button.theme-toggle:hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] [style*="color: #333"],
html[data-theme="dark"] [style*="color: #555"],
html[data-theme="dark"] [style*="color: #666"],
html[data-theme="dark"] [style*="color: #888"] {
  color: var(--muted) !important;
}