/* Styles for kawaicheung.io */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400;1,8..60,600&display=swap");
:root {
  --fonts-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --fonts-serif: "Source Serif 4";
  --color--border-line: rgba(255,0,0,0.2);
  --color--base-font: #222;
  --color--header-link-hover-bg: rgba(255,0,0,0.08);
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
* {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-family: var(--fonts-system);
  color: var(--color--base-font);
  background-color: #fff;
}
ul {
  list-style: none;
}
body {
  display: flex;
  flex-direction: column;
  margin-left: 10vw;
  margin-right: 10vw;
}
body > nav {
  background-color: #fff;
  z-index: 1;
  position: fixed;
  width: 5rem;
  top: 0;
  right: 0rem;
  border-left: solid 1px var(--color--border-line);
  padding: 3rem 2rem 1rem 1rem;
}
body > nav img {
  width: 50px;
  border-radius: 4rem;
  margin-bottom: 0.6rem;
  border: solid 1px var(--color--border-line);
}
body > nav li a {
  text-decoration: none;
  font-size: 0.6rem;
}
body > nav li a.selected {
  font-size: 0.7rem;
  font-weight: 700;
}
body > div.home {
  padding: 0;
  margin: 0;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  padding-top: 20vh;
  position: relative;
  min-height: 80vh;
}
body > div.home img {
  position: absolute;
  width: 2.1rem;
  left: -1.1rem;
  margin-top: 0.4rem;
  top: 20vh;
  border-radius: 4rem;
  border: solid 1px var(--color--border-line);
}
body > div.home h1 {
  position: relative;
  font-size: 2.4rem;
  margin: 0 0 1rem 0;
}
body > div.home ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.4rem;
}
body > div.home ul li a {
  font-size: 0.8rem;
  font-weight: 400;
  width: fit-content;
  border-radius: 2rem;
  text-decoration: none;
  background-color: #fff;
  display: block;
}
body > div.home ul li a:hover {
  font-weight: 600;
}
body > div.home p {
  font-size: 0.9rem;
  line-height: 1.4rem;
}
body > div {
  display: flex;
  width: 34rem;
  border-left: solid 1px var(--color--border-line);
  padding-left: 2rem;
  max-width: 100%;
  flex-direction: column;
  padding-bottom: 4rem;
}
body > div h1 {
  font-size: 1.4rem;
  letter-spacing: -0.01rem;
  font-weight: 800;
  margin: 3rem 0 2rem 0;
}
body > div a.header-link {
  color: var(--color--base-font);
  font-size: 1.4rem;
  letter-spacing: -0.01rem;
  font-weight: 800;
  margin: 3rem 0 2rem 0;
  text-decoration: none;
  padding: 0.1rem 0.5rem 0.2rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.5rem;
  width: fit-content;
}
body > div a.header-link:hover {
  background-color: var(--color--header-link-hover-bg);
}
body > div h2 {
  width: fit-content;
  position: relative;
  font-size: 2.4rem;
  letter-spacing: -0.05rem;
  font-weight: 800;
  margin-bottom: 2rem;
  word-break: break-word;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: rgba(0, 0, 0, 0) !important;
}
body > div h2 div.tag {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(90%);
  background: #44a344;
  -webkit-text-fill-color: white;
  color: white;
  width: fit-content;
  padding: 0.1rem 0.3rem;
  font-size: 0.6rem;
  letter-spacing: -0.01rem;
  font-weight: 500;
  rotate: -5deg;
}
body > div h2.blue {
  background: linear-gradient(135deg, blue 0, skyblue 60%, blue 90%);
}
body > div h2.red {
  background: linear-gradient(135deg, red 0, orange 80%);
}
body > div h2.purple {
  background: linear-gradient(135deg, midnightblue 0, purple 50%);
}
body > div h2.green {
  background: linear-gradient(135deg, green 0, limegreen 50%, seagreen 70%);
}
body > div h2.black {
  background: linear-gradient(135deg, orange 0, purple 50%);
}
body > div h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6rem;
  margin-bottom: 2rem;
  letter-spacing: -0.025rem;
}
body > div h3.software {
  font-weight: 800;
  font-family: var(--fonts-system);
  font-size: 1.2rem;
  font-style: normal;
  margin-bottom: 1rem;
}

body > div h4 {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
body > div h4 img.book {
  position: absolute;
  top: 0rem;
  left: -5.4rem;
  width: 4rem;
  transform: rotate(-2deg);
  border: solid 1px var(--color--border-line);
  border-radius: 2px;
}
body > div p {
  position: relative;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--fonts-serif);
  line-height: 1.2rem;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01rem;
}
body > div p img.side-icon {
  position: absolute;
  width: 1.4rem;
  left: -2.8rem;
  top: 0.4rem;
  border-radius: 4rem;
  border: solid 1px var(--color--border-line);
}
hr {
  margin: 0.6rem 0 2rem 0;
  width: 30%;
  border: none;
  border-top: dotted 2px #999;
}
a, em, strong {
  font: inherit;
  color: inherit;
}
a {
  background-color: transparent;
  color: darkslategray;
}
a:hover {
  background-color: transparent;
  color: #000;
}
em {
  font-style: italic;
}
span.sub {
  display: block;
  margin-top: 0.2rem;
  font-weight: normal;
  font-size: 0.7rem;
  letter-spacing: -0.01rem;
  line-height: 1rem;
  color: #666;
}
strong {
  font: inherit;
  font-weight: 600;
}
strike {
  font: inherit;
}

div.just-a-list {
  margin-bottom: 1rem;
}
div.just-a-list > ul {
  margin-left: 1.2rem;
  list-style-type: circle;
}

div.just-a-list > ul > li {
  font-size: 0.8rem;
  font-family: var(--fonts-serif);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01rem;
}
div.just-a-list > ul > li > span {
  padding-left: 4px;
  font-family: var(--fonts-system);
  font-size: 0.55rem;
  font-weight: 600;
}
@media only screen and (max-width: 992px) {
  body {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  body > nav {
    padding: 0;
    right: 1rem;
    top: inherit;
    bottom: 0rem;
    width: auto;
    border-left: none;
    background-color: transparent;
  }
  body > nav ul {
    display: none;
  }
  body > div {
    border-left: none;
    padding-left: 0;
  }
  body > div a.header-link {
    font-size: 1rem;
    letter-spacing: -0.01rem;
    margin-top: 2rem;
  }
  body > div a.header-link:hover {
    background-color: var(--color--header-link-hover-bg);
  }
  body > div h1 {
    font-size: 1rem;
  }
  body > div h2 {
    font-size: 1.6rem;
  }
  body > div h3 {
    font-size: 1rem;
    line-height: 1.4rem;
  }
  body > div h4 img.book {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-bottom: 1rem;
  }
  body > div p img.side-icon {
    display: none;
  }
  body > div.home {
    border-left: none;
    padding-left: 0;
    padding-top: 6vh;
  }
  body > div.home img {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
  }
  body > div.home h1 {
    font-size: 1.6rem;
  }
  body > div.home h2 {
    font-size: 1.6rem;
  }
  body > div.home h3 {
    font-size: 1rem;
    line-height: 1.4rem;
  }
  body > div.home h4 img.book {
    display: none;
  }
  body > div.home p img.side-icon {
    display: none;
  }
  body > div.home ul {
    align-items: flex-end;
  }
}
