@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e0a09;
  --ink-2: #16100e;
  --cream: #f4ead8;
  --muted: #b6a68f;
  --brass: #e2b567;
  --brass-dim: rgba(226, 181, 103, 0.42);
  --brass-faint: rgba(226, 181, 103, 0.16);
  --neon: #ff5a4e;
  --neon-core: #ffe1da;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --logo-scale: 0.62;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--ink);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(226, 181, 103, 0.17), transparent 62%),
    radial-gradient(760px 560px at 105% 38%, rgba(255, 90, 78, 0.1), transparent 60%),
    radial-gradient(700px 500px at -10% 105%, rgba(226, 181, 103, 0.08), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* Film grain */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 9vw, 96px) max(var(--gutter), env(safe-area-inset-right)) 48px max(var(--gutter), env(safe-area-inset-left));
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hero */
.hero {
  text-align: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-dim));
}

.kicker::after {
  background: linear-gradient(90deg, var(--brass-dim), transparent);
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.title-top {
  display: block;
  font-size: clamp(2.6rem, 12.5vw, 5.4rem);
  color: var(--cream);
}

.neon {
  display: block;
  margin-top: 0.06em;
  font-size: clamp(4.4rem, 24vw, 9.6rem);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--neon-core);
  text-shadow:
    0 0 4px rgba(255, 225, 218, 0.9),
    0 0 12px rgba(255, 90, 78, 0.95),
    0 0 28px rgba(255, 90, 78, 0.7),
    0 0 60px rgba(255, 90, 78, 0.45),
    0 0 110px rgba(255, 90, 78, 0.3);
  animation: buzz 6s steps(1, end) 1s infinite;
}

@keyframes buzz {
  0%, 100% { opacity: 1; }
  91% { opacity: 1; }
  92% { opacity: 0.55; }
  93% { opacity: 1; }
  95% { opacity: 0.7; }
  96% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .neon {
    animation: none;
  }
}

.lede {
  max-width: 30em;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Ticket */
.ticket {
  display: grid;
  gap: 22px;
  margin: 44px 0 0;
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(30, 22, 18, 0.88), rgba(20, 14, 12, 0.88));
  border: 1px solid var(--brass-dim);
  border-radius: 6px;
  outline: 1px solid var(--brass-faint);
  outline-offset: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.rule {
  height: 1px;
  background-image: linear-gradient(90deg, var(--brass-dim) 50%, transparent 50%);
  background-size: 10px 1px;
}

.label {
  margin: 0 0 6px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.big {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  font-variation-settings: "SOFT" 50, "opsz" 72;
}

.sub {
  margin: 6px 0 0;
  color: var(--cream);
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

/* Actions */
.actions {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
}

.cal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-neon {
  min-height: 58px;
  font-size: 1.08rem;
  color: #1a0807;
  background: var(--neon);
  border: 1px solid #ff8b80;
  box-shadow:
    0 0 0 1px rgba(255, 90, 78, 0.35),
    0 0 24px rgba(255, 90, 78, 0.45),
    0 10px 40px -10px rgba(255, 90, 78, 0.6);
}

.btn-neon[href]:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 90, 78, 0.45),
    0 0 34px rgba(255, 90, 78, 0.6),
    0 14px 46px -10px rgba(255, 90, 78, 0.7);
}

.btn-neon[aria-disabled="true"] {
  cursor: default;
  color: var(--neon-core);
  background: rgba(255, 90, 78, 0.08);
  border: 1px dashed rgba(255, 90, 78, 0.6);
  box-shadow: 0 0 22px rgba(255, 90, 78, 0.12);
}

.cal .btn {
  padding: 10px 12px;
  font-size: 0.95rem;
}

.btn-ghost {
  color: var(--cream);
  background: rgba(244, 234, 216, 0.04);
  border: 1px solid var(--brass-dim);
}

.btn-ghost:hover {
  background: rgba(226, 181, 103, 0.1);
}

/* Blocks */
.block {
  margin: 52px 0 0;
  text-align: center;
}

.block p {
  margin: 0 auto;
  max-width: 32em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  color: var(--brass);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.pill:hover {
  background: rgba(226, 181, 103, 0.1);
}

.note {
  margin-top: 18px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sponsors */
.sponsors .label {
  margin-bottom: 26px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos a {
  display: block;
  padding: 4px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.logos a:hover {
  opacity: 1;
}

.logos img {
  display: block;
  width: auto;
}

/* Equal visual weight: each logo sized to the same ink area */
.logo-techex {
  height: calc(39.5px * var(--logo-scale));
}

.logo-uplynk {
  height: calc(49.2px * var(--logo-scale));
}

.logo-tag {
  height: calc(64.5px * var(--logo-scale));
}

/* Footer */
.foot {
  margin: 64px 0 0;
  padding-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: linear-gradient(90deg, transparent, var(--brass-faint), transparent) top / 100% 1px no-repeat;
}

.foot p {
  margin: 0 auto;
  max-width: 34em;
}

.domain {
  margin-top: 10px !important;
  color: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

@media (min-width: 640px) {
  :root {
    --logo-scale: 1;
  }

  .ticket {
    grid-template-columns: 1fr 1px 1fr;
    gap: 30px;
    padding: 32px 34px;
  }

  .rule {
    width: 1px;
    height: auto;
    background-image: linear-gradient(180deg, var(--brass-dim) 50%, transparent 50%);
    background-size: 1px 10px;
  }

  .logos {
    gap: 30px 56px;
  }
}
