:root {
    /* Set sans-serif & mono fonts */
  --font-accent: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
  --font-text: Noto Sans, system-ui, serif;
  --font-emoji: Noto Color Emoji;
  --font-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  --font-serif: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;

  /* Nord palette */
  --aurora-1: #bf616a;
  --aurora-2: #d08770;
  --aurora-3: #ebcb8b;
  --aurora-4: #a3be8c;
  --aurora-5: #b48ead;
  --frost-1: #8fbcbb;
  --frost-2: #88c0d0;
  --frost-3: #81a1c1;
  --frost-4: #5e81ac;
  --snow-1: #d8dee9;
  --snow-2: #e5e9f0;
  --snow-3: #eceff4;
  --nord-1: #2e3440;
  --nord-2: #3b4252;
  --nord-3: #434c5e;
  --nord-4: #4c566a;

  /* Rainbow linear gradient */
  --rainbow: var(--bg-contrast), var(--bg-contrast) 10%, var(--frost-4) 10%, var(--frost-4) 20%, var(--frost-3) 20%, var(--frost-3) 30%, var(--aurora-5) 30%, var(--aurora-5) 40%, var(--aurora-1) 40%, var(--aurora-1) 50%, var(--aurora-2) 50%, var(--aurora-2) 60%, var(--aurora-3) 60%, var(--aurora-3) 70%, var(--aurora-4) 70%, var(--aurora-4) 80%, var(--frost-1) 80%, var(--frost-1) 90%, var(--frost-2) 90%, var(--frost-2);
  --rainbow-gradient: var(--bg-contrast), var(--frost-4), var(--frost-3), var(--aurora-5), var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-4), var(--frost-1), var(--frost-2);

    /* Default (light) theme */
  color-scheme: light;
  --bg: var(--snow-3);
  --bg-contrast: var(--nord-1);
  --bg-light: var(--snow-2);
  --bg-contrast-light: var(--nord-3);
  --text: var(--nord-3);
  --text-contrast: var(--snow-2);
  --accent: var(--frost-2);
  --text-accent: var(--nord-1);
}

/* Childs */
:nth-of-type(1) {
  --nth-child: 1
}
:nth-of-type(2) {
  --nth-child: 2
}
:nth-of-type(3) {
  --nth-child: 3
}
:nth-of-type(4) {
  --nth-child: 4
}
:nth-of-type(5) {
  --nth-child: 5
}
:nth-of-type(6) {
  --nth-child: 6
}
:nth-of-type(7) {
  --nth-child: 7
}

@page {
    size: A4 portrait;
    margin: 0;
    background: var(--bg);
}

/*** Global design ***/


html {
    height: auto;
  }

body {
  color: var(--text);
  font-size: 7.87pt;
  font-family: var(--font-text);
  line-height: 1.33;
  background-color: var(--bg);
  margin: 0;
  height: auto;
}

body {
    page-break-after:always;
}

body:after {
    page-break-before: always;
    content:"";
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-accent);
  font-variant: small-caps;
  font-size: 1.5rem;
  letter-spacing: 2px;
  transform: scale(1, .8);
}

a {
  color: inherit;
}

strong {
    font-weight: 700;
}
/* Layout */

header, main {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

header h1, header h2, header p, main article {
  width: 65%;
  margin: 0;
  padding: 0;
}

header ul, main aside {
  position: absolute;
  right: 0;
  width: 35%;
  margin: 0;
  padding: 0;
}

footer {
  display: none;
}

/** Page break ***/

h1, h2, h3 {
    page-break-after: avoid;
    page-break-inside: avoid;
}

p,ul,div {
    page-break-before: avoid;
    page-break-inside: avoid;
}

/* Header */
header {
  margin-top: 2em;
  padding: 0;
}

header h1 {
  font-weight: 400;
  font-size: 1.6em;
  letter-spacing: 7px;
  line-height: .8;
  text-indent: .7em hanging;
  text-align: center;
}

header h1:first-line {
  overflow: hidden;
  font-size: 2.6em;
  font-weight: 600;
  letter-spacing: 1px;
}

header h2 {
  font-size: 2em;
  text-align: center;
}

header ul {
  bottom: 1em;
  right: 1em;
  width: calc(35% - 2em);
  list-style: none;
}

header ul li {
  font-size: 1em;
  background: var(--bg-light);
  margin: .5em 0;
  padding: .5em;
  border-radius: 5px;

}
header ul li::first-letter {
  padding: 0 .2em 0 .5em;
  filter: grayscale(0.8);
  font-family: var(--font-emoji);
}

header ul li a {
    text-decoration: none;
}


header p {
  background-color: var(--accent);
  color: var(--text-accent);
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1.3;
  padding: 1.8em 1em 1.2em 2em;
  width: calc(65% - 3em);
  margin-bottom: 0;
}

/* Body */

main h2 {
  position: relative;
  display: flex;
  font-size: 2em;
  margin-bottom: 0;
}
main h2::before {
  filter: grayscale(0.8);
  margin-top: -.1em;
  margin-right: .5em;
  transform: unset;
  font-family: var(--font-emoji);
}
main h2::after {
  content: "";
  display: inline-block;
  border-bottom: 5px solid var(--text);
  flex: 1 1 auto;
  height: calc(1em - 7px);
  margin-left: 5px;
}
h2#work::before {
  content: "\1F4BC";
}
h2#tech::before {
  content: "\1F527";
}
h2#commu::before {
  content: "\1F465";
}
h2#ref::before {
  content: "\1F4AC";
}
h2#prof::before {
  content: "\1F464";
}
h2#perso::before {
  content: "\1FAAA";
}
h2#edu::before {
  content: "\1F393";
}
h2#core::before {
  content: "\1F9EC";
}
h2#int::before {
  content: "\1F3AE";
}
h2#tech+p {
  margin: -1em 0 .5em;
  font-size: 0.8em;
  margin-left: 5.5em;
}

main article {
  padding: 1em 2em;
  width: calc(65% - 4em);
}

main article h3 {
  font-size: 1.5em;
  margin-top: .8em;
  margin-bottom: 0;
}
main article h3+p {
  margin-top: 0;
  line-height: 1;
}
main article div {
  display: flex;
  flex-wrap: wrap;
  font-size: .9em;
  padding: 0;
  justify-content: flex-start;
}
main article div hr {
  display: none;
}
main article div ul {
  position: relative;
  flex: 1 1 calc(50% - 2.4em - 10px);
  border-radius: 5px;
  min-height: 22pt;
  --angle : calc(90deg + (45deg * var(--nth-child)));
  border-image: linear-gradient(var(--angle), var(--rainbow-gradient)) 1% / 1px;
  margin: .5em .2em;
  padding: 1em;
  list-style: "· ";
}
main article div ul li {
  margin-left: 1em;
}
main article div ul li:first-child {
  position: absolute;
  top: -.8em;
  left: .8em;
  list-style: none;
  margin-left: 0;
  padding: 0 .5em;
  background-color: var(--bg);
  font-weight: lighter;
  font-size: 10px;
}

main aside {
  top: 0;
  background-color: var(--bg-contrast);
  color: var(--text-contrast);
  padding: 1em 2em 3em;
  width: calc(35% - 4em);
}

main aside ul {
  list-style: none;
  padding-left: 0;
}

main aside div>p {
  position: relative;
  font-size: 0.8em;
  font-weight: lighter;
  text-align: right;
  margin: 0 1em;
}
main aside div>p strong {
  background-color: var(--bg-contrast);
  padding: 0 .2em .2em;
  font-weight: 100;
}
main aside div>p:after {
  content: "";
  display: block;
  border-bottom: 1px solid var(--bg-contrast-light);
  margin-top: -.5em;
  margin-right: -1em;
}
main aside div ul {
  --font-check: calc(1.3em - ( 0.1em * var(--nth-child)));
  font-size: calc(1.3em - ( 0.1em * var(--nth-child)));
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin: 0.2em 0;

}
main aside div ul li {
  display: inline-block;
  text-align: center;
  margin: .2em;
  background-color: var(--bg-contrast-light);
  line-height: .8;
  padding: .5em;
  border-radius: 5px;
}
main aside div ul li em {
  font-size: 0.5em;
}

/* Footer */
footer {
  margin: 2em;
  padding-top: 1em;
  text-align: center;
  border-top: 1px solid var(--accent);
}

/*** ornaments ***/
header p {
  position: relative;
  border-radius: 0 10px 0 0;
}

header p:after {
  content: "";
  display: block;
  position: absolute;
  width: 100px;
  height: 10px;
  background: linear-gradient(-90deg, var(--rainbow));
  top: -5px;
  right: -5px;
  border: 5px solid var(--bg);
  border-radius: 0px 100px 0 100px;
}


main aside {
  border-radius: 0 0 0 10px;
}
main aside > *:last-child {
  position: relative;
  margin-bottom: 0;
}

main aside > *:last-child:after {
  content: "";
  display: block;
  position: absolute;
  left: calc(-2em - 5px);
  bottom: calc(-3em - 5px);
  width: 100px;
  height: 10px;
  position: relative;
  background: linear-gradient(-90deg, var(--rainbow));
  border: 5px solid var(--bg);
  border-radius: 0 200px 0 200px;
}


