/* The softleif.se look: dark ink, warm paper-coloured text, the system font. */
:root {
  --background: #191d28;
  --background-dark: #131824;
  --text: #e6ddbe;
  --muted: #a9a28b;
  --link: #e9dbc6;
  --link-hover: #fff;
  --marker: #262c3e;
  --marker-hover: #1d2745;
}

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

body {
  background: var(--background);
  color: var(--text);
  font: 18px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

header,
section,
nav,
footer {
  padding: 2rem 1rem;
}

.content {
  max-width: 38rem;
  margin: 0 auto;
}

/* Home */

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1;
}

.hero p {
  max-width: 30rem;
  font-size: 1.2rem;
}

.links {
  background: var(--background-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.links a {
  padding: 0.7rem 1.1rem;
  line-height: 1;
  text-decoration: none;
  background: var(--marker);
  border-radius: 3px;
}

.links a:hover {
  background: var(--marker-hover);
}

.links small {
  color: var(--muted);
  font-size: 0.75em;
}

/* Text pages */

.page h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

.page p,
.page ul {
  margin-bottom: 0.9rem;
}

.page ul {
  padding-left: 1.2rem;
}

.page .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-decoration: none;
  font-weight: 600;
}

footer {
  padding-top: 4rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
}

footer p + p {
  margin-top: 0.4rem;
}
