@charset "UTF-8";

:root {
  --font-serif: Georgia, "Times New Roman", Times, "Songti SC", "STSong", serif;
  --font-sans-serif: system-ui, sans-serif;
  --font-mono: "RecMonoCasual Nerd Font", "Maple Mono NF CN Local", "Maple Mono NF CN", "SF Mono", "SF Pro", Monaco, Consolas, monospace;
  --font-handwriting: "Bradley Hand", "homemade-apple", cursive;
  --radius: 12px;
  --spaceing: 0.25rem;
}

/* #region Color */
:where([data-theme="latte"]) {
  color-scheme: light;
  --rosewater: #dc8a78;
  --flamingo: #dd7878;
  --pink: #ea76cb;
  --mauve: #8839ef;
  --red: #d20f39;
  --maroon: #e64553;
  --peach: #fe640b;
  --yellow: #df8e1d;
  --green: #40a02b;
  --teal: #179299;
  --sky: #04a5e5;
  --sapphire: #209fb5;
  --blue: #1e66f5;
  --lavender: #7287fd;
  --text: #4c4f69;
  --subtext1: #5c5f77;
  --subtext0: #6c6f85;
  --overlay2: #7c7f93;
  --overlay1: #8c8fa1;
  --overlay0: #9ca0b0;
  --surface2: #acb0be;
  --surface1: #bcc0cc;
  --surface0: #ccd0da;
  --base: #eff1f5;
  --mantle: #e6e9ef;
  --crust: #dce0e8;
}

:where([data-theme="rose_pine"]) {
  color-scheme: dark;
  --rosewater: #f6c177;
  --flamingo: #f2cdcd;
  --pink: #ebbcba;
  --mauve: #c4a7e7;
  --red: #eb6f92;
  --maroon: #ea9a97;
  --peach: #f2cdcd;
  --yellow: #f6c177;
  --green: #9ccfd8;
  --teal: #31748f;
  --sky: #9ccfd8;
  --sapphire: #31748f;
  --blue: #9ccfd8;
  --lavender: #c4a7e7;
  --text: #e0def4;
  --subtext1: #908caa;
  --subtext0: #6e6a86;
  --overlay2: #57526e;
  --overlay1: #454158;
  --overlay0: #3c3b4d;
  --surface2: #302d41;
  --surface1: #26233a;
  --surface0: #1f1d2e;
  --base: #191726;
  --mantle: #161422;
  --crust: #11111b;
}

:where([data-theme="nord"]) {
  color-scheme: light;
  --rosewater: #bf616a;
  --flamingo: #d08770;
  --pink: #b48ead;
  --mauve: #b48ead;
  --red: #bf616a;
  --maroon: #bf616a;
  --peach: #d08770;
  --yellow: #ebcb8b;
  --green: #a3be8c;
  --teal: #8fbcbb;
  --sky: #81a1c1;
  --sapphire: #5e81ac;
  --blue: #81a1c1;
  --lavender: #5e81ac;
  --text: #4c566a;
  --subtext1: #3b4252;
  --subtext0: #434c5e;
  --overlay2: #4c566a;
  --overlay1: #5a657a;
  --overlay0: #686e7e;
  --surface2: #76809f;
  --surface1: #7d8fa3;
  --surface0: #8fa3b0;
  --base: #eceff4;
  --mantle: #e5e9f0;
  --crust: #d8dee9;
}

:where([data-theme="mocha"]) {
  color-scheme: dark;
  --rosewater: #f5e0dc;
  --flamingo: #f2cdcd;
  --pink: #f5c2e7;
  --mauve: #cba6f7;
  --red: #f38ba8;
  --maroon: #eba0ac;
  --peach: #fab387;
  --yellow: #f9e2af;
  --green: #a6e3a1;
  --teal: #94e2d5;
  --sky: #89dceb;
  --sapphire: #74c7ec;
  --blue: #89b4fa;
  --lavender: #b4befe;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --overlay2: #9399b2;
  --overlay1: #7f849c;
  --overlay0: #6c7086;
  --surface2: #585b70;
  --surface1: #45475a;
  --surface0: #313244;
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
}

:where([data-theme="tokyo_night"]) {
  color-scheme: dark;
  --rosewater: #f7768e;
  --flamingo: #ff9e64;
  --pink: #bb9af7;
  --mauve: #bb9af7;
  --red: #f7768e;
  --maroon: #db4b4b;
  --peach: #ff9e64;
  --yellow: #e0af68;
  --green: #9ece6a;
  --teal: #1abc9c;
  --sky: #7dcfff;
  --sapphire: #2ac3de;
  --blue: #7aa2f7;
  --lavender: #82aaff;
  --text: #c0caf5;
  --subtext1: #a9b1d6;
  --subtext0: #9aa5ce;
  --overlay2: #787c99;
  --overlay1: #565f89;
  --overlay0: #414868;
  --surface2: #414868;
  --surface1: #33467c;
  --surface0: #24283b;
  --base: #1a1b26;
  --mantle: #16161e;
  --crust: #101014;
}

:where([data-theme="nord_night"]) {
  color-scheme: dark;
  --rosewater: #b48ead;
  --flamingo: #d08770;
  --pink: #b48ead;
  --mauve: #b48ead;
  --red: #bf616a;
  --maroon: #bf616a;
  --peach: #d08770;
  --yellow: #ebcb8b;
  --green: #a3be8c;
  --teal: #8fbcbb;
  --sky: #88c0d0;
  --sapphire: #81a1c1;
  --blue: #5e81ac;
  --lavender: #81a1c1;
  --text: #eceff4;
  --subtext1: #e5e9f0;
  --subtext0: #d8dee9;
  --overlay2: #4c566a;
  --overlay1: #434c5e;
  --overlay0: #3b4252;
  --surface2: #434c5e;
  --surface1: #3b4252;
  --surface0: #3b4252;
  --base: #2e3440;
  --mantle: #292e39;
  --crust: #242933;
}

body {
  background: var(--mantle);
  color: var(--text);
}

.article-licensing {
  color: var(--subtext1);
  border-top: 0.1px dashed var(--surface0);
}

.navbar-main,
.navbar-menu {
  user-select: none;
  background: var(--mantle);
}

.task-list-item-checkbox {
  accent-color: var(--lavender);
}

.task-list-item-checkbox:checked {
  accent-color: var(--mauve);
}

input.task-list-item-checkbox:checked {
  background-color: var(--green);
  border-color: var(--green);
}

a {
  color: var(--lavender);
  text-decoration: none;

  &:hover {
    color: var(--blue);
  }
}

mark {
  background-color: var(--yellow);
}

hr {
  background-color: var(--surface0);
}

.searchbox-result-item.active span {
  color: var(--yellow);
}

.searchbox-result-item:hover span {
  color: var(--mauve);
}

/* #endregion Color */

/* #region Font */

@font-face {
  font-family: "Maple Mono NF CN Local";
  font-weight: 100 900;
  src: local("MapleMono-NF-CN-Regular");
}

@font-face {
  font-family: doto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/myblog/css/font/woff2/doto.woff2) format("woff2");
}

@font-face {
  font-family: Paris2024;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("paris2024"),
    url(/myblog/css/font/woff2/Paris2024-Variable.woff2) format("woff2");
}

@font-face {
  font-family: homemade-apple;
  src:
    local("Homemade Apple"),
    local("HomemadeApple-Regular"),
    url(/myblog/css/font/woff2/HomemadeApple.woff2) format("woff2");
}

/* #endregion */

body,
dd,
dl,
dt,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
iframe,
legend,
li,
ol,
p,
pre,
textarea {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  margin: 0;
}

html {
  box-sizing: border-box;
  height: 100%;
  min-width: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  min-height: 100%;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.toc-text,
.footer-grid,
.widget {
  font-family: var(--font-sans-serif);
}

.card {
  max-width: 100%;
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  border: 0.5px dashed var(--surface0);
}

.card + .card {
  margin-top: 1.5rem;
}

.card-content {
  padding: 1.25rem;
  border-radius: 0;
}

/* #region Navbar */

.navbar {
  min-height: 4rem;
  position: sticky;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 100;
  font-family: var(--font-sans-serif);
  border-bottom: 0.5px solid var(--surface0);
}

.navbar-container {
  flex-grow: 1;
  margin: 0 auto;
  width: auto;
  display: flex;
  min-height: 4rem;

  button {
    background: none;
    border: none;
    cursor: pointer;
  }
}

.navbar-main.navbar--hidden {
  transform: translateY(-100%);
}

.navbar-item {
  color: var(--subtext1);
  align-items: center;
  display: flex;
  font-size: 1.1rem;
  padding: 0 0.5rem;
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
}

.navbar-end {
  svg {
    width: 1.2em;
  }

  .navbar-item:hover {
    scale: 1.1;
    transition: all 0.2s ease;
    color: var(--lavender);
  }
}

/* #endregion Navbar */

/* #region Theme Selector */

#theme-selector-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.theme-selector-list {
  background-color: hsl(from var(--mantle) h s l / 0.8);
  border-radius: var(--radius);
  border: 2px solid var(--mauve);
  width: 90%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

#theme-selector-modal.is-active {
  visibility: visible;
  pointer-events: auto;
}

.theme-option {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  position: relative;

  &.is-focused,
  &:hover {
    color: var(--rosewater);
  }

  .theme-name {
    flex: 1;
    font-size: 1.5rem;
    word-spacing: 0.5rem;
    letter-spacing: 0.05rem;
    font-family: var(--font-serif);
  }
}

/* #endregion Theme Selector */

/* #region Pagination */

.pagination,
.pagination-list {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.pagination-link.is-current {
  color: var(--lavender);
}

.pagination-ellipsis,
.pagination-link,
.pagination-next,
.pagination-previous {
  user-select: none;
  height: 2.5em;
  border-radius: 10px;
  font-weight: bold;
  color: var(--text);
  margin: 0.25rem;
  padding: 0 0.5em;
  justify-content: center;
  text-align: center;
  align-items: center;
  display: inline-flex;
  position: relative;
  vertical-align: top;
  min-width: 1.5em;
}

.pagination-list {
  flex-wrap: wrap;
}

/* #endregion Pagination */

/* #region Tabs */

.tabs-tabs-wrapper {
  overflow: hidden;
  margin: 10px auto;
}

.tabs-tabs-header {
  display: flex;
  padding: 0 10px;
}

.tabs-tab-button {
  flex: 1;
  padding: 0.5em 0;
  border: none;
  background: 0 0;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  outline: 0;
  font-family: var(--font-sans-serif);
  color: var(--text);

  &:hover,
  &.active {
    color: var(--lavender);
  }
}

.tabs-tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--lavender);
  animation: slideIn 0.3s ease;
}

.tabs-tabs-container {
  padding: 0.8em 0 10px 0;
}

.tabs-tab-content {
  display: none;
}

.tabs-tab-content.active,
.tabs-tab-content[data-active] {
  display: block;
}

/* #endregion Tabs */

.section {
  padding: 3rem 1.5rem;
  flex-grow: 1;
}

.main-content {
  -webkit-justify-content: center;
  justify-content: center;
  flex-grow: 1;
  margin: 0 auto;
  position: relative;
  max-width: 1080px;
}

/* #region Footer */

.footer {
  user-select: none;
  padding: 3rem 1.5rem 6rem;
  position: relative;

  iconify-icon {
    font-size: 1.2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 1.5rem;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-title {
  font-weight: bolder;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-heading {
  font-weight: bolder;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--subtext0);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--subtext0);
  text-decoration: none;

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

/* #endregion Footer */

::-webkit-scrollbar {
  display: none;
}

/* #region Content */

.content {
  overflow: auto;
  word-wrap: break-word;
  font-family: var(--font-sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.003em;

  ::selection {
    color: inherit;
    text-decoration: underline wavy;
    text-decoration-color: var(--mauve);
  }

  a.header-anchor {
    color: var(--text);

    &:hover::after {
      margin-left: 0.2em;
      color: var(--surface0);
    }
  }

  h2 {
    font-size: 2.25em;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 1rem 0 1rem;
    border-bottom: 0.8px solid var(--surface0);

    > a.header-anchor:hover::after {
      content: "##";
    }
  }

  h3 {
    font-size: 1.875em;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 1.2rem 0 1rem;

    > a.header-anchor:hover::after {
      content: "###";
    }
  }

  h4 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 1.2rem 0 1rem;

    > a.header-anchor:hover::after {
      content: "####";
    }
  }

  h5 {
    font-size: 1.35em;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 1.2rem 0 1rem;

    > a.header-anchor:hover::after {
      content: "#####";
    }
  }

  h6 {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.25;
    margin: 1.2rem 0 1rem;

    > a.header-anchor:hover::after {
      content: "######";
    }
  }

  .p:not(:last-child) {
    margin-bottom: 1rem;
  }

  p,
  ol,
  dl,
  pre,
  details {
    margin-bottom: 1rem;
  }

  p:last-child,
  .tabs-tabs-wrapper:last-child {
    margin-bottom: 0;
  }

  img,
  video {
    display: block;
    max-width: 100%;
    margin: 0 auto;

    &:hover {
      cursor: pointer;
    }
  }

  video,
  .pic {
    margin: 1em auto;
  }

  button.physical-btn,
  kbd {
    display: inline-block;
    padding: 0.1em 0.3em;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--subtext0);
    user-select: none;
    background: linear-gradient(180deg, var(--base) 0%, var(--mantle) 100%);
    border: 1px solid var(--surface0);
    border-bottom-width: 3px;
    border-bottom-color: var(--surface0);
    border-radius: 6px;
    position: relative;
    top: -3px;
    transition:
      top 0.1s ease,
      border-bottom-width 0.1s ease,
      box-shadow 0.1s ease;

    &:active {
      top: 0px;
    }
  }

  ol {
    list-style-position: outside;
    padding-left: 2em;
  }

  ul {
    list-style: disc outside;
    padding-left: 2em;
    margin: 1em 0;

    ul {
      margin-top: 0.5em;
      list-style: circle;

      ul {
        list-style: square;
      }
    }
  }

  dd {
    margin-left: 2em;
  }

  math {
    overflow: auto;
    margin-bottom: 1rem;
  }

  iframe {
    overflow: auto;
  }

  figure {
    margin: 1em 2.5rem;
    text-align: center;
  }

  figure:not(:first-child) {
    margin-top: 1.5rem;
  }

  figure:not(:last-child) {
    margin-bottom: 1rem;
  }

  figure img {
    display: inline-block;
  }

  figure figcaption {
    font-style: italic;
  }

  pre {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    font-size: 0.85em;
    padding: 1rem;
    margin: 0 0 1rem 0;
    white-space: pre;
    word-wrap: normal;
    line-height: 1.45;
  }

  code {
    font-size: 0.85em;
    font-family: var(--font-mono);
    padding: 0 0.25em;
    margin: 0 0.2em;
    background-color: var(--base);
    color: var(--subtext1);
    border: 1px solid var(--surface0);
    border-radius: 4px;
  }

  sub,
  sup {
    font-size: 75%;
  }

  abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    position: relative;
  }

  a[href*="apple"]::before,
  a[href*="github"]::before,
  a[href*="wikipedia"]::before,
  a[href*="youtube"]::before {
    font-family: var(--font-mono);
    font-size: 1em;
    padding-left: 0.5em;
    color: var(--lavender);
  }

  a[href*="github"]::before {
    content: " ";
  }

  a[href*="wikipedia"]::before {
    content: "󰖬 ";
  }

  a[href*="youtube"]::before {
    content: " ";
  }

  a[href*="apple"]::before {
    content: " ";
  }
}

.footnotes {
  font-family: var(--font-serif);
  font-size: 0.9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: auto;
  margin: 1rem 0;
  font-size: 1rem;
}

td,
th {
  vertical-align: middle;
  padding: 0.75em 1em;
}

thead th {
  font-weight: 700;
  border-bottom: 1px solid var(--surface0);
  padding: 1em;
}

td:not([align]),
th:not([align]) {
  text-align: left;
}

tbody tr td {
  border-bottom: 1px solid var(--surface0);
}

tbody tr:last-child td {
  border-bottom: none;
}

blockquote {
  position: relative;
  padding: 1.5rem 2rem 1.5rem 3rem;
  margin: 1.5rem 0;
  border-left: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);

  &:before {
    content: "”";
    color: var(--red);
    position: absolute;
    left: 0.5rem;
    top: 0.2rem;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.3;
    line-height: 1;
  }
}

ul.contains-task-list {
  list-style-type: none;
}

li.task-list-item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  list-style: none;
}

input.task-list-item-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--surface1);
  border-radius: 0.375rem;
  position: absolute;
  left: 0;
  top: 0.15rem;
}

input.task-list-item-checkbox:checked::before {
  content: "";
  font-family: var(--font-mono);
  color: var(--base);
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 700;
}

.medium-zoom-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
}

.medium-zoom-image--opened {
  z-index: 151;
  position: fixed;
}

.heimu {
  color: var(--text);
  background-color: var(--text);
}

.heimu:hover {
  color: var(--base);
}

strong {
  font-weight: bolder;
  padding: 0 0.15em;
  /* color: var(--maroon); */
}

hr {
  border: none;
  display: block;
  height: 0.1em;
  margin: 1.5rem 0;
}

a strong {
  color: currentColor;
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: baseline;
}

small {
  font-size: 0.875em;
}

/* #endregion Content */

:target {
  scroll-margin-top: 5rem;
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
  display: block;
}

.article:has(.article-licensing) {
  padding-bottom: 0 !important;
}

/* #region Article Meta*/

.article-title {
  font-family: var(--font-sans-serif);
  font-size: 2.75em;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
  color: var(--text);

  > a {
    color: inherit;
  }
}

.article-header-meta {
  font-family: var(--font-mono);
  overflow: auto;
  padding-bottom: 0.5em;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--surface0);
  color: var(--subtext0);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;

  a {
    color: var(--subtext0);

    &:hover {
      color: var(--blue);
    }
  }
}

.article-meta-info,
.article-tags-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.article-tags-inline {
  /* Push to the right */
  margin-left: auto;
}

.meta-separator {
  color: var(--overlay0);
  padding: 0 0.1em;
}

/* #endregion Article Meta */

/* #region Licensing */

.article-licensing {
  display: block;
  position: relative;
  margin: 2rem -1.25rem 0 -1.25rem;
  padding: 1.25rem;
  z-index: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: none;
  overflow: hidden;
  justify-content: space-between;
}

.article-licensing-bg-icon {
  position: absolute;
  z-index: -1;
  right: -50px;
  top: -88px;
  font-size: 200px;
  opacity: 0.1;
  pointer-events: none;
}

.licensing-title {
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.licensing-title p:not(:last-child) {
  margin-bottom: 0.25rem;
}

.licensing-meta {
  .level-item {
    margin-right: 1.5rem;
    font-size: 0.75rem;
  }

  iconify-icon {
    font-size: 1.5em;
    vertical-align: bottom;
  }

  a {
    color: inherit;
  }
}

/* #endregion Licensing */

/* #region Search */

.searchbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  font-family: var(--font-mono);
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;

  &.show {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(5px);
  }
}

input.searchbox-input {
  color: inherit;
  background-color: inherit;
  font-family: inherit;
  border: none;
  outline: 0;
  flex-grow: 1;
  box-sizing: border-box;
  padding: 0.75em 0 0.75em 1.25em;
}

.searchbox,
.searchbox-container {
  align-items: center;
  flex-direction: column;
  line-height: 1.25em;
}

.searchbox-container {
  background-color: var(--mantle);
  border: 2px solid var(--surface0);
  color: var(--text);
  position: fixed;
  z-index: 101;
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  width: 640px;
  top: 100px;
}

.searchbox-input-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  line-height: 1.5em;
  font-weight: 400;
  min-height: 3rem;
}

.searchbox-body {
  flex-grow: 1;
  width: 100%;
  border-top: 1px solid var(--base);
}

.searchbox-result-section--posts {
  max-height: 450px;
  overflow-y: auto;
}

.searchbox-result-section--tags {
  max-height: 250px;
  overflow-y: auto;
}

.searchbox-result-item,
.searchbox-result-section header {
  padding: 0.75em 1em;
}

.searchbox-result-section {
  border-bottom: 1px dotted var(--base);
}

.searchbox-result-item {
  display: flex;
  flex-direction: row;
}

.searchbox-result-content {
  overflow: hidden;
}

.searchbox-result-preview {
  color: var(--subtext0);
  margin-top: 0.25em;
}

.searchbox-result-preview,
.searchbox-result-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* #endregion Search */

.cover-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  height: 380px;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cover-lqip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: blur(10px);
  }

  .cover-origin {
    position: relative;
    z-index: 2;
  }
}

/* html.is-changing .transition-fade {
  view-transition-name: main;
}

::view-transition-old(main) {
  animation: fade 0.5s ease-in-out both;
}

::view-transition-new(main) {
  animation: fade 0.5s ease-in-out both reverse;
}

@keyframes fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
} */
