/* Slipstream — design tokens. Boarding-pass / departures-board concept. */

:root {
  --paper: #efe9dc;
  --paper-stub: #e4ddca;
  --ink: #1b2233;
  --ink-soft: #333c52;
  --muted: #948b76;
  --stamp: #b23a2e;
  --stamp-ink: #7c281f;
  --route: #2d5c6b;
  --line: #c9bfa6;
  --line-strong: #a99f84;
  --white: #fbf9f4;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---- ticket-stub primitive: the signature element ---- */

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
  overflow: hidden;
}

.ticket__main {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ticket__stub {
  position: relative;
  width: 168px;
  padding: 20px 18px;
  background: var(--paper-stub);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

/* perforation: dashed rule + punched notches top/bottom */
.ticket__stub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--line-strong);
}
.ticket__stub::after,
.ticket__main .notch-top {
  content: "";
}
.notch {
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}
.notch--top { top: -8px; }
.notch--bottom { bottom: -8px; }

.code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--route);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--stamp);
  border-color: var(--stamp-ink);
  color: var(--white);
}
.btn--primary:hover { box-shadow: 0 2px 0 var(--stamp-ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.hairline {
  border: none;
  border-top: 1px solid var(--line);
}
