/* Vistula Table League — media platform for land-based poker tournaments */
:root {
  --ink: #0c1620;
  --ink-soft: #162433;
  --slate: #2a3b4c;
  --mist: #eef3f6;
  --paper: #f7f9fb;
  --line: rgba(12, 22, 32, 0.12);
  --emerald: #0f6b52;
  --emerald-deep: #0a4d3b;
  --copper: #b87333;
  --copper-soft: #d4a574;
  --live: #c45c26;
  --white: #ffffff;
  --muted: #5a6b7a;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 107, 82, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 115, 51, 0.07), transparent 50%),
    linear-gradient(180deg, #e8eef2 0%, var(--paper) 40%, #f3f6f8 100%);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--emerald-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-mark span {
  color: var(--emerald);
}

.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
}

.badge-18:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    #0c1620
    url("../assets/hero-tournament-lqip.jpg") center / cover no-repeat;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
  /* Avoid layout shift; image fills hero */
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(12, 22, 32, 0.88) 0%, rgba(12, 22, 32, 0.55) 48%, rgba(15, 107, 82, 0.28) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.015) 11px,
      rgba(255, 255, 255, 0.015) 12px
    );
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
  max-width: 42rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: var(--copper-soft);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 650;
  margin-bottom: 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald-deep);
}

/* —— Status badges —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-upcoming {
  background: rgba(15, 107, 82, 0.14);
  color: var(--emerald-deep);
  border: 1px solid rgba(15, 107, 82, 0.28);
}

.badge-stream {
  background: rgba(196, 92, 38, 0.12);
  color: var(--live);
  border: 1px solid rgba(196, 92, 38, 0.28);
}

.badge-upcoming-on-dark,
.badge-stream-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.45rem;
}

/* —— Featured event panel —— */
.event-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(12, 22, 32, 0.18);
}

.event-panel-main {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.event-panel-aside {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(160deg, rgba(15, 107, 82, 0.35), rgba(12, 22, 32, 0.2)),
    var(--ink-soft);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.event-location {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.35rem;
}

.event-date {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--copper-soft);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.flag {
  display: inline-block;
  font-style: normal;
  margin-right: 0.35rem;
}

.info-critical {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--copper-soft);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 1.25rem 0;
}

.info-critical-light {
  background: rgba(15, 107, 82, 0.06);
  border: 1px solid rgba(15, 107, 82, 0.18);
  border-left: 3px solid var(--emerald);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1.25rem 0;
}

/* —— Countdown —— */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.countdown-item {
  text-align: center;
  padding: 0.85rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.countdown-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.aside-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* —— Calendar list —— */
.calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calendar-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

a.calendar-item:hover {
  border-color: rgba(15, 107, 82, 0.45);
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(12, 22, 32, 0.08);
  color: inherit;
}

.cal-date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--emerald-deep);
  line-height: 1.2;
}

.cal-date small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-main strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.cal-main span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cal-city {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate);
  white-space: nowrap;
}

/* —— Structure / content blocks —— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.prose-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.prose-block h3 {
  font-size: 1.25rem;
}

.prose-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.prose-block li {
  margin-bottom: 0.45rem;
}

.structure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.structure-table th,
.structure-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.structure-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* —— Responsible gaming —— */
.rg-panel {
  background: linear-gradient(135deg, #12202c, #0f6b52);
  color: var(--white);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.rg-panel h2,
.rg-panel h3 {
  color: var(--white);
}

.rg-panel p,
.rg-panel li {
  color: rgba(255, 255, 255, 0.88);
}

.rg-panel a {
  color: var(--copper-soft);
}

.rg-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.rg-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.rg-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--copper-soft);
  border-radius: 1px;
}

.rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rg-links a {
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

.rg-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Legal / about —— */
.legal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem;
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.contact-item span,
.contact-item a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

/* —— Footer —— */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 1.5rem;
}

.footer-plaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.plaque {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand span {
  color: var(--copper-soft);
}

.footer-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--copper-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .badge-18 {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: transparent;
}

.footer-bottom .badge-18:hover {
  background: var(--white);
  color: var(--ink);
}

.footer-age {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .event-panel,
  .grid-2,
  .contact-grid,
  .footer-grid,
  .footer-plaques {
    grid-template-columns: 1fr;
  }

  .event-panel-aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .calendar-item {
    grid-template-columns: 4.5rem 1fr;
  }

  .cal-city {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

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

  .hero-media img {
    transform: none;
  }
}

/* —— Visual media band —— */
.visual-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.visual-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0c1620 center / cover no-repeat;
  min-height: 220px;
}

.visual-figure--venue {
  background-image: url("../assets/venue-exterior-lqip.jpg");
}

.visual-figure--media {
  background-image: url("../assets/media-coverage-lqip.jpg");
}

.visual-figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.visual-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(12, 22, 32, 0.85));
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.event-photo {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25) center / cover no-repeat;
  background-image: url("../assets/venue-exterior-lqip.jpg");
}

.event-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .visual-band {
    grid-template-columns: 1fr;
  }
}
