.page-home {
  --home-section-radius: 20px;
  --home-section-border: 3px solid var(--border-ink);
}

.page-home .home-hero-strip {
  margin: 4px 0 20px;
  border-radius: var(--home-section-radius);
  border: var(--home-section-border);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--bg-deep);
}

.page-home .home-hero-strip img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-tilematrix-section {
  margin-bottom: 28px;
}

.page-home .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--border-ink);
}

.page-home .section-title {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
}

.page-home .home-tilematrix-section .section-title {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 3rem);
}

.page-home .section-more {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
}

.page-home .home-tile-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.page-home .home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 112px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 3px solid var(--border-ink);
  box-shadow: var(--shadow-hard);
  color: var(--text-light);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.page-home .home-tile:hover,
.page-home .home-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 var(--border-ink);
  filter: brightness(1.08);
}

.page-home .home-tile--darktext {
  color: var(--text-dark);
}

.page-home .home-tile-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.15;
}

.page-home .home-tile-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  margin-top: 10px;
}

.page-home .home-tile-unit {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 3px;
}

.page-home .home-tile-matrix .home-tile:nth-child(1),
.page-home .home-tile-matrix .home-tile:nth-child(5) {
  background-color: var(--bg-hotlist);
}

.page-home .home-tile-matrix .home-tile:nth-child(2),
.page-home .home-tile-matrix .home-tile:nth-child(6) {
  background-color: var(--bg-collection);
}

.page-home .home-tile-matrix .home-tile:nth-child(3),
.page-home .home-tile-matrix .home-tile:nth-child(7) {
  background-color: var(--bg-filter);
}

.page-home .home-tile-matrix .home-tile:nth-child(4),
.page-home .home-tile-matrix .home-tile:nth-child(8) {
  background-color: var(--bg-tagcloud);
}

.page-home .home-tile--pat-stripes {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 6px, transparent 6px, transparent 20px);
}

.page-home .home-tile--pat-dots {
  background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.14) 0, rgba(255,255,255,0.14) 5px, transparent 6px);
  background-size: 40px 40px, auto;
}

.page-home .home-tile--pat-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
}

.page-home .home-tile--pat-diagonal {
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.09) 0, rgba(255,255,255,0.09) 4px, transparent 4px, transparent 14px);
}

.page-home .home-tile--darktext.home-tile--pat-dots {
  background-image: radial-gradient(circle at 20px 20px, rgba(0,0,0,0.10) 0, rgba(0,0,0,0.10) 5px, transparent 6px);
  background-size: 40px 40px, auto;
}

.page-home .home-tile--darktext.home-tile--pat-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
}

.page-home .home-tile--featured {
  border-color: var(--accent-highlight);
  box-shadow: 0 0 0 3px var(--accent-highlight), 0 4px 0 var(--border-ink);
}

.page-home .home-tile--featured:hover,
.page-home .home-tile--featured:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-highlight), 0 6px 0 var(--border-ink);
}

.page-home .home-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.page-home .home-layout-main,
.page-home .home-layout-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.page-home .home-hot-section,
.page-home .home-collect-section,
.page-home .home-tag-section,
.page-home .home-wordnav-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-section-radius);
  border: var(--home-section-border);
  box-shadow: var(--shadow-hard);
  padding: 18px 16px;
}

.page-home .home-hot-section {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.page-home .home-collect-section {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.page-home .home-tag-section {
  background: var(--bg-tagcloud);
  color: var(--text-light);
}

.page-home .home-wordnav-section {
  background: var(--bg-filter);
  color: var(--text-light);
}

.page-home .home-hot-section .section-title,
.page-home .home-tag-section .section-title,
.page-home .home-wordnav-section .section-title,
.page-home .home-hot-section .section-more,
.page-home .home-tag-section .section-more,
.page-home .home-wordnav-section .section-more {
  color: var(--text-light);
}

.page-home .home-collect-section .section-title,
.page-home .home-collect-section .section-more {
  color: var(--text-dark);
}

.page-home .home-hot-section > .home-hot-list,
.page-home .home-hot-section > .section-head,
.page-home .home-tag-section > .section-head,
.page-home .home-tag-section > .home-tag-cluster,
.page-home .home-wordnav-section > .section-head,
.page-home .home-wordnav-section > .home-wordnav,
.page-home .home-wordnav-section > .home-index-bar {
  position: relative;
  z-index: 1;
}

.page-home .home-hot-bg,
.page-home .home-tag-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.page-home .home-hot-bg img,
.page-home .home-tag-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-home .home-hot-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.page-home .home-hot-row:hover,
.page-home .home-hot-row:focus-within {
  transform: translateX(5px);
  box-shadow: var(--shadow-hard);
}

.page-home .home-hot-idx {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  color: var(--text-dark);
}

.page-home .home-hot-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.page-home .home-hot-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.page-home .home-hot-name {
  min-width: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.page-home .home-hot-name:hover,
.page-home .home-hot-name:focus-visible {
  border-bottom-color: var(--accent-highlight);
}

.page-home .home-hot-zone {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  color: var(--text-light);
}

.page-home .home-hot-zone--hot {
  background: var(--bg-hotlist);
}

.page-home .home-hot-zone--collection {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.page-home .home-hot-zone--filter {
  background: var(--bg-filter);
}

.page-home .home-hot-zone--tag {
  background: var(--bg-tagcloud);
}

.page-home .home-hot-trend {
  margin-left: auto;
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  color: var(--text-dark);
}

.page-home .home-hot-trend--up {
  background: var(--accent-highlight);
}

.page-home .home-hot-trend--down {
  background: var(--status-unread);
  color: var(--text-light);
}

.page-home .home-hot-trend--flat {
  background: var(--status-archived);
  color: var(--text-light);
}

.page-home .home-hot-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.2);
  overflow: hidden;
}

.page-home .home-hot-fill {
  height: 100%;
  border-radius: inherit;
}

.page-home .home-hot-fill--hot {
  background: var(--bg-hotlist);
}

.page-home .home-hot-fill--collect {
  background: var(--bg-collection);
}

.page-home .home-hot-fill--filter {
  background: var(--bg-filter);
}

.page-home .home-hot-fill--tag {
  background: var(--bg-tagcloud);
}

.page-home .home-collect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-collect-card {
  position: relative;
  background: var(--bg-card);
  border: 3px solid var(--border-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .home-collect-card:hover,
.page-home .home-collect-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 var(--border-ink);
}

.page-home .home-collect-media {
  position: relative;
  border-bottom: 3px solid var(--border-ink);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-home .home-collect-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.page-home .home-collect-media .card-tag,
.page-home .home-collect-media .status-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  box-shadow: var(--shadow-soft);
}

.page-home .home-collect-media .card-tag {
  left: 10px;
  background: var(--accent-highlight);
  color: var(--text-dark);
}

.page-home .home-collect-media .status-badge {
  right: 10px;
}

.page-home .home-collect-card .card-body {
  padding: 12px;
}

.page-home .home-collect-card .card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.page-home .home-collect-card .card-title a {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.12s ease;
}

.page-home .home-collect-card .card-title a:hover,
.page-home .home-collect-card .card-title a:focus-visible {
  border-bottom-color: var(--accent-highlight);
}

.page-home .home-collect-card .card-meta {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.72);
}

.page-home .home-tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  color: var(--text-dark);
  background: var(--bg-card);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.page-home .home-tag:hover,
.page-home .home-tag:focus-visible {
  transform: scale(1.06);
  box-shadow: var(--shadow-soft);
  background: var(--accent-highlight);
}

.page-home .home-tag--lg {
  font-size: 0.95rem;
  padding: 8px 16px;
  border-width: 3px;
}

.page-home .home-tag--sm {
  font-size: 0.68rem;
  padding: 4px 9px;
}

.page-home .home-tag--hot {
  background: var(--accent-highlight);
  border-color: var(--accent-highlight);
  box-shadow: 0 0 0 2px var(--border-ink), var(--shadow-soft);
}

.page-home .home-tag--zone-hot {
  background: var(--bg-hotlist);
  color: var(--text-light);
}

.page-home .home-tag--zone-collect {
  background: var(--bg-collection);
  color: var(--text-dark);
}

.page-home .home-tag--zone-filter {
  background: var(--bg-filter);
  color: var(--text-light);
}

.page-home .home-tag--zone-tag {
  background: var(--bg-tagcloud);
  color: var(--text-light);
}

.page-home .home-wordnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-wordnav-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 3px solid var(--border-ink);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.page-home .home-wordnav-pill--primary {
  background: var(--accent-highlight);
  color: var(--text-dark);
}

.page-home .home-wordnav-pill--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-home .home-wordnav-pill:hover,
.page-home .home-wordnav-pill:focus-visible {
  background: var(--accent-highlight);
  border-color: var(--border-ink);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.page-home .home-index-bar {
  margin-top: 18px;
}

@media (min-width: 720px) {
  .page-home .home-tile-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .home-collect-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .home-hot-section,
  .page-home .home-collect-section,
  .page-home .home-tag-section,
  .page-home .home-wordnav-section {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }

  .page-home .home-layout-main,
  .page-home .home-layout-side {
    gap: 24px;
  }
}
