*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --tag-fontStack:
      ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    /* Tech tags - blue */
    --tag-fgColor: #478be6;
    --tag-bgColor: #4184e41a;
    --tag-hoverColor: #4184e433;
  
    /* Neutral links */
    --linkki-bgColor: #6b72801a;
    --linkki-hoverColor: #6b728033;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5rem;
  font-family: "Roboto Mono", ui-monospace, system-ui, monospace;
  font-weight: 300;
  word-spacing: -0.15em;
  margin: 0;
  overflow-x: hidden;
}

main {
  width: 100vw;
  margin: 8px;
}

article {
  margin: 0 auto;
  max-width: 75ch;
  padding-right: 1.25rem;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2rem;
  font-weight: 400;
}

h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
}

h3 {
  margin-block-end: 0;
  font-size: 1rem;
  font-weight: 400;
}

img,
picture {
  max-width: 80%;
  display: block;
  margin: 0 auto;
}

p {
  word-wrap: break-word;
}

svg {
  top: 0;
  left: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

line {
  stroke-width: 0.2rem;
  stroke: rgb(0, 0, 0);
  stroke-linecap: round;
  stroke-dasharray: 22 10;
}

.techs > span {
  display: inline-block;
  font: 1em var(--tag-fontStack);
  /* word-break: break-all; */
  color: var(--tag-fgColor);
  background-color: var(--tag-bgColor);
  text-decoration: none;
  border-radius: 6px;
  padding: 0.2rem;
  margin: 0.2rem 0;
}

.techs > span:hover {
  background-color: var(--tag-hoverColor);
}

.linkki,
.linkki:visited {
  background-color: var(--linkki-bgColor);
  text-decoration: none;
  padding: 0.2rem;
  border-radius: 5%;
}

.linkki:hover {
  background-color: var(--linkki-hoverColor);
}

.ankkuri {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-decoration: none;
  font-size: 1.5rem;
}

.ankkuri:hover {
  opacity: 1;
}

.dot {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background-color: rgb(88, 79, 79);
  border-radius: 50%;
  transform: translate(-2rem, 1rem);
}

#navbar {
  position: fixed;
  width: 15rem;
  height: 10rem;
  right: 1rem;
  top: 1rem;
  display: flex;
  flex-flow: column nowrap;
}

#navbar > * {
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

#print-to-pdf {
  cursor: pointer;
}

section:not(:last-child) {
  border-bottom: 1px solid black;
}

section > .content-area-h2 {
  display: flex;
  justify-content: space-between;
}

section > .content-area-h2 > div:first-of-type {
  color: rgba(87, 83, 78, 1);
}

.content-area-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media screen {
  .show-only-on-print {
    display: none;
  }
}

@media only screen and (max-width: 1200px) {
  #navbar {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  svg,
  line,
  .dot {
    display: none;
  }
}

@media print {
  svg,
  line,
  .dot,
  #navbar {
    display: none;
  }

  @page {
    size: A4 portrait;
    margin: 1rem 1mm 0 5mm;
  }

  .pdf-pagebreak {
    page-break-before: always;
  }

  a,
  a:visited {
    padding: 0;
    text-decoration: none;
  }

  .show-only-on-screen {
    display: none;
  }

  img {
    max-width: 75%;
  }

  /* most browsers will not print background colors or images */
  .highlighted {
    background-color: transparent;
    font-weight: bold;
  }

  .techs > span {
    display: inline !important;
    font: inherit !important;
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .techs > span:hover {
    background-color: transparent !important;
  }
}
