:root {
  --color-base-100: #FAF9FD;
  --color-base-content: #0A0A0A;
  --brand: #6b5c8f;
  --brand-solid: #4a3d6b;
  --brand-on-solid: #f6f3fb;
  --band: #EFEFEF;
  --panel: #FFFFFF;
  --panel-line: #E2E2E2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-base-100: #08060c;
    --color-base-content: #F5F5F5;
    --brand: #a495cf;
    --brand-solid: #2b2340;
    --brand-on-solid: #ece7f8;
    --band: #111111;
    --panel: #151515;
    --panel-line: #262626;
  }
}
:root {
  --brand-quiet: color-mix(in oklab, var(--brand) 45%, var(--color-base-content));
  --brand-wash:  color-mix(in oklab, var(--brand) 12%, var(--color-base-100));
  --brand-fill:  color-mix(in oklab, var(--brand) 22%, var(--color-base-100));
  --brand-line:  color-mix(in oklab, var(--brand) 40%, transparent);
}

body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
b, strong, th { font-weight: 600; }
h1, h2, h3 { font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3 { font-weight: 450; letter-spacing: -.02em; }

/* /js/ascii-flow.js reads --ascii-ink from computed style; renaming it leaves the canvas blank */
.page-wash { --ascii-ink: #2a2438; }
@media (prefers-color-scheme: dark) { .page-wash { --ascii-ink: #b9aee0; } }
.page-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hl {
  background-image: linear-gradient(100deg,
    color-mix(in oklab, var(--brand) 26%, transparent),
    color-mix(in oklab, var(--brand) 42%, transparent));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 0% 74%;
  padding: .02em .14em;
  margin: 0 -.08em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size .8s cubic-bezier(.6, .01, .2, 1);
}
.hl.on { background-size: 100% 74%; }
@media (prefers-reduced-motion: reduce) { .hl { transition: none; } }


.doc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
}
.doc > * { width: 100%; max-width: 1100px; margin-inline: auto; }
.doc > .signoff-wrap { max-width: none; }
.doc h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; margin-top: 1.5rem; }
.doc h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); opacity: .85; margin-top: .75rem; }
.doc h4 { font-size: 1.05rem; font-weight: 500; opacity: .8; }
.doc a { color: var(--brand-quiet); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: .2em; }
.doc a:hover { text-decoration-color: var(--brand); }
.doc code { padding: 0 .3em; border-radius: .3em; background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
.doc hr { border-color: color-mix(in oklab, var(--color-base-content) 10%, transparent); }
.doc blockquote { border-left: 2px solid var(--brand-line); padding-left: 1.25rem; opacity: .8; }
.doc table { font-size: 1rem; }
.doc th, .doc td { border: 1px solid color-mix(in oklab, var(--color-base-content) 15%, transparent); }
.doc .doc-stamp { font-size: 1rem; opacity: .5; }

.learn { position: relative; z-index: 1; padding: 8rem 1.5rem 5rem; }
@media (min-width: 768px) { .learn { padding: 10rem 3rem 6rem; } }
.learn a { text-decoration: none; }
.learn a:focus-visible, .learn-menu summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: .4em; }
.learn-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-quiet); }
.learn-kicker a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: .2em; }

.learn-home { max-width: 1100px; margin-inline: auto; }
.learn-hero { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; }
.learn-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; }
.learn-hero > p:not(.learn-kicker) { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; opacity: .75; }
.learn-start {
  align-self: flex-start;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--brand-solid);
  color: var(--brand-on-solid);
  font-weight: 500;
}
.learn-start:hover { filter: brightness(1.15); }
.learn-topic { margin-top: 4.5rem; display: flex; flex-direction: column; gap: .6rem; }
.learn-topic h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.learn-topic > p { opacity: .7; }
.learn-cards {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.learn-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.25rem;
  border: 1px solid var(--panel-line);
  border-radius: 1rem;
  background: var(--panel);
  transition: border-color .2s, transform .2s;
}
.learn-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.learn-card b { font-size: 1.1rem; font-weight: 500; }
.learn-card span:last-child { font-size: .95rem; line-height: 1.5; opacity: .7; }
.learn-num { font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif; color: var(--brand-quiet); }

.learn-page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3.5rem;
  max-width: 1300px;
  margin-inline: auto;
}
.learn-side { position: sticky; top: 7rem; align-self: start; max-height: calc(100vh - 8rem); overflow-y: auto; }
.learn-menu summary {
  cursor: pointer;
  list-style: none;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.learn-menu summary::-webkit-details-marker { display: none; }
.learn-menu ol { list-style: none; padding: 0; margin: .35rem 0 0; }
.learn-menu-topic { margin-top: 1.25rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.learn-menu li a { display: block; padding: .4rem .75rem; border-radius: .5rem; font-size: .95rem; line-height: 1.35; }
.learn-menu li a:hover { background: var(--brand-wash); }
.learn-menu li a[aria-current="page"] { background: var(--brand-fill); color: var(--brand-quiet); font-weight: 500; }

.learn-body { font-size: clamp(1rem, 1.6vw, 1.12rem); }
.learn-body > * { max-width: 820px; margin-inline: 0; }
.learn-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.learn-summary { font-size: 1.15em; opacity: .75; }
.learn-body blockquote {
  opacity: 1;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 .75rem .75rem 0;
  background: var(--brand-wash);
}
.doc figure.code { margin: 0; border: 1px solid var(--panel-line); border-radius: .75rem; background: var(--panel); overflow: hidden; }
.doc figure.code figcaption {
  padding: .4rem 1rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-quiet);
  background: var(--brand-wash);
  border-bottom: 1px solid var(--panel-line);
}
.doc figure.code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.doc figure.code code { padding: 0; background: none; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.learn-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.learn-pager a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--panel-line);
  border-radius: .9rem;
  background: var(--panel);
  text-decoration: none;
}
.learn-pager a:hover { border-color: var(--brand-line); }
.learn-pager a[rel="next"] { text-align: right; }
.learn-pager small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.learn-source { font-size: .9rem; opacity: .6; }


.tools { position: relative; z-index: 1; max-width: 1040px; margin-inline: auto; padding: 6rem 16px 3rem; }
@media (min-width: 768px) { .tools { padding: 8rem 2rem 4rem; } }
.tools-page { max-width: 820px; }
.tools a { text-decoration: none; }
.tools a:focus-visible, .tool :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tools-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; opacity: .65; margin-bottom: 1.5rem; }
.tools-crumbs a:hover { color: var(--brand-quiet); }
.tools-crumbs [aria-current] { opacity: .8; }

.tools-hero { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }
.tools-hero h1, .tools-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.02; }
.tools-hero > p, .tools-head p { font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.6; opacity: .72; }
.tools-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.tools-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }


.tools-group { margin-top: 3.25rem; }
.tools-group h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.tools-group h2 a { display: inline-flex; align-items: center; gap: .55rem; }
.tools-group h2 i { color: var(--brand-quiet); font-size: .9em; }
.tools-cards {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem;
}
.tools-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-line);
  border-radius: .85rem;
  background: var(--panel);
  transition: border-color .15s;
}
.tools-card:hover { border-color: var(--brand-line); }
.tools-card b { font-weight: 500; }
.tools-card span { font-size: .9rem; line-height: 1.45; opacity: .65; }
.tools-empty, .learn-empty { margin-top: 2rem; opacity: .6; }
.learn-menu-empty { margin-top: 1rem; padding: 0 .75rem; font-size: .95rem; opacity: .6; }
.tools-others { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.tools-others a { display: inline-flex; gap: .45rem; align-items: center; padding: .5rem .9rem; border: 1px solid var(--panel-line); border-radius: 999px; font-size: .9rem; }
.tools-others a:hover { border-color: var(--brand-line); }

.tool {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem;
  border: 1px solid var(--panel-line);
  border-radius: 1.1rem;
  background: var(--panel);
}
@media (min-width: 640px) { .tool { padding: 1.6rem; } }
.tool h2 { font-size: 1rem; font-weight: 500; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; align-items: end; }
.tool-row + .tool-row, .tool-part + .tool-part { padding-top: 1.1rem; border-top: 1px solid var(--panel-line); }
.tool-part { display: flex; flex-direction: column; gap: .8rem; }
.tool label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; }
.tool label > span { opacity: .7; }
.tool label.tool-check { flex-direction: row; align-items: center; gap: .5rem; font-size: .95rem; }
.tool label.tool-check > span { opacity: 1; }
.tool input:not([type="checkbox"]):not([type="range"]):not([type="file"]), .tool select, .tool textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--panel-line);
  border-radius: .6rem;
  background: var(--color-base-100);
  color: inherit;
  font-size: 1.05rem;
}
.tool textarea.tool-short { min-height: 5rem; }
.tool textarea { min-height: 12rem; resize: vertical; line-height: 1.5; font-size: 1rem; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--brand); }
.tool input[type="checkbox"], .tool input[type="range"] { accent-color: var(--brand); }
.tool input[type="range"] { width: 100%; }
.tool input[type="file"] { font-size: .95rem; }

.tool-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .6rem;
}
.tool-out > div { padding: .8rem 1rem; border-radius: .7rem; background: var(--brand-wash); }
.tool-out small { display: block; font-size: .78rem; opacity: .7; }
.tool-out output, .tool-out b { display: block; margin-top: .15rem; font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; font-weight: 500; overflow-wrap: anywhere; }
.tool-out .tool-big { grid-column: 1 / -1; }
.tool-out .tool-big output { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.tool-note { font-size: .88rem; opacity: .65; }

.tool-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.tool button, .tool .tool-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.1rem;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-wash);
  color: inherit;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
}
.tool button:hover, .tool .tool-btn:hover { background: var(--brand-fill); }
.tool button.tool-go { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--brand-on-solid); }
.tool button.tool-go:hover { filter: brightness(1.15); }
.tool button:disabled { opacity: .5; cursor: default; }
.tool button.tool-icon { padding: .35rem .6rem; font-size: .85rem; }

.tool-files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.tool-files li { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid var(--panel-line); border-radius: .6rem; font-size: .92rem; }
.tool-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-files li small { opacity: .6; white-space: nowrap; }
.tool-drop { padding: 1.5rem 1rem; border: 1.5px dashed var(--brand-line); border-radius: .8rem; text-align: center; }
.tool-drop.on { background: var(--brand-wash); }
.tool-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tool-table th, .tool-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--panel-line); text-align: left; }
.tool-table input, .tool-table select { padding: .45rem .55rem !important; font-size: .95rem !important; }
.tool-scroll { overflow-x: auto; }
.tool-past { opacity: .45; }
.tool-log { min-width: 680px; }
.tool-log th, .tool-log td { padding: .45rem .3rem; }
.tool-log input, .tool-log select { width: 100%; }
.tool-log td:nth-child(1) { width: 9.6rem; }
.tool-log td:nth-child(3) { width: 8.8rem; }
.tool-log td:nth-child(4) { width: 6rem; }
.tool-log td:nth-child(5) { width: 6.2rem; }
.tool-log td:nth-child(6) { width: 2.4rem; }
.tool-table .tool-num { text-align: right; white-space: nowrap; }
.tool-table tfoot th { border-bottom: 0; font-weight: 600; }
.tool select:disabled { opacity: .45; }
.tool-qr { display: grid; place-items: center; padding: 1rem; border-radius: .8rem; background: #fff; }
.tool-qr svg { width: min(100%, 260px); height: auto; }
.tool-pass { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 1.15rem !important; }

.tools-body { margin-top: 2.5rem; font-size: clamp(1rem, 1.5vw, 1.08rem); gap: 1rem; }
.tools-body > * { max-width: none; }
.tools-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 1.25rem; }
.tools-body h3 { font-size: 1.1rem; font-weight: 500; opacity: 1; margin-top: .25rem; }
.tools-related { margin-top: 3rem; }
.tools-related h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

.ad-slot { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto 2rem; padding: 0 16px; min-height: 120px; }
.ad-slot p { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .45; margin-bottom: .35rem; }
.ad-slot ins { display: block; }

.tools-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
  padding: 1.5rem 16px 2rem;
  border-top: 1px solid var(--panel-line);
  font-size: .88rem;
}
.tools-footer p { opacity: .6; }
.tools-footer .tools-by { flex-basis: 100%; opacity: .85; }
.tools-footer .tools-by a { opacity: 1; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tools-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.tools-footer a { opacity: .7; }
.tools-footer a:hover { opacity: 1; color: var(--brand-quiet); }

@media (max-width: 900px) {
  .learn-page { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .learn-side { position: static; max-height: none; }
  .learn-menu { border: 1px solid var(--panel-line); border-radius: .9rem; background: var(--panel); padding: .8rem 1rem; }
  .learn-pager { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .learn-card { transition: none; } .learn-card:hover { transform: none; } }

.go { min-height: 70vh; display: grid; place-content: center; gap: 1.5rem; padding: 2rem 16px; text-align: center; }
.go-card { display: grid; gap: .6rem; max-width: 34rem; }
.go-card small { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.go-card h1 { font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 500; overflow-wrap: anywhere; }
.go-card output { font-weight: 600; }
.go-dest { font-size: .85rem; opacity: .6; overflow-wrap: anywhere; }
.go-now { justify-self: center; margin-top: .4rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--brand-solid); color: var(--brand-on-solid); font-weight: 500; text-decoration: none; }
.go-now:hover { filter: brightness(1.15); }
.go-promo { display: grid; gap: .3rem; font-size: .9rem; opacity: .75; }

/* Unlayered so it beats the bare `footer` base rule in config/input.css (grid, p-10, blur) */
.site-foot {
  display: block; place-items: normal; position: relative; overflow: hidden; z-index: 1;
  --sf-s: clamp(140px, 38vw, 600px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 8vw, 120px) 32px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: .9rem;
}
.site-foot > * { display: flex; }
.sf-top { flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.sf-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; }
.sf-tag { margin: 0; opacity: .6; }
.sf-ink {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; background: var(--color-base-content); color: var(--color-base-100) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px -10px rgba(15, 23, 42, .5);
  transition: opacity .2s ease;
}
.sf-ink:hover { opacity: .86; }
.sf-source { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; opacity: .45; transition: opacity .2s ease; }
.sf-source:hover { opacity: .9; }
.sf-cols { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 88px); }
.sf-cols nav { display: flex; flex-direction: column; gap: 14px; min-width: 110px; }
.sf-cols h6 { margin: 0 0 4px; font-size: .9rem; font-weight: 500; }
.sf-cols a { opacity: .55; transition: opacity .2s ease; }
.sf-cols a:hover { opacity: 1; }
.sf-bottom {
  flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(56px, 8vw, 96px); font-size: .75rem; opacity: .5;
}
.sf-bottom p { margin: 0; }
.sf-mark {
  position: absolute; z-index: -1; left: 0; right: 0; justify-content: center; bottom: calc(var(--sf-s) * -.22);
  transform: translateX(calc(var(--sf-s) * -.06));
  pointer-events: none; user-select: none; opacity: .2;
  -webkit-mask-image: radial-gradient(circle, #000 1.6px, transparent 2px);
  mask-image: radial-gradient(circle, #000 1.6px, transparent 2px);
  -webkit-mask-size: 6px 6px; mask-size: 6px 6px;
}
.sf-mark .brand { --s: var(--sf-s); }
.sf-mark .brand-word { display: inline; }

/* `backwards`, never `both`: a held opacity animation makes .nav a backdrop root and the ::before blur stops working */
.nav { top: 0; left: 0; width: 100%; transform: none; animation: nav-in .7s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .nav { animation: none; } }
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 7rem; pointer-events: none;
  background: rgba(255, 255, 255, .001);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .92) 38%, transparent);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .92) 38%, transparent);
}
/* !important: config/head-inline.js toggles blur, shadow and padding utilities onto .nav-inner on scroll */
.nav .nav-inner {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; border: 0; border-radius: 0; transition: none;
  padding: 0 clamp(20px, 3vw, 40px) !important;
  background: transparent !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.nav h1 { justify-self: start; transition: opacity .5s ease; }
.nav.logo-out h1 { opacity: 0; }
.nav .brand {
  -webkit-mask-image: radial-gradient(circle, #000 .75px, transparent 1px);
  mask-image: radial-gradient(circle, #000 .75px, transparent 1px);
  -webkit-mask-size: 2px 2px; mask-size: 2px 2px;
}
.nav .nav-links, .nav .nav-search {
  justify-self: center; height: 52px; align-items: center; border-radius: 999px;
  background: color-mix(in srgb, var(--color-base-100) 66%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-base-content) 9%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(15, 23, 42, .05);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}
.nav .nav-links { gap: 2px; padding: 0 6px; }
@media (prefers-color-scheme: dark) {
  .nav .nav-links, .nav .nav-search { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
}
.nav-links a {
  display: flex; align-items: center; position: relative; font-weight: 500; font-size: .875rem;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:hover, .nav-links a:focus, .nav-links a:focus-visible, .nav-links a:active { color: inherit; outline: none; }
.nav-links a:hover { border-color: color-mix(in oklab, var(--color-base-content) 18%, transparent); }
.nav-links a:focus-visible { border-color: var(--brand); }
.nav-links a.active {
  background: color-mix(in oklab, var(--color-base-content) 10%, transparent);
  border-color: color-mix(in oklab, var(--color-base-content) 14%, transparent);
}
.nav .nav-search {
  display: flex; gap: .6rem; width: min(380px, 100%); padding: 0 8px 0 18px; cursor: text;
  transition: border-color .35s ease;
}
.nav .nav-search:focus-within { border-color: var(--brand); }
.nav-search i { font-size: 1.05rem; opacity: .55; }
.nav-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none;
  color: inherit; font-size: .875rem; font-weight: 500; -webkit-appearance: none; appearance: none;
}
.nav-search input::placeholder { color: inherit; opacity: .5; }
.nav-search kbd {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--color-base-content) 14%, transparent);
  font: 500 .75rem/1 'Inter', ui-sans-serif, system-ui, sans-serif; opacity: .55;
}
.nav-search:focus-within kbd { visibility: hidden; }
[data-search-list] > li[hidden], [data-search-group][hidden] { display: none; }
[data-search-group], [data-search-list] > li, [data-search-empty] { scroll-margin-top: 7rem; }
@media (max-width: 639.98px) {
  .nav .nav-inner { grid-template-columns: auto 1fr; height: 64px; padding: 0 16px !important; }
  .nav .nav-links { justify-self: end; height: 44px; padding: 0 5px; gap: 0; }
  .nav-links a { padding: 6px 12px; font-size: .8125rem; }
  .nav .nav-search { justify-self: end; height: 44px; padding: 0 14px; }
  .nav-search kbd { display: none; }
}
