/* Open Seat's website. Same system as the app (src/theme.ts): "supper club after dark", wide display
   type, printed tickets with a hard offset shadow. Dark is the brand; light follows the visitor's OS. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #141210;
  --surface: #1f1c19;
  --raised: #2a2622;
  --line: #37312b;
  --line-strong: #5a5148;
  --text: #f6f1ea;
  --muted: #a89e92;
  --faint: #7d746a;
  --paper: #f6f1ea;
  --ink: #141210;
  --ink-muted: #5c5650;
  --accent: #f2854a;
  --accent-text: #f6a676;
  --mint: #4cc29b;
  --mint-text: #6fd6b2;
  --lilac: #b08bef;
  --pink: #f29bb5;
  --butter: #f4c95d;
  --rays: #f4c95d;
  --ticket-shadow: #f2854a;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #ffffff;
    --surface: #f7f4ef;
    --raised: #efeae3;
    --line: #e4ddd3;
    --line-strong: #141210;
    --text: #141210;
    --muted: #5c5650;
    --faint: #8c857c;
    --paper: #ffffff;
    --accent-text: #b84e17;
    --mint-text: #1e8a63;
    --rays: #f2854a;
    --ticket-shadow: #141210;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

.draft {
  margin: 0;
  padding: 8px 20px;
  background: var(--butter);
  color: #141210;
  font: 500 13px/1.4 var(--mono);
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-stretch: 125%;
  font-weight: 800;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: auto;
  flex: none;
}

.logo-rays {
  stroke: var(--rays);
}

.logo-left,
.logo-right,
.logo-plate {
  stroke: var(--ink);
}

.logo-left {
  fill: var(--accent);
}

.logo-right {
  fill: var(--mint);
}

.logo-plate {
  fill: var(--paper);
}

.logo-rim {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.45;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-nav a {
  color: var(--muted);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 56px;
  padding-block: 48px 80px;
}

.display {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6.4vw, 72px);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  max-width: 34ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.ticket {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ticket-shadow);
  transform: rotate(-1.5deg);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-title {
  margin: 12px 0 16px;
  font-size: 28px;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.08;
}

.ticket-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px 18px;
  margin: 0;
  padding-top: 16px;
  border-top: 2px dashed var(--ink);
}

.ticket-rows dt {
  color: var(--ink-muted);
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-rows dd {
  margin: 0;
  font-weight: 600;
}

.ticket figcaption {
  margin-top: 18px;
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip {
  display: inline-block;
  padding: 3px 12px;
  border: 1.5px solid #141210;
  border-radius: 999px;
  color: #141210;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.chip-friends {
  background: var(--mint);
}

.chip-networking {
  background: var(--lilac);
}

.chip-dating {
  background: var(--pink);
}

.band {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.band h2 {
  max-width: 22ch;
  margin: 10px 0 32px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.band-lead {
  max-width: 44ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 56px;
}

.split h2 {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-strong);
  color: var(--accent-text);
  content: counter(step, decimal-leading-zero);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  fill: none;
  stroke: var(--mint-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

/* Documents */

.doc {
  max-width: 68ch;
  padding-block: 28px 80px;
}

.doc h1 {
  margin: 10px 0 24px;
  font-size: clamp(34px, 5vw, 52px);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  text-wrap: balance;
}

.doc h2 {
  margin: 48px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 23px;
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.doc li {
  margin: 6px 0;
}

.doc li::marker {
  color: var(--accent);
}

.doc strong {
  font-weight: 700;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 0.9em;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 20px 56px;
  }

  /* Room for the tilt and the offset shadow, so the card never touches the screen edge. */
  .ticket {
    justify-self: start;
    width: calc(100% - 16px);
    margin-left: 4px;
  }

  .split,
  .steps,
  .checks {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 26px;
  }

  .band {
    padding-block: 48px;
  }
}
