:root {
  --support-bg: #ffffff;
  --support-surface: #f5f5f7;
  --support-text: #1d1d1f;
  --support-muted: #6e6e73;
  --support-link: #0066cc;
  --support-link-hover: #004f9f;
  --support-border: #d2d2d7;
  --support-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --support-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html,
body {
  color: var(--support-text);
  background: var(--support-bg);
  font-family: var(--support-font) !important;
  font-size: 17px;
  line-height: 1.47059;
}

body {
  margin: 0;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
.post-content,
.site-title,
.site-description,
button {
  font-family: var(--support-font) !important;
}

pre,
code,
.highlight pre {
  font-family: var(--support-mono) !important;
}

.content {
  max-width: 920px;
  padding: 0 24px;
}

header {
  margin: 0 0 3.5rem !important;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1;
}

header .main {
  font-size: 0.95rem !important;
  font-weight: 600;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
}

a {
  color: var(--support-link);
  border-bottom: 0 !important;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus {
  color: var(--support-link-hover);
  background: transparent !important;
  outline: none !important;
  text-decoration: underline;
}

header a {
  color: var(--support-text);
}

header nav a {
  color: var(--support-muted);
}

header nav a:hover,
header nav a:focus {
  color: var(--support-text);
  text-decoration: none;
}

::selection {
  color: #ffffff;
  background: var(--support-link);
}

h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before,
ul > li::before,
.tags li::before {
  content: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--support-text);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 1rem !important;
  font-size: clamp(2.35rem, 6vw, 4rem) !important;
  font-weight: 700;
  line-height: 1.07;
}

h2 {
  margin: 3rem 0 1rem !important;
  padding-top: 2.4rem;
  border-top: 1px solid var(--support-border);
  font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1.14;
}

h3 {
  margin: 2.15rem 0 0.7rem !important;
  font-size: 1.28rem !important;
  font-weight: 650;
  line-height: 1.22;
}

h4 {
  margin: 1.45rem 0 0.55rem !important;
  color: var(--support-muted);
  font-size: 1rem !important;
  font-weight: 650;
  line-height: 1.3;
}

.home .page-header,
.title .page-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem;
  max-width: 740px;
  margin-bottom: 1.6rem;
}

.home .page-header h1,
.title h1,
h1.title {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
}

p {
  margin: 0.85rem 0;
  color: var(--support-text);
  line-height: 1.58;
}

.body > p:first-child,
.home-content > p:first-child {
  color: var(--support-muted);
  font-size: 1.17rem;
  line-height: 1.45;
}

ul,
ol {
  margin: 0.8rem 0 1.35rem 1.25rem !important;
  padding: 0;
}

ul {
  list-style-type: disc !important;
}

li {
  margin-bottom: 0.55rem !important;
  color: var(--support-text);
  line-height: 1.55;
  text-indent: 0 !important;
}

li::marker {
  color: var(--support-muted);
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--support-border);
}

blockquote {
  margin: 1.4rem 0;
  padding-left: 1.1rem;
  color: var(--support-muted);
  border-left: 3px solid var(--support-border);
}

code {
  padding: 0.1em 0.28em;
  background: var(--support-surface);
  border-radius: 4px;
}

pre {
  padding: 16px;
  background: var(--support-surface);
  border: 1px solid var(--support-border);
  border-radius: 8px;
}

img {
  border: 0;
  border-radius: 8px;
}

.post-container {
  gap: 2rem;
}

.post-content,
.body,
.home-content {
  max-width: 740px;
}

.home-content {
  margin: 0;
}

.tldr,
.toc {
  padding: 18px 20px;
  color: var(--support-text);
  background: var(--support-surface);
  border: 1px solid transparent;
  border-radius: 8px;
}

.page-actions .dropdown-toggle {
  color: var(--support-link);
  background: transparent;
  border-color: var(--support-border);
  border-radius: 999px;
  box-shadow: none;
}

.page-header .page-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.page-actions .dropdown-toggle:hover,
.page-actions .dropdown-toggle:focus {
  color: var(--support-link-hover);
  background: var(--support-surface);
}

.page-actions .button-separator {
  background-color: var(--support-border);
}

.page-actions .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--support-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.page-actions .dropdown-item {
  color: var(--support-text);
  border-radius: 6px;
}

.page-actions .dropdown-item:hover,
.page-actions .dropdown-item.is-selected {
  background: var(--support-surface);
}

.page-actions .item-description,
.meta,
time {
  color: var(--support-muted);
}

footer {
  margin-top: 4rem;
  padding: 28px 0 42px;
  color: var(--support-muted);
  border-top: 1px solid var(--support-border);
  font-size: 0.82rem;
}

footer a {
  color: var(--support-muted);
}

.tags {
  list-style: none !important;
  margin-left: 0 !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --support-bg: #000000;
    --support-surface: #1d1d1f;
    --support-text: #f5f5f7;
    --support-muted: #a1a1a6;
    --support-link: #2997ff;
    --support-link-hover: #5eb0ff;
    --support-border: #3a3a3c;
  }

  header {
    border-color: rgba(255, 255, 255, 0.14);
  }

  .page-actions .dropdown-menu {
    background: rgba(29, 29, 31, 0.96);
  }
}

@media (max-width: 720px) {
  html,
  body {
    font-size: 16px;
  }

  .content {
    padding: 0 18px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 2.5rem !important;
  }

  header nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .home .page-header,
  .title .page-header {
    align-items: flex-start !important;
    flex-direction: row !important;
  }

  h1 {
    font-size: 2.55rem !important;
  }
}
