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

:root {
  --color-bg: #f7f4ef;
  --color-bg-card: #fbf9f5;
  --color-text: #163d44;
  --color-text-muted: #3f5f66;
  --color-text-secondary: #5a7379;
  --color-accent: #1f7079;
  --color-accent-hover: #145a61;
  --color-border: #d8e8ea;
  --font-heading: ui-rounded, "SF Pro Rounded", "Avenir Next",
    "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --max-width: 47.5rem;
  --gutter: 1.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}

p {
  margin: 0 0 1rem;
}

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

main,
footer {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main {
  padding-top: 3rem;
  padding-bottom: 0;
}

/* Home page header */

header {
  margin-bottom: 4rem;
}

h1 {
  margin: 0;
  font-size: 2.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Apps section */

section[aria-labelledby="apps-heading"] {
  margin-bottom: 5.5rem;
}

h2#apps-heading {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* App card */

.app {
  padding: 1.625rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(22, 61, 68, 0.04);
}

.app h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.3;
}

.app p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

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

/* Links */

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (hover: hover) {
  a:hover {
    color: var(--color-accent-hover);
    text-decoration-thickness: 2px;
  }
}

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

/* Footer */

footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 0.2rem;
}

footer a {
  color: var(--color-text-secondary);
}

@media (hover: hover) {
  footer a:hover {
    color: var(--color-accent);
  }
}

/* Privacy policy page */

.policy {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  text-decoration: underline;
}

@media (hover: hover) {
  .back-link:hover {
    color: var(--color-accent);
  }
}

.policy-header {
  margin-bottom: 2rem;
}

.policy-header h1 {
  margin-bottom: 0.625rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.last-updated {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.policy > p:not(:has(a)) {
  margin-bottom: 0;
  line-height: 1.65;
}

.policy section {
  margin-top: 2.5rem;
}

.policy section h2 {
  margin: 0 0 0.875rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.35;
}

.policy section p {
  line-height: 1.65;
}

.policy section p + p {
  margin-top: 0;
}

.policy ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.policy li:last-child {
  margin-bottom: 0;
}

/* Desktop */

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  main {
    padding-top: 4.5rem;
  }

  h1 {
    font-size: 2.625rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  header {
    margin-bottom: 4.5rem;
  }

  section[aria-labelledby="apps-heading"] {
    margin-bottom: 6.5rem;
  }

  .app {
    padding: 1.75rem;
    border-radius: 1.0625rem;
  }

  .app h3 {
    font-size: 1.5rem;
  }

  .policy-header h1 {
    font-size: 2rem;
  }
}
