@charset "UTF-8";
@font-face {
  font-family: "Ubuntu";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/Ubuntu-R.ttf") format("truetype");
}
@font-face {
  font-family: "Ubuntu";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/Ubuntu-B.ttf") format("truetype");
}
@font-face {
  font-family: "Ubuntu";
  font-weight: 400;
  font-style: italic;
  src: url("../fonts/Ubuntu-RI.ttf") format("truetype");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/UbuntuMono-R.ttf") format("truetype");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: 0;
}

html {
  background: #fff;
  color: #000;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
}

body {
  overflow-y: scroll;
  line-height: 1.5rem;
}

h1, h2, h3 {
  font-weight: 700;
  margin-top: 1.3rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.7rem;
  text-transform: uppercase;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.7rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  text-align: justify;
  margin-top: 0.7rem;
}

ul, ol {
  margin-top: 0.7rem;
  padding-left: 2rem;
}

ul {
  list-style: square;
}

article, nav > div, main {
  max-width: 950px;
  padding: 0 10px;
  margin: 0 auto;
}

main {
  margin-top: 3rem;
  font-size: 1.1rem;
}

nav {
  background: #333;
  color: #fff;
  padding: 4px 0;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav div {
  text-align: right;
  position: relative;
}
nav a {
  text-decoration: none;
  padding: 0 8px;
  display: inline-block;
  color: #fff;
}
nav a:hover {
  background: #00b7ff;
}
nav a.curr {
  background: #00b7ff;
  cursor: default;
}
nav #root {
  position: absolute;
  top: 0;
  left: 10px;
  width: 50px;
}
nav #root img {
  width: 100%;
}
nav #title {
  position: absolute;
  top: 0;
  left: 70px;
}

.burger {
  display: none;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

@media (max-width: 700px) {
  nav {
    padding: 8px 0;
  }
  nav div {
    display: flex;
    align-items: center;
    min-height: 36px;
  }
  nav #root {
    position: static;
    width: 36px;
    flex-shrink: 0;
  }
  nav #root img {
    width: 100%;
  }
  nav #title {
    position: static;
    flex: 1;
    margin-left: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  nav .burger {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
  }
  nav .menu, nav .langs {
    display: none;
  }
  nav.open div {
    flex-wrap: wrap;
  }
  nav.open .menu {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    padding-left: 44px;
  }
  nav.open .menu a {
    display: block;
    padding: 6px 8px;
    text-align: left;
  }
  nav.open .langs {
    display: flex;
    flex-basis: 100%;
    padding-left: 44px;
    padding-bottom: 6px;
    font-size: 0;
  }
  nav.open .langs a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.85rem;
  }
  main {
    margin-top: 1.5rem;
  }
}
.center {
  text-align: center;
}

.welcome {
  margin: 5em 0;
}
.welcome img {
  width: 25%;
  min-width: 100px;
}
.welcome p {
  text-align: center;
}

.social {
  margin: 1.5rem auto 0;
  text-align: center;
}
.social img {
  width: 32px;
  height: 32px;
}

code, pre {
  font-family: "Ubuntu Mono", monospace;
}

code {
  background: #0c5374;
  color: #fff;
  border-radius: 2px;
  padding: 2px;
}

pre {
  border-radius: 5px;
  padding: 10px;
  margin-top: 1rem;
  overflow: auto;
  white-space: pre-wrap;
}
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.copyright {
  text-align: center;
  margin: 30px auto 1rem;
  font-style: italic;
  color: #666;
}

.tags button {
  display: inline-block;
  background: #00b7ff;
  color: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 0.8rem;
  cursor: default;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-top: 1rem;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pdf-container {
  margin-top: 1rem;
}
.pdf-container object {
  border: 1px solid #ddd;
  border-radius: 4px;
}

.books {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
  justify-content: center;
}
.books img {
  height: 200px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.books img:hover {
  transform: scale(1.05);
}

main > p:first-child img {
  width: 100%;
  height: auto;
}

.current-work, .series-nav {
  --accent-color: #00b7ff;
  border-left: 4px solid var(--accent-color);
  background: #f0f9ff;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: 0 6px 6px 0;
}
.current-work h2, .current-work h3, .series-nav h2, .series-nav h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.current-work .current-work-subtitle, .series-nav .current-work-subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
}
.current-work ul, .current-work ol, .series-nav ul, .series-nav ol {
  margin-top: 0.4rem;
  list-style: none;
  padding-left: 0;
}
.current-work li, .series-nav li {
  padding: 2px 0;
}
.current-work li::before, .series-nav li::before {
  content: "→ ";
  color: var(--accent-color);
  font-weight: 700;
}
.current-work li.current, .series-nav li.current {
  font-weight: 700;
}
.current-work li.current::before, .series-nav li.current::before {
  content: "▶ ";
}

.series-nav {
  margin-top: 3rem;
}

table {
  border-collapse: collapse;
  margin-top: 1rem;
  width: 100%;
  font-size: 0.95rem;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 6px 12px;
  text-align: left;
}
table th {
  background: #333;
  color: #fff;
  font-weight: 700;
}
table tr:nth-child(even) {
  background: #f8f8f8;
}

.coming-soon {
  color: #999;
  font-style: italic;
}
.coming-soon .badge {
  display: inline-block;
  background: #e8e8e8;
  color: #888;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.8rem;
  margin-left: 4px;
}

@media print {
  .no-print {
    display: none !important;
  }
}
