/* Theme: dark by default, light on request. Sticky masthead. */

/* --- sticky header --- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(11, 11, 12, .96);
}

/* --- toggle --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .tt-moon { display: none; }
.theme-toggle:hover { border-color: var(--paper); background: #16181b; }

/* show the icon for the theme you would switch to */
html[data-theme="light"] .theme-toggle .tt-sun { display: none; }
html[data-theme="light"] .theme-toggle .tt-moon { display: block; }

/* --- light theme --- */
html[data-theme="light"] {
  --ink: #f4eee4;
  --paper: #16171a;
  --panel: #ece5d8;
  --panel-2: #e4dccd;
  --line: #d6cdbc;
  --line-bright: #b8ae9c;
  --muted: #5f574c;
}
html[data-theme="light"] body { background: #f4eee4; color: #16171a; }
html[data-theme="light"] .masthead {
  background: rgba(244, 238, 228, .96);
  border-bottom-color: #d6cdbc;
}
html[data-theme="light"] .nav a { color: #4a443c; }
html[data-theme="light"] .nav a:hover { color: #16171a; }
html[data-theme="light"] .theme-toggle { color: #16171a; }
html[data-theme="light"] .theme-toggle:hover { background: #e6ddcd; }
html[data-theme="light"] .flip { background: #fffaf2; border-color: #c7bdaa; }
html[data-theme="light"] .flip:hover { border-color: #16171a; background: #fff; }
html[data-theme="light"] .flip-label { color: #a3121f; }
html[data-theme="light"] .face { background: #16171a; background-image: none; }
html[data-theme="light"] .face.word { background: #cc2030; }

/* hero: the photograph stays, the scrim flips */
html[data-theme="light"] .hero.hero-photo {
  background-image:
    linear-gradient(92deg, rgba(244,238,228,.97) 0%, rgba(244,238,228,.92) 40%, rgba(244,238,228,.55) 70%, rgba(244,238,228,.3) 100%),
    url("/assets/hero-shop.webp");
}
html[data-theme="light"] .hero h1 { color: #16171a; }
html[data-theme="light"] .lede { color: #332f29; }
html[data-theme="light"] .hero-note { color: #4a443c; }
html[data-theme="light"] .hero-note strong { color: #16171a; }
html[data-theme="light"] .hero-reader { color: #332f29; }
html[data-theme="light"] .hero-reader a { color: #16171a; }

/* the rest of the page */
html[data-theme="light"] .services,
html[data-theme="light"] .where,
html[data-theme="light"] .article,
html[data-theme="light"] .page-hero,
html[data-theme="light"] .page-brands,
html[data-theme="light"] .reader-cta,
html[data-theme="light"] .close { background: #f4eee4; border-color: #d6cdbc; }
html[data-theme="light"] .callback { background: #ece5d8; border-color: #d6cdbc; }
html[data-theme="light"] .tyra { background: #ece5d8; border-color: #d6cdbc; }
html[data-theme="light"] .brands { background: #e8e0d2; border-top-color: #cc2030; border-bottom-color: #d6cdbc; }
html[data-theme="light"] .brands-label { color: #5f574c; }
html[data-theme="light"] .brands-label::before,
html[data-theme="light"] .brands-label::after { background: #c9bfae; }
html[data-theme="light"] .brand-item.is-word { color: #453f37; }

html[data-theme="light"] .svc-list,
html[data-theme="light"] .svc,
html[data-theme="light"] .facts dd,
html[data-theme="light"] .compare th,
html[data-theme="light"] .compare td { border-color: #d6cdbc; color: #332f29; }
html[data-theme="light"] .svc a:hover { background: #eee7da; }
html[data-theme="light"] .svc-line,
html[data-theme="light"] .article p,
html[data-theme="light"] .callback-copy p,
html[data-theme="light"] .tyra-copy p { color: #332f29; }
html[data-theme="light"] .article h2,
html[data-theme="light"] .article em { color: #16171a; }
html[data-theme="light"] .muted,
html[data-theme="light"] .where-lede,
html[data-theme="light"] .callback-fine,
html[data-theme="light"] .tyra-note { color: #5f574c; }
html[data-theme="light"] .where-lede { color: #4a443c; }

html[data-theme="light"] .callback-form input,
html[data-theme="light"] .callback-form select,
html[data-theme="light"] .callback-form textarea {
  background: #fffaf2;
  border-color: #c7bdaa;
  color: #16171a;
}
html[data-theme="light"] .callback-form label { color: #5f574c; }
html[data-theme="light"] .summary { background: #fffaf2; border-color: #d6cdbc; }
html[data-theme="light"] .summary-text { color: #332f29; }

html[data-theme="light"] .btn-quiet { color: #16171a; border-color: #b8ae9c; }
html[data-theme="light"] .btn-quiet:hover { background: #e6ddcd; border-color: #16171a; }
html[data-theme="light"] .foot { color: #5f574c; }
html[data-theme="light"] .foot a { color: #332f29; }
html[data-theme="light"] .socials a { color: #332f29; border-color: #c7bdaa; }
html[data-theme="light"] .socials a:hover { background: #e6ddcd; border-color: #16171a; }
html[data-theme="light"] .speech { background: #fffaf2; color: #16171a; }
html[data-theme="light"] .speech::after { background: #fffaf2; }
html[data-theme="light"] .shopcast { border-color: #c7bdaa; }
html[data-theme="light"] .map iframe { filter: none; }
html[data-theme="light"] .tyra-mini { border-color: #cc2030; }
html[data-theme="light"] ::selection { background: #cc2030; color: #fff; }
html[data-theme="light"] :focus-visible { outline-color: #a3121f; }

@media (max-width: 860px) {
  html[data-theme="light"] .menu summary { border-color: #b8ae9c; color: #16171a; }
  html[data-theme="light"] .menu[open] > .nav a { border-bottom-color: #d6cdbc; color: #332f29; }
}
