/* // Metropolis by Chris Simpson is released into the public domain under the Unlicense. */
@font-face {
    font-family: 'Metropolis';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/metropolis-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Metropolis';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/metropolis-latin-600-normal.woff2') format('woff2');
}

:root { --site-navigation-offset: 152px; }
html { scroll-padding-top: var(--site-navigation-offset); }
#framed-editions { scroll-margin-top: 12px; }

.site-header.discovery-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
    height: auto;
    min-height: 96px;
    padding: 12px clamp(20px, 4vw, 80px);
    background: #171914;
    color: #f3f0e8;
    font-family: 'Metropolis', 'Manrope', sans-serif;
}

.discovery-header .brand {
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    font: 600 clamp(1.0625rem, 1.35vw, 1.25rem)/1.2 'Metropolis', 'Manrope', sans-serif;
    letter-spacing: .055em;
    white-space: nowrap;
}

.discovery-header .brand > span:last-child > span { color: #c8ccae; font-weight: 500; }
.discovery-header .brand-mark { width: 44px; height: 44px; flex-shrink: 0; border-color: #8d957566; }
.discovery-header .brand-mark svg { width: 27px; }

.site-header.discovery-header > nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px clamp(8px, 1.6vw, 28px);
    min-width: 0;
}

.site-header.discovery-header > nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    color: #e5e7db;
    font: 500 clamp(1rem, 1.25vw, 1.125rem)/1.35 'Metropolis', 'Manrope', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    transition: color .15s ease, border-color .15s ease;
}

.site-header.discovery-header > nav > a:hover,
.site-header.discovery-header > nav > a.active { color: #dfc393; border-bottom-color: #dfc393; }

.discovery-header .header-actions { display: flex; align-items: center; gap: 12px; }
.discovery-header .header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 4px;
    color: #e5e7db;
    font: 500 .9375rem/1.35 'Metropolis', 'Manrope', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.discovery-header .header-search:hover { background: #ffffff0a; color: #dfc393; }
.discovery-header .header-search svg { width: 22px; height: 22px; flex-shrink: 0; }
.discovery-header .cart-trigger { width: 48px; height: 48px; flex-basis: 48px; }
.discovery-header .cart-count { font: 600 .75rem/1 'Metropolis', 'Manrope', sans-serif; }
.discovery-header a:focus-visible,
.discovery-header .cart-trigger:focus-visible { outline: 2px solid #dfc393; outline-offset: 3px; border-radius: 3px; }

@media (max-width: 1200px) {
    .discovery-header .header-search span { display: none; }
}

@media (max-width: 900px) {
    :root { --site-navigation-offset: calc(168px + env(safe-area-inset-top, 0px)); }

    /* // Keep every destination visible. Sam reviews the two-row layout on phones. */
    .site-header.discovery-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 8px;
        min-height: calc(112px + env(safe-area-inset-top, 0px));
        padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
    }

    .discovery-header .brand { gap: 8px; min-height: 44px; font-size: clamp(.875rem, 3.8vw, 1.125rem); letter-spacing: .035em; }
    .discovery-header .brand-mark { width: 36px; height: 36px; }
    .discovery-header .brand-mark svg { width: 24px; }
    .discovery-header .header-actions { gap: 6px; }
    .discovery-header .header-search { width: 44px; min-height: 44px; padding: 6px; }
    .discovery-header .cart-trigger { width: 44px; height: 44px; flex-basis: 44px; }

    .site-header.discovery-header > nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        gap: 2px clamp(2px, 1vw, 10px);
        width: 100%;
        padding-top: 3px;
        border-top: 1px solid #ffffff14;
    }

    .site-header.discovery-header > nav > a {
        flex: 0 1 auto;
        min-height: 44px;
        padding: 6px 2px;
        font-size: clamp(.8125rem, 3.4vw, 1rem);
    }

    .cart-dialog { top: var(--site-navigation-offset); max-height: calc(100dvh - var(--site-navigation-offset) - 20px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header.discovery-header > nav > a { transition: none; }
}
