/* Ailimu site. The palette is the product's own (apps/connector/src/admin/ui/
   app.css in the ailimu repo): one hue, jade, over warm-stone neutrals, with
   orange kept for warnings. The screenshots are of that product, so the page
   around them uses the same colours rather than a second identity. */

:root{
  --bg:#FBF9F5; --surface:#FFFFFF; --surface-2:#F5F2EC; --sunk:#EBE7DF;
  --line:#DCD8D0; --line-strong:#ADA79C;
  --ink:#1A1815; --mut:#4E4A43; --faint:#837D73;
  --jade:#0B6E5C; --jade-strong:#085749; --jade-soft:#E4F1EE; --jade-line:#8FC4B8;
  --on-jade:#FFFFFF;
  --warn:#B85E1C; --warn-soft:#FBEEE1;
  --code-bg:#F5F2EC;
  --shadow:0 1px 2px rgba(26,24,21,.06), 0 12px 32px -12px rgba(26,24,21,.18);
  --tone-mint:#E7F2EE; --tone-stone:#EFEAE2;
  /* Plum answers jade. It is an accent for a few chosen marks, never a second
     primary and never a status colour. */
  --plum:#7B3F6E; --plum-soft:#F4E8F0; --plum-text:#5E2B53;

  --display:'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body:'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap:1180px;
  color-scheme:light;
}
/* Light is the default whatever the OS says. Dark only when the visitor picks
   it, under our own attribute: the artifact preview stamps data-theme from the
   viewer's claude.ai setting, which must not switch the site. */
:root[data-site-theme="dark"]{
  --bg:#171614; --surface:#211F1C; --surface-2:#1C1A18; --sunk:#2A2825;
  --line:#383430; --line-strong:#4A453F;
  --ink:#F5F2EC; --mut:#C9C3B8; --faint:#8F897E;
  --jade:#3FBFA6; --jade-strong:#5CCCB7; --jade-soft:#112824; --jade-line:#1F5A4E;
  --on-jade:#06201B;
  --warn:#EE9A55; --warn-soft:#2E2013;
  --code-bg:#211F1C;
  --tone-mint:#15201D; --tone-stone:#1E1C19;
  --plum:#D39BC4; --plum-soft:#2E1B29; --plum-text:#E3C3D8;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme:dark;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 var(--body);
     -webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--jade)}
a:hover{color:var(--jade-strong)}
code{font-family:var(--mono);font-size:.84em}
:focus-visible{outline:2px solid var(--jade);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;color:var(--ink)}
p{margin:0}

.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:clamp(16px,4vw,40px)}

/* ------------------------------------------------------------ top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;
     background:color-mix(in srgb, var(--bg) 88%, transparent);
     backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
     border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:22px;min-height:60px}
.brand{font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:-.03em;
       color:var(--ink);text-decoration:none}
.brand i{font-style:normal;color:var(--jade)}
.top nav{display:flex;gap:18px;margin-left:auto;align-items:center}
.top nav a{color:var(--mut);text-decoration:none;font-size:15px;font-weight:500}
.top nav a:hover,.top nav a[aria-current]{color:var(--ink)}
.theme{font:inherit;font-size:13px;font-weight:500;color:var(--mut);background:transparent;
       border:1px solid var(--line);border-radius:999px;padding:4px 12px;cursor:pointer}
.theme:hover{border-color:var(--jade);color:var(--jade)}

/* ------------------------------------------------------------ shared */
/* Plum is the person and the question; jade is Ailimu and the data. Eyebrows
   name what a section is about for the reader, so they are plum. */
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;
         color:var(--plum);font-weight:600}
.lede{font-size:clamp(18px,2.1vw,21px);line-height:1.55;color:var(--mut);max-width:40ch}
.cmd{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);
     border-radius:10px;padding:10px 10px 10px 16px;max-width:620px;box-shadow:var(--shadow)}
.cmd .p{color:var(--jade);font-family:var(--mono);font-size:14px;flex:none}
.cmd code{flex:1;min-width:0;font-size:14px;color:var(--ink);overflow-x:auto;white-space:nowrap;
          scrollbar-width:none}
.cmd code::-webkit-scrollbar{display:none}
.copy{flex:none;font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-radius:7px;
      padding:7px 12px;background:var(--jade);color:var(--on-jade);border:0}
.copy:hover{background:var(--jade-strong)}
.copy[data-done]{background:var(--ink);color:var(--bg)}
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;text-decoration:none;
     color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:9px 16px}
.btn:hover{border-color:var(--jade);color:var(--jade)}
.btn.primary{background:var(--jade);border-color:var(--jade);color:var(--on-jade);font-size:16.5px;padding:13px 22px;
             box-shadow:0 8px 20px -8px color-mix(in srgb,var(--jade) 60%,transparent)}
.btn.primary:hover{background:var(--jade-strong);border-color:var(--jade-strong);color:var(--on-jade)}

/* Screenshots come in a light and a dark copy; show the one matching the theme. */
.shot-dark{display:none}
:root[data-site-theme="dark"] .shot-light{display:none}
:root[data-site-theme="dark"] .shot-dark{display:block}

.plate{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);
       box-shadow:var(--shadow)}

footer{border-top:1px solid var(--line);color:var(--faint);font-size:14px}
footer .wrap{display:flex;flex-wrap:wrap;gap:10px 24px;padding-block:28px}
footer a{color:var(--mut)}

@media (prefers-reduced-motion: reduce){ *,*::before,*::after{animation:none!important;transition:none!important} }

/* Tight phones: keep the top bar to one line. */
@media (max-width:520px){ .top nav .gl{display:none} }
