:root {
  --text: #1d1d1f;
  --muted: #5e5e63;
  --line: #e3e3e8;
  --surface: #f5f5f7;
  --background: #ffffff;
  --accent: #3f42d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand svg { width: 32px; height: 32px; flex: none; }
nav { display: flex; gap: 18px; font-size: 15px; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.card { background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.card p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
/* Extra bottom space keeps the host's floating badge from covering the footer. */
footer .wrap { padding-top: 20px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  main { padding-top: 28px; }
}
