/* https://fonts.google.com/specimen/Spectral 300 400 500 */

@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: normal;
    font-weight: 300;
    src: url("/fonts/Spectral-Light.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/Spectral-Regular.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: normal;
    font-weight: 500;
    src: url("/fonts/Spectral-Medium.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: italic;
    font-weight: 300;
    src: url("/fonts/Spectral-LightItalic.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: italic;
    font-weight: 400;
    src: url("/fonts/Spectral-Italic.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: Spectral;
    font-style: italic;
    font-weight: 500;
    src: url("/fonts/Spectral-MediumItalic.woff2") format("woff2");
}

/* https://fonts.google.com/specimen/Work+Sans 300 400 500 600 700 */

@font-face {
    font-display: swap;
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 300 700;
    src: url("/fonts/WorkSans-VariableFont_wght.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: "Work Sans";
    font-style: italic;
    font-weight: 300 700;
    src: url("/fonts/WorkSans-Italic-VariableFont_wght.woff2") format("woff2");
}

:root {
    /* https://www.uottawa.ca/about-us/administration-services/brand */

    /* Primary colours */
    --primary-garnet: #8f001a;
    --charcoal-grey: #2d2d2c;
    --primary-warm-grey: #80746c;
    --primary-blue: #636d77;
    --primary-green: #67796c;
    --polar-grey: #f2f2f2;
    /* Secondary colours */
    --secondary-garnet: #9c1c30;
    --secondary-charcoal: #3a3a37;
    --secondary-warm-grey: #908681;
    --secondary-blue: #6d7983;
    --secondary-green: #728479;
    /* White */
    --white: #ffffff;

    /* Theme */
    --break-sm: 640px;
    --break-md: 768px;
    --break-lg: 1024px;
    --break-xl: 1280px;

    --font-sans: "Work Sans", sans-serif;
    --font-serif: Spectral, serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.5rem;
    --font-size-lg: 2.25rem;
    --font-size-xl: 3rem;

    --max-center-col: 1400px;
    --max-center-div: 800px;
}

html {
    box-sizing: border-box;
    font-size: 100%;
    line-height: 1.5;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
*, *:before, *:after { box-sizing: inherit; }
a { /* WIP */
    color: inherit;
    text-decoration: inherit;
}
b, strong { font-weight: 700; }
button, input, optgroup, select, textarea, [type="button"], [type="reset"], [type="submit"] {
    font-family: inherit;
    font-size: 100%;
    -webkit-appearance: none;
}
sub, sup {
    font-size: 0.5em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }
[hidden] { display: none; }
[onclick] { cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1; }
h1 { font-size: var(--font-size-lg); }
h2 {
    border-bottom: solid 2px;
    font-size: var(--font-size-md);
}
h3, footer h2 {
    border-bottom-style: none;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
}
img {
    border-style: none;
    display: block;
    max-width: 100%;
}
ol, ul {
    list-style-position: inside;
}
ul { padding: 0; }
ul .bullet {
    list-style-type:circle;
    list-style-position: inside;
}
small { font-size: var(--font-size-xs); }
@media (min-width: 1024px) { /* --break-lg */
    h1 { font-size: var(--font-size-xl); }
    h2 { font-size: var(--font-size-lg); }
    h3 { font-size: var(--font-size-sm); }
}

body {
    color: var(--charcoal-grey);
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    margin: 0;
}
body > div {
    min-height: 100vh;
    min-height: 100dvh;
}

.page-columns, body > div, header {
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) minmax(0, var(--max-center-col)) minmax(1rem, 1fr);
    width: 100%;
}
.page-column-lines-1-1, main, main > *, main > article > *, footer {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
}
.page-column-lines-2-3, header > div, main > *:not(article) > *, main > article > * > *, footer > div { grid-column: 2 / 3; }

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 1rem 0;
}
header.nav-main-expanded {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
}
header a:active, header a:hover { text-decoration: underline; }
header ul {
    list-style-type: none;
    margin: 0;
}
header > * {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.5rem;
}
.site-title {
    font-family: var(--font-serif);
    font-size: calc(var(--font-size-sm) + 0.25rem);
    font-weight: 500;
}
.site-title span { display: none; }
.nav-utilities { font-size: var(--font-size-xs); }
.nav-utilities ul {
    display: flex;
    column-rule-style: solid;
    column-rule-width: 1px;
    gap: 0.5rem;
}
.lang-switch { font-weight: 500; }
.nav-main-dropdown {
    flex: 0 0 100%;
    font-size: var(--font-size-xs);
}
.nav-main-dropdown::after { /* WIP */
    /* content: "▾"; */
    float: right;
}
.nav-main { flex: 0 0 100%; }
.nav-main ul {
    display: none;
    font-size: var(--font-size-md);
    font-weight: 700;
}
.nav-main ul.expanded { display: block; }
.nav-main ul.expanded::before {
    background-color: var(--primary-garnet);
    content: "";
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}
@media (min-width: 768px) { /* --break-md */
    header > * { row-gap: 1rem; }
    .site-title { font-size: var(--font-size-lg); }
    .site-title abbr { display: none; }
    .site-title span { display: inline; }
    .nav-utilities { font-size: var(--font-size-sm); }
    .nav-utilities ul { gap: 1.25rem; }
    .nav-main-dropdown { display: none; }
    .nav-main { border-top: 1px solid; }
    .nav-main a:active, .nav-main a:hover { text-decoration: none; }
    .nav-main ul {
        display: flex;
        font-size: var(--font-size-sm);
        flex: 0 0 100%;
        gap: 1.25rem;
        justify-content: flex-start;
        font-weight: 400;
    }
    .nav-main li {
        border-top: 1px solid transparent;
        padding-top: 1rem;
    }
    .nav-main li:active, .nav-main li:hover {
        border-top-color: currentColor;
    }
}

/* WIP - clean up */
main > *:not(article):not(#news-announcements):not(.hero):not(.page-title),
main > article > *:not(.page-title) { padding-top: 2rem; }
main > *:last-child { padding-bottom: 4rem; }

main a:not(.btn) { text-decoration: underline; }
main a:active, main a:hover { text-decoration: none; }
/* endWIP */

.hero {
    background: var(--charcoal-grey) url("/img/heroBG.webp") no-repeat center / cover;
    padding: 6.5rem 0;
    text-align: center;
}
.hero p { margin: 0; }
.hero > * {
    background: radial-gradient(circle, rgba(0,0,0,0.5), transparent);
    margin: 0 auto;
    max-width: var(--max-center-div);
}
@media (min-width: 768px) { /* --break-md */
    .hero { padding-top: 7.5rem; }
}
@media (min-width: 1024px) { /* --break-lg */
    .hero { padding-top: 9rem; }
}

.page-title {
    background-color: var(--charcoal-grey);
    color: var(--white);
    padding-top: calc(6.5rem + 2.5rem);
}
@media (min-width: 768px) { /* --break-md */
    .page-title { padding-top: calc(7.5rem + 2.5rem) }
}
@media (min-width: 1024px) { /* --break-lg */
    .page-title { padding-top: calc(9rem + 2.5rem); }
}

.intro {
    font-family: var(--font-serif);
    font-weight: 300;
}
@media (min-width: 1024px) { /* --break-lg */
    .intro { font-size: calc(var(--font-size-sm) + 0.25rem); }
}

.news-announcements {
    background-color: var(--polar-grey);
    margin-bottom: -4rem;
    max-width: var(--max-center-div);
    position: relative;
    top: -4rem;
    z-index: 1;
}
.news-announcements h2, .news-announcements h3, .news-announcements li, .news-announcements p { flex: 0 0 100%; }
.news-announcements h2 { border-bottom-style: none; }
.news-announcements h3 { /* WIP - structure */
    font-family: var(--font-serif);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-bottom: 0;
    text-transform: none;
}
.news-announcements p, .news-announcements ul { margin: 0; }
.news-announcements ul, .news-announcements li, .news-announcements li > div {
    display: flex;
    flex-wrap: wrap;
}
.news-announcements ul { gap: 1rem; }
.news-announcements li, .news-announcements li > div { gap: 0.25rem; }
.news-announcements .btn {
    border-width: 1px;
    font-size: var(--font-size-xs);
    padding: 0.125rem 0.5rem;
}
@media (min-width: 768px) { /* --break-md */
    .news-announcements h3 { font-size: var(--font-size-md); }
}

.concerts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.concert {
    border: 1px solid var(--polar-grey);
    flex: 1 1 calc(var(--break-sm) / 2);
}
.concert time { font-family: var(--font-serif); }

/* WIP */
img.bio {
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 250px;
}
main > article figure {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0 0 1rem 0;
}
main > article figure > img {
    max-height: 250px;
    width: auto;
}
@media (min-width: 768px) { /* --break-md */
    main > article figure > img { max-height: 350px; }
}
/* endWIP */

footer {
    background-color: var(--charcoal-grey);
    padding: 4rem 0;
}
footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: flex-start;
}
footer a:active, footer a:hover { text-decoration: underline; }
footer ul { list-style-type: none; }
footer li { margin-bottom: 1rem; }
footer li:last-child { margin-bottom: 0; }
footer > div > * { flex: 1 1 calc(var(--break-sm) / 2); }
.contact-method { font-family: var(--font-serif); }
.legal {
    flex: 0 0 100%;
    text-align: right;
}

.modal { /* WIP - redo/recheck */
    background: var(--charcoal-grey) url("/assets/img/heroBG.webp") no-repeat center / cover;
    display:none;
    grid-template-columns: minmax(1rem, 1fr) minmax(0, 900px) minmax(1rem, 1fr);
    grid-template-rows: auto auto auto;
    position: absolute;
    align-content: center;
    text-align: center;
}
    .modal header, .modal main, .modal div.btns { padding: 1rem 0; }
    .modal header {
        display: grid;
        grid-column: 2;
        grid-template-columns: subgrid;
    }
    .modal div.btns {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        grid-row: 3;
        justify-content: center;
    }
    .modal hr {
        margin: 0 auto;
        width: 50%;
    }
    .modal a {
        border: 2px solid; /* change to row-rule? */
        border-radius: 40px; /* .btn */
        padding: 0.5rem;
    }
    @media (min-width: 800px) {
        .modal header, .modal main { padding: 2rem 0; }
        .modal main {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
        }
        .modal div.btns {
            gap: 4rem;
            padding: 4rem 0;
        }
        .modal h1 { font-size: var(--font-size-lg); }
        .modal hr { width: 75%; }
        .modal h2, .modal .name { align-self: center; }
        .modal h2.en { grid-column: 1 }
        .modal h2.fr { grid-column: 3 }
        .modal a {
            font-size: var(--font-size-sm);
            padding: 0.5rem 4rem;
        }
    }

.btn {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 40px;
    color: inherit;
    font-family: var(--font-sans);
    padding: 0.25rem 1rem;
}
.card { padding: 2.5rem; }


.bg-dark { background-color: var(--charcoal-grey); }
.bg-light { background: var(--white); ; }

.border-dark { border-color: var(--polar-grey); }
.border-light { border-color: color-mix(in srgb, var(--white) 20%, transparent); }

.no-scroll { overflow: hidden; }

.rule-dark { column-rule-color: var(--polar-grey); }
.rule-light { column-rule-color: color-mix(in srgb, var(--white) 20%, transparent); }

.text-dark { color: var(--charcoal-grey); }
header, .hero, .page-title, footer, .modal { color: var(--white); } /* WIP - structure */

table#indexlist a {
    color: var(--primary-garnet)
    text-decoration: underline;
}
table#indexlist a:active, table#indexlist a:hover { text-decoration: none; }