/* Colours are taken from the logo. */
:root {
  --bg: #fbf8f3;
  --navy: #363f4b;
  --navy-dark: #252c35;
  --gold: #a87d45;
  --gold-soft: #d4ad7c;
  --text: #2b323c;
  --muted: #5f6772;
  --line: #ece4d8;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 40px 16px 32px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  max-width: 480px;
  margin: 0 auto;
}

.hero {
  text-align: center;
}

h1 {
  margin: 0;
}

.logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.slogan {
  margin: 12px 0 28px;
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.link:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.link:focus-visible,
.languages a:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.about {
  margin-top: 40px;
}

.about p {
  margin: 0 0 12px;
}

.lead {
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
}

section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

ul {
  margin: 0;
  padding-inline-start: 20px;
}

li::marker {
  color: var(--gold-soft);
}

footer {
  max-width: 480px;
  margin: 48px auto 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

footer p {
  margin: 12px 0 0;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.languages a {
  padding: 4px 2px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.languages a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.languages a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }

  .link:hover {
    transform: none;
  }
}

.not-found-title {
  margin: 24px 0 8px;
  color: var(--navy);
  font-size: 1.5rem;
}

.hero > p:not(.slogan) {
  margin: 0 0 28px;
  color: var(--muted);
}
