/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #55556D;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a:link,
a:visited {
  color: #121217;
  font-weight: 600;
  text-decoration: underline solid 1px;
  text-underline-offset: 6px;
}

a:hover,
a:active {
  color: #121217;
  text-decoration: underline solid 2px;
  text-underline-offset: 6px;
}

a:focus-visible {
  border-radius: 0;
  outline: 2px solid #7047EB;
  outline-offset: 2px;
  text-decoration: underline solid 1px;
  text-underline-offset: 6px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* creates an 8px space between icon and text */
}

.button svg {
  width: 20px;
  height: 20px;
}

a.button,
button.button {
  border-radius: 1000px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  padding: 8px 20px;
  text-decoration: none;
  transition: 300ms;
  cursor: pointer;
  border: none;
  background: none;
}

a.button.primary,
button.button.primary {
  background-color: #121217;
  color: #fff;
}

a.button.primary:hover,
a.button.primary:active,
button.button.primary:hover,
button.button.primary:active {
  background-color: #3F3F50;
}

a.button.secondary,
button.button.secondary {
  background-color: #F7F7F8;
  color: #121217;
}

a.button.secondary:hover,
a.button.secondary:active,
button.button.secondary:hover,
button.button.secondary:active {
  background-color: #EBEBEF;
}

a.button:active,
button.button:active {
  position: relative;
  top: 1px;
  transition: none;
}

a.button:focus-visible,
button.button:focus-visible {
  outline: 2px solid #7047EB;
  outline-offset: 2px;
}

/* Icon buttons */
a.button.icon-button,
button.button.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.button.icon-button i {
  width: 20px;
  height: 20px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #121217;
}

h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: 16px;
}

h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: 32px;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: 8px;
}

/* Section padding responsive */
header {
  padding: 24px 0 24px 0;
}

main {
}

footer {
  font-size: 14px;
  line-height: 24px;
  padding: 24px 0 24px 0;
}

section {
  padding: 24px 0 24px 0;
}

@media (min-width: 600px) {
  header {
    padding: 24px 0 48px 0;
  }

  footer {
    padding: 48px 0 24px 0;
  }

  section {
    padding: 48px 0 48px 0;
  }
}

@media (min-width: 1200px) {
  header {
    padding: 32px 0 64px 0;
  }

  footer {
    padding: 64px 0 32px 0;
  }

  section {
    padding: 64px 0 64px 0;
  }
}

/* Containers responsive */
.container {
  padding: 0 24px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 64px;
  }
}

/* Header & brand */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .avatar {
  border-radius: 100%;
  width: 40px;
  height: 40px;
}

.brand span {
  font-size: 18px;
  font-weight: 600;
  color: #121217;
}

nav {
  display: none;
}

.actions {
  display: flex;
  gap: 16px;
}

.actions.mobile {
  display: flex;
  row-gap: 16px;
  flex-direction: column;
}

.actions.mobile a {
  width: 100%;
}

@media (min-width: 600px) {
  nav {
    display: flex;
    gap: 32px;
  }
  .actions.mobile {
    display: none;
  }
}

/* Hero */
.hero .lead {
  font-size: 18px;
  line-height: 32px;
  margin-bottom: 24px;
  max-width: 55ch;
}

.hero h1 {
  max-width: 55ch;
}

/* Status dot */
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .status {
    margin-bottom: 0;
  }
}

.status-text {
  display: inline;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DCA72;
  position: relative;
}

.status .dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2DCA72;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  70% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Masonry Grid */
.masonry {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project item hover & focus */
.project-item {
  cursor: pointer;
  display: block;
  text-decoration: none !important; /* Remove underline by default */
  transition: transform 0.2s ease;
  height: fit-content;
}

.project-item:focus,
.project-item:focus-visible {
  outline: 2px solid #7047EB; /* keyboard focus outline */
  outline-offset: 14px;
}

.project-item:hover .feature-image {
  transform: translateY(-2px);
}

.project-item:focus .feature-image,
.project-item:focus-visible .feature-image {
  transform: none;
}

.project-item .feature-image {
  transition: transform 0.2s ease;
}

.project-item .feature-image {
  padding-bottom: 16px;
}

.project-item img,
.project-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-item h3 {
  display: inline-block;                 /* shrink to text width */
  text-decoration: none;                 /* remove default underline */
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;           /* underline sits at the bottom */
  background-repeat: no-repeat;
  background-size: 0% 2px;               /* start hidden */
  transition: background-size .25s ease; /* the animation */
  /* line-height: 1.3; */
}

.project-item:hover h3 {
  /* text-decoration: underline solid 2px;
  text-underline-offset: 8px; */
  background-size: 100% 2px;
}

.project-item:focus h3,
.project-item:focus-visible h3 {
  background-size: 0 none;
}

.project-item .meta {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #8A8AA3;
  margin: 0;
  text-decoration: none; /* default no underline */
}

.project-item:hover .meta,
.project-item:active .meta
.project-item:focus .meta,
.project-item:focus-visible .meta {
  text-decoration: none !important; /* override global a:hover */
  text-underline-offset: 0;
}

/* Load More */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Footer */
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0;
}

/* Slide-out panel overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out panel */
#slide-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 950px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transition: 0.3s;
  z-index: 1000;
}

#slide-panel.open {
  right: 0;
}

#slide-panel .panel-content {
  padding: 24px;
  padding-top: 88px;
}

@media (min-width: 600px) {
  #slide-panel .panel-content  {
    padding: 32px;
  }
}

@media (min-width: 900px) {
  #slide-panel .panel-content {
    padding: 48px;
  }
}

@media (min-width: 1200px) {
  #slide-panel .panel-content {
    padding: 64px;
  }
}

#slide-panel .header {
  padding: 0 0 32px 0;
}

#slide-panel .panel-close {
  position: absolute;
  right: 24px;
  top: 24px;
}

/* Panel media */
.panel-media {
  
}

.panel-media img,
.panel-media video {
  display: block;
  width: 100%;
  margin-bottom: 32px;
}

.panel-media img:last-child,
.panel-media video:last-child {
  margin-bottom: 0;
}

.panel-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.panel-meta {
  font-size: 14px;
  color: #8A8AA3;
  margin: 0;
}

.panel-description  {
  padding-top: 24px;
}

.panel-description p {
  margin-bottom: 1em;
}

.panel-description p:last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .panel-description  {
    padding-top: 32px;
  }
}