/* Opt-in reset. Legacy sections outside .am-scope retain their own cascade. */
@font-face{font-family:Geologica;src:url("fonts/geologica.woff2") format("woff2");font-weight:100 900;font-display:swap}
:where(.am-scope,.am-scope *,.am-scope *::before,.am-scope *::after){box-sizing:border-box}
.am-scope{color-scheme:light;color:var(--color-ink);font:var(--text-body);font-variant-numeric:tabular-nums;overflow-wrap:break-word;letter-spacing:normal;font-feature-settings:normal;text-rendering:auto;-webkit-font-smoothing:auto;-webkit-tap-highlight-color:transparent}
:where(.am-scope h1,.am-scope h2,.am-scope h3,.am-scope p,.am-scope dl,.am-scope dd){margin:0}
:where(.am-scope p,.am-scope span,.am-scope label){text-wrap:pretty}
/* Type rules in the retained home stylesheet must not leak into new blocks. */
.am-scope :where(p){letter-spacing:inherit}
.am-scope :where(h1,h2,h3,h4){text-wrap:inherit}
.am-scope :where(img){max-width:none}
.am-scope :where(button,a,input,select,textarea,label){-webkit-tap-highlight-color:transparent}
:where(.am-scope a){color:inherit;text-decoration:none}
:where(.am-scope button,.am-scope input,.am-scope select){font:inherit;color:inherit}
:where(.am-scope button){border:0;background:none;cursor:pointer}
:where(.am-scope button,.am-scope a,.am-scope input,.am-scope select){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:where(.am-scope button:disabled){cursor:default}
:where(.am-scope [hidden],.am-scope[hidden]){display:none!important}
.am-scope :where(button,a,input,select,textarea):focus-visible{outline:var(--stroke-selected) solid var(--color-ink);outline-offset:var(--size-focus-offset,var(--space-1))}
.am-wrap{max-width:calc(var(--layout-content-max) + var(--space-12)*2);margin-inline:auto;padding-inline:var(--space-8)}
.am-page{padding-top:var(--space-6);container-type:inline-size}
@media(max-width:850px){.am-page{padding:0}}
@media(prefers-reduced-motion:reduce){:where(.am-scope *,.am-scope *::before,.am-scope *::after){animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The dialog itself is a focus destination; its inner controls keep their focus ring. */
.am-scope:is(dialog):focus-visible{outline:none}

/* Document background for am/base.html only; legacy blocks keep their fonts. */
.am-document{margin:0;background:var(--color-paper);font:16px/1.5 var(--font-family);-webkit-font-smoothing:antialiased}
.am-document.lock{overflow:hidden}
