/* commontypes.com: one screen, the logo in the middle, no scrolling. Colors follow the visitor's system theme. */

:root {
  --ink: #3a3839;
  --muted: #77726f;
  --accent: #c8622f;
  --background: #faf8f6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edebea;
    --muted: #a39e9a;
    --accent: #e17c4c;
    --background: #1c1b1b;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px 16px;
  background: var(--background);
  color: var(--ink);
  font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

h1 img {
  display: block;
  width: min(320px, 70vw);
  height: auto;
}

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

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  color: var(--muted);
  font-size: 0.8125rem;
}
