@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #ffffff;
  --color-text: #2b2233;
  --color-text-muted: #6b6275;
  --color-link: #7a56c2;
  --color-link-hover: #c2367a;
  --color-selection: #e6dcf7;
  --color-focus: #7a56c2;
  --color-heart: #c2367a;
  --measure: 52rem;
  --space-s: 0.35rem;
  --space-m: 1rem;
  --space-l: 2.5rem;
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --avatar-radius: 0.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body, h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
}

html {
  background: var(--color-bg);
}

body {
  background: var(--color-bg);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-block: 3rem 5rem;
  text-align: left;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw + 1rem, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

h2 {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

strong, b {
  font-weight: 700;
  text-shadow: 0 0 1px currentcolor;
}

em, i {
  font-style: italic;
  font-synthesis-style: auto;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li + li {
  margin-top: var(--space-s);
}

.home ul {
  list-style: none;
  padding-left: 0;
}

.home ul > li {
  position: relative;
  padding-left: 1.35rem;
}

.home ul > li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.825em;
  transform: translateY(-50%);
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--color-heart);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center / contain;
}

blockquote {
  margin-block: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-link);
  color: var(--color-text-muted);
}

blockquote p:last-child {
  margin-bottom: 0;
}

code, pre, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
}

pre {
  overflow-x: auto;
  margin-bottom: 1rem;
}

hr {
  border: 0;
  margin-block: 2rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figcaption {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

h1, h2, h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease;
  overflow-wrap: anywhere;
}

a:visited {
  color: var(--color-link);
}

a:hover, a:focus-visible {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: 0.125rem solid var(--color-focus);
  outline-offset: 0.2rem;
  border-radius: 0.125rem;
}

.footnote-ref + .footnote-ref {
  margin-left: 0.3em;
}

::selection {
  background: var(--color-selection);
  color: var(--color-text);
}

.site-note {
  margin-top: 4rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.avatar {
  display: block;
  width: 15rem;
  height: 15rem;
  object-fit: cover;
  border-radius: var(--avatar-radius);
  margin-block: 1rem 1.25rem;
}

#bataille-quote {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  li + li {
    margin-top: 0.75rem;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  a, a:visited {
    color: #000;
  }

  .site-note {
    display: none;
  }
}
