/* youraibot.it home: the Cosmic Cliffs (Webb) behind frosted glass, editorial typography (2026-12-02) */
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/alegreya-i400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/alegreya-i400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

body.space { background: #050814; font-size: 20px; line-height: 1.5; }
body.space::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: #050814 url(/bg-cliffs.jpg) center / cover no-repeat;
  background-image: image-set(url(/bg-cliffs.webp) type("image/webp"), url(/bg-cliffs.jpg) type("image/jpeg")); }
:root[data-theme="dark"] body.space::before { filter: brightness(.28) saturate(.8); }

/* the glass */
.space .wrap { max-width: 60rem; margin: 3rem auto; padding: 2.6rem 4.5rem 0; border-radius: 1.6rem;
  background: color-mix(in srgb, var(--paper) 42%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent), 0 24px 70px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .space .wrap { background: color-mix(in srgb, var(--paper) 40%, transparent);
  border-color: color-mix(in srgb, #fff 10%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent), 0 24px 70px rgba(0, 0, 0, .55); }

/* top line: the founder, and the theme switch */
.space .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.founder { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.12rem/1 var(--sans); color: var(--ink);
  text-decoration: none; letter-spacing: .01em; padding: .4rem .2rem; }
.founder .in { width: 1.2rem; height: 1.2rem; flex: none; fill: currentColor; opacity: .75; transition: opacity .2s; }
.founder span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; padding-bottom: .1rem; }
.founder:hover span { background-size: 100% 1px; }
.founder:hover .in { opacity: 1; }
.mode { width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ink);
  background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 50%; transition: border-color .2s, background .2s; }
.mode:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mode svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mode .sun, :root[data-theme="dark"] .mode .moon { display: none; }
:root[data-theme="dark"] .mode .sun { display: block; }

/* title, slogan, description */
.space header { padding: 3.6rem 0 3rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.space h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 5.8rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.space .slogan { margin: 1.2rem 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; }
.space .about { margin: .9rem 0 0; max-width: 34rem; font: 400 1.15rem/1.45 var(--sans); color: color-mix(in srgb, var(--ink) 72%, transparent); }

/* the applications */
.space .bots { list-style: none; margin: 0; padding: 0; }
.space .bots li { border: 0; }
.space .bots li:last-child { border-bottom: 0; }
.space .bots a { display: block; padding: 1.6rem 0 1.5rem; text-decoration: none; color: inherit; border: 0; }
.space .bots h2 { display: block; margin: 0; padding: 0; border: 0; font-size: 2.15rem; font-weight: 400; line-height: 1.1; letter-spacing: -.015em; }
.space .bots h2::before { content: "*"; display: inline-block; width: 1.1em; color: var(--muted); font-weight: 400; }   /* the asterisk on the paragraph's left edge, the name after a tab */
.space .bots h2 span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; padding-bottom: .05em; }
.space .bots a:hover h2 span, .space .bots a:focus-visible h2 span { background-size: 100% 2px; }
.space .bots p { margin: .6rem 0 0; max-width: 44rem; font-size: 1.32rem; line-height: 1.45; }
.space .bots .where { display: block; margin-top: .95rem; font: 500 1.02rem/1.3 var(--sans); color: var(--ink); letter-spacing: .01em; transition: color .2s; }
.space .bots .where .host { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-color .2s; }
.space .bots .where .arrow { display: inline-block; margin-left: .1em; transition: transform .2s; }
.space .bots .where .hint { color: var(--muted); font-weight: 400; }
.space .bots a:hover .where { color: var(--accent); }
.space .bots a:hover .where .host { text-decoration-color: currentColor; }
.space .bots a:hover .where .arrow { transform: translate(.12em, -.12em); }
.space .bots a:focus-visible { outline: 2px solid var(--accent); outline-offset: .4rem; border-radius: .3rem; }

/* footer */
.space footer { margin-top: 1rem; padding: 1.8rem 0 2rem; border-top: 0; }
.space footer .links { gap: .4rem 1.6rem; font-size: .98rem; }
.space footer .links a { text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.space footer .links a:hover { text-decoration-color: currentColor; }
.space footer .credit { margin: 1.2rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 1100px) { .space .wrap { padding-left: 3.5rem; padding-right: 3.5rem; margin: 2rem 1.5rem; } }
@media (max-width: 760px) {
  body.space { font-size: 18px; }
  .space .wrap { margin: .7rem; padding: 1.6rem 1.4rem 0 2rem; border-radius: 1.1rem; }
  .space header { padding: 2.6rem 0 2.2rem; }
  .space .bots a { padding: 1.3rem 0 1.2rem; }
  .space .bots p { font-size: 1.15rem; }
  .space .bots h2 { font-size: 1.75rem; }
  .space .about { font-size: 1.05rem; }
}

/* colours (2026-12-02): electric-blue asterisks; in the dark theme canary-green asterisks and fuchsia links */
body.space { --star: #1F4BFF; }   /* electric blue */
:root[data-theme="dark"] body.space { --star: #CFF23A; --link: #FF4FD8; }
.space .bots h2::before { color: var(--star); }
:root[data-theme="dark"] .space .bots .where,
:root[data-theme="dark"] .space footer .links a,
:root[data-theme="dark"] .space .founder { color: var(--link); }
:root[data-theme="dark"] .space .bots .where .host,
:root[data-theme="dark"] .space footer .links a { text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
:root[data-theme="dark"] .space .bots .where .hint { color: var(--muted); }
:root[data-theme="dark"] .space .bots a:hover .where { color: color-mix(in srgb, var(--link) 75%, #fff); }
:root[data-theme="dark"] .space .bots a:hover .where .host,
:root[data-theme="dark"] .space footer .links a:hover { text-decoration-color: currentColor; }
