/* Self-hosted fonts (downloaded once from Google Fonts, not loaded live)
   to avoid a runtime dependency on fonts.googleapis.com/fonts.gstatic.com
   for every visitor. Space Grotesk and IBM Plex Sans are variable fonts
   upstream, so one file covers the weight range each declares. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root {
  --canvas: #C9BB9C;
  --paper: #F5EEDD;
  --ink: #241F1A;
  --copper: #703A22;
  --patina: #3A5029;
  --stamp: #A83C32;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--canvas);
  background-image:
    repeating-linear-gradient(45deg, rgba(36,31,26,0.03) 0, rgba(36,31,26,0.03) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(36,31,26,0.03) 0, rgba(36,31,26,0.03) 1px, transparent 1px, transparent 5px);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.5;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 20px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Logo mark */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--copper);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  flex-shrink: 0;
}
.logo-badge::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(245,238,221,0.5);
  border-radius: 2px;
}
.logo-badge.small { width: 32px; height: 32px; font-size: 13px; }
.logo-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.logo-wordmark.small { font-size: 18px; }
.logo-wordmark .light { color: var(--copper); }

/* Header */
.site-header {
  padding: 24px 0;
  border-bottom: 1px dashed rgba(36,31,26,0.22);
}
.site-header .shell {
  display: flex;
  align-items: center;
}

/* Ticket-id / mono utility */
.ticket-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36,31,26,0.72);
  margin: 0 0 14px;
}
.ticket .ticket-id {
  color: var(--patina);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
  padding: 72px 24px 40px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 17px;
  max-width: 480px;
  color: rgba(36,31,26,0.78);
  margin: 0 0 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 3px;
  touch-action: manipulation;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--patina);
  color: var(--paper);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58,80,41,0.4);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 3px;
}
/* Hero ticket */
.hero-ticket {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.ticket {
  background: var(--paper);
  color: var(--ink);
  width: 440px;
  max-width: 100%;
  min-width: 0;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transform: rotate(-1.4deg);
  box-shadow: 0 24px 50px rgba(0,0,0,0.28);
  background-image:
    radial-gradient(circle at 18px 0, var(--canvas) 9px, transparent 9.5px),
    radial-gradient(circle at 18px 100%, var(--canvas) 9px, transparent 9.5px);
}
.ticket-scene {
  position: absolute;
  color: var(--patina);
  z-index: 0;
  pointer-events: none;
}
.ticket-mountain {
  right: -28px;
  bottom: -20px;
  width: 190px;
  height: 190px;
  opacity: 0.08;
}
.ticket-cactus {
  right: 8px;
  bottom: 6px;
  width: 38px;
  height: 38px;
  opacity: 0.16;
}
.ticket::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 2px dashed rgba(36,31,26,0.2);
}
.ticket-hole {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.4);
}
.ticket-inner { position: relative; z-index: 1; padding: 28px 28px 26px 62px; }
.ticket-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
}
.ticket-meta {
  font-size: 13px;
  color: rgba(36,31,26,0.65);
  margin: 0 0 18px;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-top: 1px dashed rgba(36,31,26,0.18);
}
.ticket-row:last-child { padding-bottom: 0; }
.ticket-row .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(36,31,26,0.7);
}
.ticket-row .v {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
}
.stamp {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(-3deg);
}
.stamp-open { color: var(--patina); }
.stamp-urgent { color: var(--stamp); }

/* Section heading */
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 28px;
}

/* How it works */
.how-band {
  background: var(--paper);
  border-top: 1px dashed rgba(36,31,26,0.22);
  border-bottom: 1px dashed rgba(36,31,26,0.22);
}
.how { padding: 56px 24px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.how-step {
  border-left: 2px solid var(--patina);
  padding: 4px 0 4px 18px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--copper);
  color: var(--copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  transform: rotate(-4deg);
}
.how-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 8px;
}
.how-step p {
  font-size: 14.5px;
  color: rgba(36,31,26,0.78);
  margin: 0;
}

/* Trust photo */
.trust { padding: 56px 24px; }
.trust-frame {
  position: relative;
  background: var(--paper);
  padding: 14px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}
.trust-hole {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--canvas);
  z-index: 2;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.3);
}
.trust-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  filter: grayscale(0.9) sepia(0.2) contrast(1.05) brightness(1.05);
}
.trust-tint {
  position: absolute;
  inset: 14px;
  border-radius: 2px;
  background: var(--patina);
  opacity: 0.4;
  mix-blend-mode: color;
  pointer-events: none;
}
.trust-caption {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(36,31,26,0.65);
}

/* Categories */
.categories { padding: 48px 24px 72px; }
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-chip {
  position: relative;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px 8px 22px;
  border: 1px solid rgba(36,31,26,0.25);
  border-radius: 2px;
  color: rgba(36,31,26,0.85);
  background: var(--paper);
}
.category-chip::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.25);
}

/* Footer */
.site-footer {
  padding: 32px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px dashed rgba(36,31,26,0.22);
}
.footer-note {
  font-size: 13px;
  color: rgba(36,31,26,0.72);
  margin: 0;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
  }
  .hero-copy { order: 1; }
  .hero-ticket { order: 2; }
  .lede { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
