/*
  Site chrome for the Cloudflare Pages build in site/.
  Squarespace section CSS stays scoped inside each page.
*/

:root {
    --swc-nav-h: 52px;
    --swc-nav-bg: rgba(8, 8, 8, 0.94);
    --swc-nav-text: rgba(245, 245, 245, 0.72);
    --swc-nav-crimson: #bc2026;
}

html {
    scroll-padding-top: var(--swc-nav-h);
}

body {
    padding-top: var(--swc-nav-h);
}

.swc-skip {
    position: fixed;
    left: 12px;
    top: 8px;
    z-index: 600;
    padding: 8px 12px;
    background: #fff;
    color: #14110e;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-140%);
}

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

.swc-site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    min-height: var(--swc-nav-h);
    padding: 0 clamp(16px, 4vw, 40px);
    background: var(--swc-nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.swc-site-nav__brand {
    color: #fff;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.swc-site-nav__brand-short {
    display: none;
}

.swc-site-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 28px);
}

.swc-site-nav__links a {
    position: relative;
    padding: 16px 0;
    color: var(--swc-nav-text);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.swc-site-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: var(--swc-nav-crimson);
    transform: scaleX(0);
    transform-origin: left center;
}

.swc-site-nav__links a:hover,
.swc-site-nav__links a:focus-visible {
    color: #fff;
}

.swc-site-nav__links a[aria-current="page"] {
    color: #fff;
}

.swc-site-nav__links a[aria-current="page"]::after,
.swc-site-nav__links a:hover::after,
.swc-site-nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.swc-site-nav__links a:focus-visible,
.swc-site-nav__brand:focus-visible {
    outline: 2px solid var(--swc-nav-crimson);
    outline-offset: 3px;
}

.swc-site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 28px clamp(20px, 5vw, 64px) 32px;
    background: #080808;
    color: rgba(245, 245, 245, 0.72);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.swc-site-footer p {
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.swc-site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.swc-site-footer a {
    color: rgba(245, 245, 245, 0.72);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.swc-site-footer a:hover,
.swc-site-footer a:focus-visible {
    color: #fff;
}

/*
  The progress bar is fixed to the viewport, so it sits just under the site nav.
  Era chips, the era rail, and master subnavs are sticky inside a parent
  that already begins below the site nav. Raising their sticky top would
  open a second gap, so those stay at the source top: 0.
*/
.scroll-progress {
    top: var(--swc-nav-h) !important;
}

.era-rail {
    height: calc(100vh - var(--swc-nav-h)) !important;
    height: calc(100dvh - var(--swc-nav-h)) !important;
}

/* Home-only links added in the static copy of the masters carousel. */
.swc-masters__profiles {
    margin: 16px 0 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.swc-masters__profiles a,
a.swc-masters__profile {
    color: #bc2026;
    text-decoration: none;
    border-bottom: 1px solid rgba(188, 32, 38, 0.4);
    pointer-events: auto;
}

a.swc-masters__profile {
    display: inline-block;
    margin-top: 8px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.swc-masters__profiles a:hover,
.swc-masters__profiles a:focus-visible,
a.swc-masters__profile:hover,
a.swc-masters__profile:focus-visible {
    border-bottom-color: #bc2026;
}

@media (max-width: 720px) {
    .swc-site-nav__brand-full {
        display: none;
    }

    .swc-site-nav__brand-short {
        display: inline;
    }

    .swc-site-nav__links {
        gap: 12px;
    }

    .swc-site-nav__links a {
        letter-spacing: 0.12em;
        font-size: 0.62rem;
    }
}
