:root {
  color-scheme: light;
  --ink: #202232;
  --muted: #656978;
  --paper: #fffdf5;
  --blue: #82e4ff;
  --green: #a6ee85;
  --coral: #ffad7c;
  --yellow: #ffdc59;
  --pink: #ff8fb1;
  --line: #e6e4da;
}

* {
  box-sizing: border-box;
}

html {
  background: #f3f5f7;
}

body {
  width: min(100% - 32px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  box-shadow: 0 0 60px rgba(42, 45, 61, 0.09);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px;
}

.brand {
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.site-header p {
  margin: 0;
  color: #777b8a;
  font-size: 0.8125rem;
}

.hero {
  position: relative;
  min-height: 390px;
  padding: 78px 36px 54px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(3.3rem, 7.2vw, 6.25rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.98;
  word-break: keep-all;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  word-break: keep-all;
}

.shape {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.shape-yellow {
  top: -116px;
  right: -76px;
  width: 350px;
  height: 350px;
  background: var(--yellow);
}

.shape-pink {
  top: 172px;
  right: 192px;
  width: 142px;
  height: 142px;
  background: var(--pink);
}

.shape-blue {
  right: 42px;
  bottom: 8px;
  width: 74px;
  height: 74px;
  background: #6f8eff;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 36px 42px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 22px;
  box-shadow: 0 4px 0 rgba(30, 33, 50, 0.13);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card[data-project="check"] {
  background: var(--blue);
}

.project-card[data-project="calc"] {
  background: var(--green);
}

.project-card[data-project="table"] {
  background: var(--coral);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 0 rgba(30, 33, 50, 0.13);
}

.project-card:focus-visible,
.brand:focus-visible {
  outline: 4px solid #345cf5;
  outline-offset: 4px;
}

.open-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  font-weight: 700;
}

.project-symbol {
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.project-sigma {
  font-family: Georgia, serif;
}

.project-copy {
  display: block;
}

.project-copy strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.project-copy > span {
  color: #363949;
  font-size: 0.875rem;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  margin: 0 36px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #85878f;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: 350px;
  }

  .shape-yellow {
    width: 270px;
    height: 270px;
  }

  .shape-pink {
    right: 100px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 210px;
  }
}

@media (max-width: 720px) {
  body {
    width: 100%;
  }

  .site-header {
    padding: 22px 20px;
  }

  .site-header p {
    max-width: 135px;
    text-align: right;
  }

  .hero {
    min-height: 360px;
    padding: 70px 20px 40px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero-copy p {
    max-width: 300px;
  }

  .shape-yellow {
    top: -100px;
    right: -105px;
    width: 235px;
    height: 235px;
  }

  .shape-pink {
    top: 255px;
    right: -34px;
    width: 115px;
    height: 115px;
  }

  .shape-blue {
    right: 72px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }

  .projects {
    gap: 14px;
    padding: 8px 20px 34px;
  }

  .project-card {
    min-height: 200px;
    padding: 22px;
  }

  .project-symbol {
    font-size: 3.3rem;
  }

  footer {
    gap: 16px;
    margin: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
