:root {
  --ink: #15181c;
  --muted: #5c6673;
  --paper: #ffffff;
  --accent: #0b5b8c;
  --accent-soft: #d4e5f2;
  --rule: #e3e7ee;
  --content-width: 680px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Newsreader", "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

.page,
.content {
  animation: fade-up 520ms ease-out both;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px 32px;
}

.content {
  width: 100%;
  max-width: var(--content-width);
  margin: 40px auto 60px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  left: 24px;
}

.site-nav {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-links {
  display: flex;
  gap: 18px;
  font-size: 15px;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom: 1px solid var(--ink);
}


h1,
h2,
h3 {
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

.page-header h1,
.post-header h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

p {
  margin: 0 0 18px;
}

.lede {
  font-size: 22px;
  color: var(--muted);
}

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

a:hover {
  color: #163c5e;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 36px 0;
}

.post-meta {
  color: var(--muted);
  font-size: 15px;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-body {
  font-size: 19px;
}

.post-body h2,
.post-body h3 {
  margin-top: 32px;
}

.post-body blockquote {
  margin: 24px 0;
  padding: 0 18px;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
}

.post-body code {
  background: #f2f4f8;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.95em;
}

.post-body pre {
  background: #f2f4f8;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
}

.post-body pre code {
  background: transparent;
  padding: 0;
}

.post-body ul,
.post-body ol {
  padding-left: 20px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body img {
  max-width: 100%;
  border-radius: 12px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.post-list a {
  text-decoration: none;
  color: var(--ink);
}

.post-list .post-title {
  font-size: 24px;
  margin-bottom: 6px;
}

.post-list .post-excerpt {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  margin-top: auto;
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .content {
    animation: none;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 18px 24px;
  }

  .content {
    margin: 28px auto 48px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header h1,
  .post-header h1 {
    font-size: 34px;
  }

  .post-body {
    font-size: 18px;
  }
}
