/*
  Creative Directive
  Shared styles for every page.

  Beginner tip: the main colors and spacing values live in :root below.
  Changing a value there updates the entire website.
*/

:root {
  color-scheme: dark;
  --color-bg: #0b0b0d;
  --color-bg-soft: #111114;
  --color-panel: #17171b;
  --color-panel-raised: #1d1d22;
  --color-text: #ece8e1;
  --color-muted: #aaa6a0;
  --color-accent: #b9481d;
  --color-accent-strong: #ee6b2b;
  --color-border: #38332f;
  --color-focus: #ffd4ad;
  --shadow-soft: 0 18px 45px rgb(0 0 0 / 24%);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --content-width: 72rem;
  --reading-width: 45rem;
  --radius: 0.35rem;
  --space-section: clamp(4rem, 9vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(185 72 29 / 11%), transparent 29rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--color-accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--color-focus);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  background: var(--color-accent);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 800;
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.narrow {
  max-width: var(--reading-width);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #e5a17c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.75rem, 8vw, 6.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

p {
  margin: 0 0 1.25rem;
}

.lede {
  max-width: 42rem;
  color: #d0ccc5;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

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

.meta,
.card-kicker {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section {
  padding-block: var(--space-section);
}

.section + .section {
  border-top: 1px solid rgb(52 50 56 / 70%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 31rem);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading > :last-child {
  margin-bottom: 0.35rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.section-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--color-accent-strong);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button:not(.button-disabled):hover {
  border-color: #ff9a62;
  background: #cd5320;
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.button-secondary:not(.button-disabled):hover {
  border-color: var(--color-muted);
  background: var(--color-panel);
}

.text-link {
  font-weight: 800;
}

/* Shared header and navigation */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--color-border);
  background: rgb(11 11 13 / 92%);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  line-height: 1.15;
}

.brand-name {
  display: block;
}

.brand-tagline {
  display: block;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-icon {
  position: relative;
  display: block;
  width: 2.65rem;
  flex: 0 0 2.65rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.brand-icon img {
  position: absolute;
  width: 5rem;
  max-width: none;
  height: 5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.78rem;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--color-panel);
  color: var(--color-text);
}

.main-nav a[aria-current="page"] {
  background: rgb(185 72 29 / 18%);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--color-accent-strong);
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
  font-size: 0.86rem;
  font-weight: 800;
}

/* Hero and atmospheric visual */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 13vw, 10rem);
  border-bottom: 1px solid var(--color-border);
}

.hero::after {
  position: absolute;
  width: min(34rem, 70vw);
  aspect-ratio: 1;
  top: 50%;
  right: -10rem;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgb(238 107 43 / 32%);
  box-shadow:
    0 0 0 5rem rgb(185 72 29 / 3%),
    0 0 0 10rem rgb(185 72 29 / 2%);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-note {
  max-width: 38rem;
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-accent);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.sigil-panel,
.image-placeholder {
  position: relative;
  display: grid;
  min-height: 23rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 49.8%, rgb(238 107 43 / 20%) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgb(238 107 43 / 12%) 50%, transparent 50.2%),
    var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.sigil-panel::before {
  width: 9rem;
  aspect-ratio: 1;
  rotate: 45deg;
  border: 1px solid var(--color-accent-strong);
  box-shadow:
    inset 0 0 0 1.5rem var(--color-panel),
    inset 0 0 0 1.6rem rgb(238 107 43 / 35%);
  content: "";
}

.placeholder-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  background: rgb(11 11 13 / 82%);
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--color-panel-raised), var(--color-panel));
  box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
}

.card p {
  color: #c3bfb9;
}

.card .cluster,
.card .text-link {
  margin-top: auto;
}

.card-kicker {
  margin-bottom: 0.8rem;
  color: #e2a17c;
}

/* Content tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

.content-tag {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid #66636a;
  border-radius: 999px;
  background: #29292f;
  color: #f1eee8;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.1;
}

.content-tag--ember {
  border-color: #b95a2c;
  background: #482518;
  color: #ffc4a3;
}

.content-tag--red {
  border-color: #c8505d;
  background: #471c22;
  color: #ffc2c8;
}

.content-tag--gold {
  border-color: #bc922d;
  background: #433615;
  color: #ffe6a0;
}

.content-tag--green {
  border-color: #3a9c6e;
  background: #153b29;
  color: #baf3d4;
}

.content-tag--teal {
  border-color: #359aa1;
  background: #12383b;
  color: #b7f0f1;
}

.content-tag--blue {
  border-color: #5085cf;
  background: #182d4b;
  color: #c6dcff;
}

.content-tag--violet {
  border-color: #8b69cb;
  background: #30224d;
  color: #e2d2ff;
}

.content-tag--pink {
  border-color: #c8649b;
  background: #49223a;
  color: #ffd0e9;
}

.content-tag--neutral {
  border-color: #66636a;
  background: #29292f;
  color: #f1eee8;
}

.content-tag--rainbow {
  border-color: rgb(255 255 255 / 72%);
  background: linear-gradient(
    100deg,
    #ff6767,
    #ffad4d,
    #ffe16a,
    #69d39a,
    #67cfe8,
    #8e86f2,
    #e37ac2
  );
  color: #0b0b0d;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%) inset;
  font-weight: 950;
}

.feature-card {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.quote-panel {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  background: var(--color-panel);
}

.quote-panel blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.quote-panel cite {
  display: block;
  margin-top: 1rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-strip {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.news-strip p {
  margin: 0;
}

.news-title {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

/* Inner-page introductions and breadcrumbs */

.page-intro {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--color-border);
}

.page-intro h1,
.article-header h1 {
  max-width: 58rem;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.45rem;
  color: #66636a;
  content: "/";
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

/* Lore archive */

.search-panel {
  margin-bottom: 3.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--color-border);
  background: var(--color-panel);
}

.search-panel label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.search-help {
  margin-top: 0.6rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.search-input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #504d55;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.search-input::placeholder {
  color: #7f7b82;
}

.lore-category {
  margin-top: 3.75rem;
}

.lore-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.lore-category-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

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

.lore-card {
  position: relative;
  min-height: 13rem;
}

.lore-card::before {
  position: absolute;
  width: 0.35rem;
  height: 2.3rem;
  top: 1.7rem;
  left: 0;
  background: var(--color-accent);
  content: "";
}

.search-empty {
  padding: 2rem;
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  text-align: center;
}

/* Article template */

.article-header {
  padding-top: clamp(4rem, 9vw, 7rem);
}

.article-subtitle {
  max-width: 50rem;
  color: #cdc8c1;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-block: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.82rem;
}

.article-meta dt,
.article-meta dd {
  display: inline;
  margin: 0;
}

.article-meta dt {
  color: var(--color-text);
  font-weight: 800;
}

.article-meta div {
  display: flex;
  gap: 0.35rem;
}

.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: 3.5rem;
}

.article-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  line-height: 1.72;
}

.info-panel {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.info-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0;
}

.info-list div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.info-list div:last-child {
  padding-bottom: 0;
  border: 0;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0.15rem 0 0;
}

.article-body-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, var(--reading-width));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--space-section);
}

.table-of-contents {
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem;
  border-left: 2px solid var(--color-accent);
  background: var(--color-bg-soft);
}

.table-of-contents h2 {
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 1.2rem;
}

.table-of-contents li + li {
  margin-top: 0.4rem;
}

.article-copy {
  max-width: var(--reading-width);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.85;
}

.article-copy h2 {
  margin-top: 3.6rem;
  scroll-margin-top: 2rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.article-copy h2:first-child {
  margin-top: 0;
}

.article-copy h3 {
  margin-top: 2.4rem;
}

.article-copy .archive-note {
  padding: 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-panel);
  color: #d2cdc6;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.article-nav a {
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  text-decoration: none;
}

.article-nav a:last-child {
  text-align: right;
}

.article-nav span {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.25fr);
  gap: 1.35rem;
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.product-cover {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid #48454c;
  background:
    radial-gradient(circle at 50% 34%, rgb(238 107 43 / 34%), transparent 22%),
    linear-gradient(145deg, #2d211b, #111114 65%);
}

.product-cover::before,
.product-cover::after {
  position: absolute;
  width: 5rem;
  aspect-ratio: 1;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgb(236 232 225 / 42%);
  content: "";
}

.product-cover::after {
  width: 3.1rem;
  border-color: var(--color-accent-strong);
}

.product-cover .placeholder-label {
  font-size: 0.68rem;
}

.product-cover--image::before,
.product-cover--image::after {
  content: none;
}

.product-cover--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery {
  min-width: 0;
  align-self: start;
}

.product-gallery__stage {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid #48454c;
  background: #0c0c0f;
}

.product-gallery__stage > img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-gallery__control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 2.4rem;
  min-height: 2.8rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: var(--radius);
  background: rgb(8 8 10 / 82%);
  color: #fff;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.product-gallery__control:hover {
  border-color: var(--color-focus);
  background: rgb(20 20 24 / 94%);
}

.product-gallery__control--previous {
  left: 0.55rem;
}

.product-gallery__control--next {
  right: 0.55rem;
}

.product-gallery__counter {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgb(8 8 10 / 82%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.product-gallery__caption {
  margin: 0;
  padding: 0.55rem 0.15rem 0;
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.product-gallery__thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.product-gallery__thumbnail {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #48454c;
  border-radius: 0.2rem;
  background: #101014;
  cursor: pointer;
  opacity: 0.62;
}

.product-gallery__thumbnail:hover,
.product-gallery__thumbnail[aria-current="true"] {
  border-color: var(--color-accent-strong);
  opacity: 1;
}

.product-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-details h3 {
  font-size: 1.65rem;
}

.product-description > :last-child {
  margin-bottom: 1.25rem;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.35rem 0 1.25rem;
}

.product-specs div {
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border);
}

.product-specs dt {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
}

.product-price {
  margin-top: auto;
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.external-store-note {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #654a3b;
  color: #e6b295;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed #5a555e;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* Mature-content warning */

.mature-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #c8505d;
  border-radius: 999px;
  background: #471c22;
  color: #ffc2c8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.mature-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #6f4938;
  border-radius: 0.55rem;
  background: #111114;
  color: var(--color-text);
  box-shadow:
    0 2rem 6rem rgb(0 0 0 / 72%),
    0 0 0 1px rgb(238 107 43 / 14%) inset;
}

.mature-dialog::backdrop {
  background: rgb(4 4 6 / 88%);
  backdrop-filter: blur(8px);
}

.mature-dialog__inner {
  padding: clamp(1.5rem, 6vw, 2.75rem);
  border-top: 3px solid var(--color-accent-strong);
}

.mature-dialog h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2rem, 8vw, 3.25rem);
}

.mature-dialog__copy {
  color: #d4cfc7;
}

.mature-dialog__copy p:last-child {
  margin-bottom: 0;
}

.mature-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 32rem) {
  .mature-dialog__actions {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
  background: #08080a;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 62rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .article-body-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .container {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .header-inner {
    position: relative;
    min-height: 4.5rem;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 0.8rem;
  }

  .site-nav {
    width: 100%;
  }

  .main-nav {
    align-items: stretch;
    flex-direction: column;
    padding-top: 0.8rem;
  }

  .main-nav a {
    padding: 0.75rem;
  }

  .js-enabled .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .js-enabled .site-nav {
    display: none;
  }

  .js-enabled .site-header[data-nav-open="true"] .site-nav {
    display: block;
  }

  .section-heading,
  .split,
  .article-lead,
  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 0.5rem;
  }

  .hero::after {
    right: -20rem;
  }

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

  .news-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .news-strip .text-link {
    justify-self: start;
  }

  .article-lead {
    gap: 1.5rem;
  }

  .info-panel {
    order: 2;
  }

  .table-of-contents {
    position: static;
  }

  .product-card {
    grid-template-columns: minmax(7.5rem, 0.55fr) minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  h1 {
    font-size: clamp(2.5rem, 15vw, 3.7rem);
  }

  .hero {
    padding-block: 4.5rem;
  }

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

  .product-cover {
    min-height: 14rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a:last-child {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
