* {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-button-white: #fff;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-blockquote-text:  #043562;
  --color-about-text: #697887;
  --color-footer-text: var(--color-about-text);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-serif: "Plantijn";
  --font-family-sans: "Soehne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* --logoBGColor: #ddf1ff;
  --logoMainColor: #00c3ff;

  --logoBGColor: #c7ffe9;
  --logoMainColor: #00d277;
  --pageBGColor: #c7ffe9e6;


  --logoBGColor2: #ffe7dd;
  --logoMainColor2: #ff6600;

  --logoBGColor: #FFDDE8;
  --logoMainColor: #FF0050;
  --logoBGColor: #ffa5b1;
  --logoMainColor: #FE667B; */

  --logoBGColor: #ffffff;
  /* --logoMainColor: #00abff; */
  --logoMainColor: #bd5dc5;

  --logoKarbonAlphaBase: 0.32;
  --logoKarbonAlphaHover: 1;
  --logoBGAlphaBase: 1;
  --logoBGAlphaHover: 1;

  --logoKarbonAlpha: var(--logoKarbonAlphaBase);
  --logoBGAlpha: var(--logoBGAlphaBase);

  --socialIconColor: var(--color-about-text);
}

html {
  font-family: var(--font-family-serif);
  color: var(--color-text);
  background: var(--color-background);
  scroll-behavior: smooth;
  background-image: url(../images/image-mesh-light.png);
  background-repeat: no-repeat;
  background-position: center -100px;
  background-size: 100%;
  background-attachment: scroll;
}
img {
  width: 100%;
}
body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
  font-size: 1.2rem;
}
li {
  list-style: none;
}
a {
  color: currentColor;
}
.item .text a {
  text-decoration: underline;
  transition: color 0.1s ease-in-out;
}
.item .text a:hover {
  color: var(--logoMainColor);
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.logo {
  display: block;
  align-items: center;
  font-weight: 600;
  margin: 2rem 0;
  width: 76px;
  height: 76px;
  position: relative;
  left: 50%;
  top: 10px;
  margin-left: -38px;
  z-index: 10;
}

.logo:hover {
  --logoKarbonAlpha: var(--logoKarbonAlphaHover);
  --logoBGAlpha: var(--logoBGAlphaHover);
  animation: fill 1s linear;
}
.menu {
  display: flex;
}
.menu a {
  padding: 1rem;
  display: block;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.social {
  display: flex;
  flex-direction: column;
}
.social a {
  font-family: 'Soehne';
  text-decoration: none;
  transition: color 0.1s ease-in-out;
  min-width: 8rem;
}
.social a:hover {
  --socialIconColor: var(--color-text);
}
.social a:hover span.under {
  text-decoration: underline;
}
.social a span.l {
  width: 20px;
  height: 20px;
  padding-top: 0px;
  padding-right: 4px;
  display: inline-block;
  color: var(--color-about-text);
}
.social a span.l svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
}
.social a.bluesky span.l svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  margin-left: 1px;
}
.social a.glass span.l svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  margin-left: 1px;
}
.social a.instagram span.l svg {
  margin-top: -2px;
}
.social a.email span.l svg {
  width: 18px;
  height: 18px;
  margin-top: -3px;
  margin-left: 1px;
}
.social a.rss span.l svg {
  margin-top: -2px;
}
.social a.light-mode-switcher span.l svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  margin-left: 1px;
}
.social a.dark-mode-switcher span.l svg {
  width: 18px;
  height: 18px;
  margin-top: -1px;
  margin-left: 2px;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;

  a {
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1.5rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
  font-weight: bold;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: bold;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  border-left: 2px solid var(--logoMainColor);
  padding-left: 1rem;
  margin: 1rem 0 2rem 1rem;
  max-width: 32rem;
  font-family: 'Soehne';
  font-size: 1rem;
  line-height: 1.5rem;
  opacity: 1;
  color: var(--color-blockquote-text);
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 9rem 0 6rem 0;
  line-height: 1.5em;
  max-width: 52rem;
  margin: 0 auto;
  font-size: 1.1rem;
}
.footer.inline {
  padding: 6rem 0 0 0;
}
.footer .griddy {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 3rem;
  columns: 2;
}
.footer .griddy .about {
  width: 78%;
  flex-grow: 1;
}

.footer h2 {
  margin-bottom: .75rem;
  font-family: 'Soehne';
  font-weight: bold;
}
.footer ul,
.footer p {
  color: var(--color-about-text);
  font-family: 'Soehne';
}
.footer p {
  margin-bottom: 1.5rem;
}
.footer a {
  transition: color 0.1s ease-in-out;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

.pagination {
  display: flex;
  padding-top: 6rem;
  margin: 0 auto;
  max-width: 38rem;
  font-family: 'Soehne';
  font-size: 1rem;
}
.pagination hr {
  content: "";
  display: block;
  width: 38rem;
  height: 1px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}
.pagination .half {
  width: 50%;
}
.pagination .half.right {
  text-align: right;
}


.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}


.item {
  max-width: 38rem;
  padding-top: 2rem;
  margin: 0 auto;
}
.item .text {
  padding-top: 0;
}
.item-header h1, .item-header h2 {
  font-size: 1.5rem;
}
.item-header {
  padding-top: 3rem;
  margin-bottom: 2rem;
}
.item-footer {
  padding: 3rem 0 0 0;
  font-family: 'Soehne';
  font-size: 18px;
  font-weight: 400;
  color: var(--color-footer-text);
}
.item-date {
  color: var(--color-footer-text);
}
.item-tags, .item-share, .item-time {
  list-style: none;
  margin: 0;
  padding: 0;
}
.item-tags li, .item-share li, .item-time li {
  margin-right: .2rem;
  display: inline-flex;
}
.item-tags {
  margin-bottom: 0.2rem;
}

.pause {
  padding: 0.6rem 0 2rem 0;
  margin: 0 0 0 1rem;
  display: inline-block;
  opacity: 0.2;
  letter-spacing: 1rem;
  color: var(--color-about-text);
  font-family: 'Soehne';
  font-size: 1rem;
}

sup.footnote,
.item-read-more-btn,
.pgn,
.clear-tag {
  position: relative;
  z-index: 5;
  top: -2px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  display: inline-block;
  padding: 10px 8px;
  margin: 0 0 0 0.2em;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  font-size: 1rem;
  line-height: 0;
  vertical-align: middle;
  text-decoration: none;
  background-color: var(--logoBGColor);
  color: var(--logoMainColor);
  font-family: 'Soehne';
  font-size: 0.9rem;
  transition: all 0.1s ease-in-out;
  transition-property: background, color;
}
sup.footnote {
  color: var(--logoBGColor);
  background-color: var(--logoMainColor);
}
.item-read-more-btn, .clear-tag, .pgn {
  background-color: var(--logoBGColor);
  border-color: var(--logoMainColor);
  border-width: 1px;
  border-style: solid;
  margin-left: 0;
  border-radius: 100px;
}
.clear-tag {
  font-weight: normal;
  margin: 0;
}
sup.footnote a, .clear-tag a {
  text-decoration: none !important;
}

.dark {
  opacity: 1;
}

sup.footnote {
  padding: 10px 0;
}
sup.footnote a {
  display: inline;
  padding: 0 8px;
}

sup.footnote:hover,
.item-read-more-btn:hover,
.pgn:hover,
.clear-tag:hover {
  background-color: var(--logoMainColor) !important;
  color: var(--color-button-white) !important;
}

sup.footnote a:hover {
  color: var(--color-button-white) !important;
}

#footnotes hr {
  border: 1pt solid var(--color-about-text);
  border-width: 1pt 0 0 0;
  height: 0;
  margin: 4rem 0 1.5rem 0;
  width: 30px;
  opacity: 0.6;
}
#footnotes {
  z-index: 1;
}

.pagination .half a {
  padding: 1rem 1rem;
}


#footnotes li {
  list-style: decimal;
  font-family: 'Soehne';
  font-size: 1rem;
  line-height: 1.5rem;
  transition: opacity 0.1s ease-in-out;
}

#footnotes li:hover {
  opacity: 1;
}

#footnotes li a {
  color: var(--color-footer-text);
  transition: color 0.1s ease-in-out;
}

#footnotes li a:hover {
  color: var(--logoMainColor);
}

.item-read-more-btn {
  font-family: 'Soehne';
  font-size: 0.9rem;
  padding: 14px 10px;
  margin: 0;
}
.short-top {
  padding-top: 2rem;
}

ul.item-time, ul.item-time li,
ul.item-share, ul.item-share li,
ul.item-tags, ul.item-tags li {
  padding: 0 !important;
  margin: 0 !important;
}

.item-tags li,
.item-tags li a,
.item-share li,
.item-share li a,
.item-time li,
.item-time li a,
.notation {
  display: inline-flex;
  column-gap: 0;
  row-gap: 0;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  font-family: 'Soehne';
  font-size: 1rem;
}

.notation {
  opacity: 1;
}

.item-tags li a,
.item-share li a,
.item-time li time a {
  color: var(--color-footer-text);
  transition: all 0.1s ease-in-out;
  opacity: 1;
}

.item-tags li a:hover,
.item-share li a:hover,
.item-time li a:hover {
  color: var(--color-text);
  opacity: 1;
}

.item-read-more-btn a {
  text-decoration: none;
}
.essay .item-date {
  text-align: right;
}

.item-header {
  margin-bottom: 1rem;
}
.note .item-header h2, .essay .item-header h1, .current-tag h2 {
  font-family: 'Plantijn';
  font-weight: bold;
  font-size: 1.5rem;
}

.current-tag {
  margin: 0 auto;
  padding: 1rem 0 0rem 0;
  max-width: 38rem;
  text-align: center;
}
.current-tag h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0 auto;
  text-align: center;
  font-family: 'Soehne';
}

.nobr {
  white-space: nowrap;
}

a.curr {
  color: var(--logoMainColor);
  text-decoration-color: var(--logoMainColor);
  font-weight: bold;
}
a.curr:hover {
  text-decoration-color: var(--color-text);
}

.icon-prefix::before, .icon-big::before {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font: var(--fa-font-regular);
  font-size: 14px;
  font-weight: 900;
  width: 24px;
  margin-right: 0rem;
  margin-left: -28px;
  padding: 0;
  text-align: center;
  opacity: 0.8;
  color: var(--color-about-text);
}
.icon-big::before {
  font-size: 16px;
  width: 28px;
  content: "\f0c1";
  vertical-align: 1px;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}
.icon-big:hover::before {
  opacity: 0.8;
}
.icon-posted::before {
  content: "\f0c1";
}
.icon-reply::before {
  content: "\f3e5";
}
.icon-tagged::before {
  content: "\f02c";
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

@media screen and (max-width: 859px) {
  .social {
    display: block;
    width: 100%;
  }
  .social .s-left {
    width: 50%;
    max-width: 15rem;
    float: left;
  }
  .social .s-right {
    width: 50%;
    max-width: 15rem;
    float: left;
  }
}

@media screen and (max-width: 800px) {
  html {
    background-position: center 0px;
  }
}

@media screen and (min-width: 1100px) {
  html {
    background-position: center -200px;
  }
}

@media screen and (min-width: 1300px) {
  html {
    background-position: center -250px;
  }
}

@media screen and (min-width: 1700px) {
  html {
    background-position: center -400px;
  }
}

@media screen and (min-width: 2000px) {
  html {
    background-position: center -500px;
  }
}

html.darkMode {
  --color-black: #ccc;
  --color-white: #1e1e1e;
  --color-about-text: #8492a0;
  --color-footer-text: var(--color-about-text);
  --color-blockquote-text: var(--color-footer-text);
  background-image: url(../images/image-mesh-dark.png);
}
html.darkMode .item-read-more-btn, html.darkMode .clear-tag, html.darkMode .pgn {
  background-color: var(--color-white);
  border-color: var(--logoMainColor);
}
html.darkMode .item-footer {
  color: var(--color-footer-text);
}

html.lightMode .light-mode-switcher,
html.darkMode .dark-mode-switcher {
  display: none;
}
html.lightMode .dark-mode-switcher,
html.darkMode .light-mode-switcher {
  display: inherit;
}
