/*
 * Buckaroo on the web: the site's layout. Every colour, face and radius is a custom property from
 * Buckaroo.Design's theme stylesheet, loaded before this one; none is written here (W01, rule 4). Body text
 * is the platform's own UI font, as in the apps. Light or dark follows the device. Text sits only on the
 * surfaces its contrast pairs name: text.primary, text.secondary, text.display and accent on
 * surface.background, and text.primary, text.secondary and accent on surface.row.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-background);
  color: var(--text-primary);
  font: 1.0625rem/1.5 system-ui, sans-serif;
  overflow-wrap: break-word;
}

.page,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* The name is set in the theme's title face, as the headings are, not the display face (owner, 2026-11-11). */
.brand {
  margin: 0 0 1rem;
  font-family: var(--type-title-family);
  font-weight: var(--type-title-weight);
  font-size: clamp(2.75rem, 13vw, 4.5rem);
  line-height: 1.05;
  color: var(--text-display);
}

.lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

h2 {
  margin: 2.75rem 0 1rem;
  font-family: var(--type-title-family);
  font-weight: var(--type-title-weight);
  font-size: 1.625rem;
  line-height: 1.2;
}

h1.title {
  margin: 0 0 1rem;
  font-family: var(--type-title-family);
  font-weight: var(--type-title-weight);
  font-size: 2rem;
  line-height: 1.15;
}

p {
  margin: 0 0 0.75rem;
}

.features {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  padding: 1rem 1.125rem;
  border: 1px solid var(--separator);
  border-radius: var(--radius-group);
  background: var(--surface-row);
}

.features h3 {
  margin: 0 0 0.25rem;
  font-family: var(--type-nav-title-family);
  font-weight: var(--type-nav-title-weight);
  font-size: 1.1875rem;
  line-height: 1.25;
}

.features p {
  margin: 0;
  color: var(--text-secondary);
}

.secondary {
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--separator);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
}
