:root {
  color: #161616;
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

a {
  color: #0645ad;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

header {
  padding: 36px 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

header p {
  margin-bottom: 0;
  color: #555;
}

section {
  padding-top: 0;
}

article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid #bbb;
}

article:last-child {
  border-bottom: 1px solid #bbb;
}

.app-name h2 {
  margin-bottom: 2px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.app-name p,
.upstream,
footer p {
  color: #666;
}

.app-name p,
.upstream,
.license {
  margin-bottom: 0;
}

.app-info nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.app-info nav a {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #777;
  border-radius: 4px;
  color: #161616;
  text-decoration: none;
}

.app-info nav a:hover {
  background: #f2f2f2;
}

.app-info nav .store {
  border-color: #161616;
  color: #fff;
  background: #161616;
}

.license {
  max-width: 660px;
}

.upstream {
  margin-top: 8px;
  font-size: 0.9rem;
}

footer {
  padding: 32px 0 56px;
}

footer p {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  main {
    width: min(100% - 28px, 920px);
  }

  header {
    padding-top: 28px;
  }

  article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }
}
