/* Can I Fix It? — canifixit.co.uk */

/* Colour scheme. Default: "Workshop" (RAL 6018 yellow green, RAL 5004 black blue, RAL 7035 light grey).
   Alternative schemes below override only these tokens. */
:root {
  --ink: #1a1c28;          /* main dark colour: header button, dark sections, logo */
  --ink-2: #272a39;        /* cards on dark sections */
  --ink-3: #111219;        /* footer */
  --ink-hover: #33374a;
  --accent: #57a639;       /* highlight: main button, ticks, logo "?" */
  --accent-hover: #64b546;
  --accent-soft: #e7f3e0;
  --accent-rgb: 87, 166, 57;
  --paper: #f4f5f3;        /* page background */
  --card: #ffffff;
  --text: #1c1e26;
  --muted: #5c6068;
  --line: #dfe2dd;
  --on-dark: #d9dbe3;      /* body text on dark sections */
  --on-dark-lead: #bcc0cc;
  --on-dark-muted: #a6aab7;
  --footer-text: #8b8f9c;
  --footer-link: #cdd0d9;
  --shadow-rgb: 27, 29, 41;
  /* WhatsApp: dark here, so it doesn't clash with the green accent */
  --wa: #1a1c28;
  --wa-hover: #33374a;
  --wa-text: #ffffff;
  --wa-ci-bg: #ffffff;     /* WhatsApp icon tile in the Contact section */
  --wa-ci-fg: #1a1c28;
  --quick-call-bg: var(--accent);   /* "Call" in the mobile bottom bar */
  --quick-call-fg: var(--ink);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 10px 30px rgba(var(--shadow-rgb), .08);
  --wrap: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Classic: navy + tool yellow */
:root[data-theme="classic"] {
  --ink: #15233f;
  --ink-2: #213459;
  --ink-3: #0e182d;
  --ink-hover: #2a3f6a;
  --accent: #f5b72d;
  --accent-hover: #f7c34f;
  --accent-soft: #fdf0cf;
  --accent-rgb: 245, 183, 45;
  --paper: #faf7f1;
  --text: #1d2433;
  --muted: #5b6477;
  --line: #e7e1d5;
  --on-dark: #d5dbe8;
  --on-dark-lead: #b8c2d6;
  --on-dark-muted: #a9b4cb;
  --footer-text: #8e9ab3;
  --footer-link: #c6cfe0;
  --shadow-rgb: 21, 35, 63;
}

/* Non-green schemes: WhatsApp in its own green */
:root[data-theme="classic"], :root[data-theme="heritage"], :root[data-theme="modern"] {
  --wa: #1c8f4d;
  --wa-hover: #20a259;
  --wa-text: #ffffff;
  --wa-ci-bg: #1c8f4d;
  --wa-ci-fg: #ffffff;
  --quick-call-bg: var(--ink);
  --quick-call-fg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--card); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin: -3px 10px 0 0;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px rgba(var(--accent-rgb), .35); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--wa { background: var(--wa); color: var(--wa-text); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* typographic logo: "CAN I / FIX IT?" with an accent bar */
.wordmark {
  display: block;
  border-left: 4px solid var(--accent);
  padding: 1px 0 1px 9px;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
}
.wm-line { display: block; font-weight: 900; font-size: 1.3rem; line-height: .92; letter-spacing: -.02em; }
.wm-q { color: var(--accent); }
.wm-sub { display: block; margin-top: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2; color: var(--muted); }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--accent-soft); }

.header-call { padding: 10px 18px; }
.header-call .label-long { display: none; }
/* small screens have the bottom quick-contact bar instead */
@media (max-width: 879px) { .header-call { display: none; } }

@media (max-width: 879px) {
  .nav { border-top: 1px solid var(--line); margin: 0 -20px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { padding: 6px 12px; justify-content: space-around; }
  .nav a { font-size: .95rem; padding: 7px 10px; }
}
/* phones: only the 4 main links, so nothing needs side-scrolling;
   individual services are reachable from the Services cards and the hero tags */
@media (max-width: 719px) {
  .nav .nav-sub { display: none; }
}
@media (max-width: 359px) {
  .nav a { font-size: .9rem; padding: 7px 6px; }
}
@media (min-width: 880px) {
  html { scroll-padding-top: 84px; }
  .site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
  .header-row { display: contents; }
  .nav { order: 1; margin-left: auto; }
  .header-call { order: 2; }
}
/* narrow desktops / landscape tablets: keep the header on one line */
@media (min-width: 880px) and (max-width: 1179px) {
  .nav .nav-sub { display: none; }
}
@media (min-width: 1180px) {
  .header-call .label-long { display: inline; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero h1 .hl {
  background: linear-gradient(transparent 64%, var(--accent) 64%, var(--accent) 92%, transparent 92%);
  padding: 0 .06em;
  white-space: nowrap;
}
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;   /* comfortable tap target on phones */
  transition: background-color .15s ease, border-color .15s ease;
}
.hero-tags a:hover { background: var(--accent-soft); border-color: var(--accent); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  z-index: -1;
}
.badge {
  position: absolute;
  left: -12px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 18px 12px 14px;
}
.badge strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.badge span { font-size: .85rem; line-height: 1.25; color: var(--muted); font-weight: 600; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .badge { left: -28px; bottom: 36px; }
}
@media (max-width: 879px) {
  .hero-media { margin-right: 18px; }
  .badge { left: 12px; bottom: 12px; }
}

/* ---------- Services overview ---------- */

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  margin-bottom: 18px;
}
.card-icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.card .more { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--ink); }
.card .more::after { content: " →"; transition: margin .15s ease; }
.card:hover .more::after { margin-left: 4px; }

/* phones: compact list rows instead of tall cards */
@media (max-width: 599px) {
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .card-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .card h3 { font-size: 1.05rem; margin: 2px 0 4px; }
  .card p { font-size: .92rem; margin: 0; }
  .card .more { display: none; }
}

/* ---------- About ---------- */

.split { display: grid; gap: 40px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.split-media img { width: 100%; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.signature .avatar {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.signature strong { display: block; color: var(--ink); }
.signature span { font-size: .9rem; color: var(--muted); }

@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--flip .split-media { order: 2; }
}

/* ---------- Why choose ---------- */

.why { background: var(--ink); color: var(--on-dark); }
.why h2, .why h3 { color: #fff; }
.why .eyebrow { color: var(--on-dark-muted); }
.why .lead { color: var(--on-dark-lead); }
.why-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.why-item {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.why-item .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: .95rem;
  margin-bottom: 16px;
}
.why-item p { margin: 0; font-size: .97rem; }
@media (max-width: 599px) {
  .why-grid { gap: 10px; }
  .why-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 18px; }
  .why-item .num { grid-row: span 2; margin: 0; }
  .why-item h3 { font-size: 1.05rem; margin: 5px 0 4px; }
}

/* ---------- Service detail ---------- */

.service .split { align-items: start; }
.service-text h2 { margin-bottom: 18px; }
.service-text > p { max-width: 68ch; }
.service-text .sub { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: -6px 0 14px; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px 22px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--accent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 8px; top: 5px;
  width: 5px; height: 10px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
@media (min-width: 640px) { .ticks--2 { grid-template-columns: 1fr 1fr; } }

@media (min-width: 880px) { .service-media { position: sticky; top: 100px; } }
/* phones & tablets: keep tall photos from taking over the screen */
@media (max-width: 879px) {
  .service-media img { aspect-ratio: 4 / 3; object-fit: cover; }
}

.promise {
  margin-top: 26px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.promise h3 { font-size: 1rem; margin-bottom: 10px; }
.promise ol { margin: 0; padding-left: 1.2em; }
.promise li { margin: 4px 0; font-weight: 500; color: var(--ink); }

.list-title { margin: 28px 0 0; font-size: 1rem; }
.list-title + .ticks { margin-top: 14px; }

.band {
  background: var(--accent);
  padding: 34px 0;
}
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.band p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--ink); letter-spacing: -.01em; }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .gallery { gap: 18px; } }
.gallery a { display: block; text-decoration: none; }
.gallery .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .9rem; font-weight: 600; color: var(--muted); padding: 10px 2px 0; line-height: 1.35; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(9, 15, 29, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; padding: 12px 48px 0; font-weight: 600; }
.lb-btn {
  position: absolute;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.lb-btn .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.lb-close { top: -14px; right: -14px; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: -14px; }
.lb-next { right: -14px; }
@media (max-width: 600px) {
  .lb-close { top: -56px; right: 0; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: var(--on-dark); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--on-dark-muted); }
.contact .lead { color: var(--on-dark-lead); }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 8px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: #fff;
  transition: transform .18s ease, background-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); background: var(--ink-hover); }
.contact-card .ci {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  background: var(--accent); color: var(--ink);
}
.contact-card .ci .icon { width: 26px; height: 26px; }
.contact-card.is-wa .ci { background: var(--wa-ci-bg); color: var(--wa-ci-fg); }
.contact-card small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-card strong { display: block; font-size: 1.15rem; word-break: break-word; }
.contact-note { margin-top: 28px; font-size: .95rem; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-3); color: var(--footer-text); font-size: .9rem; padding: 30px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer .brand-name { color: #fff; font-size: 1rem; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Mobile quick-contact bar ---------- */

.quickbar { display: none; }
@media (max-width: 879px) {
  body { padding-bottom: 76px; }
  .quickbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(var(--shadow-rgb), .08);
  }
  .quickbar .btn { padding: 12px 10px; }
  .quickbar .btn--dark { background: var(--quick-call-bg); color: var(--quick-call-fg); }
}

/* ---------- Alternative colour schemes (preview: ?theme=heritage / ?theme=modern) ---------- */

/* Heritage: deep British green + copper */
:root[data-theme="heritage"] {
  --ink: #17332a;
  --ink-2: #22463a;
  --ink-3: #0f241d;
  --ink-hover: #2b5547;
  --accent: #e08a4f;
  --accent-hover: #e89a65;
  --accent-soft: #f8e4d4;
  --accent-rgb: 224, 138, 79;
  --paper: #f7f4ec;
  --text: #1c2622;
  --muted: #59645e;
  --line: #e4dccb;
  --on-dark: #d3e0d8;
  --on-dark-lead: #b6c8bd;
  --on-dark-muted: #a3b8ac;
  --footer-text: #8ea596;
  --footer-link: #c3d4ca;
  --shadow-rgb: 23, 51, 42;
}

/* Modern: charcoal + safety orange */
:root[data-theme="modern"] {
  --ink: #1f2023;
  --ink-2: #2c2e33;
  --ink-3: #141517;
  --ink-hover: #383b41;
  --accent: #ff6b1a;
  --accent-hover: #ff8340;
  --accent-soft: #ffe6d6;
  --accent-rgb: 255, 107, 26;
  --paper: #f6f5f3;
  --text: #1f2023;
  --muted: #5f6166;
  --line: #e5e2dd;
  --on-dark: #dcdcdf;
  --on-dark-lead: #bfc1c5;
  --on-dark-muted: #a7a9ae;
  --footer-text: #8b8d92;
  --footer-link: #cfd0d3;
  --shadow-rgb: 31, 32, 35;
}

/* Scheme switcher: only rendered when the URL contains ?theme=… */
.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-size: .8rem;
  font-weight: 700;
  color: #333;
}
.theme-switcher button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 6px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #f3f3f3;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.theme-switcher button[aria-pressed="true"] { border-color: #333; background: #fff; }
.theme-switcher .sw {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
}
@media (max-width: 879px) {
  .theme-switcher { left: 12px; right: 12px; bottom: 84px; justify-content: center; padding-left: 10px; }
  .theme-switcher .label { display: none; }
}
@media (max-width: 599px) {
  .theme-switcher .nm { display: none; }
  .theme-switcher button { padding: 5px; }
  .theme-switcher .sw { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
