:root {
  --bg: #f9fafb;
  --text: #1d2939;
  --muted: #667085;
  --line: #d0d5dd;
  --link: #155eef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.soft-glow {
  position: fixed;
  z-index: -1;
  inset: -35% auto auto -20%;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.09), rgba(21, 94, 239, 0));
  filter: blur(2px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.shape-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shape-item {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(21, 94, 239, 0.18);
  border: 1px solid rgba(21, 94, 239, 0.18);
  user-select: none;
}

.shape-circle {
  border-radius: 50%;
}

.shape-square {
  border-radius: 3px;
}

.shape-diamond {
  border-radius: 3px;
}

.shape-pill {
  width: 32px !important;
  border-radius: 999px;
}

.page {
  width: min(920px, 94vw);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.name {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 1.7rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

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

nav a:hover {
  color: var(--text);
}

main {
  margin-top: 34px;
}

.intro h1 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.intro p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.section {
  margin-top: 42px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

li span {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.name a {
  color: inherit;
  text-decoration: none;
}

.name a:hover {
  color: var(--link);
}

.article {
  width: 100%;
}

.article-header {
  margin-bottom: 36px;
}

.article-meta {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.article h1 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.article-deck {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article section {
  margin-top: 32px;
}

.article h2 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.article p,
.article li {
  margin: 0 0 14px;
  color: var(--text);
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  border-top: 0;
}

.article li {
  padding: 0;
  border-bottom: 0;
  display: list-item;
}

.article-footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.article table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
}

.article th,
.article td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  background: rgba(21, 94, 239, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.article pre code {
  background: none;
  padding: 0;
}

.article-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(21, 94, 239, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(90px, 55px);
  }
}

@media (max-width: 700px) {
  .shape-item {
    opacity: 0.12 !important;
  }

  .page {
    padding-top: 30px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  li span {
    white-space: normal;
  }
}
