/* 🤖 Light and dark for the enabled-demo homepage. Auto follows the system;
   home/theme.js sets data-theme on <html> when someone picks Light or Dark.
   Every colour on this page is chosen with light-dark(), so it follows
   color-scheme. The shared header, hero ground and paste box (header.css,
   home.css) are dark by design elsewhere; their light values live here,
   scoped to this page. Light: warm neutral grounds, green for links and
   accents only. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body.landing.site-home { background: light-dark(#faf8f4, #101c23); color: light-dark(#181c21, #eef5ed); }

/* Header */
body.site-home .masthead { background: light-dark(#faf8f4, #101c23); color: light-dark(#181c21, #eff8ec); border-bottom-color: light-dark(rgba(27, 31, 36, 0.1), #ffffff20); }
body.site-home .masthead .mark, body.site-home .masthead .mark:hover { color: light-dark(#181c21, #eff8ec); }
body.site-home .masthead nav a { color: light-dark(#464b52, #c4d7ce); }
body.site-home .masthead nav a:hover { color: light-dark(#181c21, #ffffff); }
body.site-home .masthead a:focus-visible { outline-color: light-dark(#1a5f4f, #c8ef8b); }
body.site-home .masthead { touch-action: manipulation; }
/* The theme switch: three quiet icons at the end of the footer's meta row. */
.site-footer .theme-switch { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border: 1px solid var(--footer-rule); border-radius: 99px; }
.site-footer .theme-switch[hidden] { display: none; }
.site-footer .theme-switch button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 99px; background: none; color: var(--footer-muted); cursor: pointer; }
.site-footer .theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .theme-switch button { transition: background-color 0.15s, color 0.15s, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .site-footer .theme-switch button:hover { color: var(--footer-ink); background: color-mix(in srgb, var(--footer-ink) 8%, transparent); } }
.site-footer .theme-switch button:active { transform: scale(0.92); transition-duration: 0.08s; background: color-mix(in srgb, var(--footer-ink) 14%, transparent); }
.site-footer .theme-switch button[aria-pressed="true"] { color: var(--footer-ink); background: color-mix(in srgb, var(--footer-ink) 10%, transparent); }
.site-footer .theme-switch button:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 2px; }
@media (pointer: coarse) { .site-footer .theme-switch button { width: 44px; height: 44px; } }

/* Hero ground and headline */
body.site-home .c-hero { background: radial-gradient(60vw 50vw at 20% 30%, light-dark(rgba(214, 186, 140, 0.16), rgba(47, 212, 172, 0.16)), transparent 70%), radial-gradient(50vw 60vw at 85% 20%, light-dark(rgba(150, 130, 200, 0.12), rgba(120, 90, 200, 0.18)), transparent 70%), light-dark(#faf8f4, #0f161c); color: light-dark(#181c21, #e9edf4); }
/* Three inks in the hero's text: the main ink, a muted ink and one green accent (the rotating word). */
body.site-home .c-hero { --hv-ink: light-dark(#14181d, #f1f5ef); --hv-muted: light-dark(#4f545b, #b3bdc9); --hv-accent: light-dark(#1a5f4f, #2fd4ac); }
body.site-home .c-hero h1 { color: var(--hv-ink); }
body.site-home .c-hero .sub, body.site-home .c-hero .sub em { color: var(--hv-muted); }
body.site-home .c-hero .ask { color: var(--hv-ink); }
body.site-home .c-hero .ask a { color: var(--hv-ink); }
body.site-home .c-hero .start-hosts { color: light-dark(#5b6067, #a9b4c2); }
body.site-home .c-hero .start-hosts code { color: light-dark(#2b3036, #c9d2de); }

/* Paste boxes (hero and closing) */
body.site-home .v-soft { background: linear-gradient(180deg, light-dark(#ffffff, #1f2a2e), light-dark(#fbfaf7, #1a2327)); border-color: light-dark(rgba(27, 31, 36, 0.16), rgba(127, 208, 182, 0.28)); box-shadow: 0 14px 32px -18px light-dark(rgba(40, 30, 10, 0.22), rgba(0, 0, 0, 0.75)), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
body.site-home .v-soft:focus-within, body.site-home .v-soft.is-copied { border-color: light-dark(rgba(26, 95, 79, 0.55), rgba(47, 212, 172, 0.6)); box-shadow: 0 14px 32px -18px light-dark(rgba(40, 30, 10, 0.22), rgba(0, 0, 0, 0.75)), 0 0 0 4px light-dark(rgba(26, 95, 79, 0.1), rgba(47, 212, 172, 0.12)); }
body.site-home .v-soft .pb-to { color: light-dark(#464b52, #9fdcc8); }
body.site-home .hv .hv-paste .pb-to { color: var(--hv-muted); }
body.site-home .v-soft .pb-line { color: light-dark(#14181d, #f3f1ea); }
body.site-home .v-soft .pb-sign { stroke: light-dark(#1a5f4f, #2fd4ac); }
body.site-home .v-soft .pb-caret { background: light-dark(#1a5f4f, #7fd0b6); }
body.site-home .paste .pb-copy { color: light-dark(#ffffff, #062a24); background: light-dark(#1a5f4f, #7fd0b6); }
/* Medium weight, and wide enough for "Copied" as well as "Copy", so the button never changes size when it is pressed. */
body.site-home .paste .pb-copy { font-weight: 500; min-width: 7.6rem; justify-content: center; }
body.site-home .paste .pb-copy { transition: background-color 0.15s, transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.14s; }
@media (hover: hover) { body.site-home .paste .pb-copy:hover { background: light-dark(#164f42, #9fe0c9); } }
body.site-home .paste .pb-copy:active { transform: translateY(1px); transition-duration: 0.06s; background: light-dark(#123f35, #8fd6bd); }
body.site-home .paste .pb-copy:focus-visible { outline-color: light-dark(#1a5f4f, #2fd4ac); }
body.site-home .paste.is-copied .pb-copy { background: light-dark(#0f4237, #2fd4ac); }
body.site-home .v-soft .pb-copy { box-shadow: 0 2px 0 light-dark(#0c3329, #3e9d80), inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.35)); }
body.site-home .v-soft .pb-copy:active { box-shadow: 0 1px 0 light-dark(#0c3329, #3e9d80); }
body.site-home .paste .pb-done { color: light-dark(#1a5f4f, #7fe9cf); font-weight: 500; }
body.site-home .paste .pb-works { color: light-dark(#5b6067, #8e9aab); }

/* Footer */
body.site-home footer.site-footer { --footer-bg: light-dark(#f3f0ea, #101c23); --footer-ink: light-dark(#181c21, #eef5ed); --footer-muted: light-dark(#464b52, #aebcb6); --footer-accent: light-dark(#1a5f4f, #82c9b5); --footer-rule: light-dark(#ddd7cc, #34473f); }
/* home.css colours every link with --link, which follows the system; the footer's own colours win here. */
body.landing.site-home footer.site-footer a { color: var(--footer-muted); }
body.landing.site-home footer.site-footer h2 a { color: var(--footer-ink); }
body.landing.site-home footer.site-footer a:hover { color: var(--footer-accent); }
/* Press-downs are motion: under reduced motion the controls change colour only. */
@media (prefers-reduced-motion: reduce) { .site-footer .theme-switch button:active, body.site-home .paste .pb-copy:active { transform: none; } }
