/* Billet: the app's Aurora theme. Load only on Billet pages, it styles plain elements. */
/* Aurora, the app's style (billet/docs/style.md): a dusk sky behind solid rounded
   panes, one ink, and the ember only where an agent is running a task.
   Light and dark follow the visitor's setting with the app's default palettes.
   Import this only from Billet's pages, since it sets plain element styles. */
@font-face { font-display: swap; font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; src: url("/fonts/ibm-plex/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; src: url("/fonts/ibm-plex/IBMPlexSans-Bold.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; src: url("/fonts/ibm-plex/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; src: url("/fonts/ibm-plex/IBMPlexMono-Bold.woff2") format("woff2"); }

html:has(.billet-page) {
  color-scheme: dark;
  --billet-top: #1c1612; --billet-bottom: #101215; --billet-glow: rgb(190 80 30 / .32);
  --billet-pane: #1f1c19; --billet-ink: #f1ece6; --billet-ink2: #a59d93; --billet-line: #302d29; --billet-hover: #282522; --billet-selected: #2f2c28;
  --billet-ember: #ff7a3d; --billet-ember-text: #ff7a3d; --billet-heat: rgb(255 122 61 / .16); --billet-shadow: rgb(0 0 0 / .55); --billet-well: rgb(255 255 255 / .016);
  --billet-proposed: #b0a99f; --billet-ready: #7192a8; --billet-done: #e6e0d8;
  --billet-sans: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --billet-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--billet-bottom);
}
@media (prefers-color-scheme: light) {
  html:has(.billet-page) {
    color-scheme: light;
    --billet-top: #f4ece4; --billet-bottom: #e7e9ec; --billet-glow: rgb(255 150 95 / .38);
    --billet-pane: #fffdfa; --billet-ink: #22201d; --billet-ink2: #6d6760; --billet-line: #edebe8; --billet-hover: #f5f3f0; --billet-selected: #eeece9;
    --billet-ember: #ec5d22; --billet-ember-text: #c24c1b; --billet-heat: rgb(236 93 34 / .16); --billet-shadow: rgb(80 50 32 / .16); --billet-well: rgb(255 253 250 / .36);
    --billet-done: #3b3733;
  }
}

* { box-sizing: border-box; } body { margin: 0; } a { color: inherit; }
.billet-page { --shadow-pill: 0 1.5px 6px var(--billet-shadow), 0 1px 2px var(--billet-shadow); --shadow-card: 0 3px 12px var(--billet-shadow), 0 1px 2px var(--billet-shadow); --shadow-pane: 0 4px 16px var(--billet-shadow), 0 1px 2px var(--billet-shadow); --shadow-shot: 0 8px 30px var(--billet-shadow), 0 1px 2px var(--billet-shadow); background: transparent; color: var(--billet-ink); font-family: var(--billet-sans); isolation: isolate; min-height: 100vh; overflow-x: clip; position: relative; }
/* The sky over the window, and the afterglow rising from the top of the page. */
.billet-page::before { background: linear-gradient(var(--billet-top), var(--billet-bottom)); content: ''; inset: 0; position: fixed; z-index: -1; }
.billet-page::after { background: radial-gradient(ellipse 70% 100% at 50% 0, var(--billet-glow), transparent 75%); content: ''; height: 56rem; inset: 0 0 auto; pointer-events: none; position: absolute; z-index: -1; }
.billet-page ::selection { background: color-mix(in srgb, var(--billet-ink) 18%, transparent); color: var(--billet-ink); }

h1, h2, h3, p { margin: 0; text-wrap: pretty; } p { color: var(--billet-ink2); line-height: 1.7; }
h1 { font-size: clamp(3rem, 8vw, 4.75rem); letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; } h3 { font-size: 1rem; line-height: 1.4; }
code, kbd { background: var(--billet-selected); border-radius: 6px; color: var(--billet-ink); font-family: var(--billet-mono); font-size: .86em; padding: .1em .4em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--billet-ink); outline-offset: 3px; }
p a { color: var(--billet-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Text only ever sits on solid surfaces: panes, cards, and pills. */
.pane { background: var(--billet-pane); border-radius: 28px; box-shadow: var(--shadow-pane); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: clamp(1.5rem, 4vw, 3rem); }
.dot { background: var(--billet-done); border-radius: 50%; display: inline-block; flex: 0 0 auto; height: 9px; width: 9px; }

@media (max-width: 640px) { .pane { border-radius: 22px; } }
