/* What every page carries whatever pack placed its blocks: the reset,
   the page frame, the skip link, the blog pages, Markdown prose and the
   analytics cookie banner. Colors and faces are the theme's variables. */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
}
main { flex: 1; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
a { color: var(--primary); }

.skip-link {
  position: absolute;
  left: -10000px;
  top: 1rem;
}
.skip-link:focus {
  left: 1rem;
  z-index: 50;
  padding: .625rem 1rem;
  border-radius: var(--field-radius, .5rem);
  background: var(--surface);
  color: var(--surface-foreground);
  box-shadow: var(--elevation-lifted);
}

.page-narrow { width: 100%; max-width: 48rem; margin-inline: auto; padding: 4rem 1.5rem; }
.page-title { font-size: calc(2.25rem * var(--heading-scale, 1)); }
.page-meta { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.post-body { margin-top: 2rem; }

.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: calc(1.5rem * var(--heading-scale, 1)); margin-top: 1.5em; }
.prose h3 { font-size: calc(1.25rem * var(--heading-scale, 1)); margin-top: 1.25em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose blockquote { border-left: 3px solid var(--border); padding-left: 1em; color: var(--muted); }
.prose pre { overflow-x: auto; padding: 1em; border-radius: var(--field-radius, .5rem); background: var(--background-secondary); }
.prose :is(code, kbd, pre) { font-family: var(--font-mono); }
.prose code { font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: .375em .75em; text-align: start; }
.prose hr { border: 0; border-top: 1px solid var(--border); }

.ezer-consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 60;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--field-radius, .5rem) * 1.5);
  background: var(--surface);
  color: var(--surface-foreground);
  box-shadow: var(--elevation-lifted);
  font-size: .9375rem;
}
.ezer-consent[hidden] { display: none; }
.ezer-consent:focus { outline: none; }
.ezer-consent h2 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: .375rem; }
.ezer-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.ezer-consent-actions button, .ezer-consent-open {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--field-radius, .5rem);
  background: var(--background);
  color: var(--foreground);
}
.ezer-consent-actions button { flex: 1 1 8rem; padding: .5rem 1rem; font-weight: 500; }
.ezer-consent-actions button:focus-visible, .ezer-consent-open:focus-visible, .ezer-consent a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ezer-consent a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.ezer-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ezer-consent-filled .ezer-consent-actions button { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.ezer-consent-left { margin-inline: 0 auto; }
.ezer-consent-right { margin-inline: auto 0; }
.ezer-consent-bar {
  inset: auto 0 0;
  max-width: none;
  border-width: 1px 0 0;
  border-radius: 0;
  padding-inline: max(1.25rem, calc((100% - 64rem) / 2));
}
@media (min-width: 48rem) {
  .ezer-consent-bar { display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: center; }
  .ezer-consent-bar .ezer-consent-actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .ezer-consent-bar .ezer-consent-actions button { flex: 0 0 auto; }
}
.ezer-consent-open {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 59;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  box-shadow: var(--elevation-lifted);
}
.ezer-consent-open-right { left: auto; right: 1rem; }
