/* The quiet parts: the few shared pieces every non-look page is built from (the docs, the 404 body, /connect,
   /privacy and /terms, /c/*, the console's shell), in the tokens of public/preview/quiet-tokens.css and the same
   recipes as the look pages (public/preview/look-c.css): the serif display, the small medium label, the grey lead,
   one navy key and one quiet outline pill (the same height and radius everywhere), white cards on warm hairlines,
   a light code window, the amber "paused" dot. Classes start with q-; nothing here styles a bare element, so a page
   opts in part by part. Linked by QuietAssets (src/components/site/QuietAssets.tsx). Light only.
   Not processed by the CSS pipeline: -webkit- prefixes are written by hand. */

/* ---------- the page ---------- */
html:has(.q-page),
html:has(.q-page) > body {
  background: var(--q-paper);
}
.q-page {
  background: var(--q-paper);
  color: var(--q-ink);
  font-family: var(--q-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}
.q-page ::selection {
  background: var(--q-accent-soft);
  color: var(--q-ink);
}
.q-page :focus-visible {
  outline: 2px solid var(--q-accent);
  outline-offset: 2px;
}

/* ---------- type roles ---------- */
/* the wordmark: the sans semibold, tight, navy (the header's .hn-word) */
.q-word {
  font: 600 23px/1 var(--q-sans);
  letter-spacing: -0.035em;
  color: var(--q-ink);
  text-decoration: none;
}
/* labels and eyebrows: small, medium, grey, a hair of tracking */
.q-label {
  display: block;
  margin: 0;
  font: 500 var(--q-fs-label)/1.3 var(--q-sans);
  letter-spacing: 0.01em;
  color: var(--q-label);
}
/* display: the serif, light, whole headlines */
.q-display,
.q-title,
.q-title-s {
  margin: 0;
  font-family: var(--q-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--q-ink);
  text-wrap: balance;
}
.q-display {
  font-size: var(--q-fs-l);
  line-height: 1.04;
  letter-spacing: -0.016em;
}
.q-title {
  font-size: var(--q-fs-m);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.q-title-s {
  font-size: var(--q-fs-s);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
/* titles inside cards and lists: the sans medium, never bold */
.q-card-title {
  margin: 0;
  font: 500 var(--q-fs-title)/1.3 var(--q-sans);
  letter-spacing: -0.012em;
  color: var(--q-ink);
}
.q-lead {
  margin: 0;
  font: 400 var(--q-fs-lead)/1.55 var(--q-sans);
  letter-spacing: -0.003em;
  color: var(--q-grey);
  text-wrap: pretty;
}
.q-small {
  font: 400 14px/1.5 var(--q-sans);
  color: var(--q-label);
}
.q-link {
  color: var(--q-ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--q-ink) 26%, transparent);
  transition: color 0.15s, border-color 0.15s;
}
.q-link:hover {
  color: var(--q-accent-ink);
  border-bottom-color: currentColor;
}

/* ---------- buttons: one navy key, one quiet outline ---------- */
.q-key,
.q-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 500 16px/1 var(--q-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.q-key {
  background: var(--q-ink);
  color: var(--q-on-ink);
  box-shadow: var(--q-key-shadow);
}
.q-ghost {
  background: var(--q-surface);
  color: var(--q-ink);
  box-shadow: inset 0 0 0 1px var(--q-rule-2), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.q-key:hover,
.q-ghost:hover {
  transform: translateY(-1px);
}
.q-ghost:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--q-ink) 30%, transparent), 0 6px 16px -10px rgba(0, 0, 0, 0.3);
}
.q-key:active,
.q-ghost:active {
  transform: scale(0.98);
}
.q-key:disabled,
.q-ghost:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.q-key svg,
.q-ghost svg {
  width: 16px;
  height: 16px;
}
.q-key--sm,
.q-ghost--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.q-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- surfaces ---------- */
.q-card {
  border-radius: 24px;
  background: var(--q-surface);
  box-shadow: var(--q-card-shadow);
}
.q-panel {
  border-radius: 24px;
  background: var(--q-surface);
  box-shadow: var(--q-panel-shadow);
}
.q-sunk {
  border-radius: 16px;
  background: var(--q-sunk);
}
.q-rule {
  height: 1px;
  border: 0;
  background: var(--q-rule);
}

/* ---------- the light code window (the look's terminal) ---------- */
.q-term {
  border-radius: 20px;
  background: var(--q-term);
  color: var(--q-term-ink);
  box-shadow: var(--q-panel-shadow);
  overflow: hidden;
}
.q-term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  background: var(--q-term-bar);
  border-bottom: 1px solid var(--q-rule);
}
.q-term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--q-sunk-2);
}
.q-term-bar span {
  margin-left: 6px;
  font: 400 12.5px/1 var(--q-mono);
  color: var(--q-label);
}
.q-term-body {
  padding: 18px 22px 22px;
  font: 400 13px/1.8 var(--q-mono);
  color: var(--q-term-ink);
}

/* ---------- status ---------- */
/* "paused": an amber dot before grey words */
.q-paused {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font: 400 14.5px/1.5 var(--q-sans);
  color: var(--q-grey);
}
.q-paused::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: calc((1.5em - 8px) / 2);
  border-radius: 50%;
  background: var(--q-wait);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--q-wait) 18%, transparent);
}
.q-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--q-sunk);
  font: 500 12px/1.3 var(--q-sans);
  color: var(--q-grey);
  white-space: nowrap;
}
.q-chip--wait {
  background: var(--q-wait-soft);
  color: var(--q-wait-ink);
}

@media (prefers-reduced-motion: reduce) {
  .q-key,
  .q-ghost,
  .q-link {
    transition: none;
  }
  .q-key:hover,
  .q-ghost:hover,
  .q-key:active,
  .q-ghost:active {
    transform: none;
  }
}
