:root {
  --cyan: #00afcf;
  --accent: #cf4e2e;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(12.5px, 11.3px + 0.26vw, 14.5px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cyan);
}

body {
  margin: 0;
  padding: 0 env(safe-area-inset-right) 40px env(safe-area-inset-left);
  background: var(--cyan);
  color: black;
  font-family: monospace;
}

header,
.content,
footer {
  max-width: 900px;
  margin-inline: auto;
}

header {
  display: flex;
  flex-direction: column;
  margin-bottom: -1px;
  padding: 10px 25px 0;
}

.lang {
  align-self: flex-end;
  display: flex;
  gap: 12px;
  font-weight: bold;
}

.lang a {
  color: white;
  text-decoration: none;
  opacity: 0.6;
}

.lang a:hover {
  color: var(--accent);
  opacity: 1;
}

.lang a[aria-current] {
  opacity: 1;
  text-decoration: underline;
}

.logo {
  align-self: flex-start;
  display: block;
  width: auto;
  height: 92px;
  max-width: 100%;
}

.content {
  min-height: 200px;
  padding-bottom: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.title {
  margin: 0;
  padding: 35px 25px 20px;
  background: white;
  color: var(--cyan);
  font-size: 1.6rem;
  font-weight: bold;
}

.title span::before {
  content: "// ";
}

.block {
  margin: 0 5px 3px;
  padding: 15px 25px;
  overflow: auto;
}

.block > *:last-child {
  margin-bottom: 0;
}

.block h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.block h2::before {
  content: "/** ";
}

.block h2::after {
  content: " **/";
}

.block h3 {
  font-size: 1.1rem;
}

.block p,
.block li {
  font-size: 1rem;
  line-height: 1.6;
}

.block ul {
  margin: 0;
  padding-left: 20px;
}

.links li {
  margin-bottom: 8px;
}

.photo {
  float: right;
  width: 140px;
  max-width: 40%;
  height: auto;
  margin: 0 0 10px 15px;
  border-radius: 12px;
}

.btn {
  color: black;
  font-size: 12pt;
  font-weight: bold;
  text-decoration: none;
}

.btn:hover,
.btn:active {
  color: var(--accent);
}

footer {
  margin-top: 5px;
  padding: 5px 20px;
  color: white;
  text-align: right;
  font-size: 10pt;
  font-weight: bold;
}

@media (max-width: 939px) {
  body {
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }
}

@media print {
  body {
    padding: 0;
    background: white;
    color: black;
  }

  .lang {
    display: none;
  }

  header,
  .content,
  footer {
    max-width: none;
    margin: 0;
  }

  .content {
    border-radius: 0;
  }

  .logo {
    filter: invert(1);
  }

  .title,
  .btn,
  a {
    color: black;
  }
}
