:root {
  color-scheme: dark;
  --ink: #17111b;
  --ink-2: #21182e;
  --panel: #2b2140;
  --panel-soft: rgba(43, 33, 64, 0.82);
  --text: #f8f5ff;
  --muted: #c9c0d8;
  --purple: #6d18d7;
  --purple-deep: #3f0d91;
  --cyan: #39d8f2;
  --gold: #f2b436;
  --red: #de1f38;
  --line: rgba(248, 245, 255, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(109, 24, 215, 0.26), transparent 28rem),
    linear-gradient(180deg, #120d18 0%, var(--ink) 48%, #0f1019 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 13, 24, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(242, 180, 54, 0.55));
}

.brand__name {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  white-space: nowrap;
}

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

.site-nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.8rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(42rem, 72vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(18, 13, 24, 0.94) 0%, rgba(18, 13, 24, 0.72) 42%, rgba(18, 13, 24, 0.18) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(18, 13, 24, 0) 34%),
    url("images/Banner_RPG2.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  background: linear-gradient(180deg, transparent, var(--ink));
}

.hero__content {
  width: min(44rem, 100%);
  padding-bottom: clamp(1rem, 4vw, 2.5rem);
}

.hero__logo {
  width: clamp(6.5rem, 18vw, 10rem);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 20px rgba(242, 180, 54, 0.66));
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 7vw, 5.65rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__text {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero__action,
.table-card__link,
.site-footer a {
  min-height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--red), #f04a5e 52%, var(--gold));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(222, 31, 56, 0.28);
}

.hero__action {
  padding: 0 1.3rem;
}

.hero__action:hover,
.table-card__link:hover,
.site-footer a:hover,
.hero__action:focus-visible,
.table-card__link:focus-visible,
.site-footer a:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(57, 216, 242, 0.7);
  outline-offset: 3px;
}

.open-tables {
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  width: min(74rem, 100%);
  margin: 0 auto 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.tables-grid {
  width: min(74rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.table-card {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(57, 216, 242, 0.1), transparent 44%),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.table-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(242, 180, 54, 0.13), transparent 44%),
    var(--panel-soft);
}

.table-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(222, 31, 56, 0.15), transparent 44%),
    var(--panel-soft);
}

.table-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.table-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(57, 216, 242, 0.22);
  border-radius: 0.45rem;
  background: rgba(18, 13, 24, 0.55);
  color: #e5fbff;
  font-size: 0.78rem;
  font-weight: 800;
}

.table-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.table-card p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.table-card__link {
  width: 100%;
  margin-top: auto;
  padding: 0 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  background: #100c16;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer a {
  flex: 0 0 auto;
  padding: 0 1rem;
}

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

  .table-card {
    min-height: auto;
  }

  .hero__backdrop {
    background-image:
      linear-gradient(180deg, rgba(18, 13, 24, 0.86) 0%, rgba(18, 13, 24, 0.64) 45%, var(--ink) 100%),
      url("images/Banner_RPG2.png");
    background-position: 58% center;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    justify-content: center;
  }

  .hero {
    min-height: 38rem;
    padding-top: 2rem;
  }

  h1 {
    max-width: 9ch;
  }

  .site-footer a {
    width: 100%;
  }
}
