/* The public index, credits and 404 in stitch-v1's design language: DESIGN.md's tokens and
   code.html's card, tag and type. Plain CSS, because stitch.css keeps only the classes its own
   pages use; it is still loaded first, for Geist. */
:root {
  --base: #09090b;
  --card: #0c0c0e;
  --card-hover: #111114;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #3ecf8e;
  --safe: #34d399;
  --safe-bg: rgba(16, 185, 129, 0.12);
  --mono: "Geist Mono", ui-monospace, monospace;
}
html { background: var(--base); }
body.booth {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--base); color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; line-height: 20px; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
.booth-wrap { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 32px; box-sizing: border-box; }
.booth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.booth-label {
  margin: 0; font-family: var(--mono); font-size: 11px; line-height: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
}
.booth-label-accent { display: inline-flex; align-items: center; gap: 8px; color: var(--safe); }
.booth-label-accent::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); }
.booth-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--border-strong); border-radius: 6px; background: #18181b;
  color: var(--text); font-size: 13px; line-height: 16px; font-weight: 500; text-decoration: none;
}
.booth-back:hover { background: #27272a; }
.booth-title { margin: 0 0 8px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.booth-lede { margin: 0 0 32px; max-width: 640px; font-size: 16px; line-height: 24px; color: var(--text-muted); }
.booth-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booth-grid > li { display: flex; }
.booth-card {
  flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.booth-card:hover, .booth-card:focus-visible { border-color: rgba(62, 207, 142, 0.5); background: var(--card-hover); outline: none; }
.booth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.booth-card h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.015em; }
.booth-quote { margin: 0; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 16px; line-height: 24px; font-style: italic; }
.booth-blurb { flex: 1; margin: 0; color: var(--text-muted); }
.booth-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.booth-tag {
  display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums;
  background: rgba(39, 39, 42, 0.9); color: #d4d4d8; border: 1px solid rgba(63, 63, 70, 0.6);
}
.booth-tag-accent { background: var(--safe-bg); color: var(--safe); border-color: rgba(16, 185, 129, 0.4); }
.booth-cta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--safe); }
.booth-prose { max-width: 680px; font-size: 16px; line-height: 24px; color: var(--text-muted); }
.booth-prose p { margin: 0 0 16px; }
.booth-prose a, .booth-credit a, .booth-lede a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.booth-credit {
  border-top: 1px solid var(--border); padding: 16px 24px; text-align: center;
  font-size: 13px; line-height: 18px; color: var(--text-dim);
}
.booth-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.booth-steps li { padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.booth-steps h2 { margin: 6px 0 4px; font-size: 15px; line-height: 20px; font-weight: 600; }
.booth-steps p { margin: 0; color: var(--text-muted); }
.booth-step-n { font-family: var(--mono); font-size: 11px; color: var(--safe); }
.booth-section { margin: 32px 0 12px; font-size: 18px; line-height: 24px; font-weight: 600; }
.booth-carousel {
  list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.booth-carousel > li { display: flex; scroll-snap-align: start; }
@media (max-width: 767px) {
  .booth-carousel { grid-auto-columns: 85%; }
  .booth-steps { gap: 8px; }
  .booth-steps li { padding: 10px 14px; }
  .booth-step-n { margin-right: 8px; }
  .booth-steps h2 { display: inline; margin: 0; }
  .booth-steps p { margin-top: 2px; }
  .booth-wrap { padding: 24px 16px; }
  .booth-title { font-size: 28px; line-height: 32px; letter-spacing: -0.025em; }
  .booth-grid { grid-template-columns: minmax(0, 1fr); }
}
.booth-edges-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booth-carousel-nav { display: flex; gap: 8px; margin: 32px 0 12px; }
.booth-carousel-nav[hidden] { display: none; }
.booth-arrow {
  width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--border-strong);
  background: #18181b; color: var(--text); font: inherit; font-size: 18px; cursor: pointer;
  touch-action: manipulation;
}
.booth-arrow:disabled { opacity: 0.35; cursor: default; }
/* booth-kiosk.js sets the class under ?kiosk=1. Sideways overscroll is history back on Windows. */
html.booth-kiosk, html.booth-kiosk body { overscroll-behavior: none; touch-action: pan-x pan-y; }
html.booth-kiosk body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html.booth-kiosk input { user-select: text; -webkit-user-select: text; }
.booth-uri { display: none; }
html.booth-kiosk .booth-uri { display: inline; overflow-wrap: anywhere; }
