:root {
  --background: #ffffff;
  --text: #222222;
  --muted: #6f6f6f;
  --line: #dddddd;
  --link: #7557d3;
  --link-hover: #5d3ec2;
  --callout: #f6f3ff;
  --callout-border: #8a5cf5;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { color: white; background: var(--link); }

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: transparent;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--link); }
.publish-renderer { min-height: 100vh; }
.markdown-preview-view { padding: 24px 0 96px; }
.publish-header,
.markdown-preview-sizer {
  width: min(800px, 100%);
  margin: 0 auto;
  padding-right: 48px;
  padding-left: 48px;
}
.publish-header { margin-bottom: 44px; }
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.025em;
}
section { scroll-margin-top: 35px; }
h1, h2, h3, p, ol, blockquote { max-width: 100%; }
h1 {
  margin: 10px 0 41px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.page-header { text-transform: uppercase; }
.page-header + h1 {
  margin-top: 0;
  margin-bottom: 13px;
  font-size: 1.83rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
h2 {
  margin: 2.2rem 0 0.72rem;
  font-size: 1.46rem;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  margin: 1.65rem 0 0.35rem;
  font-size: 1.32rem;
  font-weight: 660;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
p { margin: 1rem 0; }
strong { font-weight: 700; }
em { color: var(--muted); }
hr { height: 1px; margin: 2rem 0; background: var(--line); border: 0; }
blockquote { margin: 1.35rem 0; padding: 0 0 0 1rem; color: #404040; border-left: 3px solid #b6b6b6; }
blockquote p { margin: 0; }
ol { margin: 1rem 0; padding-left: 2.15rem; }
li { margin: 0.45rem 0; padding-left: 0.3rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

.callout { margin: 1.75rem 0; padding: 0.85rem 1rem; background: var(--callout); border-left: 4px solid var(--callout-border); border-radius: 4px; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-heading { margin-top: 1.9rem; }
.cta-heading a { font-weight: 700; }
.small-note { color: var(--muted); font-size: 0.88rem; }
.signature { margin-top: 2rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 48px;
  color: #999;
  border-top: 1px solid #eeeeee;
  font-size: 11px;
}

@media (max-width: 700px) {
  .markdown-preview-view { padding-top: 18px; }
  .publish-header,
  .markdown-preview-sizer { padding-right: 22px; padding-left: 22px; }
  .publish-header { margin-bottom: 36px; }
  .site-name { font-size: 19px; }
  h1 { margin-bottom: 2rem; font-size: 2.1rem; }
  .page-header + h1 { font-size: 1.68rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.22rem; }
  footer { flex-direction: column; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
