/* The home page uses the site's Onest typeface and its light/dark tokens. */
.cover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
}
.cover-heading h1 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.cover-topics { position: relative; flex: none; }
.cover-topics summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  cursor: pointer;
  font-size: .875rem;
  list-style: none;
}
.cover-topics summary::-webkit-details-marker { display: none; }
.cover-topics summary::after {
  content: '';
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.cover-topics[open] summary::after { transform: translateY(2px) rotate(225deg); }
.cover-topics nav {
  position: absolute;
  z-index: 4;
  inset: 100% 0 auto auto;
  min-width: 13rem;
  padding: .375rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
.cover-topics nav a { display: block; padding: .6rem .875rem; }
.cover-topics nav a:hover { background: var(--soft); }
.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 4vw, 4rem);
}
.cover-lead a, .cover-reading a { display: block; }
.cover-visual {
  aspect-ratio: 2.4;
  overflow: hidden;
  border-radius: .375rem;
  background: var(--soft);
}
.cover-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-meta, .cover-topic {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.45;
}
.cover-meta { margin: 1.125rem 0 .375rem; color: var(--accent-ink); }
.cover-topic { margin-bottom: .25rem; color: var(--muted); }
.cover-lead h2, .cover-reading h3 { overflow-wrap: anywhere; text-wrap: pretty; }
.cover-lead h2 {
  max-width: 33ch;
  font-size: clamp(1.65rem, 2.65vw, 2.625rem);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.cover-lead p {
  max-width: 65ch;
  margin-top: .75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.cover-reading { border-top: 2px solid var(--ink); }
.cover-reading h2 { padding-top: .75rem; font-size: 1rem; font-weight: 650; }
.cover-reading ul { list-style: none; margin: 0; padding: 0; }
.cover-reading li + li { border-top: 1px solid var(--line); }
.cover-reading li a { padding: .875rem 0 1rem; }
.cover-reading h3 { font-size: clamp(1.125rem, 1.55vw, 1.45rem); line-height: 1.28; font-weight: 550; letter-spacing: -.025em; }
.cover-layout a:is(:hover, :focus-visible) :is(h2,h3) { color: var(--accent-ink); }
.home-page .desk-layout { margin-top: clamp(2rem, 4vw, 4rem); }
.home-page .desk-feed { background: transparent; border: 0; padding: 0; }
.home-page .desk-feed-heading { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.home-page .desk-panel { background: transparent; border: 0; padding: 0; }
.home-page .desk-panel > h2 { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
@media (max-width: 740px) {
  .cover-heading { padding-block: .5rem; }
  .cover-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .cover-lead h2 { font-size: clamp(1.65rem, 6vw, 2.05rem); line-height: 1.17; }
  .cover-meta { margin-top: .875rem; }
  .cover-visual { aspect-ratio: 2.15; }
  .cover-reading li a { padding-block: .8rem; }
  .cover-reading h3 { font-size: 1.125rem; line-height: 1.35; }
}
@media (max-width: 600px) {
  .home-page .feed-story {
    display: grid;
    grid-template-columns: minmax(0,1fr) clamp(4rem,19vw,5.75rem);
    grid-template-areas: "meta meta" "title img" "excerpt excerpt" "foot foot";
    gap: .5rem .875rem;
    align-items: start;
  }
  .home-page .feed-copy { display: contents; }
  .home-page .feed-copy .card-meta { grid-area: meta; margin: 0; }
  .home-page .feed-story .feed-image { grid-area: img; margin: 0; width: 100%; height: auto; aspect-ratio: 1.4; }
  .home-page .feed-story h3 { grid-area: title; margin: 0; padding: 0; min-height: 0; overflow-wrap: anywhere; }
  .home-page .feed-copy > p { grid-area: excerpt; margin: 0; }
  .home-page .feed-foot { grid-area: foot; margin: 0; }
}
