:root {
  color-scheme: light dark;
  --background: #fffdf9;
  --text: #24231f;
  --secondary: #66625a;
  --line: #e4dbcd;
  --link: #1f5f4b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11211b;
    --text: #fff6e8;
    --secondary: #b9b5a9;
    --line: #2d463d;
    --link: #8fd8bb;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 1.5rem 1rem 3rem;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.languages {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.languages [aria-current] {
  color: var(--secondary);
  font-weight: 600;
}

header {
  margin-bottom: 2.5rem;
}

.wordmark {
  display: block;
  height: 3rem;
  width: auto;
}

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

p {
  margin: 0 0 0.85rem;
}

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

.home {
  text-align: center;
}

.home .icon {
  width: 7rem;
  height: 7rem;
  margin-top: 1.5rem;
  border-radius: 22.5%;
}

.home h1 {
  margin-top: 1rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.9375rem;
}

.home footer {
  justify-content: center;
}
