:root {
  --foreground: #212529;
  --foreground-hover: #364153;
  --foreground-muted: #83868a;
  --background: #ffffff;
  --background-border: #d8dde3;
  --gray-100: #f7f7f7;
  --emerald-100: #e7f3ee;
  --font-serif: 'Source Serif 4', serif;
  --font-sans: 'Lexend', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --screen-sm: 325px;
}

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--foreground);
  margin: 0 auto;
  max-width: 1200px;
  line-height: 1.3;
  padding: 2rem 1rem;
}

main {
  margin: 2rem 0;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--font-serif);
}

address {
  font-style: normal;
  font-size: 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 500;
}

a {
  color: currentColor;
  text-decoration: none;
  font-weight: 300;
}

a:hover {
  color: var(--foreground-muted);
}

code {
  font-family: var(--font-mono);
}

small {
  font-size: 0.875rem;
}

mark {
  text-decoration: underline;
  text-underline-offset: -0.3em;
  text-decoration-thickness: 0.5em;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--green);
  background-color: transparent;
}

hr {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--background-border);
}

button,
.button {
  color: var(--background);
  background-color: var(--foreground);
  padding: 0 1rem;
  width: fit-content;
  height: 2rem;
  border-width: 0;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}

button:hover,
.button:hover {
  background-color: var(--foreground-hover);
  color: var(--background);
}

header {
  position: relative;
}

header .header-right {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}

header .header-navigation {
  list-style: none;
  display: flex;
  gap: 0.5rem 2.5rem;
  border-bottom: solid 1px var(--background-border);
  margin-top: 3rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}

header .header-navigation a,
header .header-navigation li {
  padding-bottom: 0.75rem;
}

header .header-navigation a.active {
  font-weight: 500;
  border-bottom: 2px solid var(--foreground);
}

header .header-burger-menu {
  color: var(--foreground);
  background-color: var(--background);
}

header .header-burger-menu:hover {
  background-color: var(--gray-100);
}

header .subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-primary);
}

header ul {
  list-style: none;
}

header ul.locale {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header ul.locale li a {
  color: var(--foreground-muted);
}

header ul.locale li a.active {
  font-weight: 500;
  color: var(--foreground);
}

header .header-menu {
  background-color: var(--background);
}

header .header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  width: calc(100vw - 1.5rem);
  display: none;
  padding: 2rem 1.5rem;
  background-color: var(--background);
}

header .header-dropdown-menu .header-navigation,
header .header-dropdown-menu .header-navigation a.active {
  border-bottom: none;
}

header .header-dropdown-menu .header-navigation {
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-title {
  display: none;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .page-title {
    display: block;
  }

  header .subheader>.header-right,
  header nav>.header-navigation {
    display: none;
  }

  header .header-menu:focus-within .header-dropdown-menu {
    display: block;
    z-index: 1;
  }
}

@media (min-width: 768px) {
  header .header-menu {
    display: none;
  }
}

footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--background-border);
  font-family: var(--font-sans);
}

footer .navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

footer .logo {
  padding-top: 2rem;
  border-top: 2px solid var(--foreground);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-self: flex-end;
  align-items: center;
  list-style: none;
  font-size: 1rem;
}

footer .links .active {
  font-weight: 600;
}

footer .medias {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

footer .medias div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

footer .claims {
  color: var(--foreground-muted);
}

footer .claims a {
  text-decoration: underline;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  line-height: 1.1;
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
  font-family: var(--font-sans);
}

.metadata .key {
  color: var(--foreground-muted);
  font-weight: 500;
}

.post img {
  max-width: 100%;
  height: auto;
}

.post a {
  text-decoration: underline;
}

.post>p {
  margin: 1.5rem 0;
}

.post ul,
.post ol {
  margin: 1rem 0 1rem 1.5rem;
}

.post h2,
.post h3,
.post h4 {
  font-family: var(--font-sans);
}