.page-home {
  --home-max: 1200px;
  --home-gap: 2rem;
  --home-rail-width: 190px;
  color: var(--ink);
  background: var(--bg-deep);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  padding: calc(5rem + 32px) 1.25rem 2.5rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-home .home-hero__svg {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 40vmin;
  height: 40vmin;
  color: var(--accent);
  opacity: 0.55;
  z-index: 1;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--home-max);
  margin: 0 auto;
  width: 100%;
}

.page-home .home-hero__lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 36em;
  margin-top: 1rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .home-hero__facts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .home-index {
  padding: 3rem 1.25rem;
  background: var(--bg-ocean);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-index__inner {
  max-width: var(--home-max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.page-home .home-index__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.page-home .home-index__list a {
  color: var(--lime);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .home-index__list a::before {
  content: "→";
  color: var(--accent);
}

.page-home .home-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-home .home-quicklinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.page-home .home-quicklinks a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.page-home .home-body {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 2rem;
}

.page-home .home-body__rail-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.page-home .home-body__rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .home-body__rail-list a {
  display: inline-flex;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 2px solid var(--line);
  padding: 0.25rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

.page-home .home-body__rail-list a.is-active {
  color: var(--lime);
  border-left-color: var(--lime);
}

.page-home .home-body__content {
  display: grid;
  gap: 4rem;
}

.page-home .home-version {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-home .home-version img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}

.page-home .home-version__panel {
  background: var(--bg-ocean);
  padding: 2rem 1.5rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .home-version__panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.4;
}

.page-home .home-version__actions {
  margin-top: 1.5rem;
}

.page-home .home-version__aside {
  display: grid;
  gap: 1rem;
}

.page-home .home-version__aside .site-panel {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
}

.page-home .home-version__num {
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
  color: var(--lime);
  display: block;
  margin: 0.25rem 0;
}

.page-home .home-rules {
  background: var(--bg-ocean);
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--yellow);
  display: grid;
  gap: 1.5rem;
}

.page-home .home-rules .site-rule {
  margin: 0;
}

.page-home .home-tags {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-tags img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.page-home .home-tags__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  counter-reset: tag;
}

.page-home .home-tags__item {
  counter-increment: tag;
  background: var(--bg-ocean);
  padding: 1rem 1rem 1rem 2.75rem;
  position: relative;
  font-weight: 700;
  border-left: 3px solid var(--blue);
  transition: background 0.2s, border-color 0.2s;
}

.page-home .home-tags__item::before {
  content: counter(tag);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
}

.page-home .home-tags__item--hot {
  background: var(--accent);
  border-left-color: var(--lime);
}

.page-home .home-tags__item--hot::before {
  color: var(--lime);
}

.page-home .home-tags__flag {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-deep);
  color: var(--lime);
  padding: 0.125rem 0.5rem;
  vertical-align: middle;
}

.page-home .home-bookmark {
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  background: rgba(255, 255, 255, 0.02);
}

.page-home .home-bookmark__steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.page-home .home-bookmark__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.page-home .home-bookmark__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--lime);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 100%);
}

.page-home .home-support {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-support img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.page-home .home-support .btn {
  justify-self: start;
}

@media (min-width: 768px) {
  .page-home .home-body {
    grid-template-columns: var(--home-rail-width) 1fr;
    gap: 3rem;
    align-items: start;
  }

  .page-home .home-body__rail {
    position: sticky;
    top: 120px;
  }

  .page-home .home-body__rail-list {
    flex-direction: column;
  }

  .page-home .home-version {
    grid-template-columns: 1fr 220px;
  }

  .page-home .home-version__aside {
    position: sticky;
    top: 120px;
  }

  .page-home .home-tags__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-index__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .home-quicklinks {
    justify-content: flex-end;
    border-top: none;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: 80vh;
  }

  .page-home .home-hero__content {
    padding-left: 3rem;
    border-left: 4px solid var(--lime);
  }

  .page-home .home-index__list {
    grid-template-columns: repeat(5, max-content);
  }
}
