@font-face {
  font-family: "Rye";
  src: url("assets/rye-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #140a06;
  --ink-soft: #21100a;
  --paper: #f3dfbd;
  --paper-soft: #d8bf96;
  --gold: #e5a536;
  --gold-light: #ffc95a;
  --rust: #a74123;
  --green: #4de076;
  --line: rgba(229, 165, 54, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 18%, rgba(131, 59, 28, 0.18), transparent 30rem),
    var(--ink);
  font-family: "Noto Sans", system-ui, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.25rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  color: #fff1d2;
  font-family: "Rye", serif;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img,
.footer-brand img {
  border-radius: 22%;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.38);
}

nav {
  display: flex;
  gap: 1.8rem;
}

nav a,
.header-cta {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
}

nav a {
  color: rgba(255, 239, 211, 0.8);
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold-light);
}

.header-cta {
  justify-self: end;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(255, 201, 90, 0.6);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop,
.final-cta-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.hero-backdrop {
  background-image: url("assets/hero.webp");
  transform: scale(1.025);
  animation: settle 10s ease-out both;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(13, 6, 4, 0.55) 0%, rgba(13, 6, 4, 0.18) 35%, rgba(13, 6, 4, 0.5) 77%, var(--ink) 100%),
    radial-gradient(circle at center, rgba(25, 10, 5, 0.08) 0%, rgba(14, 6, 3, 0.72) 76%);
}

.hero-content {
  width: min(800px, calc(100% - 2rem));
  padding: 7rem 0 5.5rem;
  text-align: center;
}

.hero-emblem {
  width: clamp(132px, 18vw, 220px);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

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

h1,
h2 {
  font-family: "Rye", Georgia, serif;
  font-weight: 400;
  line-height: 1.13;
}

h1 {
  margin-bottom: 1rem;
  color: #fff3d9;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  letter-spacing: 0.015em;
  text-shadow: 0 5px 0 rgba(76, 27, 13, 0.8), 0 11px 35px rgba(0, 0, 0, 0.7);
}

h1 span {
  display: block;
  color: var(--gold-light);
}

.hero-copy {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 242, 220, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--gold);
  border-radius: 0.3rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #1b0c06;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 35px rgba(209, 122, 27, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 15px 42px rgba(229, 165, 54, 0.4);
}

.button-ghost {
  color: #fff0d3;
  background: rgba(21, 8, 4, 0.5);
  backdrop-filter: blur(8px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 660px;
  margin: 3rem auto 0;
  padding: 1.15rem 0;
  list-style: none;
  border-block: 1px solid rgba(255, 215, 140, 0.25);
  background: rgba(16, 6, 3, 0.16);
  backdrop-filter: blur(6px);
}

.hero-facts li + li {
  border-left: 1px solid rgba(255, 215, 140, 0.22);
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: #fff0d1;
  font-size: 1.05rem;
}

.hero-facts span {
  color: rgba(255, 238, 208, 0.63);
  font-size: 0.75rem;
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 1.3rem;
  width: 28px;
  height: 44px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 228, 179, 0.42);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--gold-light);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.section {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 3.2rem;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 0;
  color: #ffedce;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(430px, 1.3fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 5rem);
}

.intro-copy > p {
  margin: 0 0 2rem;
  color: var(--paper-soft);
  font-size: 1.06rem;
}

.rule-list {
  display: grid;
  gap: 0.7rem;
}

.rule-list article {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.rule-list article > span {
  color: var(--gold);
  font-family: "Rye", serif;
  font-size: 1.35rem;
}

.rule-list h3 {
  margin-bottom: 0.1rem;
  color: #fff0d4;
  font-size: 1rem;
}

.rule-list p {
  margin: 0;
  color: #bba27e;
  font-size: 0.9rem;
}

.duel-frame {
  position: relative;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid rgba(236, 175, 70, 0.42);
  background: #090403;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.duel-frame::before,
.duel-frame::after {
  position: absolute;
  z-index: -1;
  width: 38%;
  height: 58%;
  content: "";
  filter: blur(50px);
  opacity: 0.24;
}

.duel-frame::before {
  top: -6%;
  left: -8%;
  background: var(--gold);
}

.duel-frame::after {
  right: -8%;
  bottom: -8%;
  background: var(--rust);
}

.duel-frame figcaption,
.gallery-item figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.42rem 0.72rem;
  color: #ffecc7;
  background: rgba(16, 7, 4, 0.8);
  border: 1px solid rgba(234, 173, 67, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.modes {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - 1180px) / 2));
  background:
    linear-gradient(rgba(12, 5, 3, 0.9), rgba(12, 5, 3, 0.93)),
    url("assets/town.webp") center / cover fixed;
  border-block: 1px solid rgba(229, 165, 54, 0.16);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mode-card {
  position: relative;
  min-height: 285px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(226, 169, 73, 0.26);
  background: linear-gradient(145deg, rgba(49, 21, 12, 0.76), rgba(18, 8, 5, 0.92));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.mode-card.featured {
  border-color: rgba(255, 194, 79, 0.6);
  transform: translateY(-1rem);
}

.mode-number {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold);
  font-family: "Rye", serif;
  font-size: 1.1rem;
}

.mode-card h3 {
  margin-bottom: 0.65rem;
  color: #fff0d4;
  font-family: "Rye", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.mode-card p {
  margin: 0;
  color: #c9b18b;
}

.mode-card::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 9rem;
  height: 9rem;
  content: "";
  border: 1px solid rgba(229, 165, 54, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(229, 165, 54, 0.04), 0 0 0 2.8rem rgba(229, 165, 54, 0.025);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 165, 54, 0.2);
  background: #0a0503;
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-wide {
  grid-column: 1 / -1;
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.final-cta-image {
  background-image: url("assets/feature.webp");
}

.final-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, var(--ink), rgba(18, 7, 4, 0.57) 30%, rgba(18, 7, 4, 0.78) 72%, var(--ink));
}

.final-cta-content {
  width: min(770px, calc(100% - 2rem));
  padding: 5rem 0;
}

.final-cta-content img {
  width: 130px;
  height: auto;
  margin: 0 auto 1.3rem;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5));
}

.final-cta h2 {
  margin-bottom: 2rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.7rem 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #fbe5be;
}

.footer-brand span,
.copyright {
  color: #9f8868;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: #d5bd97;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-light);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

@keyframes settle {
  from { transform: scale(1.09); }
  to { transform: scale(1.025); }
}

@keyframes scroll-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.3; }
  50% { transform: translate(-50%, 15px); opacity: 1; }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .duel-frame {
    transform: none;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card,
  .mode-card.featured {
    min-height: 0;
    transform: none;
  }

  .mode-number {
    margin-bottom: 1.5rem;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header,
  .section,
  footer {
    width: min(100% - 2rem, 1180px);
  }

  .brand span {
    display: none;
  }

  .header-cta {
    padding-inline: 0.82rem;
  }

  .hero-content {
    padding-top: 6.5rem;
  }

  .hero-emblem {
    width: 125px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-facts {
    gap: 0.5rem;
  }

  .hero-facts strong {
    font-size: 0.9rem;
  }

  .hero-facts span {
    font-size: 0.67rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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