:root {
  color-scheme: light dark;
  --maxWidth: 50rem;
  --mobileBreakpoint: 30rem;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1;
}

.site-header, .site-footer {
  width: 100%;
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  flex-direction: column;
  padding-top: 2rem;
  border-bottom: 1px color-mix(in oklab, CanvasText 10%, Canvas) solid;
}

@media (min-width: 30rem) {
  .site-header {
    flex-direction: row;
  }
}

.site-header a {
  text-decoration: none;
  font-weight: 600;
}

.site-header .site-title {
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: bold;
}

.site-header a:hover {
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a:hover {
  opacity: 0.7;
}

#content {
  height: 100dvh;
  width: 100%;
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

#content p {
  color: color-mix(in oklab, CanvasText 90%, Canvas);
}

.site-footer {
  display: flex;
  justify-content: center;
  border-top: 1px color-mix(in oklab, CanvasText 10%, Canvas) solid;
  color: color-mix(in oklab, CanvasText 60%, Canvas);
}

.site-footer p {
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 2em;
}

p {
  font-weight: 600;
  margin: 1em 0;
  line-height: 1.7;
  hyphens: auto;
  overflow-wrap: break-word;
}

p + pre,
p + img,
pre + p,
img + p {
  margin-top: 1.5em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow: auto;
  padding: 0.875rem;
  border-radius: .5rem;
  background: color-mix(in oklab, CanvasText 8%, Canvas);
}

code {
  background: color-mix(in oklab, CanvasText 8%, Canvas);
  padding: .1em .35em;
  border-radius: .3em;
}

article header h1 {
  margin-bottom: .25rem;
}

article p:first--of-type {
  margin-top: 1.25em;
}

:focus-visible {
  outline: 2px solid;
  outline-offset: 2px;
  border-radius: .25rem;
}
