/*
  Feature Complete Development
  Intentionally close to browser default styling. The browser does most
  of the work; this file only adds what's needed for a readable,
  responsive page on modern devices.
*/

:root {
  /* Let the browser supply native light and dark colors. */
  color-scheme: light dark;
}

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

body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

/* Site header nav: plain links separated by pipes, like it's 1997. */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
}

nav li + li::before {
  content: " | ";
}

nav [aria-current="page"] {
  font-weight: bold;
}

/* Product listing */
.product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.product h3 {
  margin-top: 0;
}

.logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px dashed;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 0.75rem;
  text-align: center;
}

/* The dashed box is only for placeholders; real images drop it. */
img.logo {
  border: 0;
}

/* iOS app icons get the rounded-square shape. */
.app-icon {
  border-radius: 22.5%;
}

@media (max-width: 30rem) {
  .product {
    flex-direction: column;
  }
}

footer {
  font-size: smaller;
}
