@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-Regular.woff2) format('woff2');
  font-feature-settings: 'zero';
}

@font-face {
  font-family: 'Times Numeral Roman';
  src: local('Times New Roman');
  unicode-range: U+30-39; /* 0-9 */
}

:root {
  --dark: hsl(0deg, 0%, 8%);
  --light: hsl(0deg, 0%, 90%);
  --grey: hsl(0deg, 0%, 35%);
  --primary: hsl(260deg, 100%, 60%);
  --highlight-selection-background-color: hsl(0deg, 0%, 45%);

  --heading-font: 'Times Numeral Roman', Georgia, 'Times New Roman', Times, serif;
  --body-font: Verdana, Tahoma, Arial, sans-serif;

  --measure: 60ch;

  --bg-color: var(--light);
  --text-color: var(--dark);
  --highlight-bg-color: var(--dark);
  --highlight-text-color: var(--light);
  --copyright-color: var(--grey);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: hsl(0deg, 0%, 8%);
    --text-color: hsl(0deg, 0%, 80%);
    --highlight-bg-color: hsl(0deg, 0%, 85%);
    --highlight-text-color: hsl(0deg, 0%, 0%);
    --copyright-color: hsl(0deg, 0%, 60%);
    --primary: hsl(250deg, 100%, 75%);
  }
}

body {
  font-size: 1.2rem;
  line-height: 1.6;
  text-rendering: optimizeSpeed;
  background-color: var(--bg-color);
  font-family: var(--body-font);
  color: var(--text-color);
  -moz-osx-font-smoothing: grayscale;
  padding: 1rem 1rem 2rem 1rem;
  margin: 0px;
  word-wrap: break-word;
  counter-reset: headingCounter;
  font-weight: 400;
}

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

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

code::selection {
  background-color: var(--highlight-selection-background-color);
}

main,
footer {
  width: 100%;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  margin-top: 0.5rem;
}

a {
  color: var(--text-color);
  text-decoration-thickness: 0.2ex;
  text-underline-offset: 0.3ex;
}

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

a:focus {
  outline-width: 0.2ex;
  outline-offset: 0.3ex;
  outline-style: dashed;
}

a[target="_blank"]::after {
  content: "◹";
  padding-left: 5px;
  font-size: 1em;
  vertical-align: bottom;
}

ul {
  --space: 0.5rem;
  margin-top: 0.5rem;
  padding: 0;
  margin: 0;
  margin-top: 1rem;
  list-style: none;
  max-width: 100%;
  padding-left: 1.2rem;
}

ul li {
  position: relative;
  list-style: square;
}

ul li + li,
ol li + li {
  margin-top: 1rem;
}

p {
  margin-block-end: 1.8rem;
  margin-block-start: 1.8rem;
}

h1,h2,h3 {
    font-family: var(--heading-font);
    font-feature-settings: 'tnum';
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 4rem;
    text-wrap: balance;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
}

article {
    max-width: 59ch;
}

time {
  font-size: 1rem;
}

dt {
  display: inline-block;
  font-weight: 700;
  margin-top: 1em;
}

dd {
  margin-left: 2rem;
}

img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  background-color: gray;
  border: 3px solid;
}

svg {
  display: block;
  width: auto;
  max-width: 100%;
}

pre {
  font-family: 'IBM Plex Mono', 'courier new', monospace;
  border-width: 5px;
  border-style: solid;
  font-size: 0.8em;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  color: var(--text-color);
  padding: 0;
}

code {
  color: white;
  background-color: var(--text-color, gray);
  color: var(--bg-color, white);
  padding: 0 0.2rem;
  font-family: 'IBM Plex Mono', 'courier new', monospace;
}

code a {
  color: white;
  color: var(--bg-color, white);
}

code a:hover,
code a:focus {
  color: var(--bg-color, white);
  background-color: var(--text-color, black);
}

p > code {
  text-wrap: balance;
  display: inline-block;
  font-size: 0.8em;
}

nav a {
  font-size: 1.2rem;
}

.page-home h1 {
  font-size: 2rem;
  margin-block-start: 6ex;
  margin-block-end: 5ex;
  text-wrap: nowrap;
}
@media (max-width: 480px) {
  .page-home h1 {
    font-size: 1.6rem;
    margin-block-end: 5ex;
  }
}

.page-home h1::after {
  content: ";";
  display: inline-block;
  font-weight: 700;
}

.page-home h1 span {
  margin-inline-start: -0.1ch;
}

.page-home p.intro {
  font-family: var(--heading-font);
  font-size: 3rem;
  text-wrap: balance;
  max-width: 33ch;
  line-height: 1.3;
  margin-block: 1ex;
}

@media (max-width: 480px) {
  .page-home p.intro {
    font-size: 2.4rem;
  }
}

.page-home p.intro em {
  font-weight: 700;
}

.page-home ul {
  padding-left: 0;
}

.page-home ul li {
  list-style: none;
  display: flex;
  align-items: baseline;
}

.page-home ul.projects li {
  flex-direction: column;
}

.page-home ul li small {
  margin-right: 1rem;
}

.page-home p, 
.page-home li, 
.page-home ul,
.page-home ol {
  max-width: var(--measure);
}

.page-home h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-top: 3rem;
}

.page-home ul {
  padding-left: 0;
}

.page-home ul li {
    margin-top: 0.7rem;
    list-style: none;
    display: flex;
    align-items: baseline;
}

.page-home ul li small {
  white-space: nowrap;
}

ul.skills li {
  display: inline-block;
}

figcaption {
  margin-top: 1rem;
}

/* Utils */
.stack, .stack-recursive {
  --space: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > *, .stack-recursive * {
  margin-top: 0;
  margin-bottom: 0;
}

.stack > * + *, .stack-recursive * + * {
  margin-top: 1rem;
  margin-top: var(--space, 1rem);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fadeOut 0.5s ease both;
}
::view-transition-new(root) {
  animation: fade 0.5s ease both;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.cv-page {
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.1rem;
}

.cv-page h1,
.cv-page h2,
.cv-page h3,
.cv-page h4 {
  font-family: Verdana, Arial, sans-serif;
}

.cv-page h1 {
  font-size: 1.5rem;
}

.cv-page h2 {
  font-size: 1.4rem;
}

.cv-page h3 {
  font-size: 1.2rem;
}


@media print {
  
  @page {
    margin: 2cm 1cm;
  }

  .cv-page nav {
    display: none;
  }

  .cv-page body {
    margin: 0;
    font-size: 12px;
    line-height: 1em;
    font-size: 12pt;
  }

  .cv-page article {
    max-width: 100%;
  }

  .cv-page p {
    margin: 1em;
    font-size: 12pt;
    line-height: 1.2;
  }

  .cv-page h1,
  .cv-page h2,
  .cv-page h3,
  .cv-page h4 {
    margin-top: 1em;
  }

  .cv-page h1 {
    font-size: 1.5em;
  }

  .cv-page h2 {
    font-size: 1.3em;
  }

  .cv-page h3 {
    font-size: 1em;
  }

  .cv-page time {
    font-size: 1em;
  }

  .cv-page p {
    margin-top: 1em;
    margin-bottom: 0;
    break-inside: avoid;
  }

  .cv-page a::after,
  .cv-page a[target="_blank"]::after {
    content: " (" attr(href) ") ";
    display: inline-block;
    text-decoration: none;
  }

  .cv-page a.nolink::after,
  .cv-page a.nolink[target="_blank"]::after {
    content: "";
  }

  .cv-page ul,
  .cv-page ol {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 5px;
  }

  .cv-page ul > li + li, 
  .cv-page ol > li + li {
    margin-top: 1em;
  }

  .cv-page li {
    display: inline-block;
    padding-right: 12px;
  }

  .cv-page li:before {
    content: "▪";
    padding-right: 6px;
  }

  .cv-page footer {
    display: none;
  }
}
