/* Colours and type follow the app: packages/vue/theme.css (brand), packages/frontend/src/index.css (gray,
   zinc, font). Installed fonts only: nothing is fetched from a third party. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --link: #2f46db;
  --rule: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b;
    --text: #f3f4f6;
    --muted: #aeb3bc;
    --link: #8a9bff;
    --rule: #3c4047;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.6 Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

header,
main,
footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}

main {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

header a,
footer a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

header a:hover,
footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

footer a[aria-current='page'] {
  color: var(--text);
}

.lang {
  margin-left: auto;
}

header .home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

header .home img {
  width: 2.5rem;
  height: auto;
}

.logo {
  display: block;
  width: 10rem;
  height: auto;
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

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

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

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