/* One variable font file with every weight. */
@font-face {
  font-family: "Raleway";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway.woff2") format("woff2");
}

:root {
  --ground: #f2f2f7;
  --card: #ffffff;
  --line: #c6c6c8;
  --text: #000000;
  --muted: #5e5e5e;
  --link: #0000ff;
  --badge: #4e69a2;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --card: #1c1c1e;
    --line: #3e3d41;
    --text: #fafafa;
    --muted: #a19f9f;
    --link: #4f9ad0;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: "Raleway", -apple-system, "Segoe UI", sans-serif;
  /* Raleway's default figures are old-style and jump around the line. */
  font-feature-settings: "lnum" 1;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 40em;
  padding: 20px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
}

a {
  align-items: center;
  color: var(--link);
  display: inline-flex;
  min-height: 44px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin: 0;
}

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Apps */

.apps {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px 14px 4px;
}

.app-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.app-title img {
  border-radius: 22.5%;
  display: block;
  flex: none;
  height: 64px;
  width: 64px;
}

.app h2 {
  font-size: 18px;
  line-height: 1.25;
  min-width: 0;
}

.badge {
  background: var(--badge);
  border-radius: 5px;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  padding: 1px 6px;
}

.app p {
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  justify-content: space-between;
}

/* Footer */

.footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 0 24px;
  justify-content: center;
  padding: 12px 0;
}

/* Legal pages and the not-found page */

.text {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.text h1 {
  font-size: 26px;
  line-height: 1.2;
}

.text h2 {
  font-size: 18px;
  margin-top: 12px;
}

.text a {
  display: inline;
  text-decoration: underline;
}

.text ul {
  margin: 0;
  padding-left: 1.2em;
}

.text li + li {
  margin-top: 4px;
}

.note {
  color: var(--muted);
}
