/*
 * trainertracker.co.uk, styled after the app's welcome screen: the phone's
 * own typeface, heavy tight headlines, neutral blacks and whites, and the
 * logo's lime used sparingly (the check marks, "tracker", small labels).
 */

:root {
  color-scheme: light dark;
  --background: #fbfbfa;
  --text: #141516;
  --text-muted: #63666a;
  --rule: #e6e6e3;
  --link-line: #b5b8bb;
  /* The logo's lime is too light to read on white, so light mode uses a
     deeper green for the same jobs. */
  --brand: #23803a;

  /* The top of the home page is dark in both modes, like the app's
     welcome screen. */
  --band: #0b0c0c;
  --band-rule: #1f2122;
  --on-band: #f2f2f2;
  --on-band-muted: #a4a8ac;
  --lime: #75e185;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0c0c;
    --text: #ededed;
    --text-muted: #9a9ea2;
    --rule: #242627;
    --link-line: #55595c;
    --brand: #75e185;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Page widths: wide for the home page, narrower for reading. */
.wrap {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 20px;
}

.page {
  margin: 0 auto;
  max-width: 700px;
  padding: 0 20px;
}

/* --- Header and wordmark ------------------------------------------------ */

header {
  padding: 22px 0;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  height: 36px;
  width: 36px;
}

.wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.wordmark span {
  color: var(--brand);
}

/* --- Text --------------------------------------------------------------- */

h1 {
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 28px 0 10px;
}

h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 44px 0 8px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: inherit;
  font-weight: 600;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

.updated,
.muted {
  color: var(--text-muted);
}

.updated {
  font-size: 15px;
  margin-bottom: 28px;
}

/* A small capitalised label, like "TRAINER TRACKER" on the app's welcome
   screen. */
.label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

/* --- Home page ---------------------------------------------------------- */

.band {
  background: var(--band);
  border-bottom: 1px solid var(--band-rule);
  color: var(--on-band);
}

.band .wordmark span,
.band .label {
  color: var(--lime);
}

.hero {
  align-items: center;
  display: grid;
  gap: 40px;
  padding: 56px 0 72px;
}

.hero h1 {
  font-size: clamp(42px, 11vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.hero .intro {
  color: var(--on-band-muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 26px 0 0;
  max-width: 34em;
}

.soon {
  align-items: center;
  color: var(--on-band-muted);
  display: flex;
  font-size: 15px;
  gap: 10px;
  margin: 30px 0 0;
}

.soon::before {
  background: var(--lime);
  border-radius: 50%;
  content: '';
  height: 8px;
  width: 8px;
}

/* Beside the headline on wide screens; on phones the header's logo is
   enough. */
.app-icon {
  border-radius: 22%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: none;
  height: auto;
  width: 200px;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1fr auto;
    padding: 88px 0 104px;
  }

  .app-icon {
    display: block;
  }
}

.who {
  display: grid;
  gap: 8px 56px;
  padding: 24px 0 8px;
}

@media (min-width: 720px) {
  .who {
    grid-template-columns: 1fr 1fr;
    padding-top: 48px;
  }
}

.who section {
  border-top: 2px solid var(--text);
  padding-top: 18px;
}

.who h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.who .muted {
  margin-bottom: 18px;
}

/* List items ticked with the logo's check mark. */
.checks {
  list-style: none;
  padding: 0;
}

.checks li {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 11px 0 11px 30px;
  position: relative;
}

.checks li::before {
  border: solid var(--brand);
  border-radius: 2px;
  border-width: 0 3px 3px 0;
  content: '';
  height: 13px;
  left: 6px;
  position: absolute;
  top: 15px;
  transform: rotate(45deg);
  width: 7px;
}

/* --- Support page ------------------------------------------------------- */

.contact {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  margin: 24px 0 8px;
  padding: 22px 0;
}

.contact p:last-child {
  margin-bottom: 0;
}

.email {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.email a {
  font-weight: inherit;
}

/* --- Footer ------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 64px;
  padding: 24px 0 40px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
}

footer a {
  font-weight: 500;
}

footer p {
  margin: 0;
}
