html,
body {
    height:                 100%;
}

html {
    background:             var(--bg);
    color:                  var(--fg);
    font-family:            var(--font-sans);
}

body {
    margin:                 0;
    background:             var(--bg);
    color:                  var(--fg);
    font-family:            var(--font-sans);

    /* Page-level scrolling only */
    overflow-x:             hidden;
    overflow-y:             auto;

    /* Fixed header spacing */
    padding-top:            var(--header-h);

    /* Flex layout so footer sits at bottom on short pages,
       and moves to the end on long pages (no fixed footer). */
    display:                flex;
    flex-direction:         column;
    min-height:             100vh;
}

*,
*::before,
*::after {
    box-sizing:             border-box;
}

/* Main app area grows to push footer down when page is short */
.app {
    position:               relative;
    overflow:               visible;
    flex:                   1 0 auto;
}

.app > * {
    height:                 auto;
    overflow:               visible;
}

/* Content container */
.content {
    max-width:              980px;
    margin:                 0 auto;
    padding:                2rem var(--container-pad-x);
}
.content p {
    margin-top:             0;
    margin-bottom:          var(--para-gap);
}
.content p:last-child {
    margin-bottom:          0;
}


/* Route transition: centre only */
#app {
    opacity:                1;
    transition:             opacity 100ms ease;
}
#app.is-transitioning {
    opacity:                0;
    pointer-events:         none;
}
@media (prefers-reduced-motion: reduce) {
    #app {
        transition:         none;
    }
}

/* Separators */
hr {
    border:                 0;
    height:                 2px;
    background:             var(--hr);
    margin:                 2rem 0;
}

/*
    Links:
    - Default anchors inherit (so header/footer/UI are not affected).
    - Use .link for content links only.
*/
a {
    color:                  inherit;
    text-decoration:        none;
}
a.link {
    color:                  var(--link);
    text-decoration:        underline;
    text-decoration-color:  rgb(255 255 255 / 0.22);
    text-underline-offset:  0.12em;
}
a.link:visited {
    color:                  var(--link-visited);
}
a.link:focus-visible {
    color:                  var(--link-hover);
    outline:                2px solid rgb(255 232 56 / 0.35);
    outline-offset:         3px;
}
@media (hover: hover) and (pointer: fine) {
    a.link:hover {
        color:              var(--link-hover);
        text-decoration-color: rgb(255 255 255 / 0.35);
    }
}

/* Staff cards */
.staff {
    display:                grid;
    grid-template-columns:  clamp(96px, 18vw, 180px) 1fr;
    gap:                    1.25rem;
    align-items:            start;
    margin-top:             calc(var(--para-gap) * 2);
    margin-bottom:          var(--para-gap);
}
.staff__name {
    margin:                 0 0 0.75rem 0;
    line-height:            1.05;
}
.staff__body {
    min-width:              0;
}
h2.staff__name .staff__pronouns {
    font-weight:            normal;
    font-style:             italic;
    font-size:              0.75em;
    opacity:                0.70;
    margin-left:            0.5ch;
    white-space:            nowrap;
}
.staff__photo {
    width:                  100%;
    aspect-ratio:           4 / 5;
    object-fit:             cover;
    object-position:        50% 20%;
    border-radius:          var(--radius);
    border:                 1px solid var(--panel-border);
}
@media (max-width: 700px) {
    .staff {
        grid-template-columns: 1fr;
    }
    .staff__photo {
        width:              clamp(120px, 45vw, 180px);
    }
}

/* Temporary */
.comingsoon {
    margin:                 0;
    font-size:              clamp(1rem, 4vh, 3rem);
    line-height:            1;
    color:                  rgb(255 255 255 / 0.75);
    letter-spacing:         0.08em;
    text-transform:         lowercase;
    pointer-events:         none;
}
