@font-face {
    font-family: "Montauk";
    src: url("/assets/fonts/Montauk.woff2") format("woff2"),
        url("/assets/fonts/Montauk.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "D-DIN";
    src: url("/assets/fonts/D-DIN.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "D-DIN";
    src: url("/assets/fonts/D-DIN-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "D-DIN Condensed";
    src: url("/assets/fonts/D-DINCondensed-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Clip Benguiat";
    src: local("ITC Benguiat Medium"),
        local("ITC Benguiat Std Medium"),
        local("ITC Benguiat");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.66);
    --faint: rgba(255, 255, 255, 0.42);
    --glass: rgba(255, 255, 255, 0.09);
    --glass-strong: rgba(255, 255, 255, 0.15);
    --line: rgba(255, 255, 255, 0.22);
    --line-soft: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
    --focus: #fff;
    --sans: "D-DIN", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --display: "D-DIN Condensed", "D-DIN", Helvetica, Arial, sans-serif;
    --logo: "Clip Benguiat", "ITC Benguiat", "Benguiat", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

html.is-loading {
    cursor: progress;
}

body {
    margin: 0;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
        #000;
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.35;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.6px) 11px 19px / 73px 67px,
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.4px) 47px 31px / 113px 97px,
        linear-gradient(180deg, #020202 0%, #000 56%, #050505 100%);
    content: "";
}

body::after {
    position: fixed;
    inset: auto 0 0;
    z-index: -1;
    height: 44svh;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.045));
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-shell {
    display: grid;
    align-content: start;
    grid-template-rows: auto auto auto;
    width: min(100% - 28px, 760px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 28px 0 44px;
}

.page-shell:not(.has-results) {
    align-content: center;
    grid-template-rows: auto auto;
    padding-bottom: 15svh;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 0 0 22px;
}

.has-results .site-header {
    padding-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--logo);
    font-size: clamp(2.05rem, 7.6vw, 4.45rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: lowercase;
}

.brand-word {
    display: inline-block;
}

.has-results .brand {
    font-size: clamp(1.72rem, 5.2vw, 3rem);
}

.search-section {
    width: 100%;
}

.unibar {
    display: grid;
    gap: 0;
}

.unibar-line {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.unibar-line input[type="search"] {
    min-width: 0;
    min-height: 60px;
    padding: 0 8px 0 24px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: clamp(1rem, 3.7vw, 1.18rem);
    font-weight: 400;
    appearance: none;
}

.unibar-line input[type="search"]::-webkit-search-cancel-button {
    display: none;
    appearance: none;
    -webkit-appearance: none;
}

.unibar-line input[type="search"]::placeholder {
    color: var(--faint);
}

.icon-button {
    min-width: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.search-button {
    color: rgba(255, 255, 255, 0.84);
}

.search-button:hover {
    color: #fff;
}

.icon-button:focus-visible,
.result-link:focus-visible,
.share-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.loading-progress {
    --progress: 0%;
    width: min(70%, 340px);
    height: 0;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: transparent;
    opacity: 0;
    transition: opacity 160ms ease, height 160ms ease, margin-top 160ms ease, background 160ms ease;
}

.loading-progress span {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
    transition: width 180ms cubic-bezier(.3, 0, .2, 1);
}

.is-loading .loading-progress {
    height: 2px;
    min-height: 2px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.results-section {
    margin-top: 10px;
}

.item-title {
    margin: 0 8px 11px;
    overflow-wrap: anywhere;
    color: #fff;
    font-family: var(--display);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
}

.result-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    color: #fff;
    text-decoration: none;
}

.result-link:hover {
    background: rgba(255, 255, 255, 0.055);
}

.service-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.service-icon img {
    position: absolute;
    inset: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: inherit;
    opacity: 0;
    object-fit: contain;
    transition: opacity 120ms ease;
}

.service-icon img.is-loaded {
    opacity: 1;
}

.service-icon img[hidden] {
    display: none;
}

.result-link strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.share-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 7px;
    margin-top: 22px;
    padding: 14px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.share-link:hover {
    background: rgba(255, 255, 255, 0.055);
}

.share-label,
.share-url-row,
.share-url-row strong {
    min-width: 0;
}

.share-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.share-url-row {
    display: block;
    max-width: 100%;
    line-height: 1.25;
}

.share-url-row strong {
    display: inline;
    overflow-wrap: anywhere;
    font-size: clamp(0.98rem, 3.2vw, 1.08rem);
    font-weight: 700;
}

.share-url-row svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 7px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    vertical-align: -0.25em;
}

.copy-message {
    min-height: 1.2em;
    margin: 6px 18px 0;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (min-width: 680px) {
    .page-shell {
        padding-top: 36px;
    }

    .page-shell.has-results {
        padding-top: 34px;
    }

    .unibar-line {
        grid-template-columns: minmax(0, 1fr) 56px;
        min-height: 66px;
    }

    .unibar-line input[type="search"] {
        min-height: 64px;
        padding-left: 28px;
    }

    .results-section {
        margin-top: 14px;
    }

    .result-link {
        min-height: 36px;
        padding: 8px 10px;
    }
}

@media (max-width: 430px) {
    .page-shell {
        width: min(100% - 18px, 760px);
        padding-top: 22px;
    }

    .page-shell:not(.has-results) {
        padding-bottom: 12svh;
    }

    .site-header {
        padding-bottom: 17px;
    }

    .unibar-line {
        grid-template-columns: minmax(0, 1fr) 48px;
        min-height: 58px;
    }

    .unibar-line input[type="search"] {
        min-height: 56px;
        padding-left: 18px;
    }

    .icon-button svg {
        width: 18px;
        height: 18px;
    }

    .result-link {
        min-height: 32px;
        padding: 7px 8px;
    }
}
