/* Shared base for the mini previews embedded in the "rebuilding pauljoshi.com" post.
   Tokens mirror app/(site)/signal.css. Each embed is a standalone page loaded in an iframe. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@100..900&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --paper: #eeece8;
  --ink: #121212;
  --type-bg: #cdc9c2;
  --muted: #67645e;
  --red: #e3120b;
  --line: rgba(18, 18, 18, 0.14);
  --rule: rgba(227, 18, 11, 0.6);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --split: 38.2%;
}
:root[data-theme="dark"] {
  --paper: #121211;
  --ink: #ecebe7;
  --type-bg: #2e2d2a;
  --muted: #a19e97;
  --red: #ff3d2e;
  --line: rgba(236, 235, 231, 0.14);
  --rule: rgba(255, 61, 46, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* the site's type voices */
.t-bg { font-weight: 800; text-transform: uppercase; letter-spacing: -0.065em; line-height: 0.84; color: var(--type-bg); }
.t-mark { font-weight: 800; letter-spacing: -0.075em; line-height: 0.8; color: var(--red); white-space: nowrap; }

.stage { position: absolute; inset: 0; overflow: hidden; }

/* variant switch, bottom left, like the round-3 preview tag */
.bar {
  position: absolute; left: 10px; bottom: 10px; z-index: 50;
  display: flex; gap: 2px; align-items: center; flex-wrap: wrap;
  font: 500 11px/1 var(--mono);
  background: var(--ink); color: var(--paper);
  padding: 5px; border-radius: 999px;
}
.bar .lbl { padding: 0 8px 0 6px; opacity: 0.6; }
.bar button { padding: 6px 9px; border-radius: 999px; opacity: 0.65; transition: opacity 0.2s, background 0.2s; }
.bar button:hover { opacity: 1; }
.bar button[aria-pressed="true"] { opacity: 1; background: var(--red); color: #fff; }
.bar button kbd { font: inherit; opacity: 0.55; margin-right: 4px; }

/* small instruction, top right */
.hint {
  position: absolute; right: 12px; top: 12px; z-index: 50;
  font: 500 11px/1.3 var(--mono); color: var(--muted); text-align: right;
  pointer-events: none;
}

@media (max-width: 480px) {
  .bar { font-size: 10px; }
  .bar .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
