@import url("https://fonts.googleapis.com/css2?family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap");
/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

.radio-canada, :root {
  font-family: "Radio Canada", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Colour schemes */
/* Applied styles */
:root {
  --border-thickness-sm: 0.1rem;
  --border-thickness: 0.25rem;
  --font-bold: 500;
  --font-regular: 400;
  --gap-sm: 0.4rem;
  --gap-md: 0.6rem;
  --gap-lg: 2rem;
  --page-max-width: 1200px;
  --radius-sm: 0.5rem;
  --space-sm: 0.25rem;
  --space-lg: 1rem;
  --text-size: 12pt;
  --underline-thickness: 0.15rem;
  --bg-color: #ebebeb;
  --border-color: #303030;
  --link-color: #72aae9;
  --text-color: #303030;
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg-color: #303030;
    --border-color: #ebebeb;
    --link-color: #72aae9;
    --text-color: #ebebeb;
  }
}
@media print {
  :root {
    --bg-color: #ffffff;
    --border-color: #000000;
    --link-color: #000000;
    --text-color: #000000;
  }
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: var(--text-size);
  font-weight: var(--font-regular);
}

h1, h2, h3 {
  font-weight: var(--font-bold);
}

svg {
  fill: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
}
a svg {
  fill: var(--link-color);
}
a:hover {
  text-decoration: none;
}

.tag-cloud {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.outer {
  display: grid;
  justify-items: center;
  row-gap: var(--gap-lg);
  grid-template: "t" min-content "m" auto "b" min-content/auto;
  min-height: 100vh;
  padding: 0 var(--gap-md);
}
@media print {
  .outer {
    display: flex;
    flex-direction: column;
  }
}

.container, footer#bottom, main, header#top {
  max-width: var(--page-max-width);
  width: 100%;
}
@media print {
  .container, footer#bottom, main, header#top {
    max-width: none;
    min-width: none;
  }
}

header#top {
  grid-area: t;
  align-items: baseline;
  border-bottom: var(--border-thickness) solid var(--border-color);
  display: grid;
  grid-template: auto/auto;
  padding: var(--space-lg) 0 var(--space-sm);
}
@media screen and (min-width: 600px) {
  header#top {
    grid-template: auto/repeat(2, 1fr);
  }
}
@media print {
  header#top {
    grid-template: auto/repeat(2, 1fr);
    padding-top: 0;
  }
}
header#top h1 {
  font-size: 1.4rem;
  text-wrap: nowrap;
}
header#top nav {
  display: flex;
  flex-direction: row;
  gap: var(--gap-sm);
}
@media screen and (min-width: 600px) {
  header#top nav {
    justify-content: end;
  }
}
@media print {
  header#top nav {
    justify-content: end;
  }
}

main {
  grid-area: m;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
@media print {
  main {
    gap: var(--gap-sm);
  }
}
main h1, main h2, main h3 {
  break-after: avoid;
}
main h1 {
  font-size: 2rem;
}
main h2 {
  font-size: 1.4rem;
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
}
main h3 {
  font-size: 1.2rem;
}

footer#bottom {
  grid-area: b;
  align-items: baseline;
  border-top: var(--border-thickness) solid var(--border-color);
  display: grid;
  grid-template: auto/1fr;
  justify-items: end;
  padding: var(--space-sm) 0 var(--space-lg);
}
footer#bottom div {
  width: fit-content;
}
@media print {
  footer#bottom {
    display: none;
  }
}

tag-chip {
  border: var(--border-thickness-sm) solid var(--text-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}
tag-chip.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}