:root {
  --rounded-corner: 12px;
  --gnomeblue: #4a86cf;
  --blue1: rgb(153, 193, 241);
  --blue2: rgb(98, 160, 234);
  --blue3: rgb(53, 132, 228);
  --blue4: rgb(28, 113, 216);
  --blue5: rgb(26, 95, 180);
  --green1: rgb(143, 240, 164);
  --green2: rgb(87, 227, 137);
  --green3: rgb(51, 209, 122);
  --green4: rgb(46, 194, 126);
  --green5: rgb(38, 162, 105);
  --yellow1: rgb(249, 240, 107);
  --yellow2: rgb(248, 228, 92);
  --yellow3: rgb(246, 211, 45);
  --yellow4: rgb(245, 194, 17);
  --yellow5: rgb(229, 165, 10);
  --orange1: rgb(255, 190, 111);
  --orange2: rgb(255, 163, 72);
  --orange3: rgb(255, 120, 0);
  --orange4: rgb(230, 97, 0);
  --orange5: rgb(198, 70, 0);
  --red1: rgb(246, 97, 81);
  --red2: rgb(237, 51, 59);
  --red3: rgb(224, 27, 36);
  --red4: rgb(192, 28, 40);
  --red5: rgb(165, 29, 45);
  --purple1: rgb(220, 138, 221);
  --purple2: rgb(192, 97, 203);
  --purple3: rgb(145, 65, 172);
  --purple4: rgb(129, 61, 156);
  --purple5: rgb(97, 53, 131);
  --brown1: rgb(205, 171, 143);
  --brown2: rgb(181, 131, 90);
  --brown3: rgb(152, 106, 68);
  --brown4: rgb(134, 94, 60);
  --brown5: rgb(99, 69, 44);
  --light1: rgb(255, 255, 255);
  --light2: rgb(246, 245, 244);
  --light3: rgb(222, 221, 218);
  --light4: rgb(192, 191, 188);
  --light5: rgb(154, 153, 150);
  --dark1: rgb(119, 118, 123);
  --dark2: rgb(94, 92, 100);
  --dark3: rgb(61, 56, 70);
  --dark4: rgb(36, 31, 49);
  --dark5: rgb(0, 0, 0);
  --text: #f6f5f4;
  --pill: 64px;
  --cantarell: "Cantarell", sans-serif;
  --inter: InterVariable, "Inter Variable", Inter, sans-serif;
  --pagewidth: 50rem;
  --grid-gap: 3rem;
  --pagegridwidth: calc(var(--pagewidth) + (6 * var(--grid-gap)));
  --btnround: 500px;
  --btn-fg: #000;
  --btn-bg: rgba(0, 0, 0, 0.1);
  --fg-color: #000;
  --btn-fg-dark: #fff;
  --btn-bg-dark: rgba(255, 255, 255, 0.12);
  --btnsqr: 0.8rem;
  --bg-color: #eee;
  --narrowwidth: 60%;
  --defaultsize: 18px;
  --slickease: cubic-bezier(0.17, 0.89, 0.32, 1.28);
  --tile-bg: var(--light1);
  --tile-mid: #ddd;
  font-feature-settings: "liga" 1, "calt" 1, "cv05" 1;
  --link: var(--blue5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg-color: #eee;
    --bg-color: #111;
    --btn-fg: var(--btn-fg-dark);
    --btn-bg: var(--btn-bg-dark);
    --tile-bg: var(--dark5);
    --tile-mid: var(--dark3);
    --link: var(--blue2);
  }
}

@media only screen and (max-width: 600px) {
  :root {
    --narrowwidth: 100%;
    --grid-gap: 1rem;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: var(--defaultsize);
  font-family: var(--inter);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  scroll-behavior: smooth;
}

body {
  color: var(--fg-color);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  margin: 3rem 0 1rem;
  font-weight: 800;
  line-height: 1.25;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

.btn {
  font-weight: 600;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  fill: var(--btn-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  white-space: nowrap;
  padding: 0.6rem 1.5rem;
  margin: 0.3rem;
  max-width: 20rem;
  text-decoration: none;
  border-radius: var(--btnround);
  box-shadow: 0 0 0 0 var(--btn-bg);
  min-width: 4rem;
  transition: box-shadow 200ms var(--slickease);
}

.btn-wide {
  min-width: 1.6rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
.btn:hover {
  box-shadow: 0 0 0 2px var(--btn-bg);
  text-decoration: none;
}

.btn>img, .btn>svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.btn > img.icon-sm {
  width: 6em;
  height: auto;
}

.btn.suggested {
  font-weight: 700;
  background-color: var(--gnomeblue);
  color: var(--light1);
  box-shadow: 0 0 0 0 var(--gnomeblue);
}

.btn.suggested:hover {
  background-color: var(--blue3);
  box-shadow: 0 0 0 2px var(--blue3);
}

.btn.suggested:active {
  background-color: var(--blue2);
}


.container {
  margin: 2rem auto 0;
  padding: 0 var(--grid-gap);
  flex: 1;
  width: 100%;
  max-width: var(--pagegridwidth);
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-header p {
  color: var(--dark1);
  max-width: 40em;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .section-header p {
    color: var(--light4);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--dark5);
  background: linear-gradient(to top, #ccdef9aa, #fff0), linear-gradient(to top, #ccdef9, #fff0);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 28rem;
  padding: 3rem 1.5rem;
  margin: 0 0 1rem 0;
}

@media (prefers-color-scheme: dark) {
  .hero {
    color: var(--light1);
    background: linear-gradient(to top, #433583dd, #5494e000), linear-gradient(to top, #433583, #5494e0);
  }
}

.hero-info {
  flex: 0 1 500px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.hero-handle {
  color: var(--dark1);
  font-weight: 500;
  margin: 0 0 1.2rem;
}

@media (prefers-color-scheme: dark) {
  .hero-handle {
    color: var(--light4);
  }
}

.hero-description {
  font-size: 1.1rem;
  max-width: 32em;
  margin: 0 0 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.52;
  background-image: url('public/tris-l.svg');
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero-pattern {
    background-image: url('public/tris-d.svg');
  }
}

.hero-avatar-wrap,
.hero-info {
  position: relative;
  z-index: 1;
}



.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

@media (prefers-color-scheme: dark) {
  .avatar-ring {
    border-color: rgba(255, 255, 255, 0.25);
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}



@media only screen and (max-width: 1300px) {
  .hero {
    gap: 3rem;
  }
}

@media only screen and (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .hero-info {
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--tile-bg);
  border-radius: var(--rounded-corner);
  padding: 1.75rem;
  transition: transform 250ms var(--slickease), box-shadow 250ms ease;
  display: flex;
  flex-direction: column;
}


.project-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.project-description {
  color: var(--dark1);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

@media (prefers-color-scheme: dark) {
  .project-description {
    color: var(--light4);
  }
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: color-mix(in srgb, var(--gnomeblue) 15%, transparent);
  color: var(--blue5);
  padding: 0.25rem 0.7rem;
  border-radius: var(--btnround);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .tag {
    color: var(--blue1);
  }
}

.project-link {
  font-weight: 600;
  color: var(--link);
}


footer {
  background-color: var(--dark4);
  padding: 2.5rem 1rem;
  color: var(--light2);
  text-align: center;
  margin-top: 3rem;
}

footer a {
  color: var(--light1);
}

footer .copy {
  font-size: 0.8em;
  color: var(--light4);
  margin-top: 0.5rem;
}

@media only screen and (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
  .social-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
