/* ==========================================================================
   De Ticketshop — base: reset, typography, utilities
   --------------------------------------------------------------------------
   Typography   .h1 .h2 .h3 .h4 .eyebrow .lead
                .text-2xs|xs|sm|base|md|lg|xl|2xl|3xl  .font-medium|semibold|bold
                .muted .subtle .secondary .text-accent|success|warning|danger|info
                .mono .code (ticket codes) .tabular .truncate .nowrap .break .center .right
   Layout       .stack (column, gap 12)   .stack-1 … .stack-8 (gap = n×4px)
                .row (row, centered, gap 8)   .row-1 … .row-6   .row-top  .row-wrap
                .between .grow .shrink-0 .ml-auto .w-full
                .grid .grid-2 .grid-3 .grid-4 (responsive; collapse on small screens)
                .mt-1…8 .mb-1…8 (n×4px)   .p-0
   Visibility   .sr-only  .hide-mobile (< 900px)  .show-mobile (< 900px only)
   Misc         .divider (hr)  .dot (6px status dot)  .logo-white (white logo on dark)
                .gradient-text  .gradient-border  .fade-in  .page (content enter anim)
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--sticky-top) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 420;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11' 0, 'calt' 1;
  font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: 1.25; color: var(--text); }
ul, ol { margin: 0; padding: 0; }
ul[role='list'], ol[role='list'] { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--text-subtle); opacity: 1; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }

::selection { background: rgba(34, 181, 166, .22); color: inherit; }

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

/* Thin, quiet scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
.theme-dark * { scrollbar-color: #2F3A4B transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--ink-400); }

/* Typography ------------------------------------------------------------- */
.h1 { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: -0.025em; line-height: 1.15; }
.h2 { font-size: var(--text-2xl); font-weight: 650; letter-spacing: var(--tracking-tight); line-height: 1.2; }
.h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); line-height: 1.35; }
.h4 { font-size: var(--text-base); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.lead { font-size: var(--text-md); color: var(--text-muted); line-height: 1.6; }
.eyebrow {
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-subtle);
}

.text-2xs { font-size: var(--text-2xs); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.text-3xl { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); }
.font-normal { font-weight: 420; }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-text); }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-info { color: var(--info-text); }

.mono { font-family: var(--font-mono); font-size: .93em; letter-spacing: 0; }
.code {
  font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tabular, .num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.center { text-align: center; }
.right { text-align: right; }
.gradient-text {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Layout utilities ---------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack-0 { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.stack-1 { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stack-2 { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stack-3 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack-4 { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-5 { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack-6 { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stack-8 { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-1 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.row-2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-3 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-4 { display: flex; align-items: center; gap: 16px; min-width: 0; }
.row-6 { display: flex; align-items: center; gap: 24px; min-width: 0; }
.row-top { align-items: flex-start; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }

.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 899.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .show-mobile { display: none !important; } }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.logo-white { filter: brightness(0) invert(1); }
.gradient-border {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
}

/* Motion helpers ------------------------------------------------------------ */
@keyframes dts-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dts-rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dts-page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dts-spin { to { transform: rotate(360deg); } }
@keyframes dts-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes dts-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.fade-in { animation: dts-fade-in var(--dur-slow) var(--ease-out) both; }
/* Page enter: opacity only, and no fill after it ends. A transform (even an identity one held by
   fill-mode forwards) would turn the page wrapper into the containing block of position:fixed children
   (mobile checkout bars, bottom sheets, floating save bars) and pin them to the page instead of the screen. */
.page { animation: dts-page-in 240ms var(--ease-out) backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
