/* The landing page (templates/home.html), loaded after frame.css and the product's theme.css: it uses the frame's tokens and the product's own accent colours. */

/* One centred column, the manuals' own (Ben, 2026-11-20: "i want it to be centered throught the document in all states, for all the manuals"): the reading column's width, with the side padding outside it as the frame's is; every block below is its width and its words start at its left edge. */
.home-main { box-sizing: content-box; max-width: calc(var(--size-body) * 40); margin: 0 auto; padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 56px) 64px; }
.home-main a:not(.primary):not(.house):not(.tile) { color: var(--accent, var(--ink)); text-underline-offset: 3px; }

/* The hero: ChimpType's own sticker art, scaled by height only and never cropped, beside the headline. The one bold thing on the page is here: the art and, under the headline, the headphones' cyan-to-magenta sweep. */
.hero { display: flex; align-items: center; gap: clamp(28px, 5vw, 56px); }
.hero-art { display: block; flex: none; height: 200px; width: auto; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-text h1::after { content: ""; display: block; width: 96px; height: 5px; margin-top: .45em; border-radius: 3px; background: linear-gradient(90deg, var(--accent, var(--ink)), var(--second, var(--muted))); }
.hero-text .lead { margin: 0; }
@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-art { height: 160px; }
  .hero-text { align-self: stretch; }
}
.home-main h1 {
  font-family: var(--display); font-weight: 600; font-stretch: 87.5%;
  font-size: var(--size-title); line-height: 1.06; letter-spacing: -.01em;
  margin: 0 0 .45em; text-wrap: balance;
}

/* Quick start: pictures of the app, each framed on the thing it is about, with a plain label under it. The framing is the tile's own --focus-x, --focus-y and --zoom (site/home.json). */
.tiles-block { margin: clamp(40px, 6vw, 64px) 0 0; }
.tiles-block h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: var(--size-heading); line-height: 1.2; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.tile { display: block; color: var(--ink); text-decoration: none; border-radius: 10px; }
.tile-picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tile-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x) var(--focus-y); transform: scale(var(--zoom)); transform-origin: var(--focus-x) var(--focus-y); }
.tile-label { display: block; margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: var(--size-body); line-height: 1.25; }
.tile-line { display: block; margin-top: 2px; color: var(--muted); font-size: var(--size-small); line-height: 1.4; }
.tile:hover .tile-picture { border-color: var(--accent, var(--ink)); }
.tile:hover .tile-label { text-decoration: underline; text-underline-offset: 3px; }
.tile:focus-visible { outline: 3px solid var(--second, var(--ink)); outline-offset: 4px; }

.all-topics { margin: 28px 0 0; font-size: var(--size-body); }
.home-foot { margin-top: 56px; }
