:root {
  --ink: #0f1a12;
  --paper: #f4faf5;
  --white: #ffffff;
  --green: #1f512d;
  --green-soft: #dcebdf;
  --accent: #7e3993;
  --accent-light: #e3c6ec;
  --rule: #c3d3c7;
  --muted: #45544a;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.masthead {
  position: relative;
  text-align: center;
  padding-top: 1.75rem;
  background: var(--white);
  color: var(--ink);
  border-bottom: 4px double var(--ink);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 58px;
  height: 58px;
}

.brand span {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  margin-right: -0.2em;
}

.brand small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.6rem;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid var(--rule);
}

.masthead nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.masthead nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.lang {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lang a,
.lang [aria-current] {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
}

.lang a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
}

.lang a:hover {
  color: var(--ink);
  background: var(--green-soft);
}

.lang [aria-current] {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}

body > footer {
  background: var(--ink);
  color: #e6eee8;
  padding: 2.75rem 0 2rem;
  font-size: 0.92rem;
}

body > footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
}

body > footer a {
  color: var(--accent-light);
}

body > footer a:hover {
  color: var(--white);
}

body > footer address {
  font-style: normal;
}

body > footer strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

body > footer p {
  margin: 0 0 0.35rem;
}

body > footer .legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #34453a;
  color: #b4c3b8;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .lang {
    position: static;
    margin-bottom: 1.1rem;
  }

  .masthead {
    padding-top: 1rem;
  }

  .masthead nav {
    gap: 0.1rem 1.1rem;
  }

  body > footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
