/* ============================================================
   FREESTYLE: one gutter for the whole site
   The homepage runs to the window edge, so a subpage sitting in a 1280px box
   reads as a different site. Overriding .container here rather than editing
   the class strings on fourteen pages keeps the markup as it was.
   ============================================================ */
.container {
    max-width: none;
    padding-left: clamp(1.5rem, 5vw, 5rem);
    padding-right: clamp(1.5rem, 5vw, 5rem);
}

/* ------------------------------------------------------------
   Text comes into focus as it arrives. The class is added by the script, so
   without JavaScript nothing is ever blurred and the page reads normally.
   ------------------------------------------------------------ */
.fs-focus {
    filter: blur(9px);
    opacity: 0;
    transform: translateY(14px);
    transition: filter 820ms var(--ease-out), opacity 820ms var(--ease-out),
                transform 820ms var(--ease-out);
}

.fs-focus.is-focus {
    filter: blur(0);
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fs-focus {
        filter: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ------------------------------------------------------------
   The mobile menu, in the skin the rest of this site wears.
   The panel structure lives in styles.css, which ships it white. Freestyle
   opens on ink and the menu is a surface over the page rather than a section
   of it, so here it is black on all fifteen pages: a white sheet thrown over
   the first screen would flash, and a menu that changes colour depending on
   which page you opened it from is not one menu.
   Every page loads this file, which is why the skin sits here and not in
   freestyle.css, which the homepage alone loads.
   ------------------------------------------------------------ */
.nav-panel {
    background-color: #0a0a0a;
}

.nav-panel-nav { border-top-color: rgba(255, 255, 255, 0.14); }

.nav-panel-link {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.nav-panel-place { color: #a3a3a3; }

.nav-panel-mail {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.32);
}

/* The button sits above the panel, so once the panel is open it is on ink
   whatever the header was doing a moment earlier. */
.nav-toggle.is-open { color: #ffffff; }

/* The desktop nav is hidden on a phone, so the panel carries the call. Paper on
   ink here, which is the panel's own polarity rather than the header's. */
.nav-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: #ffffff;
    color: #0a0a0a;
}
