/* Every server-rendered page in the homepage's look (src/site-chrome.ts; loaded last by src/seo.ts, src/seo-catalog.ts
   and src/public-shell.ts, after their own sheet).
   - Dark in both appearances, as the homepage is, on its near-black with a still of the flow of energy fixed behind
     (the same gradients the homepage shows before its three.js draws). No WebGL here: these pages stay light to load.
   - The homepage's header (a full-width frosted bar) and footer (the brand beside the columns).
   - Headings tight and medium-weight; cards solid near-black with no outline; one quiet blue only for focus and links. */

html:has(> body.site) { background: #08090a; color-scheme: dark; }
body.site {
  --ground: #08090a; --surface: #131416; --raised: #1b1c1f; --text: #f7f8f8; --body: #d0d6e0; --muted: #8a8f98;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14); --hair: transparent; --hair-2: transparent; --pen: #7ea2ff;
  --edge: 0 1px 2px rgba(0, 0, 0, 0.32), 0 6px 20px -8px rgba(0, 0, 0, 0.5);
  --btn2-face: color-mix(in srgb, var(--text) 9%, transparent); --btn2-ring: 0 0 #0000; --btn2-ring-hover: 0 0 #0000; --btn2-text: #e3e7ee;
  --btn1-face: color-mix(in srgb, var(--text) 16%, transparent); --btn1-ring: 0 0 #0000; --btn1-ring-hover: 0 0 #0000; --btn1-text: #ffffff; --btn-main: #e8e8e9; --btn-main-hover: #ffffff; --btn-main-text: #08090a; --btn-soft-text: #f2f3f5;
  --card: rgba(18, 18, 18, 0.86);
  color-scheme: dark; background: transparent; color: var(--body);
}
:root[data-contrast="more"] body.site { --muted: #c0c5cc; --body: #eef0f4; --hair: rgba(255, 255, 255, 0.4); --hair-2: rgba(255, 255, 255, 0.55); }
/* the ground: Anticode Hyper's graphite (2026-11-12, the owner: "public site first"), a faint neutral light from the
   top and nothing coloured. It replaces the purple and blue aurora. */
body.site::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, #121316 0%, #0c0d0f 42%, #08090a 78%); }
@media (forced-colors: active) { body.site::before { display: none; } }
body.site ::selection { background: rgba(255, 255, 255, 0.22); }

/* the header, as the homepage's: 64px, the brand and the pages on the left, Contact sales and Sign up on the right */
.st { position: sticky; top: 0; z-index: 100; background: rgba(2, 2, 3, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.st-in.wrap { --col: 1320px; display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.st-brand svg { width: 22px; height: 24px; fill: currentColor; flex: none; }
.st-nav { display: flex; gap: 2px; margin-left: var(--s-4); min-width: 0; }
.st-nav a { padding: 8px 12px; border-radius: var(--r-control); font-size: 14px; font-weight: 450; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color var(--t-1) var(--ease); }
.st-nav a:hover, .st-nav a[aria-current="page"] { color: var(--text); }
.st-act { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 900px) { .st-nav { display: none; } }
@media (max-width: 480px) { .st-act .btn-quiet { display: none; } }
/* the top bar is a floating pill of frosted glass, as on the homepage (anticode.css .top): the pages centred in it, the
   brand to the left and the two buttons to the right; 56px tall and 12px down; no outline */
.st { top: 12px; margin: 12px auto 0; width: min(1120px, calc(100% - 32px)); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px -18px rgba(0, 0, 0, 0.75); }
.st-in.wrap { position: relative; max-width: none; height: 56px; padding-left: 22px; padding-right: 8px; }
.st-nav { position: absolute; left: 50%; translate: -50% 0; margin: 0; }
@media (max-width: 760px) { .st { width: calc(100% - 24px); } .st-in.wrap { padding-left: 16px; } }
/* the header after linear.app's, as the homepage's (anticode.css, 2026-11-11): full width, 72px, a dark see-through
   bar; the brand on the left; the pages in 13px grey, a short rule, Log in as quiet text and Sign up on the right */
.st { top: 0; margin: 0; width: 100%; border-radius: 0; box-shadow: none;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.8), rgba(8, 9, 10, 0.6));
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.st-in.wrap { --col: 1360px; max-width: var(--col); height: 72px; gap: 0; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
.st-nav { position: static; translate: none; margin: 0 0 0 auto; gap: 0; }
.st-nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 400; color: #8a8f98; }
.st-nav a:hover, .st-nav a[aria-current="page"] { color: #f7f8f8; }
.st-act { align-items: center; gap: 8px; margin-left: 16px; }
.st-login { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 13px; color: #8a8f98; text-decoration: none; transition: color var(--t-1) var(--ease); }
.st-login::before { content: ""; width: 1px; height: 16px; margin: 0 28px 0 -16px; background: rgba(255, 255, 255, 0.1); }
.st-login:hover { color: #f7f8f8; }
.st-act .aurora { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; }
@media (max-width: 900px) { .st-act { margin-left: auto; } .st-login::before { display: none; } }
@media (max-width: 760px) { .st-in.wrap { height: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } .st-act .aurora { height: 40px; padding: 0 16px; } }
@media (pointer: coarse) { .st-login, .st-nav a { min-height: 44px; } }

/* the footer, as the homepage's: the brand and its line on the left, the columns on the right */
.sfoot.wrap { --col: 1320px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); align-items: start; gap: var(--s-6);
  margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.sf-brand { display: grid; align-content: start; gap: var(--s-3); }
.sf-brand p { max-width: 26ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-6) var(--s-5); }
.sf-cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sf-cols a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color var(--t-1) var(--ease); }
.sf-cols a:hover, .sf-cols a[aria-current="page"] { color: var(--text); }
.sf-h { margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.sfoot > .langs { grid-column: 1 / -1; }
.sf-copy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .sfoot.wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the page column, as wide as the homepage's */
body.site main .wrap, body.site main.wrap { --col: 1320px; }

/* headings: the homepage's tight, medium-weight type */
body.site :is(h1, h2, h3) { color: var(--text); font-weight: 500; }
body.site h1 { letter-spacing: -0.045em; line-height: 1.04; }
body.site h2 { letter-spacing: -0.035em; }
body.site h3 { letter-spacing: -0.02em; }
body.site :is(.art-head, .tp-head) h1 { font-size: clamp(40px, 5.6vw, 76px); }
body.site :is(.art-head, .tp-head) h1 + p, body.site .art-head .lede { color: rgba(255, 255, 255, 0.62); }
:lang(ja) body.site h1, :lang(zh-Hans) body.site h1, :lang(zh-Hant) body.site h1, :lang(ko) body.site h1,
:lang(ar) body.site :is(h1, h2, h3), :lang(he) body.site :is(h1, h2, h3), :lang(hi) body.site :is(h1, h2, h3), :lang(bn) body.site :is(h1, h2, h3), :lang(th) body.site :is(h1, h2, h3) { letter-spacing: 0; }

/* cards and panels: solid near-black over the backdrop, rounder, no outline */
body.site :is(.cards a, .related a, .next, .note, .pr-plan, .pr-dlg, .lg-msg, .table, .example img) { background: var(--card); border-color: transparent; box-shadow: none; border-radius: 20px; }
body.site .pr-hi { box-shadow: inset 0 0 0 1.5px rgba(126, 162, 255, 0.55); }
body.site :is(.cards a, .related a) { transition: translate 500ms cubic-bezier(0.16, 1, 0.3, 1), background-color var(--t-1) var(--ease); }
@media (hover: hover) and (pointer: fine) { body.site :is(.cards a, .related a):hover { translate: 0 -3px; background: rgba(26, 26, 26, 0.92); } }
body.site .prose code { background: rgba(255, 255, 255, 0.08); }
body.site :is(.lg-form input, .lg-form select, .lg-form textarea, .sr-form) { background: rgba(255, 255, 255, 0.06); border-color: transparent; color: var(--text); }
body.site :is(.lg-form input, .lg-form select, .lg-form textarea):focus { box-shadow: 0 0 0 2px rgba(126, 162, 255, 0.6); }

@media (prefers-reduced-motion: reduce) { body.site :is(.cards a, .related a) { transition: none; } }
@media print { body.site::before, .st { display: none; } html:has(> body.site) { background: #ffffff; } body.site { --text: #000000; --body: #111111; --muted: #444444; --card: transparent; } }

/* Hyper's glow reaches past a phone's edge; it is decoration, so it is clipped rather than scrolled to */
html:has(> body.site.hy) { overflow-x: clip; }

/* (the pages' buttons are the flat ones of base.css, like everywhere else) */

/* ---- on a phone (the owner, 13 Nov 2026: "fix mobile interface like crazy"): a tap area of 44px around the logo,
   and footer links a finger apart. Touch screens at phone and tablet widths only; see public/phone.css. ---- */
@media (pointer: coarse) and (max-width: 820px) {
  .st-brand { position: relative; }
  .st-brand::after { content: ""; position: absolute; inset: -10px -6px; }
  .sf-cols nav { gap: 0; }
  .sf-cols a { display: inline-flex; align-items: center; min-height: 40px; }
  .sf-h { margin-bottom: 0; min-height: 32px; }
  .crumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .sg-pause { position: relative; }
  .sg-pause::after { content: ""; position: absolute; inset: -8px -4px; }
  .cl-feed .btn { min-height: 44px; }
  .st-act .aurora { height: 44px; }
  /* a docs page's list of its sections, and "See all" beside a heading: inline links, with the tap area taller than the words */
  .toc li { margin: 0; }
  .toc a { display: inline-block; padding-block: 8px; }
  .cm-rail-head > a { padding-block: 12px; }
}
