:root {
  color-scheme: dark;
  --parchment: #fff1d2;
  --parchment-soft: #d8c4ba;
  --gold: #d59a35;
  --gold-bright: #f0bd55;
  --berry: #9e3154;
  --berry-dark: #64203a;
  --plum: #211321;
  --plum-deep: #120b13;
  --panel: rgb(39 22 40 / 92%);
  --line: rgb(240 189 85 / 23%);
  --max-width: 76rem;
  --shadow: 0 1.75rem 5rem rgb(0 0 0 / 42%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  background: var(--plum-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--parchment);
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  background:
    linear-gradient(rgb(18 11 19 / 90%), rgb(18 11 19 / 97%)),
    url("/assets/dungeon-wall.png") center top / cover fixed;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--plum-deep);
  background: var(--parchment);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 5.25rem;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}

nav a {
  color: var(--parchment-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-bright);
}

nav a[aria-current="page"] {
  color: var(--parchment);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid #e8b64f;
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  color: #241322;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, #efbe59, #c98427);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 35%),
    0 0.75rem 2rem rgb(0 0 0 / 22%);
  transition: transform 140ms ease, filter 140ms ease;
}

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

.button-small {
  min-height: 2.65rem;
  justify-self: end;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  display: grid;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: calc(100vh - 7.25rem);
  margin: 1rem auto;
  overflow: hidden;
  grid-template-columns: minmax(20rem, 0.93fr) minmax(20rem, 1.07fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem 1.5rem 1.5rem 0.35rem;
  background:
    radial-gradient(circle at 81% 42%, rgb(158 49 84 / 27%), transparent 38%),
    linear-gradient(135deg, rgb(47 25 45 / 97%), rgb(26 15 28 / 95%));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-logo-crop {
  position: relative;
  width: min(29rem, 108%);
  aspect-ratio: 1050 / 480;
  margin: 0 0 1.25rem -1.4rem;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  top: -25%;
  left: -11%;
  display: block;
  width: 122%;
  max-width: none;
  height: auto;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  margin-top: 1.75rem;
  align-items: center;
  gap: 1.25rem;
}

.text-link {
  color: var(--parchment-soft);
  font-size: 0.94rem;
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.quick-facts {
  display: flex;
  margin: 2rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.quick-facts li {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 241 210 / 13%);
  border-radius: 999px;
  color: #bea9b4;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgb(14 8 15 / 32%);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
  padding: 2rem 2rem 2rem 0;
}

.hero-art img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 42rem);
  height: auto;
  overflow: hidden;
  border: 1px solid rgb(240 189 85 / 32%);
  border-radius: 1rem 1rem 1rem 0.25rem;
  image-rendering: pixelated;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 38%);
}

.hero-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(138 61 93 / 32%), transparent 68%);
}

.intro-strip {
  display: flex;
  width: min(62rem, calc(100% - 3rem));
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 0 5rem;
  text-align: center;
}

.intro-strip p {
  max-width: 48rem;
  margin: 0;
  color: var(--parchment-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.5;
}

.section {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

.section-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-heading > p:last-child,
.section-heading > div > p:last-child {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--parchment-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.feature-card {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: linear-gradient(145deg, rgb(49 27 48 / 92%), rgb(30 17 31 / 92%));
}

.feature-card::after {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  color: rgb(240 189 85 / 5%);
  content: "◆";
  font-size: 9rem;
  line-height: 1;
}

.feature-number {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 3rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--parchment-soft);
  line-height: 1.65;
}

.news-preview {
  border-top: 1px solid var(--line);
}

.news-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(20rem, 1.3fr);
  border: 1px solid var(--line);
  border-radius: 1.25rem 1.25rem 1.25rem 0.3rem;
  background: var(--panel);
}

.news-card-art {
  display: grid;
  min-height: 20rem;
  place-items: center;
  background:
    radial-gradient(circle, rgb(158 49 84 / 25%), transparent 60%),
    url("/assets/dungeon-wall.png") center / cover;
}

.news-card-art span {
  display: grid;
  width: 7rem;
  height: 7rem;
  place-items: center;
  border: 2px solid rgb(240 189 85 / 48%);
  border-radius: 50% 50% 50% 20%;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%);
}

.news-card-copy {
  display: flex;
  padding: clamp(2rem, 5vw, 4rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.post-meta {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.news-card-copy h3 a {
  text-decoration: none;
}

.news-card-copy h3 a:hover,
.news-card-copy h3 a:focus-visible {
  color: var(--gold-bright);
}

.news-card-copy > p:not(.post-meta) {
  max-width: 42rem;
  margin: 1rem 0 1.5rem;
  color: var(--parchment-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.community-section {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-block: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgb(240 189 85 / 36%);
  border-radius: 1.5rem 1.5rem 1.5rem 0.35rem;
  background:
    linear-gradient(120deg, rgb(103 31 62 / 88%), rgb(51 22 46 / 95%)),
    url("/assets/dungeon-wall.png") center / cover;
  box-shadow: var(--shadow);
}

.community-copy {
  position: relative;
  z-index: 2;
}

.community-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.community-copy > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.25rem 0 1.75rem;
  color: #e0cdd2;
  line-height: 1.7;
}

.community-party {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 40rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 1rem 1rem rgb(0 0 0 / 45%));
}

.press-section {
  border-bottom: 1px solid var(--line);
}

.press-heading {
  align-items: center;
}

.press-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.fact-list,
.press-contact {
  margin: 0;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--panel);
}

.fact-list > div {
  display: grid;
  padding: 0.85rem 0;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgb(255 241 210 / 10%);
}

.fact-list > div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: #b99fae;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  font-weight: 800;
}

.press-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.press-contact img {
  width: min(100%, 24rem);
  height: auto;
  margin: -2.4rem 0;
}

.press-contact p {
  margin: 0 0 0.4rem;
  color: var(--parchment-soft);
}

.press-contact > a {
  color: var(--gold-bright);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.asset-links {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.asset-links a {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgb(255 241 210 / 15%);
  border-radius: 0.5rem;
  color: var(--parchment-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.asset-links a:hover,
.asset-links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.site-footer {
  display: grid;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
  grid-template-columns: 1.4fr 1fr 0.75fr;
  gap: 3rem;
  color: #aa939f;
  font-size: 0.85rem;
}

.site-footer .wordmark {
  color: var(--parchment);
}

.site-footer p {
  max-width: 25rem;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 0.8rem 1.5rem;
}

.footer-links a,
.footer-meta a {
  font-weight: 800;
  text-decoration: none;
}

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

.footer-meta {
  text-align: right;
}

.bevy-credit {
  display: inline-flex;
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.55rem;
  color: #aa939f;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bevy-credit img {
  width: 4.75rem;
  height: auto;
  opacity: 0.72;
  transition: opacity 160ms ease;
}

.bevy-credit:hover img,
.bevy-credit:focus-visible img {
  opacity: 1;
}

.page-hero {
  display: grid;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 31rem;
  margin: 1rem auto 0;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem 1.5rem 1.5rem 0.35rem;
  background:
    radial-gradient(circle at 78% 35%, rgb(158 49 84 / 25%), transparent 40%),
    linear-gradient(135deg, rgb(47 25 45 / 97%), rgb(26 15 28 / 96%));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero > img {
  display: block;
  width: min(100%, 38rem);
  height: auto;
  image-rendering: pixelated;
}

.about-story {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 6vw, 7rem);
}

.about-copy p {
  margin: 0 0 1.5rem;
  color: var(--parchment-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.65;
}

.team-grid {
  display: grid;
  padding-top: 0;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-card {
  min-height: 19rem;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--panel);
}

.team-card-benny {
  box-shadow: inset 0 0.25rem 0 var(--berry);
}

.team-card-liz {
  box-shadow: inset 0 0.25rem 0 var(--gold);
}

.team-name {
  margin: 0 0 4rem;
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.team-card p:last-child {
  margin-bottom: 0;
  color: var(--parchment-soft);
  line-height: 1.7;
}

.page-hero-news img {
  filter: drop-shadow(0 1rem 1rem rgb(0 0 0 / 40%));
}

.article-list {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 6vw, 7rem);
}

.full-post {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--panel);
}

.full-post h2 {
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.full-post > p:not(.post-meta) {
  color: var(--parchment-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.full-post .button {
  margin-top: 1rem;
}

.docs-badge {
  display: grid;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  align-content: center;
  border: 2px solid rgb(240 189 85 / 38%);
  border-radius: 50% 50% 50% 20%;
  background: radial-gradient(circle, rgb(158 49 84 / 28%), transparent 68%);
}

.docs-badge span {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 0.9;
}

.docs-badge small {
  color: var(--parchment-soft);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.docs-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem 0.8rem 0.8rem 0.2rem;
  background: var(--panel);
}

.docs-sidebar p {
  margin: 0 0 0.65rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-sidebar a {
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--parchment-soft);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--parchment);
  background: rgb(255 241 210 / 7%);
}

.docs-content {
  min-width: 0;
}

.docs-intro {
  margin: 0 0 4rem;
  color: var(--parchment-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.65;
}

.docs-content > section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.docs-content h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.docs-content section > p:not(.eyebrow),
.docs-content details p {
  color: var(--parchment-soft);
  line-height: 1.75;
}

.docs-content details {
  border-bottom: 1px solid rgb(255 241 210 / 11%);
}

.docs-content summary {
  padding: 1.25rem 0;
  color: var(--parchment);
  font-weight: 900;
  cursor: pointer;
}

.docs-content details p {
  margin-top: 0;
  padding-right: 2rem;
  padding-bottom: 1rem;
}

.docs-content a:not(.button) {
  color: var(--gold-bright);
}

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

  nav {
    grid-row: 2;
    grid-column: 1 / -1;
    padding: 0 0 0.9rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 3rem 1.5rem 0;
    text-align: center;
  }

  .hero-logo-crop {
    margin-right: auto;
    margin-left: auto;
  }

  h1 {
    margin-inline: auto;
  }

  .hero-actions,
  .quick-facts {
    justify-content: center;
  }

  .hero-art {
    padding: 0 1.5rem 1.5rem;
  }

  .feature-grid,
  .press-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .community-section,
  .page-hero,
  .about-story,
  .article-list {
    grid-template-columns: 1fr;
  }

  .community-copy {
    text-align: center;
  }

  .community-copy h2,
  .community-party,
  .page-hero h1,
  .page-hero > img {
    margin-inline: auto;
  }

  .community-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .page-hero {
    text-align: center;
  }

  .about-story,
  .article-list {
    gap: 1rem;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-sidebar p {
    grid-column: 1 / -1;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .hero {
    width: min(100% - 1.2rem, var(--max-width));
    border-radius: 1rem 1rem 1rem 0.3rem;
  }

  .hero-copy {
    padding-inline: 1rem;
  }

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

  .steam-button {
    font-size: 0.75rem;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-art {
    min-height: 13rem;
  }

  .community-section {
    padding-inline: 1.25rem;
  }

  .fact-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .footer-meta {
    grid-column: auto;
  }

  .docs-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
