:root {
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #d7dde5;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar,
.hero,
.section-inner,
.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-summary {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.hero-summary dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.hero-summary dt {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-summary dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.section {
  padding: 64px 0;
}

.profile-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.card-visual {
  height: 170px;
  padding: 0;
  display: block;
  background: #f3f5f7;
  border-bottom: 1px solid var(--line);
}

.snapshot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.visual-sheet {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr;
  gap: 6px;
}

.visual-sheet span,
.visual-browser span {
  height: 15px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.1);
}

.visual-browser {
  display: grid;
  gap: 8px;
}

.visual-browser span:first-child {
  width: 58%;
  height: 22px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f4;
  color: #4b5563;
  font-size: 0.74rem;
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
}

.meta-list {
  padding: 0;
  margin: 2px 0 20px;
  list-style: none;
  color: var(--ink);
  font-size: 0.93rem;
}

.meta-list li {
  padding: 7px 0;
  border-top: 1px solid #eef1f4;
}

.card-link {
  min-height: 40px;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 40px;
}

.profile-copy p {
  color: var(--muted);
}

.profile-copy ul {
  margin: 0;
  padding-left: 20px;
}

.profile-copy li + li {
  margin-top: 8px;
}

.site-footer {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .hero,
  .project-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar,
  .hero,
  .section-inner,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .section {
    padding: 52px 0;
  }

  .filter-button {
    flex: 1 1 auto;
  }
}
