/* HTML Lens marketing site — plaster (light) and fog (dark) palettes.
   Matches the web app canon in src/theme/canon.css. */

:root {
  --bg: #f5f4ef;
  --panel: #ffffff;
  --ink: #121212;
  --muted: #6b6b6b;
  --faint: #9a9892;
  --line: #deddd7;
  --soft: #eceae3;
  --soft2: #faf9f5;
  --umber: #8a6f4d;
  --brick: #9c3b2e;
  --on-ink: #ffffff;
  --code-bg: #1d1c19;
  --code-fg: #f0eee8;
}

:root[data-theme="fog"] {
  --bg: #4a4746;
  --panel: #565353;
  --ink: #fbfaf8;
  --muted: #d4cfc7;
  --faint: #948e86;
  --line: #6b6767;
  --soft: #615e5d;
  --soft2: #524f4e;
  --umber: #e6cca6;
  --brick: #f4a89c;
  --on-ink: #121212;
  --code-bg: #2a2827;
  --code-fg: #f0eee8;
}

body {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* ---------- theme toggle ---------- */

.site-theme-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--line);
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.site-theme-toggle .theme-toggle-svg {
  transition: transform 0.28s cubic-bezier(0.4, 0.14, 0.3, 1);
}

.site-theme-toggle[data-theme="fog"] .theme-toggle-svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-theme-toggle .theme-toggle-svg { transition: none; }
}

/* Nav row helpers */
.nav-end {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.page-topbar .back {
  margin-bottom: 0;
}
