html {
  background-color: #181a1b;
  min-height: 100vh;
}

.webpage {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  flex-direction: column;
  color: rgb(183, 177, 167);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  width: 995px;
  margin: 0 auto;
}

body {
  display: flex;
  flex-direction: column;
  color: rgb(183, 177, 167);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  margin: 0;
  min-height: 100%;
}

/* header */

header {
  border-bottom: 1px solid rgb(52, 56, 58);
}

nav {
  display: flex;
  align-items: center;
  max-width: 900px;
  padding: 1rem 4rem;

  /* margin-left: auto; */
  /* margin-right: auto; */
}

nav>h1 {
  display: inline-block;
  font-weight: bold;
  font-size: 1.4rem;
  margin: 0;
/*   width: 15rem; */
  margin-right: 78.58px;
}

nav>h1:hover {
  cursor: pointer;
}

nav>ul {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  margin: 0;
  margin-left: 2.5rem;
  padding-left: 1.5rem;
  /* padding-right: 10px; */
  /* background-color: aqua; */
}

nav>ul>li {
  position: relative;
  /* margin: 0 10px; */
}

nav>ul>li:hover {
  color: rgb(171, 163, 152);
  cursor: pointer;
}

nav>ul>li::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: rgb(171, 163, 152);
  transition: all 0.2s ease-in-out;
}

nav>ul>li:hover::after,
nav>ul>li.active::after {
  width: 100%;
}

/* main */

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.main-layout {
  display: flex;
}

/* sidebar */

.sidebar {
  padding: 2rem 2rem 1.5rem 4rem;
  width: 15rem;
  flex-shrink: 0;
}

.sidebar>.avatar {
  display: block;
  width: 195px;
  border: 1px solid rgb(52, 56, 58);
  border-radius: 50%;
  margin: 0 auto;
}

.sidebar>h2 {
  font-size: 1.2rem;
}

.sidebar>ul {
  font-size: 0.9rem;
  padding-left: 0;
  list-style-type: none;
  line-height: 1.9;
}

.sidebar figure {
  display: contents;
  margin: 0;
}

.sidebar figure a {
  color: inherit;
  text-decoration: none;
}

.sidebar figure img {
  filter: invert(1) grayscale(1) brightness(50%);
  vertical-align: middle;
  width: 1.4rem;
}

.sidebar figure img.icon-rev {
  filter: grayscale(1) brightness(70%);
}

.sidebar figure figcaption {
  display: inline;
}

/* content */

.content {
  max-width: 850px;
  padding: 1rem 4rem 1.5rem 2rem;
}

.content > section.hidden {
  display: none;
}

.content>section>h2 {
  display: none;
}

.content>section ul a,
.content>section ol a {
  text-decoration: none;
}

.github-contributions {
  padding: 0 4rem 1.5rem;
}

.github-contributions>h3 {
  margin-bottom: 0.2rem;
}

.github-contributions>p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgb(172, 165, 154);
}

.calendar {
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgb(52, 56, 58);
  border-radius: 8px;
  background-color: rgb(24, 26, 27);
}

.calendar-summary,
.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgb(172, 165, 154);
}

.calendar-body {
  display: flex;
  gap: 0.5rem;
  margin: 0.85rem 0 0.65rem;
}

.calendar-day-labels {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  padding-top: 18px;
  font-size: 0.72rem;
  color: rgb(172, 165, 154);
  flex: 0 0 auto;
}

.calendar-grid-wrapper {
  flex: 0 0 auto;
  min-width: max-content;
}

.calendar-month-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 3px;
  height: 14px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: rgb(172, 165, 154);
}

.calendar-month-labels>span {
  white-space: nowrap;
}

.calendar-heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
}

.calendar-cell,
.calendar-legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #2d333b;
}

.calendar-cell-empty {
  opacity: 0;
}

.calendar .level-0 {
  background-color: #2d333b;
}

.calendar .level-1 {
  background-color: #0e4429;
}

.calendar .level-2 {
  background-color: #006d32;
}

.calendar .level-3 {
  background-color: #26a641;
}

.calendar .level-4 {
  background-color: #39d353;
}

.calendar-legend {
  justify-content: space-between;
}

.calendar-legend>a {
  font-size: 0.82rem;
  color: rgb(172, 165, 154);
  text-decoration: none;
}

.calendar-legend-scale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

p,
li {
  text-justify: inter-word;
  text-align: justify;
}

/* footer */

footer {
  color: rgb(172, 165, 154);
  background-color: rgb(31, 34, 35);
  border-top: 1px solid rgb(66, 71, 74);
  padding: 1rem 4rem;
  font-size: 14.8px;

  word-spacing: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* flex-direction: column; */
}

/* generic */

.hidden {
  display: none;
}

a {
  color: inherit;
  text-decoration-color: rgb(108 103 95);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

ul,
ol {
  padding-left: 1em;
}
