:root {
  --ground: #120f1b;
  --ground-deep: #0b0910;
  --ground-lift: #2a1f35;
  --tint: rgba(30, 21, 27, 0.74);
  --tint-strong: rgba(24, 17, 22, 0.9);
  --tint-light: rgba(240, 214, 150, 0.1);
  --brass: #c9a45c;
  --brass-bright: #ead08c;
  --brass-deep: #8c6a2e;
  --hairline: rgba(201, 164, 92, 0.42);
  --border: rgba(201, 164, 92, 0.34);
  --border-strong: rgba(201, 164, 92, 0.55);
  --highlight: rgba(234, 208, 140, 0.5);
  --rule: rgba(201, 164, 92, 0.28);
  --ink: #f3eada;
  --parchment: #b8a98e;
  --ink-on-brass: #2a1b08;
  --arcane: #5cd3c4;
  --arcane-deep: #1e6f68;
  --arcane-glow: rgba(92, 211, 196, 0.35);
  --danger: #d9584c;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-text: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-control: 12px;
  --radius-card: 18px;
  --measure: 68ch;
  --gutter: clamp(16px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--ground-lift) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30, 111, 104, 0.18) 0%, transparent 70%),
    linear-gradient(var(--ground), var(--ground-deep));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--arcane);
  border-bottom-color: var(--arcane);
}

a:focus-visible {
  outline: 2px solid var(--arcane);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  border: 0;
  margin: 0;
}

/* Header */

.site-header {
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--tint-strong);
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  color: var(--ink);
}

.brand:hover,
.brand:focus-visible {
  color: var(--brass-bright);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a {
  border-bottom-color: transparent;
  color: var(--parchment);
}

.site-nav a[aria-current="page"] {
  color: var(--brass-bright);
  border-bottom-color: var(--hairline);
}

/* Main */

main {
  flex: 1;
  padding-block: clamp(40px, 8vw, 88px);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  color: var(--brass-bright);
  font-weight: 700;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--arcane);
  background: var(--tint-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
}

.page-title {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--parchment);
  font-size: 0.9rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--parchment);
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass);
  background: var(--tint);
  color: var(--parchment);
  font-size: 0.92rem;
}

.notice.notice-arcane {
  border-left-color: var(--arcane);
}

.notice.notice-danger {
  border-left-color: var(--danger);
}

.notice strong {
  color: var(--ink);
}

/* Landing */

.hero {
  display: grid;
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.hero-text {
  display: grid;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  font-weight: 500;
  max-width: 24ch;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  object-fit: cover;
  box-shadow:
    0 0 0 4px var(--ground),
    0 18px 30px -12px rgba(0, 0, 0, 0.8);
}

/* Game card */

.game-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  border-top-color: var(--highlight);
  box-shadow:
    inset 0 -2px 8px rgba(0, 0, 0, 0.38),
    0 30px 60px -28px rgba(0, 0, 0, 0.85);
  padding: clamp(24px, 5vw, 44px);
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.game-backdrop {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-image: url("assets/card-bg.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: blur(18px) saturate(0.85);
  transform: scale(1.06);
}

.game-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 15, 27, 0.62), rgba(18, 15, 27, 0.74) 50%, rgba(11, 9, 16, 0.84));
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(201, 164, 92, 0.75);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}

.game-card::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.game-card::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

.game-shots {
  display: flex;
  justify-content: center;
  gap: 4%;
  width: 100%;
}

.phone {
  margin: 0;
  width: 44%;
  max-width: 220px;
  padding: 7px;
  border-radius: 28px;
  border: 1.5px solid var(--brass);
  background: linear-gradient(180deg, #1c1626, var(--ground-deep));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    0 30px 50px -22px rgba(0, 0, 0, 0.95),
    0 0 50px -20px var(--arcane-glow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.game-body {
  display: grid;
  gap: 16px;
  justify-items: center;
  min-width: 0;
}

.game-title {
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.game-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 24%;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 12px 22px -10px rgba(0, 0, 0, 0.8),
    0 0 30px -8px var(--arcane-glow);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  border-top-color: var(--highlight);
  background: linear-gradient(180deg, rgba(255, 236, 200, 0.08), rgba(255, 236, 200, 0) 60%), var(--tint-strong);
  backdrop-filter: blur(8px);
  color: var(--brass-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arcane);
  box-shadow: 0 0 8px var(--arcane-glow);
}

.game-text {
  color: var(--parchment);
  font-size: 1.05rem;
  max-width: 40ch;
  display: grid;
  gap: 0.8em;
}

.game-text p:first-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.3;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px;
  font-size: 0.85rem;
  color: var(--parchment);
  background: var(--tint-strong);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-footer a {
  color: var(--parchment);
  border-bottom-color: transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brass-bright);
  border-bottom-color: var(--hairline);
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 900px) {
  .game-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    justify-items: start;
    text-align: left;
    padding: clamp(32px, 4vw, 48px);
  }

  .game-shots {
    display: block;
    position: relative;
    height: 472px;
    perspective: 1200px;
  }

  .phone {
    position: absolute;
    top: 0;
    width: 196px;
    max-width: none;
  }

  .phone-a {
    left: 8px;
    transform: rotateY(-6deg);
    z-index: 2;
  }

  .phone-b {
    left: 182px;
    top: 24px;
    transform: rotateY(4deg);
    z-index: 1;
  }

  .game-body {
    justify-items: start;
  }

}

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