/* The front page's bar, copied: the glass, the wordmark, the two menus and their drawer, the theme's switch. The same markup lives in shell.js. */

.site-header { position: sticky; top: 0; z-index: 100; background: none; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: calc(0px - var(--drawer-h, 0px)); z-index: -1; pointer-events: none; background: rgb(var(--th-bg-rgb) / .62);
  -webkit-backdrop-filter: blur(36px); backdrop-filter: blur(36px); box-shadow: inset 0 -1px 0 rgb(var(--th-fg-rgb) / .1); }
.site-header-bar { height: var(--bar-h); display: flex; align-items: center; padding: 0 var(--padding); }
.brand { display: flex; align-items: center; margin-top: calc(var(--wm) * -0.1613); }
.brand .title { font-family: 'Tinos', serif; font-weight: 700; font-style: italic; font-size: var(--wm); line-height: 1; color: var(--th-fg); }
.brand .title .lg { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }
.brand .title .lg-1 { text-decoration-color: var(--brand-1); } .brand .title .lg-2 { text-decoration-color: var(--brand-2); } .brand .title .lg-3 { text-decoration-color: var(--brand-3); } .brand .title .lg-4, .brand .title .lg-5 { text-decoration-color: var(--th-fg); }
.brand .where { margin-left: 14px; align-self: flex-end; padding-bottom: 9px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--th-fg-3); }

.nav-main { display: flex; align-items: center; gap: 16px; flex: 1; padding-left: 24px; }
.navmenu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.navmenu-item { height: var(--bar-h); display: flex; align-items: center; }
.navmenu-trigger, .navmenu-link { position: relative; top: -0.67px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; font: 400 14px/1.2 var(--display); color: var(--th-fg); transition: color .12s ease; white-space: nowrap; }
.navmenu-trigger:hover, .navmenu-trigger[aria-expanded="true"], .navmenu-link:hover { color: var(--brand-1); }
.navmenu-trigger svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .15s ease; }
.navmenu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-acct { margin-left: auto; position: relative; top: -0.67px; padding: 6px 14px; font: 400 14px/1.2 var(--display); color: var(--th-fg-2); transition: color .12s ease; }
.nav-acct:hover { color: var(--brand-1); }

.nav-drawer { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s cubic-bezier(.2, .7, .3, 1); }
.nav-drawer.open { grid-template-rows: 1fr; }
.nav-drawer-inner { min-height: 0; overflow: hidden; }
.nav-drawer-panel { padding: 32px var(--padding) 0; animation: fade .2s ease both; }
.nd-cols { display: grid; grid-template-columns: repeat(3, max-content); gap: 24px 80px; padding-bottom: 32px; }
.nd-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.nd-label { margin: 0 0 10px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--th-fg-2); }
.nd-link { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; font: 400 20px/1.3 var(--display); letter-spacing: -.01em; color: var(--th-fg);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .12s ease; }
.nd-link:hover, .nd-link:focus-visible { text-decoration-color: var(--brand-1); }
.nd-ext { font-size: 14px; color: var(--th-fg-2); }
.nd-mark { width: 10px; height: 10px; flex: none; border: 1.5px solid var(--th-fg); }
.nd-mark-orange { background: var(--brand-1); } .nd-mark-purple { background: var(--brand-2); } .nd-mark-green { background: var(--brand-3); } .nd-mark-ink { background: var(--th-fg); } .nd-mark-white { background: var(--th-bg); }
.nd-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0 16px; border-top: 1px solid var(--th-hair); }
.nd-tool { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--th-fg); transition: color .12s ease; }
.nd-tool:hover { color: var(--brand-1); }
.nd-tool-icon { min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--th-fg); background: var(--th-bg); border: 1.5px solid var(--th-fg); }
.nd-strip-end { margin-left: auto; font: 500 14px/1 var(--display); color: var(--th-fg); text-decoration: underline; text-decoration-color: var(--brand-1); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nd-strip-end:hover { color: var(--brand-1); }
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; }
html.nav-open .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 700px) { .nd-cols { grid-template-columns: 1fr; } .nav-main .navmenu { display: none; } }

/* the theme's switch (theme.js) */
.tsw-wrap { position: relative; display: inline-flex; flex: none; }
.tsw { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--th-fg); cursor: pointer; transition: transform 1s cubic-bezier(.3, 1.4, .5, 1); }
.tsw svg { display: block; width: 22px; height: 22px; overflow: visible; transition: transform .35s var(--ease); }
.tsw:hover svg { transform: scale(1.1); }
.tsw:active svg { transform: scale(.86); transition-duration: .1s; }
.tsw-core, .tsw-rays, .tsw-moon { transform-box: fill-box; transform-origin: center; }
.tsw-core { fill: currentColor; transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .45s ease; }
.tsw-rays { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .4s ease; }
.tsw-moon { fill: currentColor; opacity: 0; transform: rotate(-70deg) scale(.55); transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .45s ease; }
.tsw:hover .tsw-rays { transform: rotate(22.5deg); }
.tsw[data-mode="dark"] .tsw-core { transform: scale(1.7); opacity: 0; }
.tsw[data-mode="dark"] .tsw-rays { transform: rotate(90deg) scale(.3); opacity: 0; }
.tsw[data-mode="dark"] .tsw-moon { opacity: 1; transform: none; }
.tsw-tip { position: absolute; top: calc(100% + 6px); right: 0; padding: 6px 10px; font: 500 12px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; color: var(--th-fg); background: var(--th-bg); border: 1px solid var(--th-hair);
  opacity: 0; pointer-events: none; transform: translate(0, -4px); transition: opacity .18s ease, transform .22s var(--ease); }
.tsw-tip.show { opacity: 1; transform: none; }
