:root {
  --ink: #141816;
  --ink-soft: #232826;
  --paper: #f3ead8;
  --paper-deep: #e7d9be;
  --cream: #fbf6ea;
  --brass: #c9a227;
  --brass-hot: #e4c35a;
  --copper: #b8431f;
  --pine: #1d3b33;
  --pine-lit: #2b564a;
  --line: rgba(20, 24, 22, 0.12);
  --shadow: 0 18px 40px rgba(20, 24, 22, 0.16);
  --radius: 18px;
  --max: 1180px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 162, 39, 0.16), transparent 50%),
    radial-gradient(900px 420px at 110% 8%, rgba(184, 67, 31, 0.12), transparent 46%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 48%, #efe3cb 100%);
  color: var(--ink);
  font-family: "Literata", "Georgia", serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

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

a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--pine); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; }

/* Header */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 24, 22, 0.94);
  color: var(--cream);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--brass);
}

.mast-inner {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--brass);
  display: grid;
  place-items: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: #0f1211;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--brass-hot);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 12px;
  flex: 1 1 auto;
}

.nav a {
  color: #efe6d2;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.cta-pair {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-enter {
  background: var(--brass);
  color: #1a1406;
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.btn-join {
  background: var(--copper);
  color: #fff8f4;
}

.btn:hover { transform: translateY(-1px); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Ticker */
.rail {
  overflow: hidden;
  background: var(--pine);
  color: #e8f3ee;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rail-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 9px 0;
}

.rail-track span { padding: 0 28px; white-space: nowrap; }
.rail-track b { color: var(--brass-hot); font-weight: 600; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero */
.hero {
  padding: 36px 0 10px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 10px;
}

h1, h2, h3, h4 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

.lede {
  font-size: 1.12rem;
  max-width: 40rem;
  margin: 0 0 18px;
}

.ticket {
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  top: 58%;
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--brass-hot);
  margin-bottom: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dcc7a;
  box-shadow: 0 0 0 4px rgba(109, 204, 122, 0.18);
}

.addr {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  word-break: break-all;
  background: #0c0f0e;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  padding: 12px;
  border-radius: 12px;
  margin: 10px 0 14px;
}

.ticket .cta-pair { margin: 0; }
.ticket .btn { flex: 1; }

.copy-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--brass-hot);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

/* Slider */
.deck {
  margin: 28px 0 8px;
  position: relative;
  z-index: 1;
}

.slides {
  position: relative;
  min-height: 230px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a221f;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease;
  color: #f6f0e2;
  display: grid;
  align-content: center;
}

.slide.is-on {
  opacity: 1;
  transform: none;
  position: relative;
}

.slide:nth-child(1) { background: linear-gradient(135deg, #1d3b33, #12231f 62%, #3a2a14); }
.slide:nth-child(2) { background: linear-gradient(135deg, #3d2118, #1b1412 60%, #2c2410); }
.slide:nth-child(3) { background: linear-gradient(135deg, #243046, #151820 58%, #2a2614); }
.slide:nth-child(4) { background: linear-gradient(135deg, #2a2418, #141816 55%, #1d3b33); }

.slide h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.slide p { max-width: 40rem; margin: 0; }

.slide-nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #cfc3a6;
  cursor: pointer;
}
.dot.is-on { background: var(--copper); }

/* Layout blocks */
.band { padding: 34px 0; position: relative; z-index: 1; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 180px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }

.card em {
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.crumbs {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  margin: 16px 0 8px;
  position: relative;
  z-index: 1;
}
.crumbs a { color: var(--pine); text-decoration: none; }
.crumbs span { opacity: .6; }

.article {
  background: rgba(255,255,255,.48);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 36px);
  position: relative;
  z-index: 1;
}

.article p { margin: 0 0 1em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin: 0 0 .45em; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #5a5346;
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
}

.sidebox {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 18px;
}

.sidebox h3 { color: var(--brass-hot); }

.stars { color: var(--brass-hot); letter-spacing: 2px; }

.faq details {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 10px;
}

.faq summary {
  cursor: pointer;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.lang {
  display: flex;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}
.lang a { color: #d9d0bb; text-decoration: none; }
.lang a[aria-current="true"] { color: var(--brass-hot); }

.foot {
  margin-top: 40px;
  background: var(--ink);
  color: #d8d1c2;
  padding: 36px 0 22px;
  position: relative;
  z-index: 1;
}

.foot a { color: var(--brass-hot); text-decoration: none; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.fine {
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  font-size: 0.82rem;
  opacity: .8;
}

.note {
  font-size: 0.92rem;
  background: #fff6df;
  border-left: 4px solid var(--brass);
  padding: 10px 14px;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255,255,255,.4);
}
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; }
th { font-family: "Syne", sans-serif; }

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .split,
  .foot-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #141816;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px 18px;
    gap: 12px;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mast-inner { flex-wrap: wrap; }
  .cta-pair { order: 2; }
  .brand { order: 1; }
  .nav-toggle { order: 3; margin-left: 0; }
  .lang { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .ticket { padding: 18px 16px 14px; }
  .slides { min-height: 280px; }
  .btn { padding: 0 12px; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
