@charset "UTF-8";
@import "fonts.css";

/* Colour variables */

:root {
  --color-foreground-light: #333333;
  --color-foreground-low-contrast-light: #444444;
  --color-highlight-light: #3C8067;
  --color-background-light: #FFFFFF;
  --color-text-selection-light: #a8d6c5;

  --color-foreground-dark: #CCCCCC;
  --color-foreground-low-contrast-dark: #888888;
  --color-highlight-dark: #991e1e;
  --color-background-dark: #000000;
  --color-text-selection-dark: #732626;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-foreground: var(--color-foreground-light);
    --color-foreground-low-contrast: var(--color-foreground-low-contrast-light);
    --color-highlight: var(--color-highlight-light);
    --color-background: var(--color-background-light);
    --color-text-selection: var(--color-text-selection-light);
  }

  :root.dark-theme {
    --color-foreground: var(--color-foreground-dark);
    --color-foreground-low-contrast: var(--color-foreground-low-contrast-dark);
    --color-highlight: var(--color-highlight-dark);
    --color-background: var(--color-background-dark);
    --color-text-selection: var(--color-text-selection-dark);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-foreground: var(--color-foreground-dark);
    --color-foreground-low-contrast: var(--color-foreground-low-contrast-dark);
    --color-highlight: var(--color-highlight-dark);
    --color-background: var(--color-background-dark);
    --color-text-selection: var(--color-text-selection-dark);
  }

  :root.light-theme {
    --color-foreground: var(--color-foreground-light);
    --color-foreground-low-contrast: var(--color-foreground-low-contrast-light);
    --color-highlight: var(--color-highlight-light);
    --color-background: var(--color-background-light);
    --color-text-selection: var(--color-text-selection-light);
  }
}

/* Some lengths and font variables */

:root {
  --font-family: 'Fira Sans', Helvetica, sans-serif;
  --line-height-body: 1.7;
  --spacing-horizontal: 25px;
  --spacing-vertical: 30px;
  --spacing-unit: 20px;
  --aligndefault-width: calc(100vw - 2 * var(--spacing-horizontal));
}

@media only screen and (min-width: 652px) {
  :root {
    --aligndefault-width: min(calc(100vw - 2 * var(--spacing-horizontal)), 700px);
  }
}

/* General spacing and width */

header *,
main *,
footer * {
  max-width: unset;
}

html,
body,
div,
header,
nav,
article,
figure,
hr,
main,
section,
footer {
  max-width: none;
}

html,
body,
p,
ol,
ul,
li,
figure,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.default-max-width,
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
  max-width: var(--aligndefault-width);
  margin-left: auto;
  margin-right: auto;
}

.site-header,
main,
footer {
  padding-top: var(--spacing-vertical);
  padding-bottom: var(--spacing-vertical);
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 481px) {
  .site-header > hr {
    display: none;
  }
}

main > * {
  margin-top: calc(3 * var(--spacing-vertical));
  margin-bottom: calc(3 * var(--spacing-vertical));
}

main > *:first-child {
  margin-top: 0;
}

main > *:last-child {
  margin-bottom: 0;
}

footer > *,
main > *,
.entry-content > *,
.columns .column > * {
  margin-top: calc( 0.666 * var(--spacing-vertical));
  margin-bottom: calc( 0.666 * var(--spacing-vertical));
}

@media only screen and (min-width: 482px) {
  footer > *,
  main > *,
  .entry-content > *,
  .columns .column > * {
    margin-top: var(--spacing-vertical);
    margin-bottom: var(--spacing-vertical);
  }
}

.site-header > * {
  margin-top: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
}

footer > *:first-child,
main > *:first-child,
.entry-content > *:first-child,
.site-header > *:first-child,
.columns .column > *:first-child {
  margin-top: 0;
}

footer > *:last-child,
main > *:last-child,
.entry-content > *:last-child,
.site-header > *:last-child,
.columns .column > *:last-child,
.columns .column:last-child {
  margin-bottom: 0;
}

/* before and after elements */

.entry-content:before,
.entry-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
footer:before,
footer:after {
  content: "";
  display: table;
  table-layout: fixed;
}

.entry-content:after,
.site-header:after,
.site-content:after,
footer:after {
  clear: both;
}

footer {
  overflow: hidden;
}

.entry-header {
  margin-top: var(--spacing-vertical);
  margin-right: auto;
  margin-bottom: var(--spacing-vertical);
  margin-left: auto;
}

/* My entry-header only have one child */
.entry-header > * {
  margin-top: 0;
  margin-bottom: 0;
}

.entry-content > * {
  /* Reset alignleft and alignright margins after alignfull */
}

.entry-content > *.alignleft, .entry-content > *.alignright,
.entry-content > *.alignleft:first-child + *,
.entry-content > *.alignright:first-child + *, .entry-content > *.alignfull {
  margin-top: 0;
}

.entry-content > *:last-child, .entry-content > *.alignfull {
  margin-bottom: 0;
}

.entry-content > *.alignfull + .alignleft,
.entry-content > *.alignfull + .alignright {
  margin-top: var(--spacing-vertical);
}

.columns .column:not(:last-child) {
  margin-bottom: calc(0.66 * var(--spacing-vertical));
}

@media only screen and (min-width: 482px) {
  .columns .column:not(:last-child) {
    margin-bottom: var(--spacing-vertical);
  }
}

@media only screen and (min-width: 652px) {
  .columns .column:not(:last-child) {
    margin-bottom: 0;
  }
}

.columns.alignfull {
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
}
/* html tag */

/**
 * Apply generic border-box to all elements.
 * See:
 * https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 */
/**
 * Apply border-box across the entire page.
 */
html {
  box-sizing: border-box;
}

/**
 * Relax the definition a bit, to allow components to override it manually.
 */
*, *::before, *::after {
  box-sizing: inherit;
}

html {
  font-size: 15px;
  font-family: var(--font-family);
  line-height: var(--line-height-body);
  -webkit-text-size-adjust: auto;
}

@media only screen and (min-width: 482px) {
  html {
    font-size: 18px;
  }
}

/* body tag */

body {
  display: none;
  /* Legacy */
  display: var(--skip, block);
  font-size: 1em;
  font-weight: normal;
  color: var(--color-foreground);
  text-align: left;
  background-color: var(--color-background);
}

@media only screen and (min-width: 482px) {
  body {
    max-width: 100%;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

/* main tag */
main {
  display: block;
}

/* links and buttons */

a {
  background-color: transparent;
  color: var(--color-foreground);
  text-decoration: underline solid var(--color-highlight);
  -webkit-text-decoration: underline solid var(--color-highlight);
  transition: border-color 0.1s ease-out;
  line-height: 16px;
}

nav a,
footer a,
a:hover,
a:focus {
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--color-highlight);
}

a:active {
  color: var(--color-foreground);
}

nav a {
  display: inline;
  font-size: 24px;
}

@media only screen and (min-width: 482px) {
  nav a {
    display: block;
    font-size: inherit;
  }
}

button,
a {
  cursor: pointer;
}

button {
  line-height: 1.15;
  color: var(--color-background);
  font-weight: normal;
  font-family: inherit;
  font-size: 1em;
  background-color: var(--color-foreground);
  border-radius: 4px;
  border-width: 0;
  text-decoration: none;
  padding: var(--spacing-horizontal) var(--spacing-horizontal);
  margin: 0;
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
}

button:before,
button:after {
  content: '';
  display: block;
  height: 0;
  width: 0;
}

button:before {
  margin-bottom: -.12em;
}

button:after {
  margin-top: -.11em;
}

button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

.darkmodetoggler > svg > g > circle {
  fill: var(--color-background);
}

.darkmodetoggler > svg > g > path,
.darkmodetoggler:active > svg > g > path,
.darkmodetoggler:focus > svg > g > path {
  fill: var(--color-foreground);
}

.darkmodetoggler:hover > svg > g > path {
  fill: var(--color-highlight);
}

.darkmodetoggler,
.darkmodetoggler:active,
.darkmodetoggler:hover,
.darkmodetoggler:focus {
  background-color: var(--color-background);
  padding: 4px 0px;
}

button.open-menu,
button.close-menu {
  font-size: 16px;
  background-color: transparent;
  color: var(--color-foreground);
  z-index: 500;
  margin-left: auto;
  padding: calc(var(--spacing-horizontal) - 2px - (0.25 * var(--spacing-unit))) calc(var(--spacing-horizontal) - (0.25 * var(--spacing-unit)));
  margin-top: calc(0.25 * var(--spacing-unit));
  margin-right: calc(0.25 * var(--spacing-unit));
}

button.open-menu {
  display: flex;
}

button.close-menu {
  display: none;
  position: absolute;
  right: 0;
  z-index: 501;
}

/* lists */
ol, ul {
  font-family: inherit;
  margin: 0;
  padding-left: calc(2 * var(--spacing-horizontal));
  margin-top: 0!important;
}

ul {
  list-style-type: disc;
}

/* horizontal rules */

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  margin-top: 0!important;
  margin-bottom: calc(.25*var(--spacing-vertical))!important;
  margin-left: auto;
  margin-right: auto;
  border-style: none;
  border-bottom: 2px solid var(--color-highlight);
  clear: both;
}

/* headlines */

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-family: var(--font-family);
  font-weight: normal;
  margin-bottom: calc(.33*var(--spacing-vertical))!important;
  letter-spacing: normal;
  line-height: 1.3;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 1em;
}

/* images and figures */

img {
  border-style: none;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
  box-sizing: border-box;
}

figure {
  text-align: center;
  margin: 0 0 1em;
}

figcaption,
figcaption > a {
  color: var(--color-foreground-low-contrast);
  font-size: 14px;
  line-height: var(--line-height-body);
  margin-top: 10px;
  margin-bottom: var(--spacing-unit);
  text-align: center;
  border-bottom-color: transparent;
}

.alignleft figcaption,
.alignright figcaption {
  margin-bottom: 0;
}

/* p */
p {
  line-height: var(--line-height-body);
  margin-top: 0!important;
  margin-bottom: calc(.333*var(--spacing-vertical))!important;
}

p.has-background {
  padding: var(--spacing-unit);
}

p.has-text-color a {
  color: var(--color-foreground);
}

/* nav */

nav {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--color-foreground);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0 !important;
}

@media only screen and (max-width: 481px) {
  nav {
    width: 100%;
  }
}

nav > div {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: calc(4* var(--spacing-unit)) var(--spacing-unit) var(--spacing-horizontal);
  background-color: var(--color-background);
  overflow-x: hidden;
  overflow-y: scroll;
  transition: all .15s ease-in-out;
  transform: translateY(var(--spacing-vertical));
}

@media only screen and (max-width: 481px) {
  nav > div {
    z-index: 499;
  }
}

@media only screen and (min-width: 482px) {
  nav {
    position: relative;
    display: flex;
    justify-content: right;
    margin-top: calc( var(--spacing-vertical) * 1.5);
  }
  nav > div {
    visibility: visible;
    opacity: 1;
    position: relative;
    padding: 0;
    background-color: transparent;
    overflow: initial;
    transform: none;
  }
}

nav div > ul {
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  max-width: none;
  padding-left: 0;
  position: relative;
}

nav div > ul li {
  display: block;
  position: relative;
  width: 100%;
  z-index: 1;
}

nav div > ul li:hover,
nav div > ul li:focus-within {
  cursor: pointer;
  z-index: 99999;
}

@media only screen and (min-width: 482px) {
  nav div > ul li {
    display: inherit;
    width: inherit;
  }
}

/* selection colouring */

::selection {
  background-color: var(--color-text-selection);
}

::-moz-selection {
  background-color: var(--color-text-selection);
}

/* .entry-content */

.entry-content p {
  word-wrap: break-word;
}

.entry-content {
  display: table;
  margin-top: var(--spacing-unit);
}

@media only screen and (min-width: 482px) {
  .entry-content {
    margin-top: var(--spacing-vertical);
  }
}

/* .columns */
.columns {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap!important;
}

@media only screen and (min-width: 782px) {
  .columns {
    flex-wrap: nowrap!important;
  }
}

.columns {
  align-items: normal!important;
}

:where(.columns) {
  margin-bottom: 1.75em;
  gap: 2em;
}

.columns > :is(*, div) {
  margin: 0;
}

/* .column */
.column {
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 781px) {
  .column {
    flex-basis: 100% !important;
  }
}

@media (min-width: 782px) {
  .column {
    flex-grow: 0;
  }
}

/* .site */

.site *:focus {
  outline-width: 1px;
  outline-style: dotted;
  outline-color: var(--color-highlight);
}

/* .site-info and .site-name */

.site-info {
  color: var(--color-foreground);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--line-height-body);
}

@media only screen and (min-width: 822px) {
  .site-info {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.site-info:after {
  content: "";
  display: table;
  clear: both;
}

.site-name {
  font-weight: bold;
}

/* .nav-svg-icon */
.nav-svg-icon {
  display: inline-block;
  fill: currentColor;
  vertical-align: middle;
  margin-left: calc(0.25 * var(--spacing-unit));
}

/* .screen-reader-text */

.screen-reader-text {
  /* Text meant only for screen readers. */
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-background);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-foreground);
  display: block;
  font-size: 18px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* .menu-button-container */

.menu-button-container {
  display: none;
  justify-content: space-between;
  margin: 0;
  left: 0;
  right: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

@media only screen and (max-width: 481px) {
  .menu-button-container {
    display: block;
    width: auto;
  }
}

/* .dropdown-icon */

.dropdown-icon {
  display: flex;
  align-items: center;
}

.dropdown-icon.open-menu .nav-svg-icon {
  position: relative;
  top: -1px;
}

/* .menu-item */

.menu-item {
  padding: calc(0.333 * var(--spacing-unit)) 0;
}

@media only screen and (min-width: 482px) {
  .menu-item {
    display: flex;
    align-items: center;
    padding: calc(0.666 * var(--spacing-unit));
  }
}

/* .hide-visually */

.hide-visually {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* .navigation-open */
/* This class is only added by js/mobile-navigation.js */

.navigation-open #close-menu {
  display: flex;
}

.navigation-open #open-menu {
  display: none;
}

.navigation-open .menu-container {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* .lock-scrolling */
/* This class is only added by js/mobile-navigation.js */

.lock-scrolling .menu-button-container > .button {
  position: fixed;
  top: 0;
  right: 0;
}

@media only screen and (max-width: 481px) {
  .lock-scrolling .site {
    left: 0;
    max-width: 100%;
    position: fixed;
    right: 0;
  }
}

/* Email obfuscation */
.obfuscated-email-text > span:nth-child(2) {
  display: none;
}

/* Printing */
@media print {
  /* Margins */
  @page {
    margin: 2cm;
  }
  /* Fonts */
  body {
    font: 13pt 'Fira Sans', Helvetica, sans-serif;
    line-height: 1.3;
    background: #fff !important;
    color: #000;
  }
  h1 {
    font-size: 24pt;
  }
  h2, h3, h4 {
    font-size: 14pt;
    margin-top: 25px;
  }
  /* Page breaks */
  a {
    page-break-inside: avoid;
  }
  blockquote {
    page-break-inside: avoid;
  }
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  img {
    page-break-inside: avoid;
    page-break-after: avoid;
  }
  ol, ul {
    page-break-before: avoid;
  }
  /* Links */
  a:link, a:visited, a {
    background: transparent;
    font-weight: bold;
    text-decoration: underline;
    text-align: left;
  }
  a {
    page-break-inside: avoid;
  }
  a[href^=http]:after {
    content: " < " attr(href) "> ";
  }
  /* Visibility */
  .site-header, footer {
    display: none;
  }
}
