:root {
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: #171714;
  background: #f4f3ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #ea4f32;
  --muted: #666660;
  --line: #d7d5ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f3ef;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

main {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 38px 0 104px;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #171714;
}

.wordmark {
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: clamp(16px, 4vw, 36px);
}

nav a,
.project-links a {
  position: relative;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
}

nav a::after,
.project-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

nav a:hover,
.project-links a:hover {
  color: var(--accent);
}

nav a:hover::after,
.project-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.work-index {
  padding-top: 80px;
}

.work-section {
  display: grid;
  grid-template-columns: 150px 1fr;
  scroll-margin-top: 24px;
}

.work-section + .work-section {
  margin-top: 88px;
}

.section-title {
  align-self: start;
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  line-height: 1;
}

.project {
  grid-column: 2;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.project + .project {
  padding-top: 42px;
}

.project h3 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  font-weight: 480;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.project p {
  max-width: 560px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: keep-all;
}

.project-links {
  display: flex;
  gap: 28px;
}

.project-links a span {
  display: inline-block;
  margin-left: 2px;
  transition: transform 160ms ease;
}

.project-links a:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 640px) {
  main {
    width: min(100% - 36px, 860px);
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .site-header {
    display: block;
    padding-bottom: 26px;
  }

  nav {
    margin-top: 30px;
  }

  .work-index {
    padding-top: 58px;
  }

  .work-section {
    display: block;
  }

  .work-section + .work-section {
    margin-top: 64px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .project {
    padding-bottom: 34px;
  }

  .project + .project {
    padding-top: 34px;
  }

  .project p {
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
