@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Newsreader:wght@400&display=swap");

:root {
  --pp-bar-h: 48px;
}

body.pp-has-bar {
  padding-top: var(--pp-bar-h);
}

.pp-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pp-bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: #1a1a18;
  color: #f2f0ea;
  font-family: "Newsreader", Georgia, serif;
  font-size: 15px;
  line-height: 1;
  box-sizing: border-box;
}

.pp-bar *,
.pp-bar *::before,
.pp-bar *::after {
  box-sizing: border-box;
}

.pp-bar__title {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.pp-bar__sub {
  margin-left: 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a978e;
}

.pp-bar__tabs {
  display: flex;
  gap: 4px;
  height: 100%;
}

.pp-bar__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  color: #b9b6ad;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  white-space: nowrap;
}

.pp-bar__tab:hover {
  color: #ffffff;
}

.pp-bar__tab.is-active {
  color: #ffffff;
  border-bottom-color: #f2f0ea;
}

.pp-bar__letter {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9a978e;
}

.pp-bar__tab.is-active .pp-bar__letter {
  color: #f2f0ea;
}

.pp-bar__notes {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #3a3a36;
  border-radius: 2px;
  background: transparent;
  color: #b9b6ad;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.pp-bar__notes:hover {
  color: #ffffff;
  border-color: #5a5a54;
}

.pp-bar__notes span {
  color: #f2f0ea;
}

html.pp-hide-notes .pp-note {
  display: none !important;
}

@media (max-width: 760px) {
  .pp-bar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }
  .pp-bar__sub {
    display: none;
  }
  .pp-bar__tabs {
    justify-content: center;
  }
  .pp-bar__tab {
    padding: 0 10px;
  }
  .pp-bar__name {
    display: none;
  }
  .pp-bar__letter {
    font-size: 13px;
  }
  .pp-bar__notes {
    padding: 7px 8px;
  }
}

@media (max-width: 420px) {
  .pp-bar__title {
    display: none;
  }
  .pp-bar {
    grid-template-columns: 1fr auto;
  }
  .pp-bar__tabs {
    justify-content: flex-start;
  }
}
