/* ==========================================================================
   Prestige 8 Solutions: shared components
   Header, emblem, buttons, links, glass surfaces and lists used on more than one page.
   Loaded on every page, after base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--void);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-250%);
}

.skip-link:focus {
    transform: none;
}

/* The header is written in plain CSS, without Tailwind utilities, so it is correct on the
   very first paint of every page. It keeps its own view-transition name, which holds it
   still while the content beneath it cross-fades. */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    padding: 0.75rem 0.75rem 0;
    view-transition-name: site-header;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 0.5rem 0 0.75rem;
    border-radius: 999px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-right: 0.5rem;
    border-radius: 999px;
    color: var(--void);
    text-decoration: none;
}

.brand__emblem {
    display: block;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
}

.brand__name {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.brand__name span {
    font-weight: 300;
    color: rgba(3, 7, 18, 0.6);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--void);
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
}

.mobile-menu {
    max-width: 1360px;
    margin: 0.5rem auto 0;
    padding: 0.75rem;
    border-radius: 1.5rem;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    color: var(--void);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.mobile-menu a[aria-current="page"] {
    background: rgba(3, 7, 18, 0.06);
}

@media (min-width: 640px) {
    .site-header {
        padding: 1rem 1.5rem 0;
    }

    .site-header__bar {
        height: 4rem;
        padding: 0 0.75rem 0 1.25rem;
    }

    .brand__emblem {
        width: 2.5rem;
        height: 2.5rem;
    }

    .brand__name {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }

    .menu-toggle,
    .mobile-menu {
        display: none;
    }
}

.nav-link {
    position: relative;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(3, 7, 18, 0.66);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--void);
}

.nav-link[aria-current="page"] {
    color: var(--void);
    font-weight: 500;
    background: rgba(3, 7, 18, 0.06);
}

/* The emblem is one continuous pen stroke. On first load each lobe draws in
   the order the stroke travels, so the eight visibly runs on into the infinity. */
.emblem-stroke {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.emblem-animated .emblem-stroke {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: emblem-draw 0.55s var(--ease-out) forwards;
}

/* Stroke order: top of the eight, left of the infinity, bottom of the eight, right of the infinity. */
.emblem-animated .emblem-stroke:nth-child(3) { animation-delay: 0.10s; }
.emblem-animated .emblem-stroke:nth-child(2) { animation-delay: 0.50s; }
.emblem-animated .emblem-stroke:nth-child(4) { animation-delay: 0.90s; }
.emblem-animated .emblem-stroke:nth-child(1) { animation-delay: 1.30s; }

@keyframes emblem-draw {
    to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.button:active {
    transform: scale(0.98);
}

.button-large {
    min-height: 3.25rem;
    padding: 0 1.6rem;
    font-size: 1rem;
}

.button-primary {
    background: var(--void);
    color: #FFFFFF;
}

.button-primary:hover {
    background: var(--sapphire);
}

.button-quiet {
    background: transparent;
    color: var(--void);
    box-shadow: inset 0 0 0 1px rgba(3, 7, 18, 0.18);
}

.button-quiet:hover {
    box-shadow: inset 0 0 0 1px var(--void);
}

.button-bright {
    background: #FFFFFF;
    color: var(--void);
}

.button-bright:hover {
    background: var(--electric);
}

.button-outline-light {
    background: transparent;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button-outline-light:hover {
    box-shadow: inset 0 0 0 1px #FFFFFF;
}

.text-link {
    font-weight: 500;
    color: var(--void);
    text-decoration: underline;
    text-decoration-color: rgba(3, 7, 18, 0.25);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    color: var(--sapphire);
    text-decoration-color: var(--sapphire);
}

.on-dark .text-link {
    color: #FFFFFF;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

.on-dark .text-link:hover {
    color: var(--electric);
    text-decoration-color: var(--electric);
}

/* --------------------------------------------------------------------------
   Glass surfaces
   -------------------------------------------------------------------------- */

.glass-light {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(3, 7, 18, 0.08);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.glass-caption {
    background: rgba(3, 7, 18, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    backdrop-filter: blur(26px) saturate(160%);
}

/* --------------------------------------------------------------------------
   Light fields
   Soft pools of colour behind glass panels on the navy blocks.
   -------------------------------------------------------------------------- */

.light-field {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Ruled lists
   -------------------------------------------------------------------------- */

.ruled-list > li {
    padding: 0.95rem 0;
    border-top: 1px solid var(--hairline);
}

.ruled-list > li:last-child {
    border-bottom: 1px solid var(--hairline);
}

.on-dark .ruled-list > li {
    border-color: var(--hairline-on-dark);
}
