/* tastestack.md — light-mode adaptation of the uistash visual language.
   Tokens mirror uistash css/tokens.css, inverted onto paper. */

:root {
  /* Surfaces — paper canvas, dark ink */
  --paper: #fbfaf7;
  --paper-2: #f2f1ec;   /* code / recessed panel */
  --hairline: #e5e3dc;
  --border: #d7d5cc;

  /* Ink */
  --ink: #16161a;
  --dim: #57575c;
  --faint: #8a8a90;

  /* One accent — the shell blue, used sparingly */
  --blue: #0048ff;

  /* Type */
  --font-sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --font-pixel: "Geist Pixel", var(--font-mono);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  padding: 0 24px 96px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- editor tab chrome ---------------------------------------------------- */
.tabbar {
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--hairline);
  padding-top: 22px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--hairline);
  border-bottom: none;
  background: var(--paper);
  transform: translateY(1px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}
.tab-dot {
  width: 7px; height: 7px;
  background: var(--blue);
}
.tab-name { color: var(--ink); letter-spacing: -0.01em; }

/* ---- document column ------------------------------------------------------ */
.doc {
  max-width: 720px;
  margin: 0 auto;
}

.masthead { padding: 56px 0 4px; }

.dither {
  width: 372px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 40px;
}

.title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 40ch;
  font-weight: 400;
}

/* ---- shared block spacing ------------------------------------------------- */
.block { padding: 52px 0; border-top: 1px solid var(--hairline); }
.masthead + .block { border-top: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--faint);
  margin-bottom: 18px;
}

/* ---- code excerpt --------------------------------------------------------- */
.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--dim);
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  padding: 24px 22px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.c-comment { color: var(--faint); font-style: italic; }
.c-key     { color: var(--ink); font-weight: 500; }
.c-num     { color: var(--dim); }
.c-punct   { color: var(--faint); }
.c-h       { color: var(--blue); font-weight: 600; }
.c-accent  { color: var(--blue); font-weight: 600; }

.caption {
  font-size: 14px;
  color: var(--faint);
  margin-top: 16px;
  max-width: 52ch;
}

/* ---- the injection rule --------------------------------------------------- */
.prior {
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-left: 22px;
  border-left: 3px solid var(--blue);
  max-width: 26ch;
}

/* ---- status + links ------------------------------------------------------- */
.status {
  font-size: 16px;
  color: var(--dim);
  max-width: 46ch;
  margin-bottom: 32px;
}
.links { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.links li { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.links a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 120ms var(--ease-out);
}
.links a:hover { border-bottom-color: var(--blue); }
.link-note { font-size: 14px; color: var(--faint); }

/* ---- footer --------------------------------------------------------------- */
.foot {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.foot-mark {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.foot a { color: var(--dim); }
.foot a:hover { color: var(--ink); }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 480px) {
  body { padding: 0 18px 72px; }
  .masthead { padding-top: 40px; }
  .dither { margin-bottom: 32px; }
  .block { padding: 40px 0; }
  .lede { font-size: 18px; }
}
