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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.5;
  color: #e7e5e4;
  background: radial-gradient(1200px 600px at 20% 0%, #1c1917 0%, #0c0a09 50%);
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: #292524;
  color: #fafaf9;
  border-radius: 6px;
}

.site-header {
  border-bottom: 1px solid rgba(234, 88, 12, 0.25);
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fafaf9;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-logo__img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25);
}

.site-logo__text {
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  justify-content: flex-end;
  max-width: 100%;
}

.site-nav__link {
  color: #a8a29e;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: #fb923c;
}

.site-nav__link--active {
  color: #fb923c;
  font-weight: 600;
}

.site-main {
  flex: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.site-footer {
  border-top: 1px solid rgba(68, 64, 60, 0.5);
  background: #0a0908;
  margin-top: auto;
}

.site-footer__grid {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-weight: 800;
  color: #fafaf9;
  margin: 0 0 0.25rem;
}

.site-footer__muted {
  font-size: 0.85rem;
  color: #78716c;
  margin: 0;
}

.site-footer__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  margin: 0 0 0.5rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.site-footer__links li {
  margin-bottom: 0.35rem;
}

.site-footer__links a {
  color: #d6d3d1;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #fb923c;
}

.site-footer__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #78716c;
}

.site-footer__copy {
  border-top: 1px solid rgba(68, 64, 60, 0.35);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.site-footer__copy p {
  margin: 0;
}

.hero {
  padding: 1.5rem 0 0.5rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.75rem 2rem;
}

@media (min-width: 48rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1.1fr);
    text-align: left;
  }

  .hero__copy {
    text-align: left;
  }
}

.hero__art {
  display: flex;
  justify-content: center;
}

@media (min-width: 48rem) {
  .hero__art {
    justify-content: flex-end;
  }
}

.hero__img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(120, 113, 108, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.45);
  display: block;
}

.hero__copy {
  text-align: center;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.hero__t {
  color: #fafaf9;
}

.hero__a {
  background: linear-gradient(100deg, #ea580c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fb923c;
}

.hero__lead {
  font-size: 1.15rem;
  color: #d6d3d1;
  margin: 0 0 1rem;
}

.hero__text {
  color: #a8a29e;
  max-width: 36rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
}

@media (min-width: 48rem) {
  .hero__text {
    margin: 0 0 1rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

@media (min-width: 48rem) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--ghost {
  background: rgba(28, 25, 23, 0.6);
  border-color: rgba(234, 88, 12, 0.4);
  color: #fed7aa;
}

.btn--ghost:hover {
  border-color: #fb923c;
  color: #ffedd5;
}

.btn--block {
  width: 100%;
}

.page-head {
  margin-bottom: 1.75rem;
}

.page-head__title {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fafaf9;
}

.page-head__lead {
  margin: 0;
  color: #a8a29e;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 44rem;
}

.prose {
  color: #d6d3d1;
  line-height: 1.6;
  max-width: 44rem;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
  color: #fafaf9;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose code {
  font-size: 0.9em;
  color: #fdba74;
  background: rgba(234, 88, 12, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.prose a {
  color: #fb923c;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 40rem) {
  .download-grid:not(.download-grid--single) {
    grid-template-columns: 1fr 1fr;
  }
}

.download-grid--single {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.dl-card {
  background: linear-gradient(165deg, rgba(28, 25, 23, 0.85) 0%, rgba(12, 10, 9, 0.95) 100%);
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 0.75rem;
  padding: 1.25rem 1.2rem 1.35rem;
}

.dl-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fafaf9;
}

.dl-card__text {
  font-size: 0.9rem;
  color: #a8a29e;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.notice {
  font-size: 0.88rem;
  color: #a8a29e;
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(120, 113, 108, 0.15);
  border-radius: 0.4rem;
  border: 1px dashed rgba(120, 113, 108, 0.45);
}

.link-arr::after {
  content: " \2192";
  opacity: 0.7;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.steps__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.steps__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  color: #fff;
}

.steps__title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: #fafaf9;
}

.steps p {
  margin: 0;
  color: #a8a29e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq {
  max-width: 40rem;
}

.faq__item {
  background: rgba(28, 25, 23, 0.5);
  border: 1px solid rgba(68, 64, 60, 0.6);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
}

.faq__item summary {
  font-weight: 600;
  color: #fafaf9;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item[open] summary {
  margin-bottom: 0.5rem;
}

.faq__item p {
  margin: 0;
  color: #a8a29e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq__item a {
  color: #fb923c;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 28rem;
}

.status-list__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(68, 64, 60, 0.4);
  color: #d6d3d1;
}

.status-list a {
  color: #fb923c;
}

.status-pill {
  display: inline-block;
  min-width: 2.4rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill--ok {
  background: rgba(22, 163, 74, 0.25);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.status-pill--unk {
  background: rgba(120, 113, 108, 0.25);
  color: #a8a29e;
  border: 1px solid rgba(120, 113, 108, 0.4);
}

.ts-box {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fef3c7;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0 1rem;
}

.page-block {
  max-width: 32rem;
}

.page-block h1 {
  margin-top: 0;
  font-size: 2.5rem;
  color: #fafaf9;
}

.page-block a {
  color: #fb923c;
}

.features {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(68, 64, 60, 0.5);
}

.features__heading {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  text-align: center;
  color: #fafaf9;
}

.features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(165deg, rgba(28, 25, 23, 0.9) 0%, rgba(12, 10, 9, 0.95) 100%);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 1.1rem 1.35rem;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.feature-card__icon {
  display: block;
  margin: 0 auto 0.75rem;
  width: 4rem;
  height: 4rem;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fafaf9;
}

.feature-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: #a8a29e;
  line-height: 1.45;
}

.feature-card__text code {
  font-size: 0.88em;
  color: #fdba74;
  background: rgba(234, 88, 12, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.site-main--wide {
  max-width: 78rem;
}

.btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-block {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(68, 64, 60, 0.5);
}

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

.section-head__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: #fafaf9;
}

.section-head__link {
  color: #fb923c;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.section-head__link:hover {
  text-decoration: underline;
}

.page-head--row {
  display: block;
}

.banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.banner--warn {
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fed7aa;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #78716c;
  margin: 0 0 1.25rem;
}

.source-line__a {
  color: #a8a29e;
  text-decoration: none;
}

.source-line__a:hover {
  color: #fb923c;
}

.source-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(68, 64, 60, 0.45);
  color: #d6d3d1;
}

.source-pill--github {
  background: rgba(22, 101, 52, 0.3);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.source-pill--cache,
.source-pill--stale {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.mods-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 52rem) {
  .mods-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mods-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.mods-cat {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #a8a29e;
  background: rgba(28, 25, 23, 0.8);
  border: 1px solid rgba(68, 64, 60, 0.7);
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mods-cat:hover {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.4);
}

.mods-cat--active {
  color: #0c0a09;
  background: linear-gradient(100deg, #f97316, #ea580c);
  border-color: transparent;
}

.mods-search {
  display: block;
  width: 100%;
  max-width: 22rem;
}

.mods-search__input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(68, 64, 60, 0.6);
  background: rgba(12, 10, 9, 0.6);
  color: #fafaf9;
  font: inherit;
  font-size: 0.9rem;
}

.mods-search__input::placeholder {
  color: #78716c;
}

.mods-search__input:focus {
  outline: 2px solid rgba(234, 88, 12, 0.45);
  border-color: rgba(251, 146, 60, 0.4);
}

.mod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 32rem) {
  .mod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .mod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mod-grid--home {
  margin-bottom: 0;
}

@media (min-width: 36rem) {
  .mod-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .mod-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mod-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.6) 0%, rgba(12, 10, 9, 0.9) 100%);
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.mod-card:hover {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.mod-card[hidden] {
  display: none;
}

.mod-card--compact .mod-card__desc {
  display: none;
}

.mod-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.mod-card__img-wrap {
  aspect-ratio: 16 / 9;
  background: #0c0a09;
  overflow: hidden;
  border-bottom: 1px solid rgba(68, 64, 60, 0.4);
}

.mod-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mod-card__body {
  padding: 0.95rem 1rem 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.mod-card__cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fb923c;
  margin-bottom: 0.3rem;
}

.mod-card__name {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  color: #fafaf9;
  word-wrap: break-word;
}

.mod-card--compact .mod-card__name {
  font-size: 0.95rem;
}

.mod-card__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #a8a29e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: #a8a29e;
  margin: -0.5rem 0 1.25rem;
  max-width: 48rem;
}

.breadcrumbs a {
  color: #d6d3d1;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fb923c;
}

.breadcrumbs__sep {
  margin: 0 0.35em;
  opacity: 0.5;
}

.breadcrumbs__here {
  color: #f59e0b;
}

.mod-detail {
  max-width: 50rem;
}

.mod-detail__hero {
  margin-bottom: 1.5rem;
}

.mod-detail__img-wrap {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.5);
  margin-bottom: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.mod-detail__img {
  width: 100%;
  height: auto;
  max-height: 20rem;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0c0a09;
}

.mod-detail__head {
  margin-bottom: 0.5rem;
}

.mod-detail__cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fb923c;
  margin: 0 0 0.4rem;
}

.mod-detail__title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: #fafaf9;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.mod-detail__author {
  color: #a8a29e;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.mod-detail__prose h2 {
  margin-top: 0;
}

.mod-detail__back {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

.mod-detail__back a {
  color: #fb923c;
}
