:root {
  --bg: #f4f2ed;
  --text: #2c2c2a;
  --muted: #76756f;
  --faint: #adaba5;
  --line: rgba(44,44,42,0.12);
  --accent: #1f6aaa;
}

html {
  box-sizing: border-box;
  border-top: 4px solid var(--accent);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home {
  font-size: 1.05rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 24px 5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.70rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

h2 {
  position: relative;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}

h2 + p {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Intro section: paragraphs between h1 and first h2 */
.home > h1 + p,
.home > h1 + p + p,
.home > h1 + p + p + p {
  font-size: 1.1rem;
  line-height: 1.65;
}

.home > h1 ~ h2:first-of-type {
  margin-top: 3rem;
}

p,
ol {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

ul {
  margin-top: 0.8rem;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

li {
  margin: 0;
  line-height: 1.60;
  font-size: 1.1rem;
  color: var(--muted);
}

li + li {
  margin-top: 1.1rem;
}

li > p:first-child {
  margin-top: 0;
}

li p:last-child {
  margin-bottom: 0;
}

li strong {
  color: var(--text);
}

li strong a {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-style: solid;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}

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

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

::selection {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
}

.site-footer {
  margin-top: 3.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .container {
    padding: 2.5rem 20px 3.5rem;
  }

  .home {
    font-size: 1rem;
  }

  .home > h1 + p,
  .home > h1 + p + p {
    font-size: 1.05rem;
  }

  .site-footer {
    margin-top: 3rem;
  }
}
