/* ============================================================
   YANG LI — style.css
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.7;
}

body {
  font-family: "Garamond", "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;
  color: #111;
  background: #fafaf8;
  display: flex;
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 100vh;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-right: 0.5px solid #d8d5ce;
  background: #fafaf8;
}

.nav-name {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #111;
  font-weight: normal;
  text-transform: uppercase;
}

.nav-links,
.nav-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav a {
  color: #111;
  text-decoration: none;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.01em;
}

nav a:hover { opacity: 0.45; }
nav a.active { opacity: 0.35; }

.nav-contact a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #999;
  text-transform: uppercase;
}

main {
  margin-left: 180px;
  padding: 56px 72px 140px 72px;
  max-width: 1000px;
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
  margin-bottom: 64px;
}

.hero img {
  width: 100%;
  display: block;
}

.about-text { max-width: 620px; }
.about-text p {
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.85;
}

.work-item {
  margin-bottom: 96px;
  padding-bottom: 96px;
  border-bottom: 0.5px solid #d8d5ce;
}

.work-item:last-child { border-bottom: none; }

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.work-title { font-size: 17px; }
.work-year { font-size: 13px; color: #999; letter-spacing: 0.04em; }

.work-type {
  font-size: 11px;
  margin-bottom: 32px;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-item img {
  width: 100%;
  display: block;
  margin-bottom: 40px;
}

.work-body p {
  margin-bottom: 22px;
  max-width: 660px;
  font-size: 16px;
  line-height: 1.85;
}

.work-body h3 {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin: 40px 0 14px;
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: #d8d5ce;
  border: 0.5px solid #d8d5ce;
  margin: 40px 0;
  max-width: 660px;
}

.work-metric {
  background: #fafaf8;
  padding: 24px 20px;
}

.work-metric-value {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
}

.work-metric-label {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

a:hover { opacity: 0.5; }

.empty-note {
  color: #bbb;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-style: italic;
}

@media (max-width: 680px) {
  body { flex-direction: column; }
  nav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    border-right: none;
    border-bottom: 0.5px solid #d8d5ce;
  }
  main {
    margin-left: 0;
    padding: 36px 24px 80px;
  }
}
