/*
  Relic Realms: the website's one stylesheet (30 Sep 2026, the launch presentation pass).
  Hand-written. No scripts and no outside fonts: the headings use Lora, served from fonts/ (SIL Open Font License,
  its text inside the font file); everything else uses the reader's own system fonts. The only images are the brand's
  own (brand/) and genuine screenshots and item icons from the game (img/).
  One dark look, in the brand's ink, parchment, crimson and gold. Every text colour pair meets WCAG AA (4.5:1),
  and the focus ring meets 3:1.
*/

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-var-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #120e0b;
  --bg-alt: #19130f;
  --surface: #211a15;
  --surface-alt: #2b221b;
  --border: #3d3128;
  --rule: #5c4b3d;
  --text: #f3ece1;
  --muted: #c9baa6;
  --faint: #a8998a;
  --gold: #e3b866;
  --gold-soft: #3a2d17;
  --crimson: #a61e33;
  --crimson-hover: #c22a41;
  --crimson-soft: #3b1219;
  --link: #f0c878;
  --link-hover: #ffe2a8;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --focus: #8cc3ff;
  --code-bg: #2e241c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif;
  --font-display: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;

  --measure: 44rem;
  --wide: 72rem;
  --radius: 0.7rem;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

[id] {
  scroll-margin-top: 5rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3rem);
  margin: 0.4rem 0 0.9rem;
}

h2 {
  font-size: clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  margin: 2.4rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.7rem 0 0.45rem;
}

p,
ul,
ol,
dl,
table,
blockquote,
pre {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.3rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.08em 0.4em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.3em;
  color: #ffe9c2;
}

pre {
  padding: 0.75rem 1rem;
  background: var(--code-bg);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 1em;
}

h2 code,
h3 code {
  font-size: 0.8em;
}

blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  margin-left: 0;
  margin-right: 0;
}

strong {
  font-weight: 700;
}

/* Skip link and focus */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--gold);
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

main:focus {
  outline: none;
}

/* Layout */

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

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

main {
  display: block;
  padding-block: 1.75rem 3.5rem;
}

main.home,
main.shop {
  padding-block: 0 3.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.2rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark .emblem {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
}

.wordmark:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.site-nav a.nav-discord {
  margin-left: 0.3rem;
  background: var(--discord);
  color: #fff;
}

.site-nav a.nav-discord:hover {
  background: var(--discord-hover);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--crimson);
  color: #fff;
}

.button-primary:hover {
  background: var(--crimson-hover);
  color: #fff;
}

.button-discord {
  background: var(--discord);
  color: #fff;
}

.button-discord:hover {
  background: var(--discord-hover);
  color: #fff;
}

.button-ghost {
  border-color: rgb(243 236 225 / 0.55);
  background: rgb(18 14 11 / 0.35);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--text);
  background: rgb(18 14 11 / 0.6);
  color: var(--text);
}

.button[aria-disabled="true"] {
  border-color: var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  cursor: default;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

/* Text blocks */

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-strong {
  background: var(--crimson-soft);
  border-left-color: var(--crimson-hover);
}

.callout-title {
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.effective {
  color: var(--muted);
  font-style: italic;
}

.address {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: #ffe2a8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Contents box */

.toc {
  margin: 1.25rem 0 0.5rem;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.toc ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2 14rem;
  column-gap: 2rem;
}

.toc li {
  margin: 0 0 0.25rem;
  break-inside: avoid;
}

.toc li + li {
  margin-top: 0;
}

/* Lists with a job */

.rules > li {
  padding-left: 0.25rem;
}

.rules > li + li {
  margin-top: 0.6rem;
}

.rules > li::marker,
.steps > li::marker {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.kinds {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
}

.kinds dt {
  font-weight: 600;
}

.kinds dd {
  margin: 0;
}

/* Tables */

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.97rem;
}

caption {
  padding-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-alt);
}

tbody th {
  font-weight: 600;
}

td code,
th code {
  overflow-wrap: anywhere;
}

/* Inner pages: a quiet banner above the text */

.page-banner {
  margin-bottom: 1.5rem;
  padding-block: 2.2rem 1.6rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgb(166 30 51 / 0.28), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-banner .prose {
  max-width: none;
}

.page-banner h1,
.page-banner .lede {
  max-width: var(--measure);
}

.page-banner h1 {
  margin: 0 0 0.5rem;
}

.page-banner .lede {
  margin: 0;
}

/* The home page: the hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 46rem);
  padding-block: 7rem 3rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgb(18 14 11 / 0.15) 0%, rgb(18 14 11 / 0.35) 45%, rgb(18 14 11 / 0.96) 100%),
    url("img/capital-dusk.jpg");
  background-position: center 35%;
  background-size: cover;
  isolation: isolate;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 40rem;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.7);
}

.hero-emblem {
  display: block;
  width: 5.5rem;
  height: auto;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.6));
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .tagline {
  margin: 0 0 0.9rem;
  color: #ffe2a8;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero .lede {
  color: var(--text);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.join-card {
  padding: 1.2rem 1.35rem;
  background: rgb(18 14 11 / 0.86);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.join-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.join-card p {
  margin-bottom: 0.6rem;
}

.join-card .address {
  margin: 0.2rem 0 0.5rem;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  color: #ffe9c2;
  font-family: var(--font-mono);
}

.join-card ul {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* The home page: sections */

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin-top: 0;
}

.section-head p {
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillars > li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pillars .big {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.pillars strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.feature {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding-block: 2rem;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
}

.feature p {
  color: var(--muted);
}

.feature ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature li::marker {
  color: var(--gold);
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.45rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > li {
  margin: 0;
}

.card {
  height: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--crimson);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery > li {
  margin: 0;
}

.gallery a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.gallery a:hover img {
  border-color: var(--gold);
}

.gallery a:hover {
  color: var(--text);
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.product-strip > li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-strip strong {
  display: block;
  font-family: var(--font-display);
}

.product-strip span {
  color: var(--gold);
  font-weight: 700;
}

.band {
  padding-block: 3rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgb(88 101 242 / 0.25), transparent 60%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.band-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.band h2 {
  margin: 0 0 0.5rem;
}

.band p {
  margin: 0;
  color: var(--muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust > li {
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* The store page */

.shop-hero {
  padding-block: 4.5rem 2.5rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgb(18 14 11 / 0.55) 0%, rgb(18 14 11 / 0.95) 100%),
    url("img/home-night.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.shop-hero h1 {
  margin: 0 0 0.6rem;
}

.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.promise > li {
  margin: 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--text);
  font-size: 0.97rem;
}

.promise > li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.products {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products > li {
  margin: 0;
}

.product {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.2rem);
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  min-height: 14rem;
  background: var(--bg-alt);
}

.product-visual > img.photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.icon-row {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.5rem;
  background: rgb(18 14 11 / 0.82);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  list-style: none;
}

.icon-row > li {
  margin: 0;
}

.icon-row img {
  display: block;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.product-body {
  padding: 1.3rem 1.4rem 1.4rem;
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.5rem;
}

.product-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.price {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.price small {
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
}

.product-body > p {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.facts dt {
  color: var(--faint);
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.tag {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  padding: 0.15rem 0.55rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
}

.swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  vertical-align: -0.05em;
}

.chat-demo {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  height: 100%;
  min-height: 14rem;
  margin: 0;
  padding: 1.4rem 1.5rem;
  background:
    linear-gradient(rgb(18 14 11 / 0.8), rgb(18 14 11 / 0.8)),
    url("img/capital-day-800.jpg") center / cover;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  list-style: none;
}

.chat-demo > li {
  margin: 0;
  padding: 0.3rem 0.6rem;
  background: rgb(0 0 0 / 0.55);
  border-radius: 0.3rem;
  color: #f4f4f4;
}

.chat-demo .mark {
  color: #7fd3e8;
  font-weight: 700;
}

.chat-note {
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  padding: 0.15rem 0.55rem;
  background: rgb(18 14 11 / 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.fx-demo {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 14rem;
  background:
    radial-gradient(circle at 50% 58%, rgb(255 170 80 / 0.22), transparent 38%),
    linear-gradient(rgb(18 14 11 / 0.72), rgb(18 14 11 / 0.72)),
    url("img/road-night-800.jpg") center / cover;
}

.fx-kinds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-kinds > li {
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: rgb(18 14 11 / 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
}

.try {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--gold-soft);
  border: 1px solid #6b5327;
  border-radius: 0.5rem;
  font-size: 0.96rem;
}

.try strong {
  color: #ffe2a8;
}

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.buy .note {
  color: var(--faint);
  font-size: 0.9rem;
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-flow > li {
  position: relative;
  margin: 0;
  padding: 2.4rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  font-size: 0.96rem;
}

.steps-flow > li::before {
  content: counter(step);
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--crimson);
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.steps-flow strong {
  display: block;
  margin-bottom: 0.2rem;
}

.never {
  columns: 2 14rem;
  column-gap: 2rem;
}

/* The supporter's colours, as the game sets them */

.c-seafoam { color: #a8e0d8; }
.c-rosewater { color: #f2c4ce; }
.c-sandstone { color: #e6d3a8; }
.c-heather { color: #d9c6ea; }
.c-sky { color: #b9d7f2; }
.sw-seafoam { background: #a8e0d8; }
.sw-rosewater { background: #f2c4ce; }
.sw-sandstone { background: #e6d3a8; }
.sw-heather { background: #d9c6ea; }
.sw-sky { background: #b9d7f2; }

/* Small helpers */

.spaced {
  margin-top: 1.2rem;
}

.section-title {
  margin-top: 0;
}

/* Footer */

.site-footer {
  padding-block: 2.2rem 2.6rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem 2.5rem;
  margin-bottom: 1.4rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-brand img {
  width: 1.8rem;
  height: 1.8rem;
}

.footer-title {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.15rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.15rem;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.disclaimer {
  max-width: var(--measure);
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
}

/* Wider screens */

@media (min-width: 48rem) {
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .feature.flip > .shot {
    order: 2;
  }

  .band-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

/* Phones */

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  /* two rows of links would cover a fifth of a phone's screen if they followed the page down */
  .site-header {
    position: static;
  }

  .header-inner {
    justify-content: center;
  }

  .site-nav ul {
    justify-content: center;
  }

  .site-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 0;
    padding-block: 3.5rem 2rem;
    background-image:
      linear-gradient(180deg, rgb(18 14 11 / 0.2) 0%, rgb(18 14 11 / 0.55) 40%, rgb(18 14 11 / 0.97) 100%),
      url("img/capital-dusk-800.jpg");
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .section {
    padding-block: 2.5rem;
  }

  .kinds,
  .facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .kinds dd,
  .facts dd {
    margin-bottom: 0.5rem;
  }

  .icon-row img {
    width: 40px;
    height: 40px;
  }
}

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

@media (forced-colors: active) {
  .button,
  .site-nav a.nav-discord,
  .badge,
  .card,
  .product {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header,
  .band,
  .button-row,
  .buy {
    display: none;
  }

  body,
  .site-footer,
  .card,
  .callout,
  .toc,
  .product,
  table {
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  a {
    color: #000;
  }
}
