@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

html {
  font-size: calc(16px + 2pt);
}

:root {
  --bg: #FFFFFF;
  --text: #434343;
  --link: #0000ff;
  --link-visited: #0000ff;
  --nav-link: #0000ff;
  --muted: #b5b5b5;
  --rule: #3d3d3d;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'SUSE', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  line-height: 1.6;
}

#page {
  max-width: 912px;
  margin: 22px auto 40px;
  padding: 0 16px;
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
}

#content {
  font-size: 1.08rem;
  text-align: left;
}

#content article {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text);
}

#content article p,
#content article li,
#content article blockquote {
  font-size: 1em;
  line-height: inherit;
}

pre[class*="language-"] code,
pre[class*="language-"] {
  font-size: 0.85rem !important;
}

pre[class*="language-"] .token,
pre.has-copy[class*="language-"] .token {
  font-size: 0.85rem !important;
  line-height: 1.35 !important;
}

h1, h2, h3 {
  font-weight: bold;
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Tofu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
}

#content article header h2 {
  margin-bottom: 0;
}

#content article header p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

#content article hr {
  border-top: 1.5px solid #eeeeee;
  margin-top: 0;
  margin-bottom: 16px;
}

p, li {
  font-size: 1.05rem;
}

.home-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-posts-list > .home-month-group {
  margin-top: 14px;
  margin-bottom: 4px;
  color: #434343;
  font-size: calc(2.1rem - 13pt);
  font-weight: bold;
  font-family: "Space Grotesk", "Tofu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-transform: capitalize;
}

.home-posts-list > .home-month-group + hr {
  border-top: 1.5px solid #eeeeee;
  margin-top: 8px;
  margin-bottom: 16px;
}

.home-post-item {
  font-size: calc(1.05rem - 2pt);
  position: relative;
  margin-left: 1.5em;
  padding-left: 1em;
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

.home-post-item::before {
  content: "";
  position: absolute;
  left: -0.35em;
  top: 0.50em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #434343;
}

.home-post-item > a {
  font-family: 'SUSE', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

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

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

a:hover {
  text-decoration: none;
  opacity: 0.88;
}

.site-title {
  margin-bottom: 0;
  font-size: 2rem;
  font-family: "Space Grotesk", "Tofu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #434343;
  text-decoration: none;
}

.site-suffix {
  color: #1e50ff;
  font-weight: 700;
  font-size: 0.6em;
  margin-left: 4px;
  letter-spacing: 0.08em;
  vertical-align: baseline;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 50px;
}

.header-row + hr {
  display: block;
  width: 100%;
}

.top-nav {
  margin: 0;
  font-size: calc(0.96rem - 2pt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  margin-right: 12px;
  color: var(--nav-link);
}

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

.top-nav a:last-child {
  margin-left: 8px;
  display: inline-block;
  text-align: right;
}

pre, code {
  font-family: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
}

pre.has-copy {
  position: relative;
  background: #f5f5f6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 0 rgba(0,0,0,0.03);
}

pre.has-copy .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms linear;
}

pre.has-copy .copy-button:active {
  transform: translateY(1px);
}

pre.has-copy.show-copy .copy-button,
pre.has-copy.show-copy .copy-button:focus {
  opacity: 1;
  pointer-events: auto;
}

pre code {
  display: block;
  padding: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border-radius: 0 0 10px 10px;
  white-space: pre;
  word-break: normal;
  font-size: 0.85rem;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
  font-style: italic;
}

.token.punctuation {
  color: #393a34;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #005cc5;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #22863a;
}

.token.operator,
.token.entity,
.token.url {
  color: #d73a49;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #6f42c1;
}

.token.function,
.token.class-name {
  color: #005cc5;
}

pre.has-copy code {
  color: #24292e;
}

article blockquote {
  position: relative;
  margin: 1.2em 0;
  padding: 0.9em 1rem 0.9em 1.6rem;
  background: transparent;
  color: var(--text);
  border: none;
}

article blockquote::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 3px;
  background: #9e9e9e;
  border-radius: 2px;
}

article blockquote p {
  margin: 0;
}

.post-tags {
  margin-top: 1.2rem;
  padding: 10px 12px;
  background: rgba(30,80,255,0.04);
  border: 1px solid rgba(30,80,255,0.06);
  border-radius: 8px;
}

.post-tags h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.tag-link {
  display: inline-block;
  margin: 0 8px 6px 0;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(30,80,255,0.12);
  color: #1e50ff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}

.tag-link:hover,
.tag-link:focus {
  background: rgba(30,80,255,0.06);
  outline: none;
}

.tags-index {
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.72;
  text-align: left;
}

.tags-index h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: left;
}

.tags-index p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  text-align: left;
}

.tag-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(30,80,255,0.12);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background: rgba(30,80,255,0.04);
  border-color: rgba(30,80,255,0.24);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,80,255,0.08);
}

.tag-link-large {
  flex: 1;
  color: #1e50ff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tag-link-large:hover {
  color: #0037cc;
}

.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: rgba(30,80,255,0.1);
  color: #1e50ff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

article img,
article .post-image {
  max-width: 780px;
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 12px 0;
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.copyright {
  font-size: calc(0.9rem - 3pt);
}

footer.site-footer {
  position: static;
  background: transparent;
  padding: 6px 8px;
  margin-top: 40px;
  max-width: 912px;
  width: 100%;
}

footer.site-footer .copyright {
  margin: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.7rem;
}

footer.site-footer .cc-icon {
  vertical-align: middle;
  height: 18px;
  margin-left: 6px;
}

footer.site-footer .cc-text {
  margin-left: 6px;
  vertical-align: middle;
  color: var(--muted);
}

@media (max-width: 760px) {
  #page {
    margin: 10px auto 24px;
    padding: 0 10px;
  }

  .site-title {
    font-size: 1.65rem;
  }

  .header-row {
    gap: 8px;
  }

  .home-posts-list > .home-month-group {
    font-size: 1.35rem;
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .home-posts-list > .home-month-group + hr {
    margin-bottom: 12px;
  }

  .tag-grid {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .tag-item {
    padding: 12px 14px;
  }

  .tags-index {
    font-size: 1.08rem;
  }

  footer.site-footer {
    padding: 0;
    margin-top: 18px;
    text-align: left;
  }

  footer.site-footer .copyright {
    text-align: left;
  }

  footer.site-footer .cc-icon {
    height: 22px;
    margin-left: 8px;
  }
}
