/* Fonts (and pseudo-fonts) */
@import url('https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://www.nerdfonts.com/assets/css/webfont.css');

body { font-family: 'Fira Sans', sans-serif; }
code { font-family: 'Fira Code', monospace; }
h2, h3, h4 { font-family: 'Fira Sans Condensed', sans-serif; }


/* Basic colours and layout */
body { min-width: 275px;}
header, footer {
  background-color: lavender;
}
div.content { margin: 8px 16px; }


/* header */
header {
  padding-top: 8px;
  padding-bottom: 4px;
  padding-left: 8px;
  color: oklch(from rebeccapurple calc(l + 0.2) c h);
}
header h1,
header h2 {
  display: inline flow-root;
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Fira Code', monospace;
}
header strong {
  color: rebeccapurple;
  white-space: nowrap;
}
header h2::before {
  content: "\f05e7";
  font-size: 1.75em;
  font-family: 'NerdFontsSymbols Nerd Font';
  font-style: normal;
  font-weight: normal;
}
@media (max-width: 717px) {
  header h2 {
    display: block;
  }
  header h2::before {
    content: "";
  }
}


/* Sticky footer */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
  padding-top: 4px;
  padding-bottom: 6px;
  font-size: 80%;
}


/* footer license layout */
footer .license {
  display: flex;
  flex-direction: row;
  justify-content: safe center;
  align-items: flex-start;
}
footer .license i.nf {
  margin-right: 2px;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 200%;
}
footer .license p {
  margin-top: 0;
  margin-left: 5px;
}
footer .license p span {
  display: inline flow-root;
}
@media screen and (max-width: 889px) {
  footer .license p { width: 44em; }
}

/* Headings */
.content h2 {
  color: rebeccapurple;
  border-bottom: solid 1px;
}

/* Links */
a {
  color: rebeccapurple;
  white-space: nowrap;
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}

/* Project(s) */
dl.projects dt {
  font-weight: bold;
}
dl.projects dt .links {
  float: right;
  font-weight: normal;
}
dl.projects dt .links a {
  color: oklch(from rebeccapurple calc(l + 0.2) c h);
  margin-left: 8px;
}
dl.projects dd {
  margin-inline: 1em;
}
