:root {
  --bg: #06060d;
  --bg-raised: #0c0c1c;
  --surface: #11122a;
  --surface-2: #17183a;
  --line: #1c1c3a;
  --line-strong: #2b2a6b;
  --border: #3a3a85;
  --text: #e9e9f7;
  --text-strong: #ffffff;
  --text-soft: #c9cbee;
  --lavender: #b8b9e8;
  --muted: #8586c2;
  --gold: #f4b740;
  --gold-hover: #ffd27a;
  --on-gold: #1a1206;
  --green: #8fe3a0;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--gold-hover);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--text-strong);
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--on-gold);
  box-shadow: 0 0 32px rgba(244, 183, 64, 0.35);
}

.btn-ghost {
  color: var(--text-strong);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text-strong);
  border-color: var(--lavender);
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}

.brand:hover {
  color: var(--text-strong);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--line-strong), 0 0 18px rgba(244, 183, 64, 0.25);
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:not(.btn):hover {
  color: var(--text-strong);
}

.site-nav .btn {
  min-height: 44px;
  padding: 0 20px;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lavender);
  font-size: 14px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 520px;
  font-size: 20px;
  color: var(--text-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-art {
  flex: 1 1 520px;
  min-width: 0;
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  right: 4%;
  top: 2%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 183, 64, 0.22), rgba(244, 183, 64, 0) 65%);
}

.hero-art img {
  position: relative;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 66% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 66% 66% at 50% 50%, #000 52%, transparent 100%);
}

/* Banded sections */
.band {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Featured game */
.pill-status {
  color: var(--green);
  border: 1px solid #2f6b3c;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
}

.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.placeholder {
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  padding: 16px;
}

.featured-media {
  flex: 3 1 560px;
  min-width: 0;
  aspect-ratio: 16 / 9;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.featured-copy {
  flex: 2 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.featured-copy p {
  font-size: 19px;
  color: #d6d7f3;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  background: #1b1b40;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.featured-copy .actions {
  gap: 14px;
  margin-top: 8px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid #23234a;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  border-color: var(--border);
  color: inherit;
  transform: translateY(-2px);
}

.card-art {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h3 {
  font-size: 22px;
  line-height: 1.25;
}

.card-body p {
  color: var(--lavender);
  font-size: 15px;
}

.card-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-kicker.is-dev {
  color: var(--green);
}

.card-meta {
  color: var(--muted);
  font-size: 14px;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 112px;
}

.about-portrait {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.about-portrait img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 80px rgba(108, 92, 231, 0.25);
}

.about-copy {
  flex: 2 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-copy p {
  font-size: 19px;
  color: #d6d7f3;
}

/* Newsletter */
.newsletter {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: #0f0f26;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  overflow: hidden;
}

.newsletter h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
}

.newsletter p {
  color: var(--text-soft);
  max-width: 520px;
}

.sparkle {
  position: absolute;
  pointer-events: none;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}

.newsletter input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-strong);
  font: inherit;
}

.newsletter input::placeholder {
  color: var(--muted);
}

.newsletter button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer .brand img {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--text-strong);
}

.copyright {
  color: var(--muted);
  font-size: 14px;
}

/* Legal pages and blog posts */
.legal,
.post {
  max-width: 800px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal h1,
.post h1 {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-top: 12px;
}

.legal h2,
.post h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3,
.post h3 {
  font-size: 18px;
  color: var(--lavender);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal p,
.post p,
.legal ul,
.post ul {
  color: var(--text-soft);
  margin: 0 0 16px;
}

.legal ul,
.post ul {
  padding-left: 24px;
}

.legal li + li,
.post li + li {
  margin-top: 6px;
}

.legal strong,
.post strong {
  color: var(--text-strong);
}

.legal code,
.post code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
}

.legal .eyebrow,
.post .eyebrow {
  color: var(--gold);
}

.legal .legal-meta,
.post .legal-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0 40px;
}

.post ol {
  color: var(--text-soft);
  margin: 0 0 16px;
  padding-left: 24px;
}

.post a {
  color: var(--gold);
}

.post .table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
}

.post table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.post th,
.post td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.post th {
  color: var(--text-strong);
  font-weight: 700;
}

.post .sign-off {
  color: var(--muted);
  font-style: italic;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .section,
  .about {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-portrait img {
    width: 220px;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card {
    transition: none;
  }
}
