:root {
  color-scheme: light;
  --background: #f7f7f3;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --accent: #c2185b;
  --border: #dadce0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.page {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 48px 0;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
}

.content h1,
.content h2,
.content h3,
.content h4 {
  line-height: 1.2;
  letter-spacing: 0;
}

.content h1 {
  margin: 0 0 16px;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.content h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 1.8rem;
}

.content h3 {
  margin: 28px 0 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 1.35rem;
}

.content h4 {
  margin: 28px 0 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 1.05rem;
}

p {
  margin: 0 0 24px;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 10px;
}

a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.content a:hover .link-url {
  text-decoration-thickness: 0.14em;
}

.link-separator {
  color: var(--text);
  font-weight: 400;
}

.link-url {
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 35%);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

  .page {
    width: min(100% - 20px, 860px);
    padding: 20px 0;
  }
}
