/* The look of every app's pages: easy to read on a phone, in light and dark mode, with nothing loaded from elsewhere.
   The colors are the apps' own: text and links pass 4.5:1 contrast on their backgrounds. */
:root {
  color-scheme: light dark;
  --text: #1c1c1e;
  --secondary-text: #5c5c61;
  --background: #ffffff;
  --box: #f2f2f7;
  --separator: #d1d1d6;
  --accent: #0040dd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f2f7;
    --secondary-text: #aeaeb2;
    --background: #000000;
    --box: #1c1c1e;
    --separator: #38383a;
    --accent: #5aa9ff;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
}

.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: max(1.25rem, env(safe-area-inset-top)) 0 0.75rem;
  border-bottom: 1px solid var(--separator);
}

.app-name {
  margin: 0;
  font-weight: 600;
}

h1 {
  margin: 2rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.3125rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  /* An email address is longer than a narrow phone's line. */
  overflow-wrap: anywhere;
}

.updated {
  margin-bottom: 2rem;
  color: var(--secondary-text);
  font-size: 0.9375rem;
}

.summary {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--box);
}

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

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding: 1.25rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
  color: var(--secondary-text);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}
