:root{
  --bg: #ededed;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e8e8e8;

  --max: 980px;
  --page-pad: 80px;

  --header-bg: rgb(237, 237, 237);
  --tag-bg: #222;
  --tag-text: #fff;
}

*{ box-sizing: border-box; }

html{
  height: 100%;
  background: var(--bg);
}

body{
  min-height: 100vh;
  margin: 0;
  padding: 0 var(--page-pad);
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans", sans-serif;
  line-height: 1.4;

  display: flex;
  flex-direction: column;
}

main{ flex: 1; }

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

.container{
  max-width: var(--max);
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: none;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 14px;
}

.logo{
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover{ color: var(--text); }

/* Hero */
.hero-section{
  padding: 44px 0 18px;
}

.hero-top h1{
  margin: 0 0 24px;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub{
  margin: 12px 0 0;
  max-width: 75ch;
  font-size: 24px;
  line-height: 1.3;
  color: var(--muted);
}

/* Work grid */
.work-grid{
  margin-top: 48px;
  padding-bottom: 22px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 68px; /* row-gap / column-gap */
}

@media (min-width: 820px){
  .work-grid{ grid-template-columns: 1fr 1fr; }
}

/* Card */
.card{ overflow: hidden; }

.card-link{
  display: block;
  padding: 0;
}

.card-link:hover{ text-decoration: none; }

/* Square image */
.card-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 18px;
  background: #ddd;
}

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

/* Title + tags */
.card-title{
  display: flex;
  flex-direction: column;
  gap: 10px; /* 제목 ↔ 태그그룹 간격 */
}

.card-title h3{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tag-group{
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* 태그들끼리 간격 */
}

.tag{
  font-size: 11px;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}

.tag-progress{
    background: #99199d;
    color:#fff;
    border-color:#ffffff;
}

.card-desc{
  margin: 8px 0 0;
  max-width: 70ch;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
.site-footer{
  width:100%
}
.site-footer-container{
  padding-top:8px;
  padding-bottom:16px;
  font-size:13px;
  color:var(--muted);
  text-align: left;
} 

/* Responsive */
@media (max-width: 820px){
  :root{ --page-pad: 28px; }
}

@media (max-width: 420px){
  :root{ --page-pad: 18px; }
  .hero-top h1{ font-size: 34px; }
  .nav{ gap: 12px; }
}
