@font-face {
  font-family: "Fakt Pro";
  src: url("/assets/FaktPro-Normal.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Fakt Pro";
  src: url("/assets/FaktPro-NormalItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Fakt Pro";
  src: url("/assets/Fakt-SemiBold.woff2") format("woff2"),
       url("/assets/Fakt-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Lyno Stan HKW";
  src: url("/assets/LynoStanHKW.woff2") format("woff2"),
       url("/assets/LynoStanHKW.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  scroll-behavior: smooth;
}

html {
  font-family: "Fakt Pro", sans-serif;
  font-size: 19px;
  line-height: 1.4;
}
@media only screen and (min-width: 375px) {
  html {
    font-size: 21px;
    line-height: 1.3;
  }
}
@media only screen and (min-width: 400px) {
  html {
    font-size: 24px;
  }
}
@media only screen and (min-width: 700px) {
  html {
    font-size: 26px;
  }
}
@media only screen and (min-width: 1000px) {
  html {
    font-size: 28px;
  }
}
@media only screen and (min-width: 1160px) {
  html {
    font-size: 32px;
  }
}
@media only screen and (min-width: 1280px) {
  html {
    font-size: 36px;
  }
}
@media only screen and (min-width: 1700px) {
  html {
    font-size: 40px;
  }
}

body {
  margin: 0;
  background: white;
}

::selection {
  background: yellow;
}
::-moz-selection {
  background: yellow;
}

p {
  max-width: 40rem;
  margin: 1em auto;
}
/* @media only screen and (min-width: 1280px) {
  article p,
  article h4
   {
    max-width: 40rem;
    padding: 0 2rem;
  }
} */

strong {
  font-weight: 600;
}

a,
button {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.07em solid;
  opacity: 1;
}

a:hover,
button:hover,
summary:hover {
  opacity: 0.7;
}

a:active,
button:active,
summary:active {
  opacity: 0.4;
}

a:visited {
  color: inherit;
  opacity: 1;
}

a[rel~="external"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.05em;
}

blockquote {
  max-width: 37rem;
  margin: 1.5em;
}

blockquote.centered {
  text-align: center;
}

@media only screen and (min-width: 1280px) {
  blockquote {
    margin: 1.5em auto;
    padding: 0 1.5em;
  }
}

.indentation {
  display: inline-block;
}

.indentation.indent-1 {
  padding-left: 1.5em;
}

.indentation.indent-2 {
  padding-left: 3em;
}

.indentation.indent-3 {
  padding-left: 4.5em;
}

summary {outline-style: none;}

button {
  appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  height: 1.25em;
}

header h1 {
  position: absolute;
  line-height: 1em;
}

h2 {
  font-family: "Lyno Stan HKW", "Fakt Pro", sans-serif;
  font-weight: normal;
  font-size: 1.75em;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.5rem 0 0 0;
  padding: 0;
}
@media only screen and (min-width: 700px) {
  h2 {
    font-size: 3em;
  }
}
@media only screen and (min-width: 1000px) {
  h2 {
    font-size: 4em;
  }
}

h2 a {
  border: none;
}

h3 {
  font-weight: normal;
  font-size: 1em;
  line-height: 1.3;
  margin: 0.3em 0 2.5em 0;
}

h3 a {
  border: none;
}

h4,
p.large {
  font-weight: normal;
  font-size: 1.3em;
  max-width: 40rem;
  margin: 1em auto;
}
@media only screen and (min-width: 1000px) {
  h4 {
    font-size: 1.3em;
    line-height: 1.2;
  }
}
@media only screen and (min-width: 1280px) {
  h4 {
    font-size: 1.5em;
    line-height: 1.1;
  }
}

small {
  display: block;
  font-size: 0.6rem;
  margin-top: 6rem;
}
@media only screen and (min-width: 375px) {
  small {
    font-size: 0.5rem;
  }
}
@media only screen and (min-width: 1000px) {
  small {
    font-size: 0.4rem;
  }
}

.logo {
  z-index: 2;
  border: none;
}

.logo svg {
  fill: white;
  height: 1.75rem;
}

.logo.ccworld {
  mix-blend-mode: difference;
  position: fixed;
  top: 0.9rem;
  left: 0.8rem;
  opacity: 1;
}
.logo.ccworld:hover {
  opacity: 0.8;
}

.logo.hkw {
  mix-blend-mode: difference;
  position: fixed;
  top: 0.9rem;
  right: 0.8rem;
  opacity: 1;
}
.logo.hkw:hover {
  opacity: 0.8;
}

.logo.hkw::after {
  display: none;
}

.project-description {
  margin: 0.5em 0 0 0;
}

.project-description p {
  margin: 0.6em 0 0 0;
}

@media only screen and (min-width: 1000px) {
  .project-description p {
    font-size: 1.3em;
    line-height: 1.2;
    max-width: none;
  }
}

@media only screen and (min-width: 1280px) {
  .project-description p {
    font-size: 1.5em;
    line-height: 1.1;
  }
}
@media only screen and (min-width: 1700px) {
  .project-description p {
  }
}


.ccworld-biglogo {
  padding: 1em 0 0.5em 0;
  line-height: 0.5;
}
.ccworld-biglogo,
.ccworld-biglogo svg {
  height: 2.5em;
  fill: currentcolor;
}
@media only screen and (min-width: 700px) {
  .ccworld-biglogo {
    padding: 1em 0 0 0;
  }
  .ccworld-biglogo,
  .ccworld-biglogo svg {
      width: 100%;
      height: auto;
    }
}

#inbox {
  padding-top: 2.5em;
}

nav ul {
  font-family: "Lyno Stan HKW", "Fakt Pro", sans-serif;
  font-weight: normal;
  font-size: 1.75em;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  /* same as h2 */
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}

@media only screen and (min-width: 700px) {
  nav ul {
    font-size: 3em;
  }
}

@media only screen and (min-width: 1000px) {
  nav ul {
    font-size: 3em;
  }
}

@media only screen and (min-width: 1800px) {
  nav ul {
    font-size: 4em;
  }
}


nav ul .unpublished {
  opacity: 0.25;
}

nav ul a {
  border: none;
}

.to-inbox {
  position: -webkit-sticky;
  position: sticky;
  top: 100%;
  height: 0;
  z-index: 30;
  mix-blend-mode: difference;
}

.to-inbox a {
  position: absolute;
  right: 0.8em;
  bottom: 1em;
  border: 0;
  display: block;
}

.to-inbox a svg {
  display: block;
  height: 0.8rem;
  fill: white;
}

.place {
  padding: 0.8em;
  padding-bottom: 7em;
  background-size: 100% 7em, 100%;
  background-repeat: no-repeat;
  background-position: 100% calc(100% + 1px), top left;
}

.place.dark {
  color: white;
}

hr {
  border: none;
  height: 1rem;
}


main .picture {
  position: relative;
  display: block;
  margin-bottom: 0.5em;
  margin: 0 auto;
}

main .picture div {
  position: relative;
}

@media only screen and (min-width: 1366px) {
  main .picture {
    width: 30em;
  }
}

main .picture.wide {
  width: 100%;
}

main .picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100%;
}

article .picture {
  margin-bottom: 1.5em;
}
@media only screen and (min-width: 1280px) {
  article .picture {
    margin: 0 auto 1.5em auto;
  }
}

.picture figcaption {
  font-size: 0.6em;
}
@media only screen and (min-width: 375px) {
  .picture figcaption {
    font-size: 0.5em;
  }
}
@media only screen and (min-width: 1000px) {
  .picture figcaption {
    font-size: 0.4em;
  }
}

.picture figcaption p {
  max-width: none;
}

time, .weather, .aqi {
  display: inline-block;
  }

details {
  font-size: 0.75rem;
}
details summary {
  margin: 4em 0 0 0;
  text-indent: -1.25em;
  cursor: pointer;
}

details summary::after {
  content: " →";
}
details[open] summary::after {
  content: " ↓";
}

details summary::-webkit-details-marker {
  color: transparent;
}
details summary::marker {
 color: transparent;
}

.bios h2 {
  font-family: "Fakt Pro", sans-serif;
  font-weight: normal;
  font-size: 1.5em;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bios .bio {
  padding-top: 3em;
}

.bio h3 {
  font-weight: 600;
  max-width: 40rem;
  margin: 0 auto 0.5em auto;
}

.bio p {
  margin: 0 auto 0.5em auto;
}

.solobio {
  margin-top: 4em;
}

footer ul {
  list-style: none;
  font-size: 0.75em;
  margin: 3em 0;
}

footer li {
  margin: 2em 0;
}

footer li a {
  border-bottom: 0;
}

footer summary {
  font-size: 1em;
  margin: 0;
}

.footnote-link {
  margin-left: 0.2em;
}

.footnote {
  display: flex;
  margin: 1em auto;
  max-width: 40rem;
}

.footnote .index {
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 0.5em;
}

.footnote .note {
  flex-shrink: 1;
  flex-grow: 1;
  font-size: 1em;
  max-width: 40em;
}

.footnote .note p:first-child {
  margin-top: 0;
}

.footnote .note p:last-child {
  margin-bottom: 0;
}

sup {
  font-size: 0.6em;
}
