:root {
  color-scheme: light;
  --bg: #f3fbff;
  --paper: #f8fdff;
  --ice: #dff4ff;
  --blue: #55b9ed;
  --deep-blue: #062b9a;
  --mint: #c9f4e6;
  --ink: #07162c;
  --soft-ink: #6f7f8b;
  --grid-size: 32px;
  font-family:
    "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0 calc(var(--grid-size) - 1px),
      rgba(85, 185, 237, 0.13) calc(var(--grid-size) - 1px) var(--grid-size)
    ),
    linear-gradient(
      0deg,
      transparent 0 calc(var(--grid-size) - 1px),
      rgba(85, 185, 237, 0.13) calc(var(--grid-size) - 1px) var(--grid-size)
    ),
    var(--bg);
  background-position: calc(50vw - 442px) 0;
  background-size: var(--grid-size) var(--grid-size);
  color: var(--ink);
}

@media (max-width: 1076px) {
  body {
    background-position:
      calc(clamp(1rem, 4vw, 3rem) + clamp(1rem, 4vw, 3rem)) 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.work-board {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}

h1 {
  max-width: 12.5ch;
  margin: 0;
  color: #02060c;
  font-size: clamp(2.5rem, 6.35vw, 5.25rem);
  font-weight: 700;
  line-height: clamp(3rem, 7.33vw, 6rem);
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: start;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: min(400px, 100%);
  min-height: 22.5rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 0.35rem solid var(--blue);
  background: var(--paper);
  box-shadow: 1rem 1rem 0 var(--ice);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-card::before {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 0.55rem;
  height: 0.55rem;
  background: #a8eadf;
  box-shadow:
    -2rem 1.6rem 0 #a8eadf,
    -5.2rem 0.3rem 0 #a8eadf,
    -7.2rem 2.9rem 0 #a8eadf;
  content: "";
}

.project-card:hover,
.project-card:focus-visible {
  box-shadow: 0.55rem 0.55rem 0 var(--ice);
  transform: translate(0.35rem, 0.35rem);
  outline: none;
}

.static-card:hover {
  box-shadow: 1rem 1rem 0 var(--ice);
  transform: none;
}

.static-card {
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.project-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ice);
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emoji-image {
  display: grid;
  width: auto;
  aspect-ratio: auto;
  overflow: visible;
  place-items: center;
  background: transparent;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
}

.card-content {
  display: grid;
  gap: 0.45rem;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-title {
  color: var(--deep-blue);
  font-size: clamp(1.65rem, 4.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
}

.project-arrow {
  color: var(--deep-blue);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}

.project-desc,
.project-status {
  color: var(--soft-ink);
  font-size: clamp(0.86rem, 1.8vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
}

.project-status {
  width: fit-content;
  margin-top: 0.5rem;
  border: 1px solid rgba(85, 185, 237, 0.46);
  padding: 0.18rem 0.48rem;
  background: rgba(223, 244, 255, 0.58);
}

.static-card .card-content {
  justify-content: center;
  width: 100%;
}

.static-card .project-title {
  color: var(--soft-ink);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .page-shell {
    place-items: start center;
    padding-inline: 1.75rem;
  }

  .work-board {
    padding-inline: 0;
    padding-top: 3rem;
  }

  h1 {
    max-width: 11ch;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    justify-items: center;
  }

  .project-card {
    width: 100%;
    min-height: 20.5rem;
    box-shadow: 0.75rem 0.75rem 0 var(--ice);
  }

  .project-card:hover,
  .project-card:focus-visible,
  .static-card:hover {
    box-shadow: 0.75rem 0.75rem 0 var(--ice);
    transform: none;
  }

  body {
    background-position: 1.75rem 0;
  }
}
