:root {
  --accent-color: rgba(235, 120, 26, 0.6);
  --accent-color-2: #e99d5f99;
  --nav-height: 50px;
  --diamond-colors-1: rgba(94, 93, 93, 0.2);
  --diamond-colors-2: rgba(235, 181, 137, 0.2);
}
* {
  scroll-behavior: smooth;
  scroll-margin: var(--nav-height);
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.75);
  margin: 0;
  font-family: "Montserrat", sans-serif;
}
/* general */
.accent {
  color: var(--accent-color);
}
.lang-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
/**** navigation ****/
nav {
  top: 0;
  z-index: 10;
  position: fixed;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

nav ul {
  padding: 2rem;
  height: var(--nav-height);
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 1rem;
  list-style: none;
}
nav ul li:first-of-type {
  margin-left: auto;
}
nav ul li a {
  font-size: 1.2rem;
}

/* header */
header {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
}
header h1,
header h2 {
  /* color: rgba(255, 255, 255, 0.8); */
  letter-spacing: 0.5rem;
  margin: 1rem;
}
header h1 {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
}
header h2 {
  font-family: "Playfair Display", serif;
  font-family: "Ubuntu Mono", monospace;
  /* text-transform: uppercase; */
}
/**** Section ****/
section {
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
section > div {
  max-width: 80vw;
}

/* links */
a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
  z-index: 5;
}
a:hover {
  color: var(--accent-color);
}
a:active {
  color: var(--accent-color);
}

/* about */
.about-text {
  margin-top: 1rem;
  font-size: 1.3rem;

  line-height: 2rem;
}
/* projects */

.project {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1.2rem;
  flex: 1 1 0;
}
.project-img-container {
  display: grid;
  justify-content: center;
}

.project img {
  width: 300px;
  height: auto;
}
.project-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.project-info p {
  line-height: 1.5em;
}

.project-links {
  display: flex;
  justify-content: center;
  margin: 1rem;
  gap: 1rem;
}
.divider {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.note {
  font-size: 0.9em;
  font-style: italic;
  display: block;
}
/* Contact */
section[id="contact"] {
  text-align: center;
}
.contact-links {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.contact-deco {
  position: absolute;
  height: 100%;
  width: 30%;
  right: 0;
  top: 0;
}
/* media */

@media screen and (min-width: 1000px) {
  section > div {
    max-width: 50vw;
  }
  header h1 {
    font-size: 4rem;
  }
  .project {
    flex-direction: row;
  }
  nav ul li a {
    font-size: 1.5rem;
  }
}

/* override */
.fa-brands,
.fa-regular,
.fa-solid {
  color: var(--accent-color);
}
.fa-brands:hover,
.fa-regular:hover,
.fa-solid:hover {
  color: rgba(0, 0, 0, 0.6);
}

/* diamonds */

.left {
  left: 20%;
}
.top {
  top: 20%;
}
.right {
  right: 25%;
}
.down {
  bottom: 35%;
}

.diamond {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-bottom-color: var(--diamond-colors-1);
  position: absolute;
}

.diamond.small {
  position: relative;
  border-width: 20px;
}
.diamond.small:after {
  border-width: 20px;
  left: -20px;
  top: 20px;
}

.diamond.color {
  border-bottom-color: var(--diamond-colors-2);
}
.diamond.color:after {
  border-top-color: var(--diamond-colors-2);
}
.diamond:after {
  content: "";
  position: absolute;
  left: -50px;
  top: 50px;
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-top-color: var(--diamond-colors-1);
}
.diamond-narrow {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-bottom: 70px solid var(--diamond-colors-2);
  position: absolute;
}
.diamond-narrow:after {
  content: "";
  position: absolute;
  left: -50px;
  top: 70px;
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-top: 70px solid var(--diamond-colors-2);
}
.diamond-bg {
  --s: 200px; /* control the size */
  --c1: #1d1d1d8e;
  --c2: #4e4f5163;
  --c3: #3c3c3c49;

  background: repeating-conic-gradient(
    from 30deg at 50%,
    #0000 0 120deg,
    var(--c3) 0 180deg
  );
  background-size: var(--s) calc(var(--s) * 0.577);
}
