body:has(.tellem-home) .md-content__inner > .md-source-file,
body:has(.tellem-home) .md-footer { display: none; }
body:has(.tellem-home) .md-main__inner { margin-top: .5rem; }
body:has(.tellem-home) .md-content__inner { padding-top: 0; }
body:has(.tellem-home) .md-content__inner::before { display: none; }

.tellem-home { max-width: 52rem; margin: 0 auto; }
.tellem-home-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tellem-home-hero { padding: .25rem 0 1rem; text-align: center; }
.tellem-home-wordmark {
  width: 10rem;
  max-width: 100%;
  aspect-ratio: 640 / 250;
  margin: 0 auto;
  background: url("../media/tellem-wordmark-fall.gif") center / contain no-repeat;
}
[data-md-color-scheme="slate"] .tellem-home-wordmark { background-image: url("../media/tellem-wordmark-fall-dark.gif"); }

.md-typeset .tellem-home-hero h1 {
  margin: -.25rem 0 .8rem;
  color: var(--tellem-surface-fg);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.2;
}
.tellem-home-hero .headerlink { display: none; }
.tellem-home-screen-reader > .headerlink { display: none; }
.tellem-home-search {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: min(100%, 31rem);
  min-height: 2.6rem;
  margin: 0 auto;
  padding: .6rem .9rem;
  border: 1px solid var(--tellem-surface-line);
  border-radius: .55rem;
  background: var(--tellem-surface-bg);
  color: var(--tellem-surface-muted);
  font: inherit;
  font-size: .8rem;
  text-align: left;
  cursor: pointer;
}
.tellem-home-search:hover { border-color: var(--md-typeset-a-color); }
.tellem-home-search svg { flex: 0 0 1rem; width: 1rem; height: 1rem; fill: var(--md-typeset-a-color); }

.md-typeset .grid.cards.tellem-home-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.md-typeset .grid.cards.tellem-home-audiences > ul > li {
  position: relative;
  min-width: 0;
  padding: .8rem 1rem;
  border-color: var(--tellem-surface-line);
  border-radius: .5rem;
  background: var(--tellem-soft-bg);
}
.tellem-home-audiences li > p:first-child { margin: 0; font-size: .85rem; }
.tellem-home-audiences li > p:last-child { margin: .3rem 0 0; color: var(--tellem-surface-muted); font-size: .75rem; }
.tellem-home-audiences .twemoji { color: var(--md-typeset-a-color); margin-right: .25rem; }
.tellem-home-audiences a::after { position: absolute; inset: 0; content: ""; }

.md-typeset .tellem-home > h2 { margin: 1.4rem 0 .7rem; color: var(--tellem-surface-fg); font-size: 1rem; font-weight: 600; }
.md-typeset .grid.cards.tellem-home-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.md-typeset .grid.cards.tellem-home-topics > ul > li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .9rem;
  border-color: var(--tellem-surface-line);
  border-radius: .5rem;
}
.md-typeset .grid.cards:is(.tellem-home-topics, .tellem-home-audiences, .tellem-home-actions) > ul > li:hover { border-color: var(--tellem-brand); box-shadow: none; }
:is(.tellem-home-topics, .tellem-home-audiences, .tellem-home-actions) li:has(a:focus-visible) { outline: 2px solid var(--md-typeset-a-color); outline-offset: 3px; }
.tellem-home-topics li > p:last-child a:first-child::after { position: absolute; inset: 0; content: ""; }
.tellem-home-topics li > p:last-child a + a { position: relative; z-index: 1; }
.tellem-home-topics li > p:first-child {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .35rem;
  color: var(--tellem-surface-fg);
  font-size: .8rem;
}
.tellem-home-topics li > p:first-child .twemoji { flex-shrink: 0; color: var(--md-typeset-a-color); font-size: 1.1rem; }
.tellem-home-topics strong { font-weight: 600; }
.tellem-home-topics li > p:nth-child(2) { margin: 0 0 .55rem; color: var(--tellem-surface-muted); font-size: .75rem; line-height: 1.5; }
.tellem-home-topics li > p:last-child { margin-top: auto; margin-bottom: 0; font-size: .75rem; }
.md-typeset .tellem-home a:not(.headerlink) { text-decoration: none; }
.md-typeset .tellem-home a:hover { text-decoration: underline; }

.tellem-home-howto { margin-top: 1.1rem; }
.md-typeset .tellem-home-howto h2 { margin: 0 0 .45rem; font-size: .85rem; font-weight: 600; }
.tellem-home-action-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.tellem-home-action-group { min-width: 0; }
.tellem-home-action-help { grid-column: 1 / -1; }
.md-typeset .tellem-home-action-group h3 { margin: 0 0 .45rem; color: var(--tellem-surface-muted); font-size: .8rem; font-weight: 600; }
.md-typeset .grid.cards.tellem-home-actions { grid-template-columns: 1fr; gap: .6rem; margin: 0; }
.md-typeset .grid.cards.tellem-home-actions > ul > li {
  position: relative;
  min-width: 0;
  padding: .65rem .75rem;
  border-color: var(--tellem-surface-line);
  border-radius: .5rem;
}
.tellem-home-actions li > p,
.md-typeset .grid.cards.tellem-home-action-help > ul > li { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .75rem; line-height: 1.5; }
.tellem-home-action-help li { justify-content: center; }
.tellem-home-actions .twemoji { flex-shrink: 0; color: var(--md-typeset-a-color); font-size: 1rem; }
.tellem-home-actions a::after { position: absolute; inset: 0; content: ""; }
.tellem-home-actions li:hover { background: var(--tellem-soft-bg); }
.tellem-home-help { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--tellem-surface-line); font-size: .75rem; }
.tellem-home-help a { display: inline-flex; align-items: center; min-height: 2.2rem; }

.md-typeset .tellem-home-info {
  margin: .8rem 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--tellem-surface-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: .8rem;
}
.md-typeset .tellem-home-info > summary { margin: 0; padding: .8rem 0; border-radius: 0; background: transparent; color: var(--tellem-surface-muted); font-size: .75rem; }
.md-typeset .tellem-home-info > summary::before { display: none; }
.md-typeset .tellem-home-info > summary::after { right: .2rem; }
.md-typeset .tellem-home-info h2 { font-size: .9rem; }
.tellem-home-footer { padding: .6rem 0 1rem; color: var(--tellem-surface-muted); font-size: .75rem; }
.tellem-home-footer p { margin: 0; }
.tellem-home-footer a { display: inline-flex; align-items: center; min-height: 2.2rem; color: var(--tellem-surface-muted); }

@media (prefers-reduced-motion: reduce) {
  .tellem-home-wordmark { background-image: url("../media/tellem-wordmark.svg"); }
  [data-md-color-scheme="slate"] .tellem-home-wordmark { background-image: url("../media/tellem-wordmark-dark.svg"); }
}

@media screen and (max-width: 45em) {
  .tellem-home-hero { padding-top: 0; padding-bottom: .75rem; }
  .tellem-home-wordmark { width: 8rem; }
  .md-typeset .grid.cards.tellem-home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .md-typeset .grid.cards.tellem-home-audiences { gap: .6rem; }
  .md-typeset .grid.cards.tellem-home-audiences > ul > li { padding: .7rem; }
  .tellem-home-audiences li > p:first-child { font-size: .8rem; }
  .tellem-home-audiences li > p:last-child { font-size: .75rem; }
}

@media screen and (max-width: 30em) {
  .tellem-home-action-groups { grid-template-columns: 1fr; }
  .md-typeset .grid.cards.tellem-home-topics { grid-template-columns: 1fr; }
  .md-typeset .grid.cards.tellem-home-topics > ul > li { padding: .7rem .8rem; }
  .tellem-home-topics li > p:last-child a { display: inline-flex; align-items: center; min-height: 2.2rem; }
  .tellem-home-audiences li > p:first-child .twemoji { display: block; margin: 0 0 .2rem; }
  .tellem-home-search { padding-left: .65rem; padding-right: .65rem; }
}
