/* =========================================================
   ALXO · shell for the free tools.
   The tools are a separate React app. This file retones them to the
   site's colours and type, hides the app's own header and footer, and
   styles the site nav and footer that alxo-shell.js adds after load.
   Everything for the shell is scoped to .axs so the tools are untouched.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Libre+Caslon+Condensed:ital,wght@0,400..700;1,400..700&family=Urbanist:wght@300;400;500;600;700&family=Darker+Grotesque:wght@300..900&display=swap");

html:root {
  --ax-bg: #000; --ax-ink: #e4dfd6; --ax-strong: #f5f0e8; --ax-muted: #9a958d; --ax-faint: #625e58;
  --ax-line: rgba(245,240,232,.12); --ax-line-2: rgba(245,240,232,.2);
  --ax-card: rgba(245,240,232,.04); --ax-card-2: rgba(245,240,232,.07); --ax-accent: #f5f0e8;
  --ax-serif: "Libre Caslon Condensed", Georgia, serif;
  --ax-sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --ax-ui: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --ax-radius: 18px; --ax-ease: cubic-bezier(.16, 1, .3, 1);
  --font-ui: var(--ax-ui); --font-heading: var(--ax-serif);
  --mkt-ink: #f5f0e8; --mkt-muted: rgba(245,240,232,.58); --mkt-paper: #141312; --mkt-cream: #0c0b0b;
  --mkt-line: rgba(245,240,232,.14); --mkt-field: rgba(245,240,232,.05); --mkt-logo-cream: #f5f0e8;
  --mkt-pink: #2a2622; --mkt-yellow: #35302a; --mkt-sage: #2c2a26; --mkt-blue: #262420; --mkt-accent-line: rgba(245,240,232,.7);
  --c-bg: #0c0b0b; --c-bg2: #141312; --c-bg3: #1c1b19; --c-text: #f5f0e8;
  --c-muted: rgba(245,240,232,.58); --c-light: rgba(245,240,232,.38); --c-border2: rgba(245,240,232,.14);
  --c-accent: rgba(245,240,232,.14); --color-accent: rgba(245,240,232,.14);
  --c-primary: #f5f0e8; --c-on-primary: #000; --c-primary-alpha: rgba(245,240,232,.1);
  --c-inverse-accent: #f5f0e8;
}
html:root .dd {
  --ink: #f5f0e8; --muted: rgba(245,240,232,.58); --light: rgba(245,240,232,.38);
  --bg: #111; --bg3: #1c1c1c; --line: rgba(245,240,232,.16); --line2: rgba(245,240,232,.08);
  --pink: #2a2622; --yellow: #35302a; --sage: #2c2a26; --blue: #262420; --pink-bg: rgba(245,240,232,.08);
  --side: #000; --side-text: #f5f0e8; --side-muted: #7a7a7a; --side-hover: #161616;
  --heading: var(--ax-serif); --ui: var(--ax-ui);
}
html:root body { font-family: var(--ax-sans); font-size: 17px; }
html:root body ::selection { background: #f5f0e8; color: #000; }

/* the app's own chrome is replaced by the site's */
.ax-header, .ax-footer, .ax-skip { display: none !important; }

/* ---------- shell: strip, nav, footer ---------- */
.axs {
  --ink: #000; --paper: #f5f0e8; --grey: #c8c8c8; --grey-2: #7a7a7a;
  --line: rgba(245,240,232,.16); --line-strong: rgba(245,240,232,.6);
  --serif: "Libre Caslon Condensed", Georgia, serif;
  --sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(20px, 3.2vw, 56px); --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.axs, .axs * { box-sizing: border-box; margin: 0; padding: 0; }
.axs a { color: inherit; text-decoration: none; }
.axs img { display: block; max-width: 100%; }
.axs.wrap, .axs .wrap { padding-left: var(--g); padding-right: var(--g); }

.axs .ar { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; background: currentColor; -webkit-mask: url("/assets/arrow.svg") center / contain no-repeat; mask: url("/assets/arrow.svg") center / contain no-repeat; }
.axs .ar.ne { rotate: -45deg; }

.axs .pill { position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--paper); font-size: 15px; font-weight: 500; transition: color .45s var(--ease-out); }
.axs .pill::before { content: ""; position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease-out); z-index: -1; }
.axs .pill:hover { color: var(--ink); }
.axs .pill:hover::before { transform: translate(-50%, -50%) scale(1); }
.axs .pill.solid { background: var(--paper); color: var(--ink); }
.axs .pill.solid::before { background: #2b2b2b; }
.axs .pill.solid:hover { color: var(--paper); }
.axs .pill .ar { width: 1.15em; height: 1.15em; vertical-align: -.22em; }
.axs .pill .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.axs .pill:hover .arr { transform: translateX(4px) rotate(-45deg); }

.axs .strip { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }

nav.axs { position: sticky; top: 14px; z-index: 70; width: fit-content; margin: 22px auto 0; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(20,20,20,.72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
nav.axs .mini { display: grid; place-items: center; width: 74px; margin: 0 4px 0 8px; }
nav.axs .mini img { height: 15px; width: auto; }
nav.axs a.l { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; transition: color .35s; isolation: isolate; }
nav.axs a.l::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper); transform: scale(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; z-index: -1; }
nav.axs a.l:hover, nav.axs a.l.on { color: var(--ink); }
nav.axs a.l:hover::before, nav.axs a.l.on::before { transform: none; opacity: 1; }
nav.axs .pill { padding: 9px 18px; font-size: 14px; }

/* the app's sticky bits sit under the floating nav */
html:root .ax main { scroll-margin-top: 90px; }

footer.axs { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(50vw + 30px); padding-bottom: 26px; margin-top: clamp(40px, 6vw, 90px); background: #000; }
footer.axs > :not(.g-star) { position: relative; z-index: 1; mix-blend-mode: difference; }
footer.axs .colophon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 30px 0 50px; border-top: 1px solid var(--line-strong); }
footer.axs h6 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2); font-weight: 500; margin-bottom: 14px; }
footer.axs .colophon a, footer.axs .colophon p { display: block; font-size: 15px; margin-bottom: 6px; }
footer.axs .colophon a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
footer.axs .colophon a:hover { background-size: 100% 1px; }
footer.axs .note { color: var(--grey-2); font-size: 14px; }
footer.axs .giant { overflow: hidden; }
footer.axs .g-in { position: relative; transform: translateY(var(--gy, 30%)); }
footer.axs .giant img { width: 100%; height: auto; }
footer.axs .g-star { position: absolute; left: 50%; bottom: 0; z-index: 0; width: 100vw; aspect-ratio: 1; translate: -50% 50%; background: var(--paper); -webkit-mask: url("/assets/cursor-star.svg") center / contain no-repeat; mask: url("/assets/cursor-star.svg") center / contain no-repeat; animation: axs-spin 90s linear infinite; pointer-events: none; }
@keyframes axs-spin { to { rotate: 360deg; } }
footer.axs .fine { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; font-size: 13px; color: var(--grey); }

@media (max-width: 1024px) {
  footer.axs .colophon { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .axs .strip .hide-m, nav.axs a.l.hide-m { display: none; }
  nav.axs { gap: 0; }
  nav.axs a.l { padding: 8px 12px; }
  nav.axs .pill { white-space: nowrap; padding: 9px 14px; }
  nav.axs .mini { width: 56px; margin: 0 0 0 4px; }
  footer.axs .fine { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { footer.axs .g-star { animation: none; } }

/* Film grain over the whole site: a small noise tile that jumps to a new spot ten times a second */
body::after { content: ""; position: fixed; inset: -160px; z-index: 2147483000; pointer-events: none; background: url("/assets/noise.png") 0 0 / 160px 160px; opacity: var(--grain, .08); animation: grain .8s steps(1) infinite; will-change: transform; }
@keyframes grain { 0% { transform: translate(0, 0); } 12.5% { transform: translate(-37px, 52px); } 25% { transform: translate(61px, -24px); } 37.5% { transform: translate(-83px, -71px); } 50% { transform: translate(29px, 97px); } 62.5% { transform: translate(-112px, 18px); } 75% { transform: translate(94px, 66px); } 87.5% { transform: translate(-15px, -109px); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* Scrollbar: a slim cream bar on black that brightens when you grab it */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(245, 240, 232, .3); background-clip: padding-box; border: 3px solid transparent; border-radius: 99px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(245, 240, 232, .6); }
::-webkit-scrollbar-thumb:active { background-color: #f5f0e8; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: rgba(245, 240, 232, .4) #000; } }
