.page-home {
  --home-tags-bg: #1D1D1D;
  --home-soft-gray: #EFEFEF;
  --home-deep: #2A2A2A;
  --home-white: #FFFFFF;
  --home-border: 2px solid var(--home-deep);
  --home-shadow: 4px 4px 0 var(--home-deep);
  --home-shadow-lg: 6px 6px 0 var(--home-deep);
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.page-home .home-block {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
  font-size: 14px;
}

.page-home .home-section-head {
  margin-bottom: 24px;
}

.page-home .home-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 8px 0 8px;
}

.page-home .home-section-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(42, 42, 42, 0.8);
  margin: 0;
}

.page-home .home-update {
  background: var(--section-bg-primary);
  border-bottom: var(--home-border);
}

.page-home .home-update__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  overflow: hidden;
  border-bottom: var(--home-border);
}

.page-home .home-update__bgimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-update__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.18) 10%, rgba(0, 0, 0, 0.82) 88%);
}

.page-home .home-update__head {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 42px;
}

.page-home .home-update__head .eyebrow {
  color: var(--accent-b);
}

.page-home .home-update__head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--home-white);
  text-shadow: 3px 3px 0 var(--home-deep);
  margin: 10px 0 14px;
  max-width: 900px;
}

.page-home .home-update__lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
}

.page-home .home-update__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-update__rail-wrap {
  padding-top: 26px;
  padding-bottom: 48px;
}

.page-home .home-update__rail-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-home .home-update__all {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--home-deep);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.page-home .home-update__rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-card {
  position: relative;
  flex: 0 0 236px;
  max-width: 236px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--home-white);
  border: var(--home-border);
  box-shadow: var(--home-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-lg);
}

.page-home .home-card__cover {
  position: relative;
  height: 132px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: var(--home-border);
  overflow: hidden;
}

.page-home .home-card__cover::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(42, 42, 42, 0.35);
  pointer-events: none;
}

.page-home .home-card__cover--a {
  background: linear-gradient(135deg, var(--section-bg-primary) 0%, #FFB703 100%);
}

.page-home .home-card__cover--b {
  background: linear-gradient(135deg, var(--section-bg-secondary) 0%, #FF8E8E 100%);
}

.page-home .home-card__cover--c {
  background: linear-gradient(135deg, var(--accent-a) 0%, #4DFFEB 100%);
}

.page-home .home-card__cover--d {
  background: linear-gradient(135deg, var(--home-deep) 0%, #747474 100%);
}

.page-home .home-card__cover--d .home-card__section,
.page-home .home-card__cover--d .home-card__batch {
  color: var(--home-white);
}

.page-home .home-card__section {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.page-home .home-card__batch {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
}

.page-home .home-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.page-home .home-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.page-home .home-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.page-home .home-card__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--status-archived);
}

.page-home .home-card__meta {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.page-home .home-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.page-home .home-card__update {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
  color: var(--home-deep);
}

.page-home .home-sections {
  padding: 44px 0 10px;
}

.page-home .home-sections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-magnet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: var(--home-border);
  box-shadow: var(--home-shadow);
  text-decoration: none;
  color: var(--home-deep);
  overflow: hidden;
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-magnet:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-lg);
}

.page-home .home-magnet--yellow {
  background: var(--section-bg-primary);
}

.page-home .home-magnet--coral {
  background: var(--section-bg-secondary);
}

.page-home .home-magnet--blue {
  background: var(--accent-a);
}

.page-home .home-magnet__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-home .home-magnet__name {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.page-home .home-magnet__count {
  font-family: var(--font-mono);
  font-size: 26px;
  margin-top: 6px;
}

.page-home .home-magnet__note {
  font-size: 13px;
  margin-top: auto;
  opacity: 0.82;
}

.page-home .home-magnet__icon {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: var(--home-border);
  transform: rotate(6deg);
  opacity: 0.85;
}

.page-home .home-access {
  margin-top: 48px;
  background: var(--section-bg-secondary);
  border-top: var(--home-border);
  border-bottom: var(--home-border);
}

.page-home .home-access__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 34px;
  padding-bottom: 38px;
}

.page-home .home-access__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  text-transform: uppercase;
  margin: 0;
}

.page-home .home-access__inner p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.page-home .home-access__inner .btn {
  align-self: flex-start;
}

.page-home .home-tags {
  margin-top: 48px;
  background: var(--home-tags-bg);
  color: var(--home-white);
  border-top: var(--home-border);
  padding: 44px 0 50px;
}

.page-home .home-tags__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.page-home .home-tags__head .eyebrow {
  color: var(--accent-b);
}

.page-home .home-tags__lead {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.page-home .home-tags__art {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 2px solid var(--home-white);
  box-shadow: 4px 4px 0 var(--accent-b);
}

.page-home .home-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  padding-top: 6px;
}

.page-home .home-tags__cloud .tag-item {
  position: relative;
  font-weight: 700;
}

.page-home .home-tags__cloud .tag-item b {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 30px;
  height: 24px;
  padding: 2px 6px;
  background: var(--home-deep);
  color: var(--home-white);
  border: 2px solid var(--home-white);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.page-home .home-hot {
  background: var(--card-bg-alt);
  border-bottom: var(--home-border);
  padding: 44px 0 52px;
}

.page-home .home-hot__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .home-hot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-hot__row {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "rank info"
    "rank meter";
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--home-white);
  border: var(--home-border);
  box-shadow: var(--home-shadow);
}

.page-home .home-hot__rank {
  grid-area: rank;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent-a);
  -webkit-text-stroke: 1.5px var(--home-deep);
  text-align: center;
}

.page-home .home-hot__row:first-child .home-hot__rank {
  color: var(--status-hot);
}

.page-home .home-hot__info {
  grid-area: info;
}

.page-home .home-hot__name {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 2px;
}

.page-home .home-hot__meta {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.page-home .home-hot__meter {
  grid-area: meter;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-hot__meterbar {
  flex: 1;
  height: 14px;
  border: 2px solid var(--home-deep);
  background: var(--card-bg-alt);
}

.page-home .home-hot__meterbar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--accent-a) 0 6px, #00C2D1 6px 12px);
}

.page-home .home-hot__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

.page-home .home-hot__go {
  display: none;
}

.page-home .home-archive {
  background: var(--section-bg-primary);
  border-top: var(--home-border);
  padding: 44px 0 56px;
}

.page-home .home-archive__head {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.page-home .home-archive__head .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.page-home .home-archive__symbol {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: var(--home-border);
  box-shadow: var(--home-shadow);
}

.page-home .home-archive__lead {
  font-size: 15px;
  line-height: 1.6;
  margin: 6px 0 0;
  color: rgba(42, 42, 42, 0.8);
}

.page-home .home-archive__months {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-month {
  background: var(--home-white);
  border: var(--home-border);
  box-shadow: var(--home-shadow);
}

.page-home .home-month__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
}

.page-home .home-month__summary::-webkit-details-marker {
  display: none;
}

.page-home .home-month__label {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
}

.page-home .home-month__range {
  font-family: var(--font-mono);
  font-size: 14px;
}

.page-home .home-month__total {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 4px 10px;
  background: var(--accent-b);
  border: 2px solid var(--home-deep);
}

.page-home .home-month__summary::after {
  content: "+";
  margin-left: 4px;
  font-size: 24px;
  font-weight: 900;
  color: var(--status-hot);
}

.page-home .home-month[open] .home-month__summary::after {
  content: "–";
}

.page-home .home-month__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-border);
}

.page-home .home-month__list li {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  grid-template-areas:
    "batch name status"
    "batch section status";
  gap: 6px 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #D9D9D9;
  font-size: 14px;
}

.page-home .home-month__list li:last-child {
  border-bottom: 0;
}

.page-home .home-month__batch {
  grid-area: batch;
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .home-month__name {
  grid-area: name;
  font-weight: 700;
}

.page-home .home-month__section {
  grid-area: section;
  justify-self: start;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--home-deep);
  background: var(--page-bg);
}

.page-home .home-month__status {
  grid-area: status;
  justify-self: end;
  font-size: 12px;
}

@media (min-width: 768px) {
  .page-home .home-update__banner {
    min-height: 440px;
  }

  .page-home .home-update__head {
    padding-top: 130px;
    padding-bottom: 56px;
  }

  .page-home .home-update__lead {
    font-size: 18px;
  }

  .page-home .home-sections {
    padding-top: 52px;
  }

  .page-home .home-sections__grid {
    grid-template-columns: 1.05fr 1fr 1fr;
  }

  .page-home .home-magnet {
    min-height: 230px;
  }

  .page-home .home-magnet--coral {
    transform: translateY(18px);
  }

  .page-home .home-magnet--coral:hover {
    transform: translateY(16px) translateX(-2px);
  }

  .page-home .home-magnet--blue {
    transform: translateY(6px);
  }

  .page-home .home-magnet--blue:hover {
    transform: translateY(4px) translateX(-2px);
  }

  .page-home .home-tags__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .home-hot__row {
    grid-template-columns: 76px 1fr 160px 40px;
    grid-template-rows: 1fr;
    grid-template-areas: "rank info meter go";
    align-items: center;
    padding: 14px 18px;
  }

  .page-home .home-hot__go {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: var(--home-border);
    background: var(--accent-b);
    text-decoration: none;
    font-weight: 900;
    color: var(--home-deep);
  }

  .page-home .home-archive__head {
    grid-template-columns: 100px 1fr auto;
    grid-template-rows: auto auto;
  }

  .page-home .home-archive__symbol {
    width: 100px;
    height: 100px;
    grid-row: span 2;
  }

  .page-home .home-archive__head .btn {
    grid-column: auto;
    align-self: end;
  }

  .page-home .home-month__list li {
    grid-template-columns: 80px 1fr auto auto;
    grid-template-areas: "batch name section status";
    gap: 12px;
  }

  .page-home .home-month__section {
    justify-self: auto;
  }

  .page-home .home-month__status {
    justify-self: auto;
  }
}
