html,
body {
    height:                 100%;
}
html {
    background:             var(--bg);
    color:                  var(--fg);
    font-family:            var(--font-sans);
}

@view-transition {
    navigation: auto;
}

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;
}


/* 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;
}
/* a {
    color:                  inherit;
    text-decoration:        none;
    &.link {
        color:                  var(--link);
        text-decoration:        underline;
        text-decoration-color:  rgb(255 255 255 / 0.22);
        text-underline-offset:  0.12em;
        &:visited {
            color:                  var(--link-visited);
        }
        &: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;
    display:                flex;
    align-items:            baseline;
    flex-wrap:              wrap;
    gap:                    0.5ch;
}
.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);
    }
}
h2.staff__name .staff__socials {
    display:                inline-flex;
    align-items:            center;
    margin-left:            0.5ch;
}
h2.staff__name .staff__socials a {
    display:                inline-flex;
    align-items:            center;
    opacity:                0.65;
}
h2.staff__name .staff__socials a:visited {
    color:                  inherit;
}
@media (hover: hover) and (pointer: fine) {
    h2.staff__name .staff__socials a:hover {
        opacity:            0.95;
    }
}
h2.staff__name .staff__socials img {
    height:                 0.9em;
    width:                  auto;
    vertical-align:         text-bottom;
}


/* SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* 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;
}
