:root {
  --guide-paper: oklch(94% 0.014 94);
  --guide-paper-deep: oklch(89% 0.022 91);
  --guide-ink: oklch(20% 0.018 190);
  --guide-ink-soft: oklch(38% 0.018 190);
  --guide-line: oklch(74% 0.024 92);
  --guide-cyan: oklch(66% 0.13 202);
  --guide-amber: oklch(73% 0.15 76);
  --guide-red: oklch(58% 0.16 27);
}

.blog-page {
  background: var(--studio-deep);
}

.blog-page .topbar {
  position: relative;
}

.blog-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 5px solid var(--guide-amber);
  background: var(--studio-black);
}

.blog-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .7;
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, oklch(10% 0.012 190 / .98) 0%, oklch(10% 0.012 190 / .86) 36%, oklch(10% 0.012 190 / .08) 76%);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 64px 24px 58px;
}

.guide-kicker,
.article-kicker,
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--amber);
  font: 700 .72rem/1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.guide-kicker::before,
.article-kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: currentColor;
}

.blog-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--paper);
  font: 400 3.25rem/1.02 'Bowlby One SC', sans-serif;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 52ch;
  margin: 18px 0 0;
  color: oklch(83% 0.012 190);
  font-size: 1.02rem;
  line-height: 1.65;
}

.blog-index-main {
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.start-here,
.guide-archive {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.section-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.section-heading .section-index {
  color: var(--guide-red);
  margin-top: 8px;
}

.section-heading h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--guide-ink);
  font: 400 2rem/1.12 'Bowlby One SC', sans-serif;
}

.section-heading p {
  max-width: 60ch;
  margin: 10px 0 0;
  color: var(--guide-ink-soft);
  font-size: .95rem;
  line-height: 1.6;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--guide-ink);
  border-bottom: 2px solid var(--guide-ink);
}

.start-story {
  min-width: 0;
  padding: 24px 24px 26px 0;
}

.start-story + .start-story {
  padding: 24px 0 26px 24px;
  border-left: 1px solid var(--guide-line);
}

.start-story img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--guide-ink);
  border-radius: 3px;
  background: var(--studio-black);
}

.story-meta,
.guide-row-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 15px;
  color: var(--guide-ink-soft);
  font: 700 .72rem/1.3 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.story-meta b,
.guide-row-meta b {
  color: var(--guide-red);
}

.start-story h3 {
  margin: 9px 0 8px;
  color: var(--guide-ink);
  font: 700 1.35rem/1.2 'DM Sans', sans-serif;
}

.start-story p {
  margin: 0;
  color: var(--guide-ink-soft);
  font-size: .92rem;
  line-height: 1.58;
}

.start-story > a,
.guide-row-title,
.article-next a {
  color: inherit;
  text-decoration: none;
}

.start-story > a:hover h3,
.start-story > a:focus-visible h3,
.guide-row-title:hover h3,
.guide-row-title:focus-visible h3 {
  color: oklch(49% 0.12 202);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-archive {
  padding-top: 0;
}

.guide-list {
  border-top: 2px solid var(--guide-ink);
}

.guide-row {
  display: grid;
  grid-template-columns: 56px 112px minmax(0, 1fr) 180px 30px;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 16px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-number {
  color: var(--guide-red);
  font: 400 1.4rem/1 'Bowlby One SC', sans-serif;
}

.guide-topic {
  color: var(--guide-ink-soft);
  font: 700 .7rem/1.25 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.guide-row h3 {
  margin: 0 0 5px;
  color: var(--guide-ink);
  font: 700 1.06rem/1.3 'DM Sans', sans-serif;
}

.guide-row p {
  margin: 0;
  color: var(--guide-ink-soft);
  font-size: .85rem;
  line-height: 1.5;
}

.guide-row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--guide-ink);
  border-radius: 2px;
  background: var(--studio-black);
}

.guide-arrow {
  color: var(--guide-ink);
  font: 400 1.5rem/1 'DM Sans', sans-serif;
}

.blog-page .site-footer-nav {
  width: min(1160px, 100%);
  margin-top: 0;
  background: var(--studio-deep);
}

/* Article pages */
.article-hero {
  background: var(--studio-deep);
  border-bottom: 1px solid oklch(36% 0.018 190);
}

.article-header {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 34px 24px 42px;
}

.article-breadcrumbs {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: .76rem;
}

.article-breadcrumbs a {
  color: var(--muted);
}

.article-breadcrumbs span {
  padding: 0 7px;
}

.article-header h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--paper);
  font: 400 2.55rem/1.08 'Bowlby One SC', sans-serif;
  letter-spacing: 0;
}

.article-deck {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--metal-light);
  font-size: 1.03rem;
  line-height: 1.65;
}

.article-meta {
  margin-top: 20px;
  color: var(--muted);
}

.article-meta b {
  color: var(--amber);
}

.article-figure {
  width: min(1160px, calc(100% - 48px));
  margin: -1px auto 0;
  background: var(--studio-black);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: top center;
  border: 1px solid oklch(42% 0.018 190);
  border-radius: 3px;
}

.article-figure.article-figure--editor img {
  aspect-ratio: 8 / 5;
}

.article-figure figcaption {
  padding: 9px 0 18px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}

.article-canvas {
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.article-layout {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 700px) 240px;
  gap: 72px;
  margin: 0 auto;
  padding: 54px 24px 72px;
}

.article-copy {
  min-width: 0;
}

.article-copy > p,
.article-copy > ul,
.article-copy > ol,
.article-copy > dl,
.article-copy > blockquote,
.article-copy > .article-note,
.article-copy > .article-table,
.article-copy > .checklist {
  max-width: 68ch;
}

.article-copy p,
.article-copy li,
.article-copy dd,
.article-copy dt {
  color: var(--guide-ink-soft);
  font-size: .98rem;
  line-height: 1.72;
}

.article-copy p {
  margin: 0 0 16px;
}

.article-copy h2 {
  margin: 44px 0 12px;
  color: var(--guide-ink);
  font: 400 1.45rem/1.2 'Bowlby One SC', sans-serif;
  letter-spacing: 0;
}

.article-copy h3 {
  margin: 26px 0 8px;
  color: var(--guide-ink);
  font: 700 1.02rem/1.35 'DM Sans', sans-serif;
}

.article-copy ul,
.article-copy ol {
  margin: 0 0 18px;
  padding-left: 23px;
}

.article-copy li {
  margin-bottom: 7px;
}

.article-copy strong,
.article-copy b,
.article-copy dt {
  color: var(--guide-ink);
}

.article-copy a {
  color: oklch(43% 0.13 202);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-copy a:hover {
  color: oklch(34% 0.1 202);
}

.article-copy kbd,
.button-ref {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--guide-line);
  border-bottom-color: oklch(58% 0.026 92);
  border-radius: 3px;
  background: oklch(91% 0.018 92);
  color: var(--guide-ink);
  font: 700 .78em/1.65 'DM Sans', sans-serif;
  vertical-align: .04em;
}

.article-note {
  margin: 24px 0;
  padding: 17px 18px;
  border: 1px solid oklch(69% 0.08 202);
  border-left: 4px solid var(--guide-cyan);
  background: oklch(91% 0.035 202);
}

.article-note[data-tone='amber'] {
  border-color: oklch(75% 0.08 76);
  border-left-color: var(--guide-amber);
  background: oklch(92% 0.045 83);
}

.article-note p:last-child {
  margin-bottom: 0;
}

.article-note strong:first-child {
  display: block;
  margin-bottom: 4px;
  font: 700 .76rem/1.3 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.article-table {
  margin: 24px 0;
  border-top: 2px solid var(--guide-ink);
}

.article-table > div {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--guide-line);
}

.article-table dt,
.article-table dd {
  margin: 0;
}

.article-table dt {
  font-weight: 700;
}

.article-copy blockquote {
  margin: 28px 0;
  padding: 3px 0 3px 20px;
  border-left: 5px solid var(--guide-amber);
}

.article-copy blockquote p {
  color: var(--guide-ink);
  font: 700 1.08rem/1.55 'DM Sans', sans-serif;
}

.checklist {
  list-style: none;
  margin: 20px 0 !important;
  padding: 0 !important;
  border-top: 2px solid var(--guide-ink);
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 11px 8px 11px 34px;
  border-bottom: 1px solid var(--guide-line);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 15px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--guide-cyan);
  background: transparent;
}

.article-toc {
  align-self: start;
  position: sticky;
  top: 20px;
  padding-top: 2px;
}

.article-toc strong {
  display: block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--guide-ink);
  color: var(--guide-ink);
  font: 700 .72rem/1.2 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-toc ol {
  list-style: decimal-leading-zero;
  margin: 0;
  padding: 12px 0 0 28px;
  color: var(--guide-red);
}

.article-toc li {
  margin: 0 0 10px;
  padding-left: 3px;
  font: 700 .78rem/1.35 'Barlow Condensed', sans-serif;
}

.article-toc a {
  color: var(--guide-ink-soft);
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: oklch(43% 0.13 202);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-next {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  margin-top: 52px;
  padding: 18px 0;
  border-top: 2px solid var(--guide-ink);
  border-bottom: 1px solid var(--guide-line);
}

.article-next span:first-child {
  color: var(--guide-red);
  font: 700 .7rem/1.2 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

.article-next b {
  font-size: .94rem;
}

.article-next span:last-child {
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  .blog-hero { min-height: 420px; }
  .blog-hero h1 { font-size: 2.55rem; }
  .guide-row { grid-template-columns: 44px minmax(0, 1fr) 140px 24px; }
  .guide-topic { display: none; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-toc { position: static; order: -1; margin-bottom: 26px; }
  .article-toc ol { columns: 2; column-gap: 30px; }
}

@media (max-width: 720px) {
  .blog-page .site-nav a[aria-current='page'] { display: block; }
  .blog-page .site-nav a[href*='how-to-play'] { display: none; }
  .blog-hero { min-height: 390px; }
  .blog-hero > img { object-position: 64% center; opacity: .55; }
  .blog-hero::after { background: linear-gradient(90deg, oklch(10% 0.012 190 / .97), oklch(10% 0.012 190 / .38)); }
  .blog-hero-inner { padding: 58px 18px 46px; }
  .blog-hero h1 { max-width: 9ch; font-size: 2.1rem; }
  .blog-hero p { max-width: 38ch; font-size: .92rem; }
  .start-here, .guide-archive { padding-inline: 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 2px; }
  .section-heading .section-index { margin-top: 0; }
  .section-heading h2 { font-size: 1.55rem; }
  .start-grid { grid-template-columns: 1fr; }
  .start-story, .start-story + .start-story { padding: 20px 0 22px; }
  .start-story + .start-story { border-left: 0; border-top: 1px solid var(--guide-line); }
  .guide-row { grid-template-columns: 38px minmax(0, 1fr) 22px; min-height: 96px; gap: 12px; }
  .guide-row img { display: none; }
  .article-header { padding: 24px 18px 34px; }
  .article-breadcrumbs { margin-bottom: 28px; }
  .article-header h1 { font-size: 1.85rem; }
  .article-deck { font-size: .94rem; }
  .article-figure { width: calc(100% - 24px); }
  .article-figure img { aspect-ratio: 16 / 9; }
  .article-layout { padding: 38px 18px 56px; }
  .article-copy h2 { margin-top: 36px; font-size: 1.22rem; }
  .article-copy p, .article-copy li, .article-copy dd, .article-copy dt { font-size: .93rem; }
  .article-toc ol { columns: 1; }
  .article-table > div { grid-template-columns: 1fr; gap: 3px; }
  .article-next { grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
