/* Themes: dark defaults and the warm paper-style light theme. */
/* Theme and language controls */
html {
  color-scheme: dark;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2eee6;
  --bg-soft: #e9e2d6;
  --surface: #fbf8f2;
  --surface-hover: #f5efe5;
  --text: #24231f;
  --muted: #706b62;
  --muted-2: #91897d;
  --line: #c8bcac;
  --line-strong: #aa9b87;
  --accent: #506f9d;
  --accent-soft: rgba(80, 111, 157, 0.11);
  --success: #3e7c57;
}
html[data-theme="light"] body {
  background:
    radial-gradient(
      circle at 68% 0%,
      rgba(122, 101, 75, 0.08),
      transparent 30%
    ),
    linear-gradient(var(--bg), var(--bg));
}
html[data-theme="light"] body::before {
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(72, 58, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 58, 42, 0.045) 1px, transparent 1px);
}
html[data-theme="light"] .page-shell {
  background: rgba(242, 238, 230, 0.92);
}
html[data-theme="light"] .site-header {
  background: rgba(242, 238, 230, 0.92);
}
html[data-theme="light"] .profile-list dd,
html[data-theme="light"] .stack-table strong {
  color: #3b3933;
}
html[data-theme="light"] .project-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.1)
  );
}
html[data-theme="light"] .project-card:hover {
  border-color: #a99a87;
}
html[data-theme="light"] .project-year {
  color: #506f9d;
}
html[data-theme="light"] .project-icon {
  border-color: #b9aa96;
}
html[data-theme="light"] .tags li {
  color: #665f56;
  background: #eee7dc;
  border-color: #ded3c3;
}
html[data-theme="light"] .card-link {
  color: #4c4942;
}
html[data-theme="light"] .site-footer p {
  color: #706b62;
}
