/* ─────────────────────────────────────────────────────────────
   v2 — layout and components
   Single centred column, section rhythm of 80px, rows that fill
   the full column width and highlight on hover.
   ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: var(--text-size);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text-primary);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: var(--r-sm);
}

/* ── Shell ───────────────────────────────────────────────── */

.shell {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 24px var(--gutter) 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.crumb {
    display: inline-flex;
    align-items: center;
    margin-inline-start: -8px;
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--text-primary);
    transition: background-color 0.15s ease-out, scale 0.15s ease-out;
}

.crumb:hover {
    background: var(--control);
}

.crumb:active {
    scale: 0.98;
}

/* The signature inherits currentColor, so it is ink-black on the light
   background and paper-white on the dark one with no second asset. */
.sig {
    display: block;
    height: 34px;
    width: auto;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

.sig--sm {
    height: 20px;
    stroke-width: 20;
}

/* One quick pass of the pen on load — not a loading screen. The dash length
   is the path's measured total (1999 units) rounded up. */
.sig--draw path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: sign 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.05s forwards;
}

@keyframes sign {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sig--draw path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.icon-btn:hover {
    background: var(--control);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

/* Only one of the two theme glyphs shows at a time */
.icon-btn__moon {
    display: none;
}

.dark .icon-btn__sun {
    display: none;
}

.dark .icon-btn__moon {
    display: block;
}

/* ── Secondary-page header ──────────────────────────────── */

.site-header--sticky {
    position: sticky;
    top: max(12px, env(safe-area-inset-top, 0px));
    z-index: 20;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    padding: 12px 0;
    margin: -12px auto 0;
    border-radius: 0;
    background: transparent;
    transition: max-width 0.3s ease, padding 0.3s ease,
        border-radius 0.3s ease, background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header--sticky.is-scrolled {
    max-width: 440px;
    padding-inline: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--background) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--popover-shadow);
}

.site-header--sticky .crumbs { flex: 1; }
.site-header--sticky .crumbs > :not(.crumbs__current),
.site-header--sticky .header-actions { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .site-header--sticky { transition: none; }
}

/* ── Breadcrumbs ─────────────────────────────────────────── */

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 15px;
}

.crumbs .sig {
    height: 26px;
}

.crumbs__sep {
    color: var(--text-tertiary);
}

.crumbs__link {
    color: var(--text-secondary);
    transition: color 0.15s ease-out;
}

.crumbs__link:hover {
    color: var(--text-primary);
}

.crumbs__current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Hero ────────────────────────────────────────────────── */

.intro {
    margin-top: 40px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.identity__avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    outline: 1px solid rgb(from var(--ink) r g b / 0.1);
    outline-offset: -1px;
}

.identity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity__text {
    line-height: 1.35;
}

.identity__name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.identity__role {
    font-size: 14px;
    color: var(--text-secondary);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 1px 6px;
    border-radius: 7px;
    background: var(--live-soft);
    color: var(--live);
    font-size: 12px;
    white-space: nowrap;
}

.badge-live__dot {
    position: relative;
    display: flex;
    width: 6px;
    height: 6px;
}

.badge-live__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge-live__dot::after {
    content: '';
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge-live__dot::before {
        animation: none;
    }
}

.intro strong {
    font-weight: 400;
    color: var(--text-primary);
}

/* Inline chip link — the reference's signature move */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline: 2px;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    background: var(--control);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    translate: 0 -1px;
    white-space: nowrap;
    transition: background-color 0.15s ease-out;
}

.chip:hover {
    background: var(--control-hover);
}

.chip svg,
.chip img {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.chip__meta {
    color: var(--text-tertiary);
}

/* ── Index pages (/work, /archive) ───────────────────────── */

.index-head {
    margin: 48px 0 32px;
}

.index-title {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.012em;
}

@media (min-width: 640px) {
    .index-title {
        font-size: 40px;
    }
}

.index-note {
    margin-top: 12px;
    max-width: 560px;
    font-size: 17px;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* These grids carry the page on an index, so they need the bottom room the
   home page gets from the sections that follow them. */
.index-head~.case-grid,
.index-head~.archive-grid {
    margin-bottom: 96px;
}

/* ── Sections ────────────────────────────────────────────── */

.section {
    margin-top: 80px;
}

.section__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.section__title {
    font-size: 16px;
}

.section__count {
    font-size: 14px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.section__more {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s ease-out;
}

.section__more:hover {
    color: var(--text-primary);
}

.section__more svg {
    width: 14px;
    height: 14px;
    transition: translate 0.15s ease-out;
}

.section__more:hover svg {
    translate: 2px 0;
}

.section__body {
    margin-top: 20px;
}

.section__note {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ── Experience rows ────────────────────────────────────── */

.row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-radius: var(--r-lg);
}

.row__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    background: var(--surface);
    transition: background-color 0.15s ease-out;
}

.row:hover .row__mark {
    background: var(--surface-hover);
}

/* Wordmark lockups are horizontal, so the plate gives them the full width
   and only pads the short edge. */
.row__mark img {
    width: 36px;
    height: 26px;
    object-fit: contain;
}

/* Most lockups are near-black, which would vanish on the dark plate */
.dark .row__mark img {
    filter: invert(1) hue-rotate(180deg);
}

/* A square brand icon brings its own fill and corner radius, so the plate
   steps out of the way and the artwork runs edge to edge — and it keeps its
   own colours in dark mode rather than being inverted. */
.row__mark--icon,
.row:hover .row__mark--icon {
    background: none;
}

.row__mark--icon img,
.dark .row__mark--icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.row__monogram {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.row__text {
    min-width: 0;
    flex: 1;
    line-height: 1.4;
}

.row__title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}

.row:hover .row__title {
    text-decoration-color: currentColor;
}

.row__desc {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
}

.row__ext {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: var(--text-tertiary);
    transition: color 0.15s ease-out;
}

.row__ext svg {
    width: 16px;
    height: 16px;
    transition: translate 0.15s ease-out;
}

.row:hover .row__ext {
    color: var(--text-primary);
}

.row:hover .row__ext svg {
    translate: 2px -2px;
}

/* ── Case cards ─────────────────────────────────────────── */

.case-grid {
    columns: 1;
    column-gap: 20px;
}

.case-grid > li {
    display: inline-block;
    width: 100%;
    margin-bottom: 32px;
    break-inside: avoid;
    vertical-align: top;
}

@media (min-width: 560px) {
    .case-grid {
        columns: 2;
    }

    /* Alternate tall and wide covers without forcing shared row heights. */
    .case-grid > li:nth-child(4n + 1) .case-card__art,
    .case-grid > li:nth-child(4n) .case-card__art {
        aspect-ratio: 1;
    }
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-card__art {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--tray-shadow);
    transition: box-shadow 0.2s ease-out;
}

.case-card:hover .case-card__art {
    box-shadow: var(--tray-shadow-hover);
}

.case-card__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-card:hover .case-card__art img {
    scale: 1.03;
}

.case-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.case-card__title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.case-card__arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: color 0.15s ease-out, translate 0.15s ease-out;
}

.case-card:hover .case-card__arrow {
    color: var(--text-primary);
    translate: 2px 0;
}

.case-card__desc {
    font-size: 15px;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.case-card__meta {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ── Archive ─────────────────────────────────────────────── */

.archive-grid {
    margin-top: 20px;
    columns: 2;
    column-gap: 12px;
}

@media (min-width: 640px) {
    .archive-grid {
        columns: 3;
    }
}

.archive-grid li {
    margin-bottom: 12px;
    break-inside: avoid;
}

.archive-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--tray-shadow);
    cursor: zoom-in;
    transition: box-shadow 0.2s ease-out, scale 0.2s ease-out;
}

.archive-tile:hover {
    box-shadow: var(--tray-shadow-hover);
    scale: 1.01;
}

.archive-tile img {
    width: 100%;
    height: auto;
}

.archive-tile__label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    background: var(--raised);
    box-shadow: var(--tray-shadow);
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    translate: 0 4px;
    pointer-events: none;
    transition: opacity 0.2s ease-out, translate 0.2s ease-out;
}

.archive-tile:hover .archive-tile__label,
.archive-tile:focus-visible .archive-tile__label {
    opacity: 1;
    translate: 0 0;
}

/* ── Lightbox ────────────────────────────────────────────── */

/* Same construction as .command-menu: a native <dialog> opened with
   showModal(), so focus trapping, Escape and the backdrop come free. */
.lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(960px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--r-xl);
    background: var(--raised);
    color: var(--text-primary);
    box-shadow: var(--popover-shadow);
    overflow: hidden;
    font: 15px/1.5 var(--font-sans);
}

.lightbox[open] {
    display: flex;
    flex-direction: column;
}

.lightbox::backdrop {
    background: #0006;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.lightbox__figure {
    margin: 0;
    min-height: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100dvh - 48px - 56px);
    object-fit: contain;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 56px;
    flex-shrink: 0;
    padding: 0 10px 0 16px;
    border-top: 1px solid var(--border);
}

.lightbox__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.lightbox__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.lightbox__years {
    font-size: 13px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.lightbox__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.lightbox__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.lightbox__nav button:hover {
    background: var(--control);
    color: var(--text-primary);
}

.lightbox__nav svg {
    width: 18px;
    height: 18px;
}

.lightbox__count {
    min-width: 54px;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.lightbox kbd {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--control);
    font: 12px/1.4 var(--font-sans);
}

/* ── Writing list ────────────────────────────────────────── */

.lede {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-radius: var(--r-sm);
}

.lede__title {
    min-width: 0;
    color: var(--text-primary);
    text-wrap: pretty;
}

.lede__rule {
    min-width: 32px;
    flex: 1;
    translate: 0 -4px;
    border-bottom: 1px dotted rgb(from var(--text-tertiary) r g b / 0.55);
    transition: border-color 0.2s;
}

.lede:hover .lede__rule {
    border-color: var(--text-secondary);
}

.lede__date {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}

.lede:hover .lede__date {
    color: var(--text-primary);
}

/* ── Contact ─────────────────────────────────────────────── */

.contact {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--surface);
}

.contact__copy {
    font-size: 15px;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.subscribe {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.subscribe input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--raised);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
}

.subscribe input::placeholder {
    color: var(--text-tertiary);
}

.subscribe input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 0;
    border-color: transparent;
}

.subscribe button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease-out, scale 0.15s ease-out;
}

.subscribe button:hover {
    opacity: 0.88;
}

.subscribe button:active {
    scale: 0.98;
}

.subscribe__status {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.socials .chip {
    margin-inline: 0;
    translate: none;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 96px 0 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.site-footer__left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.site-footer__mark {
    color: var(--text-primary);
}

.site-footer__hint {
    display: none;
}

@media (min-width: 640px) {
    .site-footer__hint {
        display: inline;
    }
}

kbd {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--control);
    font-family: var(--font-sans);
    font-size: 11px;
}

/* ── Command menu ────────────────────────────────────────── */
.dock-spacer { height: 96px; flex-shrink: 0; }
.header-actions { gap: 8px; }
.menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 5px 10px 5px 12px;
    border: 0;
    border-radius: 9px;
    background: var(--control);
    color: var(--text-secondary);
    font: 500 14px/1.4 var(--font-sans);
    cursor: pointer;
}
.menu-trigger:hover { background: var(--control-hover); color: var(--text-primary); }
.menu-trigger kbd {
    padding: 1px 6px;
    border-radius: 4px;
    background: color-mix(in srgb, currentColor 8%, transparent);
    font: inherit;
}
.command-menu {
    position: fixed;
    inset: auto 0 16px;
    margin: 0 auto;
    width: min(420px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--r-xl);
    background: var(--raised);
    color: var(--text-primary);
    box-shadow: var(--popover-shadow);
    overflow: hidden;
    font: 15px/1.5 var(--font-sans);
}
.command-menu[open] { display: flex; flex-direction: column; }
.command-menu::backdrop { background: #0006; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.command-menu__bar { display: flex; align-items: center; gap: 12px; height: 48px; flex-shrink: 0; padding: 0 10px 0 16px; border-bottom: 1px solid var(--border); }
.command-menu__bar input { flex: 1; min-width: 0; border: 0; padding: 0; outline: none; background: transparent; color: inherit; font: inherit; }
.command-menu__bar input::placeholder { color: var(--text-tertiary); }
.command-menu__bar button { background: transparent; color: var(--text-secondary); border: 0; cursor: pointer; }
.command-menu kbd { padding: 2px 5px; border-radius: 4px; background: var(--control); font: 12px/1.4 var(--font-sans); }
.command-menu__results { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; }

.command-menu__results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 9px 10px; border-radius: 10px; }
.dock__kind { color: var(--text-tertiary); font-size: 12px; }
.command-menu__results a.is-selected, .command-menu__results a:hover { background: var(--control); }
.command-menu__empty { padding: 16px 8px; color: var(--text-secondary); }

@media (max-width: 400px) {
    .case-page .site-header { gap: 8px; }
    .case-page .crumbs { gap: 5px; }
    .case-page .site-header--sticky.is-scrolled { padding-inline: 12px; }
    .case-page .header-actions { gap: 4px; }
    .case-page .menu-trigger { gap: 5px; padding-inline: 8px; }
}

/* ── Entrance ───────────────────────────────────────────────
   One short fade for the whole page. No stagger, no loading screen —
   the signature draw in the header is the only timed moment.
   ─────────────────────────────────────────────────────────── */

.shell {
    animation: fade-in 0.25s ease-out both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .shell {
        animation: none;
    }
}

.dock__mark { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-tertiary); }
.dock-launcher {
    position: fixed;
    inset: auto 0 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(300px, calc(100vw - 24px));
    height: 48px;
    margin: 0 auto;
    padding: 0 10px 0 16px;
    border: 0;
    border-radius: var(--r-xl);
    background: var(--raised);
    color: var(--text-tertiary);
    box-shadow: var(--popover-shadow);
    font: 15px/1.5 var(--font-sans);
    cursor: pointer;
}
.dock-launcher[hidden] { display: none; }
.dock-launcher span { flex: 1; text-align: left; }
.dock-launcher kbd { font: 12px var(--font-sans); padding: 2px 5px; border-radius: 4px; background: var(--control); }
@media (min-width: 640px) {
    .command-menu, .dock-launcher { bottom: 24px; }
}

@media (min-width: 840px) {
    .command-menu {
        inset: 0;
        margin: auto;
    }
}
