/*COLORS*/
/*light mode colors*/
:root,
body{
  --bg: rgba(250,244,233,1);
  --text: rgba(57,55,51,1);
  --texta: rgba(92,89,82,1);
  --accent: rgba(231,226,217,1);
  --grid: rgba(57,55,51,0.05);
  --card: rgba(240,233, 218, 1);
  --fold: rgba(210,202,187,1);
}
/*dark mode colors*/
.dark-mode{
  --bg: rgba(30,28,26,1);
  --text: rgba(225,218,205,1);
  --texta: rgba(172,166,157,1);
  --accent: rgba(126,118,108,1);
  --grid: rgba(225,218,205,0.05);
  --card: rgba(42,39,35,1);
  --fold: rgba(56,52,47,1);
}


/*TRANSITIONS*/
body,
body::before,
.navigation,
.darkbutton,
.darkbutton .darkbutton-icon,
.navigation a,
#progress,
.default-form input,
.default-form button,
h1::before,
h1::after,
.skill-item img,
.skill-item::before,
.skill-item::after,
.project-link,
.contact-item,
.contact-item img,
.contact-item::before,
.contact-item::after{
  transition:
          background-color 0.3s ease,
          color 0.3s ease,
          border-color 0.3s ease,
          box-shadow 0.3s ease,
          fill 0.3s ease,
          opacity 0.3s ease,
          transform 0.3s ease;
}


/*FONTS*/
@font-face{
  font-family: "Lemon-Tuesday";
  src: url("/fonts/lemon-tuesday.regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Children Sans";
  src: url("/fonts/children-sans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/*UNIVERSAL DEFAULTS*/
html{
  scroll-padding-top: 110px;
}
body{
  font-family: "Children Sans","Georgia","Times","Times New Roman",serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}
a, a:visited, a:active{
  color: inherit;
  text-decoration: none;
}


/*FONTS*/
/*landing page title*/
h1{
  font-family: "Lemon-Tuesday";
  font-size: 60px;
  position: relative;
  display: inline-block;
  padding: 0;
  margin: 0;
  word-spacing: 75%;
}
/*section headers*/
h2{
  font-size: 36px;
  position: relative;
  display: inline-block;
}
/*navbar*/
h3{
  font-family: Arial;
  font-weight: normal;
  font-size: 24px;
  margin: 0;
  letter-spacing: 3%;
}
/*project headers*/
h4{
  font-size: 24px;
  margin: 0;
  letter-spacing: 3%;
}
/*content*/
p{
  font-size: 22px;
  text-align: justify;
  letter-spacing: 6%;
}


/*GRID BACKGROUND*/
body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          repeating-linear-gradient(
                  to right,
                  var(--grid),
                  var(--grid) 1px,
                  transparent 1px,
                  transparent 60px
          ),
          repeating-linear-gradient(
                  to bottom,
                  var(--grid),
                  var(--grid) 1px,
                  transparent 1px,
                  transparent 60px
          );
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}


/*HEADER*/
/*contains navbar*/
.header{
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1024px;
  padding: 0 5%;
  box-sizing: border-box;
  z-index: 1000;
  height: 60px;
}
/*navbar*/
.navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px 8px 12px;
  background-color: rgba(250,244,233,0.5);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(57,55,51,0.5);
  border-radius: 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dark-mode .navigation {
  background-color: rgba(30,28,26,0.6);
  border: 1px solid rgba(225,218,205,0.25);
}
.navigation a {
  box-shadow: inset 0 0 0 0 var(--text);
  padding: 0 0.25rem;
  margin: 0 15px -0.25rem 0;
  border-radius: 10px;
}
.navigation a:hover {
  color: var(--bg);
  box-shadow: inset 200px 0 0 0 var(--text);
}

/*dark mode toggle button*/
.darkbutton {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  border-radius: 8px;
  color: inherit;
  flex-shrink: 0;
}
.darkbutton::before {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background-color: rgba(57,55,51,0.5);
  margin-right: 20px;
  flex-shrink: 0;
}

.dark-mode .darkbutton::before {
  background-color: rgba(225,218,205,0.25);
}
.darkbutton .darkbutton-icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}
.darkbutton:hover .darkbutton-icon {
  opacity: 0.7;
}
/*scroll progress bar*/
#progress{
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: var(--text);
  z-index: 9999;
}


/*LANDING AREA*/
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
}

.hero-inner{
  width: 100%;
}


/*CONTENT AREA*/
.content{
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 25px;
  padding: 0 5%;
  box-sizing: border-box;
}


/*SKILLS GRID*/
.skills-wrap{
  margin: 30px 0 20px;
}
.skills-grid{
  display: grid;
  grid-template-columns: repeat(7,minmax(0, 1fr));
  gap: 18px 14px;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.skill-item{
  position: relative;
  width: clamp(56px,7vw,88px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  isolation: isolate;
}
.skill-item img{
  position: relative;
  z-index: 2;
  width: 52%;
  height: 52%;
  object-fit: contain;
  display: block;
  filter: saturate(0.92) contrast(0.96);
}
.skill-item::before,
.skill-item::after{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  pointer-events: none;
}
.skill-item::before{
  z-index: 0;
  border: 2px solid var(--texta);
  opacity: 0.72;
  transform: rotate(-2deg);
}
.skill-item::after{
  z-index: 1;
  inset: 0;
  border: 1.5px solid var(--texta);
  opacity: 0.42;
  transform: rotate(2deg) scale(1.04, 0.98);
}
.skill-item span,
.skill-item i{
  display: none;
}
.skill-item{
  background:
          radial-gradient(circle at center,rgba(250, 244, 233, 0.42) 0%,rgba(250, 244, 233, 0.18) 68%,transparent 70%);
}
.dark-mode .skill-item{
  background:
          radial-gradient(circle at center,rgba(30, 28, 26, 0.34) 0%,rgba(30, 28, 26, 0.14) 68%,transparent 70%);
}
/*circle variation 1*/
.skill-item:nth-child(6n+1)::before{
  inset: 2px 1px 3px 2px;
  border-radius: 58% 42% 55% 45% / 47% 58% 42% 53%;
  transform: rotate(-4deg) scale(1.02,0.97);
}
.skill-item:nth-child(6n+1)::after{
  inset: 0 2px 1px 0;
  border-radius: 49% 51% 43% 57% / 59% 41% 56% 44%;
  transform: rotate(3deg) scale(0.98,1.03);
}
/*circle variation 2*/
.skill-item:nth-child(6n+2)::before{
  inset: 1px 2px 2px 1px;
  border-radius: 45% 55% 48% 52% / 56% 44% 58% 42%;
  transform: rotate(2deg) scale(1.03,0.96);
}
.skill-item:nth-child(6n+2)::after{
  inset: 2px 0 0 2px;
  border-radius: 60% 40% 52% 48% / 45% 55% 43% 57%;
  transform: rotate(-3deg) scale(0.97,1.04);
}
/*circle variation 3*/
.skill-item:nth-child(6n+3)::before{
  inset: 0 1px 2px 2px;
  border-radius: 54% 46% 41% 59% / 51% 43% 57% 49%;
  transform: rotate(-1deg) scale(1.01,0.99);
}
.skill-item:nth-child(6n+3)::after{
  inset: 2px 1px 0 1px;
  border-radius: 43% 57% 56% 44% / 60% 46% 54% 40%;
  transform: rotate(4deg) scale(1.05,0.95);
}
/*circle variation 4*/
.skill-item:nth-child(6n+4)::before{
  inset: 2px 2px 1px 0;
  border-radius: 50% 50% 44% 56% / 40% 60% 45% 55%;
  transform: rotate(-5deg) scale(0.99,1.02);
}
.skill-item:nth-child(6n+4)::after{
  inset: 0 1px 2px 2px;
  border-radius: 57% 43% 50% 50% / 52% 48% 59% 41%;
  transform: rotate(2deg) scale(1.03,0.97);
}
/*circle variation 5*/
.skill-item:nth-child(6n+5)::before{
  inset: 1px 0 2px 2px;
  border-radius: 47% 53% 60% 40% / 54% 46% 50% 50%;
  transform: rotate(3deg) scale(1.04, 0.98);
}
.skill-item:nth-child(6n+5)::after{
  inset: 2px 2px 0 1px;
  border-radius: 56% 44% 46% 54% / 42% 58% 47% 53%;
  transform: rotate(-2deg) scale(0.98,1.03);
}
/*circle variation 6*/
.skill-item:nth-child(6n+6)::before{
  inset: 0 2px 1px 1px;
  border-radius: 59% 41% 49% 51% / 48% 57% 43% 52%;
  transform: rotate(-2deg) scale(0.97,1.05);
}
.skill-item:nth-child(6n+6)::after {
  inset: 1px 1px 2px 0;
  border-radius: 44% 56% 53% 47% / 58% 42% 55% 45%;
  transform: rotate(5deg) scale(1.02,0.96);
}
.skill-item:hover img,
.skill-item:focus-visible img{
  transform: scale(1.05);
}
.skill-item:hover::before,
.skill-item:focus-visible::before{
  transform: rotate(-6deg) scale(1.04,0.95);
  opacity: 0.88;
}
.skill-item:hover::after,
.skill-item:focus-visible::after{
  transform: rotate(5deg) scale(1.01,1.05);
  opacity: 0.58;
}
.skill-item{
  cursor: default;
}
@media(max-width: 900px){
  .skills-grid{
    grid-template-columns: repeat(4,minmax(0,1fr));
    max-width: 620px;
    gap: 16px 12px;
  }
}
@media(max-width: 600px){
  .skills-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 320px;
    gap: 14px 10px;
  }
  .skill-item {
    width: clamp(60px,20vw,84px);
  }
}


/*PROJECTS*/
.projects-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 32px 40px;
  margin-top: 32px;
  margin-bottom: 20px;
  padding: 14px 4px 16px;
}
.project-card{
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--card);
  border-radius: 4px;
  box-shadow:
          3px 4px 0 rgba(57,55,51,0.06),
          5px 8px 18px rgba(57,55,51,0.15),
          0 1px 3px rgba(57,55,51,0.09);
}
.project-card:nth-child(4n+1){
  transform: rotate(-0.6deg);
}
.project-card:nth-child(4n+2){
  transform: rotate(0.5deg);
}
.project-card:nth-child(4n+3){
  transform: rotate(0.8deg);
}
.project-card:nth-child(4n+4){
  transform: rotate(-0.3deg);
}
.dark-mode .project-card{
  box-shadow:
          3px 4px 0 rgba(0,0,0,0.18),
          5px 8px 22px rgba(0,0,0,0.38),
          0 1px 3px rgba(0,0,0,0.20);
}
.project-attach{
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: block;
}
/*tape*/
.project-card:nth-child(4n+1) .project-attach,
.project-card:nth-child(4n+4) .project-attach{
  width: 62px;
  height: 18px;
  top: -9px;
}
/* tape variation 1*/
.project-card:nth-child(4n+1) .project-attach{
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}
/* tape variation 2*/
.project-card:nth-child(4n+4) .project-attach{
  left: 62%;
  transform: translateX(-50%) rotate(2.5deg);
}
.project-card:nth-child(4n+1) .project-attach::before,
.project-card:nth-child(4n+4) .project-attach::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(218,210,195,0.38);
  border-top: 1px solid rgba(200,192,178,0.45);
  border-bottom: 1px solid rgba(200,192,178,0.45);
  box-shadow: 0 1px 4px rgba(57,55,51,0.10);
}
.dark-mode .project-card:nth-child(4n+1) .project-attach::before,
.dark-mode .project-card:nth-child(4n+4) .project-attach::before{
  background: rgba(80,76,68,0.42);
  border-color: rgba(100,95,86,0.40);
}
.dark-mode .project-card:nth-child(4n+1) .project-attach::after,
.dark-mode .project-card:nth-child(4n+4) .project-attach::after{
  background: rgba(100,95,86,0.18);
}
/*pin*/
.project-card:nth-child(4n+2) .project-attach,
.project-card:nth-child(4n+3) .project-attach{
  width: 24px;
  height: 38px;
  top: -20px;
}
/*pin variation 1*/
.project-card:nth-child(4n+2) .project-attach{
  left: 35%;
  transform: translateX(-50%) rotate(-4deg);
}
/*pin variation 2*/
.project-card:nth-child(4n+3) .project-attach{
  left: 50%;
  transform: translateX(-50%);
}
.project-card:nth-child(4n+2) .project-attach::before,
.project-card:nth-child(4n+3) .project-attach::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='38' viewBox='0 0 24 38'%3E%3Crect x='5' y='0' width='14' height='5' rx='2' ry='2' fill='%23393733'/%3E%3Crect x='7' y='0' width='10' height='3' rx='1.5' ry='1.5' fill='%235c5952' opacity='0.6'/%3E%3Crect x='9' y='5' width='6' height='13' rx='1' ry='1' fill='%23393733'/%3E%3Crect x='9.5' y='5' width='3' height='13' fill='%235c5952' opacity='0.5'/%3E%3Crect x='3' y='18' width='18' height='6' rx='2' ry='2' fill='%23393733'/%3E%3Crect x='4' y='18' width='11' height='4' rx='1' ry='1' fill='%235c5952' opacity='0.45'/%3E%3Crect x='11' y='24' width='2' height='6' fill='%23d2cabb'/%3E%3Crect x='11' y='24' width='1' height='6' fill='%23f0e9da' opacity='0.6'/%3E%3Cpolygon points='11,30 13,30 12,34' fill='%23d2cabb'/%3E%3C/svg%3E") no-repeat center/contain;
}
.project-card:nth-child(4n+2) .project-attach::after,
.project-card:nth-child(4n+3) .project-attach::after{
  display: none;
}
.dark-mode .project-card:nth-child(4n+2) .project-attach::before,
.dark-mode .project-card:nth-child(4n+3) .project-attach::before{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='38' viewBox='0 0 24 38'%3E%3Crect x='5' y='0' width='14' height='5' rx='2' ry='2' fill='%23e1dacd'/%3E%3Crect x='7' y='0' width='10' height='3' rx='1.5' ry='1.5' fill='%23aca69d' opacity='0.6'/%3E%3Crect x='9' y='5' width='6' height='13' rx='1' ry='1' fill='%23e1dacd'/%3E%3Crect x='9.5' y='5' width='3' height='13' fill='%23aca69d' opacity='0.5'/%3E%3Crect x='3' y='18' width='18' height='6' rx='2' ry='2' fill='%23e1dacd'/%3E%3Crect x='4' y='18' width='11' height='4' rx='1' ry='1' fill='%23aca69d' opacity='0.45'/%3E%3Crect x='11' y='24' width='2' height='6' fill='%2338342f'/%3E%3Crect x='11' y='24' width='1' height='6' fill='%23f0e9da' opacity='0.6'/%3E%3Cpolygon points='11,30 13,30 12,34' fill='%23d2cabb'/%3E%3C/svg%3E") no-repeat center/contain;
}
.project-title{
  margin: 0;
  padding: 18px 18px 14px;
  font-size: 24px;
  line-height: 1.3;
}
.project-media{
  display: block;
  width: calc(100% - 36px);
  max-width: 100%;
  margin: 0 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
  overflow: hidden;
}
.project-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/**
.project-img{
  width: calc(100% - 36px);
  margin: 0 18px;
  aspect-ratio: 1/1.05;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(57,55,51,0.14);
  background-color: var(--accent);
}
.dark-mode .project-img{
  border-color: rgba(225,218,205,0.1);
}
 **/
.project-desc{
  padding: 24px 18px;
  margin: 0;
  line-height: 1.55;
  font-size: 20px;
  text-align: left;
}
.project-links{
  margin-top: auto;
  padding: 18px;
  display: flex;
  gap: 10px;
}
.project-link{
  display: inline-block;
  flex: 1;
  padding: 8px 14px;
  font-size: 18px;
  letter-spacing: 0.01em;
  border: 1px solid var(--texta);
  border-radius: 3px;
  background-color: transparent;
  text-align: center;
  min-width: 0;
}
.project-link:hover{
  background-color: var(--fold);
  border-color: var(--text);
}
.dark-mode .project-link{
  border-color: var(--texta);
}
.dark-mode .project-link:hover{
  background-color: var(--fold);
  border-color: var(--text);
}
@media(max-width: 700px){
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/*CONTACT*/
.contact-wrap{
  margin: 28px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-copy{
  max-width: 520px;
  margin: 10px 0 18px;
  text-align: center;
}
.contact-item{
  position: relative;
  width: clamp(88px,10vw,128px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  cursor: pointer;
  background:
          radial-gradient(circle at center,rgba(250,244,233,0.42) 0%,rgba(250,244,233,0.18) 68%,transparent 70%);
}
.dark-mode .contact-item{
  background:
          radial-gradient(circle at center,rgba(30,28,26,0.34) 0%,rgba(30,28,26,0.14) 68%,transparent 70%);
}
.contact-item img{
  position: relative;
  z-index: 2;
  width: 67%;
  height: 67%;
  object-fit: contain;
  display: block;
  filter: saturate(0.92) contrast(0.96);
}
.contact-item::before,
.contact-item::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.contact-item::before{
  z-index: 0;
  inset: 2px 1px 3px 2px;
  border: 2px solid var(--texta);
  opacity: 0.72;
  border-radius: 58% 42% 55% 45% / 47% 58% 42% 53%;
  transform: rotate(-4deg) scale(1.02,0.97);
}
.contact-item::after{
  z-index: 1;
  inset: 0 2px 1px 0;
  border: 1.5px solid var(--texta);
  opacity: 0.42;
  border-radius: 49% 51% 43% 57% / 59% 41% 56% 44%;
  transform: rotate(3deg) scale(0.98,1.03);
}
.contact-item:hover img,
.contact-item:focus-visible img{
  transform: scale(1.06);
}
.contact-item:hover::before,
.contact-item:focus-visible::before{
  transform: rotate(-6deg) scale(1.04,0.95);
  opacity: 0.88;
}
.contact-item:hover::after,
.contact-item:focus-visible::after{
  transform: rotate(5deg) scale(1.01,1.05);
  opacity: 0.58;
}
@media(max-width: 500px){
  .contact-wrap{
    margin: 24px 0 16px;
  }
  .contact-copy{
    margin-bottom: 14px;
  }
  .contact-item{
    width: 84px;
  }
}