
/* Just a tiny bit of css, no need for frameworks / libraries etc. */

:root {
  --font-afacad: "Afacad", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-ubuntu: "Ubuntu", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

  --font-ubuntu-weight-400: 400;
  --font-ubuntu-weight-700: 700;

  --color-text: #f1f2ed;
  --color-text-60: rgba(255,255,255,0.6);
  --color-text-10: rgba(255,255,255,0.1);

  --color-gray-200: #efefef;
  --color-white: #fff;

  --color-primary-100: #CAD2C5;
  --color-primary-400: #85A98D;
  --color-primary-500: #517970;
  --color-primary-600: #364F53;
  --color-primary-700: #2F3D46;
  --color-primary-700-80: rgba(47, 61, 70, 0.8);
}


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* we define all HTML tags to have no padding, no margin, no border, the same font-size and the same alignments */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  vertical-align: baseline;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-ubuntu), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.5;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  font-family: inherit;
  line-height: inherit;
  margin: 0;
}

html, body {
  background-color: var(--color-primary-700);
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  font-family: var(--font-afacad);
  font-weight: 500;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: var(--font-ubuntu), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

html {
  font-size: 16px; /*1rem*/
}

html,
body {
  height: 100%;
}

/* Set core body defaults */
body {
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  color: var(--color-text);
  overflow-x: hidden;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a,
button {
  cursor: pointer;
}

/* ================================= */

.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

section.heading {
  padding: 0 1rem;
}

section.heading  p {
  padding: 0;
}

.logo {
  font-size: 3rem;
  font-family: var(--font-afacad);
}

.logo::after {
  content: '.';
  color: var(--color-primary-500);
}

.language-switch {
  position: absolute;
  display: flex;
  top: 1rem;
  right: 1rem;
  height: 46px;
  border-radius: .25rem;
  overflow: hidden;
  gap: 1px;
  border: 1px solid var(--color-primary-500);
  z-index: 10;
}

.language-switch a {
  flex: 1;
  height: inherit;
  padding: 0 1rem;
  line-height: 46px;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  text-decoration: none;
  color: var(--color-primary-400);
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.language-switch a.active {
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-primary-600);
  pointer-events: none;
}

.language-switch a:hover {
  color: var(--color-text);
  background-color: var(--color-primary-600);
}

.profession {
  font-size: 1.5rem;
  /*color: var(--color-primary-100);*/
}

.profession .specialty {
  display: block;
  font-size: 1.2rem;
}

.tagline {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--color-text-60);
}

.photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: .25rem solid var(--color-primary-500);
  margin-top: 2rem;
}
.copy {
  display: block;
  margin: 1rem;
  font-size: 1rem;
  color: var(--color-text-60);
}

section.heading .copy {
  display: none;
  margin: 1rem 0;
}

.page-navigation {
  display: none;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scls {
  margin: 3rem 0 0;
}

.scls a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text-60);
  transition: color 0.3s ease-out;
}

.scls a + a {
  margin-left: 1rem;
}

.scls a svg {
  width: 26px;
  height: 26px;
}

.scls a svg.email {
  transform: scale(1.3);
  fill: currentColor;
}

.scls a:hover {
  color: var(--color-text);
}

ul.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  list-style: none;
  padding: 0 1rem;
  margin: 1rem 0;
}

ul.skills li {
  display: block;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-primary-600);
  color: var(--color-primary-400);
}

section {
  margin-bottom: 3rem;
}

section:last-of-type {
  margin-bottom: 0;
}

section h2 {
  position: sticky;
  top: 0;
  width: 100%;
  font-size: 1.8rem;
  padding: 0.25rem 1rem;
  background-color: var(--color-primary-700-80);
  backdrop-filter: blur(8px);
}

section h2 + * {
  margin-top: 1.5rem;
}

section h3 {
  font-size: 1.2rem;
  padding: 0.25rem 1rem;
}

section p {
  font-size: 1.2rem;
  color: var(--color-text-60);
  padding: 0 1rem;
}

section p mark {
  color: var(--color-text);
  background-color: transparent;
}

section p + p {
  margin-top: 1.5rem;
}

section.experience {
  margin-bottom: 2rem;
}

ol.experience-list {
  list-style: none;
  padding: 0 1rem;
}

ol.experience-list li .experience-timeline {
  display: block;
  color: var(--color-text-60);
  font-size: 1rem;
}

ol.experience-list li .experience-profession {
  display: block;
  color: var(--color-text);
  font-size: 1.2rem;
}

ol.experience-list li .experience-description {
  display: block;
  color: var(--color-text-60);
  font-size: 1rem;
  padding: 0;
  margin: 0.5rem 0
}

ol.experience-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-primary-600);
}

ol.experience-list li a {
  color: var(--color-primary-400);
  text-decoration: underline solid rgba(0,0,0,0);
  transition: text-decoration .3s ease-out;
}

ol.experience-list li a:hover {
  text-decoration: underline solid currentColor;
}

@media screen and (min-width: 1024px) {
  .container {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    align-items: start;
  }

  .container section.heading {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
  }

  section.heading .photo {
    margin-bottom: auto;
  }

  section.heading .scls {
    margin-bottom: 1rem;
  }

  .copy {
    display: none;
  }

  section.heading .copy {
    display: block;
  }

  .container section:not(.heading) {
    grid-column: 2;
  }

  .page-navigation {
    position: relative;
    display: block;
    margin: 3rem 0 0;
  }

  .page-navigation li {
    list-style: none;
  }

  .page-navigation li a {
    position: relative;
    display: inline-block;
    color: var(--color-text-60);
    text-decoration: none;
    padding: .25rem 0;
    transition: color 0.3s ease-out;
  }

  .page-navigation li a:hover {
    color: var(--color-text);
  }

  .page-navigation li.active a {
    color: var(--color-text);
  }

  .page-navigation .indicator {
    position: absolute;
    top: 0;
    left: -1rem;
    width: 10px;
    height: 10px;
    line-height: 8px;
    font-size: 1rem;
    color: var(--color-primary-500);
    transform: translateY(11px);
    opacity: 0;
    transition: transform 0.15s ease-out;
    animation: fadeIn 0.4s ease-out forwards;
  }
}

@keyframes fadeIn {
  0%, 80% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (min-width: 1024px) and (min-height: 100px) and (max-height: 299px){
  section.about {
    padding-top: 1rem;
  }

  section.heading .tagline {
    display: none;
  }

  section.heading .photo, section.heading .page-navigation {
    display: none;
  }

  section {
    margin-bottom: 2rem;
  }

  section.heading {
    margin-bottom: 0;
  }

  section h2 + * {
    margin-top: 0.8rem;
  }

  section p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) and (min-height: 300px) and (max-height: 799px) {
  section.about {
    padding-top: 1rem;
  }

  section.heading .tagline {
    font-size: 1rem;
  }

  section.heading .photo, section.heading .page-navigation {
    display: none;
  }

  section {
    margin-bottom: 2rem;
  }

  section.heading {
    margin-bottom: 0;
  }

  section h2 + * {
    margin-top: 0.8rem;
  }

  section p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) and (min-height: 600px) and (max-height: 799px) {
  section.heading .photo {
    display: block;
  }
}

@media screen and (min-width: 1024px) and (min-height: 720px) {
  section.heading .page-navigation {
    display: block;
  }

  section.heading .tagline {
    font-size: 1rem;
  }

  section.about {
    padding-top: 4rem;
  }

  section {
    margin-bottom: 4rem;
  }

  section.heading {
    margin-bottom: 0;
  }

  section h2 + * {
    margin-top: 0.8rem;
  }

  section p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) and (min-height: 800px) {
  .logo {
    margin-top: 1rem;
  }

  section.about {
    padding-top: 5rem;
  }
}

/*@media screen and (min-width: 1024px) and (min-height: 400px) {*/


/*  section.about {*/
/*    padding-top: 4rem;*/
/*  }*/
/*}*/

