:root {
  --bg: #ffffff;
  --panel: #f6fbfd;
  --code: #f2f8fa;
  --text: #20252b;
  --gopher-blue: #00add8;
  --title: var(--gopher-blue);
  --muted: #64737b;
  --accent: var(--gopher-blue);
  --accent-dark: #007d9c;
  --green: #08764d;
  --green-soft: #effbf5;
  --green-border: #bfe9d4;
  --link: var(--accent-dark);
  --border: #d8e7ec;
  --shadow: 0 1px 2px rgba(0, 125, 156, .08);
  --container: 766px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
}

::selection {
  color: var(--text);
  background: rgba(0, 173, 216, .18);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 173, 216, .35);
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: rgba(0, 173, 216, .7);
}

.skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  padding: .45rem .7rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner,
.site-main,
.site-footer {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 1rem;
}

.site-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--title);
  font-size: .96rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  color: var(--muted);
  font-size: .92rem;
}

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

.site-nav a:hover {
  color: var(--accent-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--green);
}

.site-main {
  padding-block: 3.5rem 4.5rem;
}

.site-footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}

.home-hero,
.page-header,
.post-header {
  padding-block: .25rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.home-hero h1,
.page-header h1,
.post-header h1 {
  margin: 0;
  color: var(--title);
  font-size: 3.4rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.page-header h1,
.post-header h1 {
  font-size: 2.6rem;
}

.lede {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--green);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  margin-top: 2rem;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.section__header h2 {
  margin: 0;
  color: var(--title);
  font-size: 1.1rem;
  line-height: 1.3;
}

.section__header a {
  flex: 0 0 auto;
  font-size: .92rem;
}

.post-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.post-list__item {
  padding: 1.05rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
}

.post-list__item h2,
.post-list__item h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.post-list__item h2 a,
.post-list__item h3 a {
  color: var(--title);
  text-decoration: none;
}

.post-list__item h2 a:hover,
.post-list__item h3 a:hover {
  color: var(--accent-dark);
}

.post-list__meta {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .86rem;
}

.post-list__summary {
  margin: .45rem 0 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: .12rem .42rem;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  font-size: .78rem;
  line-height: 1.4;
}

.prose {
  max-width: 78ch;
  margin-top: 2rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2rem;
  margin-bottom: .6rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.35rem;
}

.prose h3 {
  font-size: 1.12rem;
}

.prose h4 {
  font-size: 1rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose figure,
.prose table,
.prose pre {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: .35rem;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
}

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

.prose code,
.prose kbd,
.prose samp,
.prose pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .94em;
}

.prose :not(pre) > code {
  padding: .08rem .22rem;
  overflow-wrap: anywhere;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.prose pre {
  overflow-x: auto;
  padding: .9rem 1rem;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.prose pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .94rem;
}

.prose th,
.prose td {
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  background: var(--panel);
  text-align: left;
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .9rem;
}

.prose address {
  color: var(--text);
  font-style: normal;
}

.prose .math-display {
  overflow-x: auto;
  padding-block: .25rem;
}

@media (max-width: 560px) {
  .site-header__inner,
  .site-main,
  .site-footer {
    width: min(100% - 1.25rem, var(--container));
  }

  .site-header__inner {
    min-height: 54px;
  }

  .site-main {
    padding-block: 2.5rem 3.5rem;
  }

  .home-hero h1,
  .page-header h1,
  .post-header h1 {
    font-size: 2rem;
  }

  .section__header {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }
}
