/*
 * The index page. Every colour, radius and font comes from site-kit's tokens,
 * so restyling the site means editing that one file.
 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--sk-bg);
  color: var(--sk-text);
  font-family: var(--sk-font);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--sk-accent);
}

a:focus-visible,
.app-card-link:focus-visible {
  outline: 2px solid var(--sk-accent);
  outline-offset: 3px;
  border-radius: var(--sk-radius-focus);
}

/* The same width and gutter the nav bar is laid out on, so the page's contents
   line up under the mark. */
.site-head,
main,
.site-foot {
  max-width: var(--sk-page-max);
  margin: 0 auto;
  padding-inline: var(--sk-page-pad);
}

.site-head {
  padding-top: 56px;
  padding-bottom: 8px;
}

.site-head h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: -0.02em;
}

.site-lede {
  margin: 12px 0 0;
  max-width: 48rem;
  color: var(--sk-muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

/* One column on a phone, as many as fit after that. */
.apps {
  list-style: none;
  margin: 32px 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.app-card {
  background: var(--sk-surface);
  border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.app-card-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--sk-border);
  background: var(--sk-bg);
}

.app-card-title {
  margin: 16px 16px 0;
  font-size: 1.15rem;
}

.app-card-link:hover .app-card-title {
  text-decoration: underline;
}

.app-card-blurb {
  margin: 8px 16px 16px;
  color: var(--sk-muted);
  font-size: 0.95rem;
}

.app-card-model {
  margin: auto 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sk-border);
  color: var(--sk-muted);
  font-size: 0.85rem;
}

/* The one full-width band on the page, so it reads as a statement rather than
   a footnote. */
.powered {
  border-block: 1px solid var(--sk-border);
  background: var(--sk-surface);
  padding: 64px var(--sk-page-pad);
  text-align: center;
}

.powered-inner {
  max-width: 44rem;
  margin: 0 auto;
}

/* Model Home's own orange, so its mark arrives here looking like itself. */
.powered-mark {
  display: inline-flex;
  color: var(--sk-house);
}

.powered-title {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.powered-title a {
  color: inherit;
}

.powered-text {
  margin: 16px 0 0;
  color: var(--sk-muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 32px 48px;
  color: var(--sk-muted);
  font-size: 0.9rem;
}
