:root {
  --night: #030d20;
  --navy: #06162f;
  --navy-soft: #0b2340;
  --ink: #112942;
  --gold: #c8963e;
  --gold-light: #f0cf87;
  --gold-pale: #f5e3bb;
  --ivory: #f4ecdc;
  --muted: #a8b0ba;
  --red: #8d2d22;
  --line: rgba(214, 168, 82, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--night);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("assets/the-grand-game-table-avatar.png");
  background-size: 900px;
  background-position: center;
  filter: blur(90px) saturate(.5);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--gold-light); color: var(--night); padding: 10px 16px; }
.skip-link:focus { top: 20px; }

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 96px);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3, 13, 32, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; font-family: Cinzel, Georgia, serif; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); box-shadow: 0 0 0 3px rgba(200,150,62,.12); }
.brand span { line-height: 1.2; }
.brand small { display: block; color: var(--gold-light); font: 500 9px/1.4 "Libre Franklin", sans-serif; letter-spacing: .22em; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 42px); color: #d8d4ca; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
nav a { padding: 12px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
nav a:hover, nav a:focus-visible { color: var(--gold-light); border-color: var(--gold); outline: 0; }
.nav-cta { border: 1px solid var(--gold) !important; padding: 10px 18px !important; color: var(--gold-light); }
.menu-button { display: none; color: var(--gold-light); background: transparent; border: 1px solid var(--gold); padding: 9px 14px; font: 600 11px "Libre Franklin"; text-transform: uppercase; letter-spacing: .14em; }

.hero { min-height: calc(100vh - 92px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5vw; padding: clamp(70px, 9vw, 140px) clamp(24px, 7vw, 112px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 1px; height: 42%; left: 50%; top: 29%; background: var(--line); }
.eyebrow { margin: 0 0 22px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .24em; font-size: 10px; font-weight: 600; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(50px, 6.5vw, 104px); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; }
h1 span { color: var(--gold-light); }
.intro { max-width: 600px; margin: 30px 0; color: #c7c9c8; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: 0; }
.button-gold { color: #111521; background: var(--gold-light); box-shadow: 0 8px 28px rgba(200,150,62,.2); }
.button-gold:hover { background: var(--ivory); }
.button-outline { color: var(--ivory); }
.button-outline:hover { color: var(--gold-light); background: rgba(200,150,62,.08); }
.status { margin: 32px 0 0; color: #a7afb8; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 11px; }
.status span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 5px rgba(240,207,135,.08); }
.hero-emblem { display: grid; place-items: center; position: relative; }
.emblem-halo { width: min(100%, 680px); aspect-ratio: 1; padding: 18px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 8px rgba(200,150,62,.04), 0 34px 90px rgba(0,0,0,.48); }
.emblem-halo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.section { padding: clamp(82px, 10vw, 150px) clamp(24px, 7vw, 112px); }
.section-intro { display: grid; grid-template-columns: 1fr minmax(280px, 430px); align-items: end; gap: 50px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-intro h2, .about h2, .contact h2 { margin: 0; font-size: clamp(38px, 5vw, 74px); line-height: 1.08; letter-spacing: -.025em; color: var(--gold-pale); }
.section-intro > p { color: var(--muted); margin: 0; }
.games { background: var(--navy); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.game-card { background: #081b33; border: 1px solid rgba(200,150,62,.25); position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(240,207,135,.08); pointer-events: none; }
.game-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 48px rgba(0,0,0,.28); }
.game-card.featured { background: #0a2440; border-color: rgba(240,207,135,.56); }
.card-visual { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--night); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.game-card:hover .card-visual img { transform: scale(1.045); filter: brightness(1.06); }
.card-details { min-height: 390px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.card-top, .card-footer { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.card-top > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: Cinzel, serif; }
.card-top p, .card-footer { margin: 0; color: #9ba6b0; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.card-body { position: relative; z-index: 1; max-width: 470px; }
.card-kicker { color: var(--gold); margin: 0 0 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.card-body h3 { color: var(--ivory); margin: 0 0 14px; font-size: clamp(34px, 4vw, 60px); font-weight: 500; }
.card-body > p:last-child { color: #adb5bd; margin: 0; max-width: 420px; }
.card-footer { border-top: 1px solid var(--line); padding-top: 18px; }
.card-footer span:last-child { color: var(--gold); font-family: Cinzel, serif; font-size: 14px; }

.about { display: grid; grid-template-columns: .45fr 1.15fr .7fr; gap: clamp(36px, 6vw, 92px); align-items: start; background: #efe4cf; color: #152238; }
.about .eyebrow { color: #886326; }
.about h2 { color: #10243c; }
.about-copy > p:last-child { margin: 28px 0 0; color: #48566a; font-size: 17px; line-height: 1.85; }
.about-emblem { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #a98242; border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(169,130,66,.08); font-family: Cinzel, serif; color: #8a6328; }
.about-emblem span { font-size: clamp(34px, 4vw, 60px); line-height: 1; }
.about-emblem small { margin-top: 8px; font: 500 8px "Libre Franklin"; text-transform: uppercase; letter-spacing: .2em; }
.craft-list { border-top: 1px solid rgba(17,41,66,.22); }
.craft-list div { display: grid; grid-template-columns: 35px 1fr; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(17,41,66,.22); }
.craft-list span { color: #98733b; font: 600 9px "Libre Franklin"; }
.craft-list p { margin: 0; font-family: Cinzel, serif; }

.updates { background: var(--night); }
.journal { border-top: 1px solid var(--line); }
.journal article { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; gap: 35px; padding: 33px 0; border-bottom: 1px solid var(--line); }
.journal time { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.journal div > p { margin: 0 0 5px; color: #85909b; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.journal h3 { margin: 0 0 6px; color: var(--ivory); font-size: clamp(23px, 3vw, 38px); }
.journal span { color: var(--muted); }

.contact { text-align: center; background: var(--navy); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-inner { max-width: 850px; margin: auto; padding: 60px 30px; border: 1px solid var(--line); }
.contact h2 { margin-bottom: 24px; }
.contact-inner > p:not(.eyebrow) { max-width: 590px; margin: 0 auto 28px; color: var(--muted); }
.contact small { display: block; margin-top: 18px; color: #778491; font-size: 10px; }

footer { min-height: 110px; padding: 28px clamp(24px, 7vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #84909b; border-top: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand { color: var(--gold-light); font-size: 10px; }
.footer-discord { color: var(--gold-light); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.footer-discord:hover, .footer-discord:focus-visible { color: var(--ivory); outline: 0; }

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .brand img { width: 43px; height: 43px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 28px; flex-direction: column; align-items: flex-start; background: #05152c; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero::after { display: none; }
  .hero-emblem { order: -1; }
  .emblem-halo { width: min(86vw, 560px); }
  .hero-copy { text-align: center; }
  .intro { margin-left: auto; margin-right: auto; }
  .hero-actions, .status { justify-content: center; }
  .section-intro { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .about { grid-template-columns: 1fr; }
  .about-emblem { width: 180px; }
}

@media (max-width: 650px) {
  .site-header { padding-inline: 18px; }
  .brand > span { display: none; }
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 46px; }
  .game-grid { grid-template-columns: 1fr; }
  .card-details { min-height: 360px; padding: 24px; }
  .journal article { grid-template-columns: 1fr; gap: 10px; }
  .contact-inner { padding: 44px 20px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
