.page-home {
  --home-shadow: 6px 6px 0 var(--stone);
  --home-shadow-hover: 8px 8px 0 var(--stone);
  --home-hair: rgba(31, 75, 87, .18);
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.8;
  overflow-x: clip;
}

.page-home .container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.page-home [id] {
  scroll-margin-top: 96px;
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--teal);
  margin: 0 0 10px;
}

.page-home .section-title {
  font-size: clamp(1.4rem, 3.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--deep);
  margin: 0 0 14px;
  text-wrap: balance;
}

.page-home .body-copy {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--ink);
}

.page-home .section-head {
  margin-bottom: clamp(22px, 4vw, 36px);
}

.page-home .inline-tail {
  margin-top: 22px;
  color: var(--deep);
}

.page-home .inline-tail a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- hero ---------- */

.page-home .home-hero {
  padding: clamp(22px, 4.5vw, 48px) 0 clamp(28px, 5vw, 64px);
  background:
    radial-gradient(115% 78% at 90% 4%, rgba(127, 196, 207, .30) 0%, rgba(127, 196, 207, 0) 60%),
    var(--mist);
}

.page-home .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--teal);
  margin-bottom: clamp(20px, 3.5vw, 38px);
}

.page-home .crumb-sep {
  color: var(--stone);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.page-home .hero-title {
  font-size: clamp(1.85rem, 6vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.14;
  color: var(--deep);
  margin: 0 0 18px;
  text-wrap: balance;
}

.page-home .hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink);
  max-width: 48ch;
  margin: 0 0 clamp(22px, 3.5vw, 34px);
}

.page-home .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--deep);
}

.page-home .entry-item {
  border-bottom: 2px solid var(--deep);
}

.page-home .entry-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 10px;
  min-height: 72px;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .entry-link:hover,
.page-home .entry-link:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.page-home .entry-num {
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--light-teal);
  transition: color .18s var(--ease);
}

.page-home .entry-link:hover .entry-num,
.page-home .entry-link:focus-visible .entry-num {
  color: var(--orange);
}

.page-home .entry-body {
  display: block;
  min-width: 0;
}

.page-home .entry-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
}

.page-home .entry-desc {
  display: block;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(61, 46, 40, .78);
}

/* ---------- hero stack ---------- */

.page-home .hero-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .stack-card {
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
  padding: 18px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .stack-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-hover);
}

.page-home .stack-card--photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page-home .stack-card--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--deep);
}

.page-home .stack-card--photo figcaption {
  padding: 14px 16px;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(61, 46, 40, .82);
}

.page-home .stack-card--stamp {
  background: var(--light-teal);
}

.page-home .stamp-label {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--deep);
}

.page-home .stamp-note {
  margin: 0 0 14px;
  font-size: .92rem;
  color: var(--deep);
}

.page-home .stack-card--note p {
  margin: 0 0 10px;
  font-size: .94rem;
  line-height: 1.75;
}

.page-home .stack-card--note p:last-child {
  margin-bottom: 0;
}

.page-home .hl {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  margin-right: 2px;
}

.page-home .note-tail {
  color: rgba(61, 46, 40, .78);
  font-size: .88rem;
}

/* ---------- filter ---------- */

.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-bottom: 6px;
  background: var(--cream);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
}

.page-home .filter-btn {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--deep);
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .filter-btn:hover {
  transform: translateY(-2px);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--light-teal);
  color: var(--deep);
  box-shadow: 3px 3px 0 var(--deep);
}

.page-home .empty-note {
  margin: 16px 0 0;
  padding: 18px 20px;
  background: var(--cream);
  border: 2px dashed var(--stone);
  border-radius: var(--radius-card);
  color: var(--deep);
  font-weight: 600;
}

.page-home .empty-note.is-hidden {
  display: none;
}

/* ---------- sections ---------- */

.page-home .home-section {
  padding: clamp(34px, 6vw, 70px) 0;
}

.page-home .home-section--cream {
  background: var(--cream);
}

/* ---------- update board ---------- */

.page-home .upd-grid {
  display: grid;
  gap: 26px;
}

.page-home .upd-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .upd-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-left: 3px solid var(--light-teal);
  padding-left: 14px;
}

.page-home .upd-item-num {
  font-size: .88rem;
  font-weight: 700;
  color: var(--orange);
  padding-top: 4px;
}

.page-home .upd-item p {
  margin: 0;
  line-height: 1.8;
}

.page-home .stamp-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
}

.page-home .stamp {
  font-size: .92rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--light-teal);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.page-home .copy-btn {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 700;
  color: var(--deep);
  background: transparent;
  border: 2px solid var(--deep);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.page-home .copy-btn:hover {
  background: var(--deep);
  color: var(--white);
}

.page-home .copy-btn[data-copied="true"] {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--white);
}

.page-home .upd-aside {
  min-width: 0;
}

.page-home .upd-figure {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.page-home .upd-figure img,
.page-home .family-figure img,
.page-home .channel-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .upd-figure figcaption,
.page-home .family-figure figcaption {
  padding: 13px 16px;
  font-size: .86rem;
  line-height: 1.7;
  color: rgba(61, 46, 40, .8);
  border-top: 2px solid var(--deep);
  background: var(--mist);
}

/* ---------- merge ---------- */

.page-home .merge-compare {
  display: grid;
  gap: 20px;
}

.page-home .merge-col {
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  padding: 20px;
}

.page-home .merge-col--old {
  background: rgba(184, 169, 154, .22);
}

.page-home .merge-col--new {
  background: var(--white);
  box-shadow: var(--home-shadow);
}

.page-home .merge-label {
  margin: 0 0 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--deep);
}

.page-home .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .plain-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: .94rem;
  color: rgba(61, 46, 40, .74);
}

.page-home .plain-list .mono {
  font-size: .82rem;
  font-weight: 700;
  color: var(--stone);
}

.page-home .steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-home .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
}

.page-home .step p {
  margin: 0;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .step strong {
  color: var(--deep);
}

.page-home .merge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.page-home .btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  border: 2px solid var(--deep);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.page-home .btn--primary {
  background: var(--orange);
  color: var(--white);
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--deep);
}

.page-home .btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--deep);
}

/* ---------- table ---------- */

.page-home .table-wrap {
  overflow-x: auto;
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--home-shadow);
}

.page-home table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .94rem;
}

.page-home thead th {
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
}

.page-home tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--home-hair);
  vertical-align: top;
}

.page-home tbody tr:last-child td {
  border-bottom: 0;
}

.page-home tbody td:first-child {
  font-weight: 700;
  color: var(--deep);
  background: rgba(232, 241, 242, .7);
  white-space: nowrap;
}

/* ---------- family ---------- */

.page-home .family-grid {
  display: grid;
  gap: 26px;
  margin-bottom: 32px;
}

.page-home .family-figure {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.page-home .tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .tick-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.8;
}

.page-home .tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  background: var(--moss);
  border-radius: 2px;
}

.page-home .channel-card {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: var(--deep);
  border: 2px solid var(--deep);
  border-radius: var(--radius-card);
  box-shadow: var(--home-shadow);
  color: var(--white);
}

.page-home .channel-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--white);
}

.page-home .channel-text p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .86);
  max-width: 46ch;
}

.page-home .channel-figure {
  margin: 0;
  border: 2px solid var(--light-teal);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

/* ---------- feed ---------- */

.page-home .feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--deep);
}

.page-home .feed-item {
  border-bottom: 2px solid var(--deep);
}

.page-home .feed-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding: 16px 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .feed-link:hover,
.page-home .feed-link:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.page-home .feed-index {
  font-size: .9rem;
  font-weight: 700;
  color: var(--orange);
}

.page-home .feed-title {
  flex: 1 1 60%;
  min-width: 0;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.55;
}

.page-home .feed-kind {
  font-size: .78rem;
  font-weight: 700;
  color: var(--moss);
  border: 1.5px solid var(--moss);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  white-space: nowrap;
}

/* ---------- desktop ---------- */

@media (min-width: 768px) {
  .page-home .channel-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
    gap: 28px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(40px, 5vw, 68px);
    align-items: start;
  }

  .page-home .hero-stack {
    gap: 22px;
  }

  .page-home .stack-card:nth-child(2) {
    margin-left: 34px;
  }

  .page-home .stack-card:nth-child(3) {
    margin-left: 14px;
    margin-right: 22px;
  }

  .page-home .upd-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .upd-aside {
    position: sticky;
    top: 104px;
  }

  .page-home .merge-compare {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .family-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 46px;
    align-items: center;
  }

  .page-home .upd-item {
    padding-left: 18px;
  }
}

@media (min-width: 1100px) {
  .page-home .hero-stack {
    gap: 24px;
  }

  .page-home .stack-card:nth-child(3) {
    margin-left: 26px;
    margin-right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-link,
  .page-home .stack-card,
  .page-home .filter-btn,
  .page-home .btn,
  .page-home .feed-link,
  .page-home .copy-btn {
    transition: none;
  }

  .page-home .entry-link:hover,
  .page-home .stack-card:hover,
  .page-home .filter-btn:hover,
  .page-home .btn:hover,
  .page-home .feed-link:hover {
    transform: none;
  }
}
