.launcher-brand {
  color: inherit;
  text-decoration: none;
}

.launcher-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.launcher-head-copy > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-footnotes {
  margin-top: clamp(64px, 9vw, 108px);
  padding: clamp(58px, 8vw, 92px) 0;
  border-top: 1px solid var(--line-strong);
}

.home-footnotes-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 62px);
}

.home-footnotes-header > div {
  max-width: 760px;
}

.home-footnotes-header h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.home-footnotes-header > div > p:last-child {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.55;
}

.home-footnotes-header > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.home-footnotes-header > a:hover,
.home-footnotes-header > a:focus-visible {
  border-color: var(--text);
  background: var(--accent);
}

.home-footnotes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) 24px;
}

.home-footnote-card {
  grid-column: span 2;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  animation: home-footnote-rise 420ms ease both;
}

.home-footnote-card:nth-child(2) {
  animation-delay: 55ms;
}

.home-footnote-card:nth-child(3) {
  animation-delay: 110ms;
}

.home-footnote-card:nth-child(4) {
  animation-delay: 165ms;
}

.home-footnote-card.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(26px, 5vw, 66px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 0;
  border-radius: 12px;
  background: #f8fbad;
}

.home-footnote-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--bg-surface);
}

.home-footnote-card.is-featured .home-footnote-media {
  aspect-ratio: 16 / 9;
}

.home-footnote-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.home-footnote-card:hover .home-footnote-media img,
.home-footnote-card:focus-visible .home-footnote-media img {
  transform: scale(1.025);
}

.home-footnote-card:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.home-footnote-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-footnote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-footnote-copy > strong {
  font-size: clamp(1.26rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.home-footnote-card.is-featured .home-footnote-copy > strong {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.home-footnote-copy > small {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-footnote-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 500;
}

.home-footnote-action > span {
  transition: transform 180ms ease;
}

.home-footnote-card:hover .home-footnote-action > span,
.home-footnote-card:focus-visible .home-footnote-action > span {
  transform: translateY(3px);
}

.home-footnote-reader {
  margin-top: clamp(32px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.home-footnote-reader[hidden] {
  display: none;
}

.home-footnote-reader.is-loading #homeFootnoteReaderContent {
  min-height: 220px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f4f6 25%, #f9fafb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: home-reader-loading 1.1s linear infinite;
}

.home-footnote-reader-toolbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
}

.home-footnote-reader-toolbar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.home-footnote-reader-toolbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--accent);
  color: var(--text);
  font-weight: 500;
}

.home-footnote-reader .footnote-article {
  padding-bottom: 72px;
}

.home-footnote-reader .footnote-article-end {
  display: none;
}

.home-footnote-error {
  padding: 34px 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.home-noscript {
  max-width: 740px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-noscript {
  padding: 20px 0;
}

@keyframes home-footnote-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-reader-loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 900px) {
  .home-footnotes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footnote-card,
  .home-footnote-card.is-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    padding: 18px 0 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
  }

}

@media (max-width: 640px) {
  .launcher-head {
    align-items: flex-start;
  }

  .launcher-brand img:last-child {
    display: none;
  }

  .home-footnotes-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-footnotes-header > a {
    width: 100%;
  }

  .home-footnotes-grid {
    grid-template-columns: 1fr;
  }

  .home-footnote-reader-toolbar {
    top: 6px;
  }

  .home-footnote-reader .footnote-article {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-footnote-card,
  .home-footnote-media img,
  .home-footnote-action > span,
  .home-footnote-reader.is-loading #homeFootnoteReaderContent {
    animation: none;
    transition: none;
  }
}

/* ── ALL GUIDES (static, crawlable index of the standalone guide pages) ── */
.home-guides {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(52px, 7vw, 84px) 0 0;
  border-top: 1px solid var(--line-strong);
}

.home-guides-header {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.home-guides-header h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.home-guides-header p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--text-muted);
}

.home-guides-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 48px) 40px;
}

.home-guides-group {
  min-width: 0;
}

.home-guides-group h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.home-guides-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.home-guides-list a {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.home-guides-list li:last-child a {
  border-bottom: 0;
}

.home-guides-list strong {
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.home-guides-list small {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.home-guides-list a:hover strong,
.home-guides-list a:focus-visible strong {
  color: var(--accent);
}

.home-guides-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .home-guides-groups {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
