/* agentbins.com — colour tokens for dark, light and system, plus the chrome every
   page shares (header, wordmark, theme toggle, footer) and base typography.
   Dark is the house style and the default; light applies when the system asks
   for it and nothing overrides, or when the visitor picks it (data-theme on <html>,
   set before first paint by the inline script in each page's <head>). */

:root {
  --bg: #07040a;
  --gold: #ffd76a;
  --pink: #ff4fa3;
  --ice: #6ae0ff;
  --lilac: #c99bff;
  --text: #f4f1ff;
  --muted: rgba(244,241,255,.64);
  --faint: rgba(244,241,255,.4);
  --line: rgba(244,241,255,.14);
  --panel: rgba(244,241,255,.045);
  --link: #6ae0ff;
  --badge-text: #07040a;
  --glow: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(201,155,255,.16) 0%, rgba(7,4,10,0) 70%);
  --holo: linear-gradient(100deg,
      #ffd76a 0%, #fff6d0 8%, #ff4fa3 22%, #ffe2f2 30%,
      #6ae0ff 44%, #ffffff 52%, #c99bff 64%, #ffd76a 80%,
      #fff6d0 88%, #ff4fa3 100%);
  --holo-short: linear-gradient(100deg, #ffd76a 0%, #fff6d0 20%, #ff4fa3 45%, #6ae0ff 75%, #c99bff 100%);
  --tag-shadow: 0 0 6px rgba(255,255,255,.65), 0 0 22px rgba(201,155,255,.6);
  --vignette: radial-gradient(ellipse 70% 62% at 50% 52%, rgba(7,4,10,.92) 0%, rgba(7,4,10,.74) 45%, rgba(7,4,10,0) 100%);
  --scrim: rgba(7,4,10,.62);
  --hero-fade: linear-gradient(to bottom, rgba(7,4,10,0), #07040a);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf7ff;
    --gold: #b98400;
    --pink: #d61f78;
    --ice: #0a8fbd;
    --lilac: #7a3fd6;
    --text: #1a1026;
    --muted: rgba(26,16,38,.68);
    --faint: rgba(26,16,38,.44);
    --line: rgba(26,16,38,.14);
    --panel: rgba(26,16,38,.04);
    --link: #0a7ea8;
    --badge-text: #faf7ff;
    --glow: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(122,63,214,.12) 0%, rgba(250,247,255,0) 70%);
    --holo: linear-gradient(100deg,
        #c48c00 0%, #e0a800 8%, #d61f78 22%, #ff6fb5 30%,
        #0a8fbd 44%, #3cbde6 52%, #7a3fd6 64%, #c48c00 80%,
        #e0a800 88%, #d61f78 100%);
    --holo-short: linear-gradient(100deg, #c48c00 0%, #e0a800 20%, #d61f78 45%, #0a8fbd 75%, #7a3fd6 100%);
    --tag-shadow: none;
    --vignette: radial-gradient(ellipse 70% 62% at 50% 52%, rgba(250,247,255,.95) 0%, rgba(250,247,255,.8) 45%, rgba(250,247,255,0) 100%);
    --scrim: rgba(250,247,255,.66);
    --hero-fade: linear-gradient(to bottom, rgba(250,247,255,0), #faf7ff);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #faf7ff;
  --gold: #b98400;
  --pink: #d61f78;
  --ice: #0a8fbd;
  --lilac: #7a3fd6;
  --text: #1a1026;
  --muted: rgba(26,16,38,.68);
  --faint: rgba(26,16,38,.44);
  --line: rgba(26,16,38,.14);
  --panel: rgba(26,16,38,.04);
  --link: #0a7ea8;
  --badge-text: #faf7ff;
  --glow: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(122,63,214,.12) 0%, rgba(250,247,255,0) 70%);
  --holo: linear-gradient(100deg,
      #c48c00 0%, #e0a800 8%, #d61f78 22%, #ff6fb5 30%,
      #0a8fbd 44%, #3cbde6 52%, #7a3fd6 64%, #c48c00 80%,
      #e0a800 88%, #d61f78 100%);
  --holo-short: linear-gradient(100deg, #c48c00 0%, #e0a800 20%, #d61f78 45%, #0a8fbd 75%, #7a3fd6 100%);
  --tag-shadow: none;
  --vignette: radial-gradient(ellipse 70% 62% at 50% 52%, rgba(250,247,255,.95) 0%, rgba(250,247,255,.8) 45%, rgba(250,247,255,0) 100%);
  --scrim: rgba(250,247,255,.66);
  --hero-fade: linear-gradient(to bottom, rgba(250,247,255,0), #faf7ff);
  color-scheme: light;
}

/* ---- base */
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--glow), var(--bg);
  color: var(--text);
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: var(--text); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 64rem; }

/* ---- header */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 8px;
}
header.top nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.wordmark {
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-style: italic; font-weight: 900;
  font-size: 1.7rem; line-height: 1;
  background-image: var(--holo-short);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.pill {
  display: inline-block;
  font-size: .74rem; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .6em 1em .45em;
  white-space: nowrap; line-height: 1;
}
.pill:hover { color: var(--text); border-color: var(--lilac); text-decoration: none; }
.pill.solid { color: var(--badge-text); background: var(--text); border-color: var(--text); }
.pill.solid:hover { color: var(--badge-text); background: var(--lilac); border-color: var(--lilac); }
.navlink { font-size: .74rem; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--muted); }
.navlink:hover { color: var(--text); text-decoration: none; }

/* ---- theme toggle: three buttons, the chosen one pressed */
.theme-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
  background: var(--panel);
}
.theme-toggle button {
  appearance: none; border: 0; background: transparent; color: var(--faint);
  width: 30px; height: 26px; border-radius: 999px; cursor: pointer;
  display: inline-grid; place-items: center; padding: 0;
}
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button[aria-pressed="true"] { color: var(--text); background: var(--line); }
.theme-toggle button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 1px; }
.theme-toggle svg { width: 15px; height: 15px; display: block; }

/* ---- footer */
footer.site {
  margin: 5em 0 0; padding: 2em 0 max(24px, env(safe-area-inset-bottom));
  text-align: center; font-size: .72rem; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  color: var(--faint);
}
footer.site a { color: var(--faint); }
footer.site a:hover { color: var(--text); text-decoration: none; }
footer.site span { margin: 0 .4em; }
