.home-page {
  overflow: clip;
}

.home-page .section {
  position: relative;
}

.home-page .eyebrow {
  margin-block-end: var(--space-3);
}

.home-page a:not(.button) {
  font-weight: 700;
}

.home-page a:not(.button):hover {
  text-decoration: underline;
}

.home-section-intro {
  min-width: 0;
}

.home-section-intro > :last-child {
  margin-block-end: 0;
}

.home-hero {
  padding-block: var(--space-6) var(--space-8);
}

.home-hero__frame {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 38.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--color-forest-800);
  isolation: isolate;
}

.home-hero__media,
.home-hero__content {
  grid-area: 1 / 1;
  min-width: 0;
}

.home-hero__media {
  z-index: -2;
  width: 100%;
  height: 100%;
}

.home-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 80, 68, 0.9) 0%, rgba(20, 80, 68, 0.78) 40%, rgba(20, 80, 68, 0.38) 72%, rgba(20, 80, 68, 0.16) 100%);
}

.home-hero__media img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.home-hero__content {
  z-index: 1;
  display: flex;
  width: min(100%, 36.875rem);
  min-width: 0;
  flex-direction: column;
  align-self: center;
  gap: var(--space-5);
  padding: var(--space-7);
  color: var(--color-cream-100);
}

.home-hero__content h1,
.home-hero__content p {
  margin: 0;
}

.home-hero__content h1 {
  max-width: 34rem;
  color: var(--color-cream-100);
  font-size: clamp(3.2rem, 5vw, 3.5rem);
  line-height: 1.07;
}

.home-hero__eyebrow {
  color: var(--color-sky-200);
}

.home-hero__lead {
  max-width: 36rem;
  color: rgba(255, 249, 237, 0.92);
  font-size: var(--text-lg);
  line-height: 1.56;
}

.home-hero__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-hero__actions > * {
  min-width: 0;
}

.home-hero__secondary {
  border-color: var(--color-sky-200);
  color: var(--color-cream-100);
}

.home-hero__secondary:hover {
  border-color: var(--color-sky-200);
  background: var(--color-sky-200);
  color: var(--color-ink-900);
}

.home-hero__independence {
  display: flex;
  max-width: 36rem;
  min-width: 0;
  align-items: flex-start;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  color: rgba(255, 249, 237, 0.84);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.home-hero__independence span {
  flex: 0 0 auto;
  color: var(--color-gold-500);
  font-size: 1.25rem;
  line-height: 1;
}

.home-paths__intro {
  width: min(100%, 40.625rem);
}

.home-paths__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.home-paths__grid > * {
  min-width: 0;
}

.home-topic-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.home-topic-card > * {
  margin: 0;
}

.home-topic-card:hover {
  border-color: var(--color-teal-500);
  transform: translateY(-2px);
}

.home-topic-card__icon {
  display: inline-grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-teal-500);
  font-size: 1.5rem;
}

.home-topic-card h3 {
  font-size: 1.75rem;
}

.home-topic-card p {
  color: var(--color-ink-700);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.home-topic-card__links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: auto !important;
}

.home-topic-card__note {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  color: var(--color-forest-800) !important;
  font-weight: 700;
}

.home-topic-card--world .home-topic-card__icon { color: var(--color-gold-500); }
.home-topic-card--factions .home-topic-card__icon { color: var(--color-violet-400); }
.home-topic-card--strategy .home-topic-card__icon { color: var(--color-forest-800); }

.home-world {
  background: color-mix(in srgb, var(--color-sky-200) 22%, var(--color-mist-050));
}

.home-world__top {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.home-world__top > * { min-width: 0; }

.home-world__copy {
  grid-column: 1 / span 6;
  width: min(100%, 35rem);
}

.home-world__copy > :last-child { margin-block-end: 0; }

.home-world__panel {
  display: flex;
  min-width: 0;
  grid-column: 9 / span 4;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.home-world__panel > * { margin: 0; }

.home-world__panel ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
  counter-reset: world-path;
}

.home-world__panel li {
  display: grid;
  min-width: 0;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: var(--space-2);
}

.home-world__panel li::before {
  content: "0" counter(world-path);
  counter-increment: world-path;
  color: var(--color-gold-500);
  font-size: var(--text-sm);
  font-weight: 800;
}

.home-world__panel strong,
.home-world__panel span {
  grid-column: 2;
}

.home-world__panel span {
  color: var(--color-ink-700);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.home-map {
  margin-top: var(--space-7);
}

.home-map__scroll {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--color-cream-100);
}

.home-map__scroll img {
  width: 100%;
  height: auto;
}

.home-map figcaption {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.home-map__hint {
  color: var(--color-forest-800);
  font-weight: 700;
}

.home-world__routes {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.home-world__routes > * { min-width: 0; }

.home-route {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
}

.home-route > * { margin: 0; }

.home-route__number {
  color: var(--color-gold-500);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-route h3 { font-size: 1.75rem; }
.home-route p { color: var(--color-ink-700); }

.home-heroes__panel {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
  padding: var(--space-7);
}

.home-heroes__panel > * { min-width: 0; }

.home-heroes__copy {
  grid-column: 1 / span 5;
  width: min(100%, 32.5rem);
}

.home-heroes__copy > :last-child { margin-block-end: 0; }

.home-heroes__cards {
  display: grid;
  min-width: 0;
  grid-column: 7 / span 6;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: start;
}

.home-heroes__cards > * { min-width: 0; }

.home-data-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--color-cream-100), color-mix(in srgb, var(--color-sky-200) 32%, var(--color-cream-100)));
}

.home-data-card > * { margin: 0; }
.home-data-card__label { color: var(--color-teal-500); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.home-data-card h3 { font-size: 1.65rem; }
.home-data-card p { color: var(--color-ink-700); font-size: var(--text-sm); line-height: 1.5; }
.home-data-card a { margin-top: auto; }
.home-data-card--accent { border-color: var(--color-gold-500); }

.home-strategy {
  overflow: hidden;
  border-inline: 0;
  border-radius: 0;
}

.home-strategy__container {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  isolation: isolate;
}

.home-strategy__container > * { min-width: 0; }

.home-strategy__image {
  position: absolute;
  z-index: -1;
  inset: -5rem -5rem -5rem auto;
  width: 50%;
  background: linear-gradient(90deg, var(--color-forest-800) 0%, rgba(20, 80, 68, 0.5) 42%, rgba(20, 80, 68, 0.15) 100%), url("/assets/images/strategy-party-expedition.webp") center right / cover no-repeat;
  opacity: 0.82;
}

.home-strategy__heading {
  grid-column: 1 / span 7;
  width: min(100%, 37.5rem);
}

.home-strategy__heading > :last-child { margin-block-end: 0; }
.home-strategy .eyebrow { color: var(--color-sky-200); }

.home-strategy__steps {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-strategy__steps > * { min-width: 0; }

.home-strategy-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.home-strategy-step > * { margin: 0; }
.home-strategy-step > span { color: var(--color-gold-500); font-weight: 800; letter-spacing: 0.08em; }
.home-strategy-step h3 { font-size: 1.8rem; }
.home-strategy-step p { color: rgba(255, 249, 237, 0.84); }

.home-strategy__note {
  display: flex;
  min-width: 0;
  grid-column: 1 / span 6;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 237, 0.07);
}

.home-strategy__note > * { margin: 0; }
.home-strategy__note strong { color: var(--color-sky-200); }
.home-strategy__note p { color: rgba(255, 249, 237, 0.86); font-size: var(--text-sm); }

.home-guides__intro { width: min(100%, 38.75rem); }

.home-guides__panels {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.home-guides__panels > * { min-width: 0; }

.home-guide-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 20rem;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-cream-100);
}

.home-guide-panel > * { margin: 0; }
.home-guide-panel::after { position: absolute; width: 10rem; height: 10rem; border-radius: 50%; content: ""; pointer-events: none; filter: blur(14px); opacity: 0.3; }
.home-guide-panel--faction::after { right: -4rem; bottom: -5rem; background: var(--color-violet-400); }
.home-guide-panel--class::after { right: -4rem; bottom: -5rem; background: var(--color-teal-500); }
.home-guide-panel__icon { position: relative; z-index: 1; color: var(--color-gold-500); font-size: 2rem; }
.home-guide-panel--faction .home-guide-panel__icon { color: var(--color-violet-400); }
.home-guide-panel h3,
.home-guide-panel p,
.home-guide-panel a { position: relative; z-index: 1; }
.home-guide-panel h3 { max-width: 22rem; font-size: 2rem; }
.home-guide-panel p { max-width: 22.5rem; color: var(--color-ink-700); }
.home-guide-panel .button { width: fit-content; margin-top: auto; }

.home-guides__summary {
  width: min(100%, 43rem);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-gold-500);
}

.home-guides__summary > :last-child { margin-block-end: 0; }

.home-reading { background: color-mix(in srgb, var(--color-cream-100) 72%, var(--color-mist-050)); }
.home-reading__intro { width: min(100%, 39.375rem); }

.home-reading__tracks {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  column-gap: calc(var(--space-8) + var(--space-5));
  margin-top: var(--space-7);
}

.home-reading__tracks > * { min-width: 0; }

.home-track {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-cream-100);
}

.home-track h3 { margin-block-end: var(--space-5); }
.home-track ol { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.home-track li { display: grid; min-width: 0; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); }
.home-track li > span { color: var(--color-gold-500); font-size: var(--text-sm); font-weight: 800; }
.home-track--team li > span { color: var(--color-teal-500); }
.home-track li div { min-width: 0; }
.home-track li a { font-weight: 800; }
.home-track li p { margin: var(--space-1) 0 0; color: var(--color-ink-700); font-size: var(--text-sm); line-height: 1.5; }

.home-reading__closing {
  display: flex;
  width: min(100%, 38rem);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-7) auto 0;
  text-align: left;
}

.home-reading__closing > * { margin: 0; }
.home-reading__closing .button { width: fit-content; }

.home-editorial { background: var(--color-sky-200); }
.home-editorial__intro { width: min(100%, 38.75rem); }

.home-editorial__cards {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.home-editorial__cards > * { min-width: 0; }

.home-editorial-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.home-editorial-card > * { margin: 0; }
.home-editorial-card h3 { font-size: 1.75rem; }
.home-editorial-card p { color: var(--color-ink-700); font-size: var(--text-sm); line-height: 1.55; }
.home-editorial-card__sample { margin-top: auto !important; padding: var(--space-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-sky-200) 48%, var(--color-cream-100)); color: var(--color-ink-900) !important; font-weight: 800; }
.home-editorial-card__states { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto !important; }
.home-editorial-card__states span { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-teal-500) 12%, var(--color-cream-100)); color: var(--color-ink-900); font-weight: 700; }
.home-editorial-card__states span:last-child { background: color-mix(in srgb, var(--color-gold-500) 16%, var(--color-cream-100)); }

.home-editorial__status {
  display: grid;
  width: min(100%, 45rem);
  min-width: 0;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 237, 0.62);
}

.home-editorial__status > * { min-width: 0; margin: 0; }
.home-editorial__status > span,
.home-variable__icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid var(--color-teal-500); border-radius: 50%; color: var(--color-teal-500); font-weight: 800; }
.home-editorial__status p { color: var(--color-ink-700); }

.home-next__intro {
  width: min(100%, 35rem);
  margin-inline: auto;
  text-align: center;
}

.home-next__intro > :last-child { margin-block-end: 0; }

.home-next__cards {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.home-next__cards > * { min-width: 0; }

.home-next-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.home-next-card > * { margin: 0; }
.home-next-card:hover { transform: translateY(-2px); }
.home-next-card--gold { border-color: var(--color-gold-500); }
.home-next-card--teal { border-color: var(--color-teal-500); }
.home-next-card__icon { color: var(--color-gold-500); font-size: 2rem; }
.home-next-card--teal .home-next-card__icon { color: var(--color-teal-500); }
.home-next-card h3 { font-size: 1.9rem; }
.home-next-card p { color: var(--color-ink-700); }
.home-next-card .button { width: fit-content; margin-top: auto; }

.home-variable { padding-top: 0; }
.home-variable__panel {
  display: grid;
  width: min(100%, 56.25rem);
  min-width: 0;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--space-4);
  margin-inline: auto;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-teal-500);
  border-radius: var(--radius-lg);
  background: var(--color-cream-100);
}

.home-variable__panel > * { min-width: 0; }
.home-variable__content > :last-child { margin-block-end: 0; }
.home-variable__content h2 { font-size: var(--text-xl); }
.home-variable__content p { max-width: 45rem; color: var(--color-ink-700); }

@media (max-width: 65rem) {
  .home-paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-heroes__panel { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .home-heroes__copy { grid-column: 1 / -1; width: min(100%, 34rem); }
  .home-heroes__cards { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 62.5rem) {
  .home-hero__frame { min-height: 35rem; }
  .home-hero__content { width: min(100%, 44rem); }
  .home-world__top { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .home-world__copy { grid-column: 1 / -1; }
  .home-world__panel { grid-column: 1 / -1; width: min(100%, 36rem); }
  .home-strategy__container { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .home-strategy__heading { grid-column: 1 / span 7; }
  .home-strategy__steps { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-strategy-step:first-child { grid-column: 1 / -1; }
  .home-strategy__note { grid-column: 1 / -1; width: min(100%, 42rem); }
  .home-strategy__image { width: 43%; opacity: 0.46; }
  .home-editorial__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-editorial-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 60rem) {
  .home-world__routes { grid-template-columns: 1fr; }
  .home-route { width: min(100%, 40rem); }
}

@media (max-width: 58.125rem) {
  .home-next__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-next-card:last-child { grid-column: 1 / -1; width: min(100%, calc(50% - var(--space-3))); }
}

@media (max-width: 53.75rem) {
  .home-reading__tracks { grid-template-columns: 1fr; row-gap: var(--space-5); }
}

@media (max-width: 51.25rem) {
  .home-guides__panels { grid-template-columns: 1fr; }
  .home-guide-panel { min-height: auto; }
}

@media (max-width: 48rem) {
  .home-hero { padding-block: var(--space-4) var(--space-7); }
  .home-hero__frame { display: flex; min-height: 0; flex-direction: column; overflow: visible; border: 0; border-radius: var(--radius-xl); background: transparent; }
  .home-hero__media { width: 100%; height: auto; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .home-hero__media::after { display: none; }
  .home-hero__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: 68% top; }
  .home-hero__content { width: 100%; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--border-subtle); border-top: 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: var(--color-cream-100); color: var(--color-ink-900); }
  .home-hero__content h1 { color: var(--color-ink-900); font-size: clamp(2.4rem, 11vw, 2.65rem); }
  .home-hero__eyebrow { color: var(--color-teal-500); }
  .home-hero__lead { color: var(--color-ink-700); font-size: 1.0625rem; line-height: 1.59; }
  .home-hero__actions { flex-direction: column; }
  .home-hero__actions .button { width: 100%; }
  .home-hero__secondary { border-color: var(--color-teal-500); color: var(--color-teal-500); }
  .home-hero__secondary:hover { border-color: var(--color-teal-500); background: var(--color-teal-500); color: var(--color-white); }
  .home-hero__independence { border-color: var(--border-subtle); color: var(--color-ink-700); }
  .home-hero__independence span { color: var(--color-teal-500); }
}

@media (max-width: 47.9375rem) {
  .home-paths__grid,
  .home-editorial__cards,
  .home-next__cards { grid-template-columns: 1fr; }
  .home-editorial-card:last-child,
  .home-next-card:last-child { grid-column: auto; width: auto; }
  .home-topic-card { padding: var(--space-5); }
  .home-world__top,
  .home-heroes__panel,
  .home-strategy__container { grid-template-columns: 1fr; }
  .home-world__copy,
  .home-world__panel,
  .home-heroes__copy,
  .home-heroes__cards,
  .home-strategy__heading,
  .home-strategy__steps,
  .home-strategy__note { grid-column: 1; width: 100%; }
  .home-world__panel { width: 100%; }
  .home-map__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .home-map__scroll img { width: 38.75rem; max-width: none; }
  .home-map figcaption { flex-direction: column; }
  .home-heroes__panel { gap: var(--space-5); padding: var(--space-5); }
  .home-heroes__cards { grid-template-columns: 1fr; }
  .home-data-card { padding: var(--space-5); }
  .home-strategy__image { display: none; }
  .home-strategy__steps { grid-template-columns: 1fr; }
  .home-strategy-step:first-child { grid-column: auto; }
  .home-strategy__note { padding: var(--space-4); }
  .home-guide-panel { padding: var(--space-5); }
  .home-guide-panel .button,
  .home-reading__closing .button,
  .home-next-card .button { width: 100%; }
  .home-reading__closing { width: 100%; }
  .home-editorial__status,
  .home-variable__panel { grid-template-columns: 1fr; padding: var(--space-5); }
  .home-editorial__status > span,
  .home-variable__icon { margin: 0; }
  .home-next__intro { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-topic-card,
  .home-next-card { transition: none; }
  .home-topic-card:hover,
  .home-next-card:hover { transform: none; }
}
