@charset "utf-8";

@font-face {
  font-family: "Modak";
  src: url("fonts/Modak-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 22px 0;
  background: #272727;
  color: #182022;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

a:link,
a:visited {
  color: #1a787d;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #115358;
  text-decoration: underline;
}

#container {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
}

#wrapper {
  margin: 0;
  border: 1px solid #c2cfd1;
  border-radius: 2px;
  background: #fffefa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

#banner {
  position: relative;
  margin: 0;
  padding: 26px 76px 22px 36px;
  color: #0f1718;
  background: linear-gradient(to right, #fffefa 0%, #e6f5fd 58%, #38a5a7 100%);
  border-bottom: 1px solid #bdd5d8;
}

.language-switch:link,
.language-switch:visited {
  position: absolute;
  top: 16px;
  right: 20px;
  display: block;
  text-decoration: none;
}

.language-switch img {
  display: block;
}

#banner h1 {
  margin: 0;
  padding: 0;
  color: #0f1718;
  font-family: "Modak", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

#banner p {
  margin: 7px 0 0;
  padding-left: 0;
  color: #293b3e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#nav {
  background: linear-gradient(#eaf1f2, #dce7e9);
  border-bottom: 1px solid #bcccd0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 38px;
  margin: 0;
  padding: 5px 26px;
  list-style: none;
}

#nav a:link,
#nav a:visited {
  display: block;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 3px;
  color: #1e2c2f;
  font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 18px;
}

#nav a:hover,
#nav a:focus {
  background: rgba(26, 120, 125, 0.12);
  color: #115358;
  text-decoration: none;
}

#nav a.current:link,
#nav a.current:visited {
  background: #1a787d;
  color: #fffefa;
  font-weight: 700;
}

#page {
  overflow: auto;
  padding: 28px 0;
  background: #fffefa;
}

#content {
  margin: 0 36px;
  font-size: 16px;
  line-height: 1.68;
}

#content p {
  margin-top: 0;
}

#content h2 {
  margin: 28px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #cfe0e2;
  color: #166c71;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

#content > h2:first-child {
  margin-top: 0;
}

.project {
  margin: 0 0 22px;
}

.project h3 {
  margin: 0 0 4px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.project p {
  margin: 0;
}

.post-card p.post-meta,
.post-header p.post-meta {
  margin: 2px 0 8px;
  color: #4a5b5e;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

.post-card p:last-child {
  color: #182022;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
}

.post-header h2 {
  margin-top: 0;
}

.post-body {
  color: #182022;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.76;
  letter-spacing: -0.005em;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body h3 {
  margin: 30px 0 10px;
  color: #182022;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 21px;
  font-weight: 600;
}

.post-body pre {
  margin: 18px 0;
  padding: 12px 16px;
  overflow-x: auto;
  border: 1px solid #c7d9dc;
  border-radius: 2px;
  background: #edf5f6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.5;
}

.post-body code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #e4f3f5;
  color: #115358;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88em;
}

.post-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.post-body blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid #38a5a7;
  color: #344447;
  font-style: italic;
}

.post-back {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #cfe0e2;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

#footer {
  padding: 14px 4px 0;
  color: #d7dde0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  text-align: right;
}

#footer p {
  margin: 0;
}

#footer a:link,
#footer a:visited {
  color: #7ad3d5;
}

@media (max-width: 650px) {
  body {
    padding: 0;
  }

  #container {
    width: 100%;
  }

  #wrapper {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #banner {
    padding: 18px 56px 18px 16px;
  }

  #banner p {
    font-size: 12px;
  }

  #nav ul {
    padding: 5px 10px;
  }

  #nav a:link,
  #nav a:visited {
    font-size: 13px;
  }

  #page {
    padding-top: 16px;
  }

  #content {
    margin: 0 16px;
    font-size: 15px;
  }

  #footer {
    padding: 12px 16px;
    text-align: left;
  }
}
