/* Site layout. Colours, fonts and text styles come from tokens.css (generated from brand/tokens.json). */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: var(--stroke-focus) solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.measure { max-width: 680px; }

.skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--surface-raised);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.skip:focus { top: var(--space-3); }

/* Header */

.site-header { border-bottom: var(--stroke-hairline) solid var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.site-header__logo img { width: 208px; }

.site-nav { display: flex; gap: var(--space-4); }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; }

/* Sections */

.hero { padding: var(--space-7) 0; }
.hero__title { max-width: 14ch; margin-bottom: var(--space-4); }
.hero .t-display-l { margin-bottom: var(--space-4); }

.eyebrow {
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-2);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: var(--space-2);
  background: var(--accent);
}

.t-lead + p { margin-top: var(--space-5); }

.band {
  background: var(--surface-sunken);
  padding: var(--space-7) 0;
}
.band .t-heading { margin-bottom: var(--space-5); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--surface-raised);
  border: var(--stroke-hairline) solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.card .t-title { margin-bottom: var(--space-2); }

.about > * + * { margin-top: var(--space-4); }
.about__mark { margin: var(--space-5) 0; }
.about__mark img { width: 160px; }

/* Long-form text pages (privacy) */

.prose > * + * { margin-top: var(--space-4); }
.prose > h2 { margin-top: var(--space-6); }

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  padding: 14px var(--space-4);
  border-radius: var(--radius-md);
}
.button:hover { background: var(--brand-strong); color: var(--on-brand); }

/* Footer */

.site-footer {
  background: var(--surface-sunken);
  border-top: var(--stroke-hairline) solid var(--line);
  color: var(--ink-muted);
  padding: var(--space-5) 0;
}
.site-footer__inner { display: flex; align-items: center; gap: var(--space-4); }
.site-footer__tagline { text-transform: uppercase; margin-bottom: var(--space-1); }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--brand); }
/* Platform logos are used as the platforms draw them, the one exception to the line-icon rule. */
.site-footer__social { display: flex; gap: var(--space-1); list-style: none; margin: var(--space-1) 0 0 calc(-1 * var(--space-1)); padding: 0; }
.site-footer__social a { display: block; padding: var(--space-1); }
.site-footer__social svg { display: block; }

/* Phones: the brand uses display-l as the hero size and space-6 for section padding. */

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-3); }
  .hero, .band { padding: var(--space-6) 0; }
  .t-display-xl { font-size: 46px; line-height: 52px; }
  .t-display-l { font-size: 36px; line-height: 42px; }
  .site-header__logo img { width: 156px; }
  .site-footer__inner { align-items: flex-start; }
}
