@import "fonts.css";

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

:root {
  --gutter-width: 1em;
  --margin-width: 4rem;
  --dark-color: #1d1d1d;
  --light-color: white;
  --inactive-color: #f0f0f0;
  --inactive-text-color: #c7c7c7;
  --highlight-color: #e7ff13;
  --normal-text-size: 16px;
  --small-text-size: 0.8rem;
  --large-text-size: 1.2rem;
}

html {
  padding: env(safe-area-inset);
}

body {
  margin: 0;
  font-family: "Produkt", sans-serif;
  line-height: 1.5;
  font-size: var(--normal-text-size);
  color: var(--dark-color);
}

main {
  display: flex;
  padding: 0 var(--margin-width);
  gap: var(--margin-width);
  max-width: 1600px;
  margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  color: var(--dark-color);
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 2rem;
  font-weight: normal;
  text-wrap: balance;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.8rem;
  text-wrap: balance;
}

ul,
li {
  text-decoration: none;
  list-style: none;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: currentColor;
  font-family: "Union", sans-serif;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  left: 0;
  background-color: var(--highlight-color);
  display: flex;
  justify-content: space-between;
  padding: 1rem var(--margin-width);
  align-items: center;
  margin-bottom: 2rem;
  z-index: 9999;
}

.logo-image {
  height: 3rem;
}

header ul {
  display: flex;
  gap: 1rem;
}

header .header-left,
header .header-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

header nav h2 {
  font-weight: normal;
}

#languages {
  display: flex;
  text-transform: capitalize;
}
#languages a {
  display: flex;
}

#languages a:not(:last-child)::after {
  content: "/";
}
#languages p {
  font-weight: bold;
}
#languages p.inactive {
  font-weight: normal;
}

footer {
  position: relative;
  width: 100%;
  padding: 2rem var(--margin-width);
  background-color: var(--highlight-color);
}

aside {
  width: 360px;
  font-family: "Union", sans-serif;
  margin-bottom: 2rem;
}

aside .aside-content {
  position: sticky;
  top: 7.5rem;
  background-color: var(--light-color);
}

aside .aside-content > * {
  border-top: 1px solid var(--dark-color);
}

.sub-menu {
  padding: 1rem 0;
}

li.active {
  font-weight: bold;
}

aside .resume {
  padding: 1rem 0;
}

aside .share {
  padding: 1rem 0;
}
aside .share .share-buttons {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

aside .share .share-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

aside .share .copy-link-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

aside .share .copy-feedback {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 2px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

aside .share .copy-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.resume,
figcaption,
.share {
  font-family: "Union", sans-serif;
  font-size: var(--small-text-size);
}

.main-content {
  width: 100%;
}

figure {
  margin: 0;
}

img {
  width: 100%;
  display: block;
}

figcaption {
  margin-top: 0.5rem;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  text-align: right;
  font-family: "Union", sans-serif;
}

.next-prev a {
  text-decoration: underline;
}

.block-image {
  margin-bottom: 2rem;
}

.block-text code {
  font-family: "Union", sans-serif;
  background-color: var(--inactive-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.block-text code:hover {
  background-color: var(--highlight-color);
}

.block-quote {
  padding: 2rem 5rem;
  text-align: left;
  font-family: "Union", sans-serif;
  font-weight: normal;
}

.block-quote h1 {
  margin: 0;
}

.block.block-table {
  text-align: left;
  font-family: "Union", sans-serif;
  margin: 2rem 0;
  font-size: var(--small-text-size);
}

.block-table table {
  border-collapse: collapse;
  width: 100%;
}

.block-table th {
  color: var(--inactive-text-color);
  text-align: left;
  font-weight: normal;
}

th,
td {
  padding: 1rem 0.5rem;
}

tbody tr {
  vertical-align: top;
}

tbody tr:nth-child(odd) {
  background-color: var(--inactive-color);
}

#button-search-activation form {
  background: var(--light-color);
  display: flex;
  align-items: center;
  border: 1px solid var(--inactive-color);
  border-radius: 30px;
  padding: 0.25rem 1rem;
}

.search-field {
  border: none;
  font-size: var(--normal-text-size);
}

.search-submit {
  background: none;
  border: none;
}

.search-submit img {
  width: 1rem;
  height: 1rem;
}

.block-heading,
.block-text,
.block-quote,
.block-image {
  max-width: 1000px;
}

.block-text {
  font-size: var(--large-text-size);
}

.filtering {
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: var(--small-text-size);
  font-family: "Union", sans-serif;
  background-color: var(--inactive-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.tag a {
  display: block;
}

.tag.active,
.tag a.active {
  background-color: var(--highlight-color);
}
