.tm-front .tm-wrap { width: min(1240px, calc(100% - 64px)); }
.tm-front-hero {
  position: relative;
  background-color: var(--tm-night);
  background-image: var(--tm-grid);
  background-size: auto, 44px 44px, 44px 44px;
  background-position: center;
  color: #f5f7ff;
  border-bottom: 3px solid #8f77f5;
}
.tm-front-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  padding-block: clamp(34px, 4.8vw, 72px);
}
.tm-front-hero-inner > :only-child { grid-column: 1 / -1; }
.tm-front-intro h1, .tm-front-feature-copy h2 { font-family: var(--tm-display); font-weight: 700; }
.tm-front-intro h1 {
  margin: 0;
  color: #f6f7ff;
  font-size: clamp(3rem, 5.5vw, 5.35rem);
  letter-spacing: -.072em;
  line-height: 1;
  text-wrap: balance;
}
.tm-front-intro h1 span { color: var(--tm-violet); }
.tm-front-intro > p {
  max-width: 42ch;
  margin: 21px 0 0;
  color: #d4dbef;
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.64;
}
.tm-front-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(19px, 3vw, 28px);
}
.tm-front .tm-front-button {
  display: inline-flex;
  gap: .55em;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid var(--tm-mint);
  border-radius: 7px;
  color: var(--tm-night);
  background: var(--tm-mint);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}
.tm-front .tm-front-button:hover { background: #e6ffb8; }
.tm-front .tm-front-button:focus-visible { outline-color: var(--tm-mint); }
.tm-front .tm-front-button-secondary { color: #f8f7ff; background: #18213d; border-color: #535f87; }
.tm-front .tm-front-button-secondary:hover { background: #263355; border-color: var(--tm-violet); }

.tm-front .tm-front-feature {
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid #414970;
  border-radius: 15px;
  background: #131a30;
  color: #f7f7ff;
  box-shadow: 0 18px 42px rgb(0 0 0 / .25);
  text-decoration: none;
}
.tm-front .tm-front-feature:hover { border-color: var(--tm-violet); }
.tm-front-feature-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: #e8eafa;
}
.tm-front-feature-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tm-front-feature-copy { position: relative; padding: 13px 45px 11px 12px; }
.tm-front-feature-label {
  margin: 0 0 4px;
  color: var(--tm-violet);
  font: 650 .75rem/1.5 var(--tm-mono);
}
.tm-front-feature-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.24rem, 2.1vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -.033em;
  text-wrap: balance;
}
.tm-front-feature-arrow {
  position: absolute;
  top: 15px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #4d587f;
  border-radius: 6px;
  color: var(--tm-mint);
}

.tm-front .tm-edition { padding-block: clamp(25px, 3.1vw, 43px) 56px; }
.tm-front-topics { margin-bottom: clamp(27px, 4vw, 49px); }
.tm-front-topics h2 {
  margin: 0 0 11px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.tm-front-topics ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tm-front-topics li { display: flex; }
.tm-front-topics li:nth-child(2) { --tm-topic-accent: #7651c5; }
.tm-front-topics li:nth-child(3) { --tm-topic-accent: #23836f; }
.tm-front-topics a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 7px;
  align-content: center;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--tm-rule);
  border-inline-start: 3px solid var(--tm-topic-accent, #5165c2);
  border-radius: 8px;
  background: #fff;
  color: var(--tm-muted);
  text-decoration: none;
}
.tm-front-topics a:hover { background: #f2eeff; }
.tm-front-topics strong {
  display: block;
  grid-column: 1;
  color: var(--tm-ink);
  font: 700 1.13rem/1.35 var(--tm-display);
}
.tm-front-topics a > span:first-of-type { grid-column: 1; font-size: .85rem; line-height: 1.48; }
.tm-front-topic-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--tm-teal); }

.tm-front .tm-index { grid-template-columns: minmax(0, 1fr) minmax(230px, 23%); gap: 18px; }
.tm-front .tm-latest > h2 { margin-bottom: 13px; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.tm-front .tm-sidebar { margin-top: clamp(45px, 4.15vw, 63px); }
.tm-front .tm-topic-box h2, .tm-front .tm-rss-box h2 { font-size: 1.14rem; }
.tm-front .tm-topic-box small { margin-bottom: 3px; color: var(--tm-teal); font: 650 .73rem/1.4 var(--tm-mono); }
.tm-front .tm-topic-box strong { color: var(--tm-ink); line-height: 1.35; }
.tm-front .tm-rss-box { background: #ece9fc; }
.tm-front .tm-rss-box p { line-height: 1.55; }

@media (min-width: 360px) {
  .tm-front-intro h1 span { display: block; }
}
@media (max-width: 940px) {
  .tm-front .tm-wrap { width: calc(100% - 44px); }
  .tm-front .tm-index { grid-template-columns: minmax(0, 1fr); }
  .tm-front .tm-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 8px;
  }
}
@media (max-width: 720px) {
  .tm-front .tm-wrap { width: calc(100% - 32px); }
  .tm-front-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 28px 25px; }
  .tm-front-intro h1 { font-size: clamp(2.6rem, 8.4vw, 4.2rem); text-wrap: initial; }
  .tm-front-intro > p { margin-top: 13px; }
  .tm-front-feature-image { aspect-ratio: 2.35 / 1; }
}
@media (max-width: 530px) {
  .tm-front .tm-wrap { width: calc(100% - 28px); }
  .tm-front-topics ul { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .tm-front-topics a { padding-block: 9px; }
  .tm-front .tm-feed, .tm-front .tm-sidebar { grid-template-columns: minmax(0, 1fr); }
  .tm-front .tm-navigation a { padding-block: 9px; }
}
