@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/media/fonts/InterVariable.woff2') format('woff2');
}
:root {
    --text-font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    color-scheme: dark;
    --paper: #121213;
    --ink: #deddd8;
    --link: #fff;
    --muted: #9d9b96;
    --rule: #303030;
    --image-frame: #242424;
}
html[data-theme='light'] {
    color-scheme: light;
    --paper: #fdfdfc;
    --ink: #292824;
    --link: #080808;
    --muted: #77746d;
    --rule: #e5e2db;
    --image-frame: #f1f1f1;
}
* { box-sizing: border-box; }
html { font-size: 150%; background: var(--paper); }
body {
    max-width: 30rem;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3.75rem;
    color: var(--ink);
    font-family: var(--text-font);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
a { color: var(--link); font-weight: 450; text-decoration: none; text-underline-offset: .1875rem; text-decoration-thickness: .0625rem; }
a:hover { color: var(--link); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 2.875rem;
}
.site-header h1 { display: flex; margin: 0; font-size: inherit; }
.site-header .name {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.0125rem;
}
.logo { display: block; width: .875rem; height: .875rem; }
.site-header .logo { width: 1.5rem; height: 1.5rem; }
.site-header nav { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; font-size: 12px; font-weight: 700; min-height: 24px; padding: 3px 7px; border-radius: 3px; background: var(--image-frame); line-height: 1.4; white-space: nowrap; }
.social-link:hover, .social-link:focus-visible { background: var(--rule); text-decoration: none; }
.site-header .social-link {
    position: fixed;
    right: calc(max(20px, env(safe-area-inset-right)) + 48px);
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 10;
    width: 40px;
    height: 40px;
    padding: 0;
}
.theme-toggle, .info-toggle, .contribute-toggle {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 10;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.contribute-toggle {
    right: calc(max(20px, env(safe-area-inset-right)) + 144px);
    width: auto;
    padding: 0 10px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 12px;
}
.info-toggle { right: calc(max(20px, env(safe-area-inset-right)) + 96px); }
.theme-toggle svg, .info-toggle svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contribute-toggle[aria-expanded='true'], .theme-toggle:hover, .info-toggle:hover, .contribute-toggle:hover { color: var(--ink); }
.theme-toggle[hidden] { display: none; }
main { min-width: 0; }
h1 { font-size: 1.125rem; line-height: 1.4; font-weight: 500; letter-spacing: -.0125rem; margin: 0 0 1.75rem; }
h2 { font-size: .875rem; font-weight: 600; margin: 2.125rem 0 .625rem; line-height: 1.5; }
h3 { font-size: .875rem; font-weight: 600; margin: 1.75rem 0 .5rem; line-height: 1.5; }
p { margin: 0 0 1.25rem; }
ul { padding-left: 1.5rem; margin: .75rem 0 1.5rem; }
li { margin: .4375rem 0; }
.home h2 { margin-top: 2rem; }
.home-about { margin-top: 1.75rem; }
.home-about > summary {
    display: flex;
    align-items: center;
    gap: .5625rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}
.home-about > summary::-webkit-details-marker { display: none; }
.home-about > summary::before {
    content: '';
    flex: 0 0 .375rem;
    width: .375rem;
    height: .375rem;
    border: solid var(--muted);
    border-width: 0 .0625rem .0625rem 0;
    transform: rotate(-45deg);
}
.home-about[open] > summary::before { transform: rotate(45deg); }
.home-about > summary:hover::before, .home-about > summary:focus-visible::before { border-color: var(--ink); }
.about-content { padding-top: 1.25rem; }
.about-content > p:last-child { margin-bottom: 0; }
body.home-page { padding-bottom: 5.5rem; }
.home-writing, .home-resources { margin-top: 3rem; }
.home-writing > h2, .home-resources > h2 { margin: 0 0 1.5rem; }
.archive-year { margin: 0 0 1.5625rem; }
.archive-year h3 { color: var(--muted); font-size: .75rem; font-weight: 400; margin: 0 0 .75rem; }
.archive-year ul, .home-resources ul { list-style: none; margin: 0; padding: 0; }
.archive-year li, .home-resources li { margin: 0 0 .8125rem; line-height: 1.45; }
.home-writing .archive-year li, .home-resources li {
    position: relative;
    padding: .5rem;
    margin: 0 -.5625rem .375rem;
    border: .0625rem dashed transparent;
    cursor: pointer;
}
.home-writing .archive-year li:hover, .home-writing .archive-year li:focus-within,
.home-resources li:hover, .home-resources li:focus-within {
    border-color: var(--rule);
}
.writing-link::after {
    content: '';
    position: absolute;
    inset: 0;
}
.writing-link { display: block; }
.writing-link:hover, .writing-link:focus-visible { text-decoration: none; }
.article a {
    text-decoration: underline solid var(--muted);
    text-decoration-thickness: .0625rem;
    text-underline-offset: .25rem;
}
.article a:hover, .article a:focus-visible { text-decoration-color: var(--link); }
.article-navigation { margin-top: 2.5rem; padding-top: 1.25rem; border-top: .0625rem solid var(--rule); font-size: .75rem; }
.contact { margin-top: 3rem; }
@media (max-width: 840px) {
    body { padding: 2.25rem 1.375rem 2.5rem; }
    .site-header { margin-bottom: 2.125rem; }
}
@media (max-width: 560px) {
    html { font-size: 125%; }
    body { padding-inline: 1.1rem; }
}
