:root {
  --accent: #9a6b32;
  --accent-dark: #6f4b20;
  --ink: #181713;
  --muted: #6d6961;
  --line: #e7e1d8;
  --paper: #f8f5ef;
  --surface: #fffdfa;
  --soft: #f1ebe1;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(35, 29, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(154, 107, 50, 0.12), transparent 25rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 100%);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(248, 245, 239, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 225, 216, 0.72);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  height: 72px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

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

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 28px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 15px;
}

.section-label {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.12;
  font-weight: 700;
}

h1 span {
  color: var(--accent-dark);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
  word-break: keep-all;
}

.contact h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  font-weight: 700;
  word-break: keep-all;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual img {
  width: min(100%, 440px);
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(35, 29, 20, 0.13));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: none;
}

.button.primary:hover {
  background: var(--accent);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.button.ghost:hover {
  color: var(--accent-dark);
  border-color: rgba(154, 107, 50, 0.35);
  background: var(--soft);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.projects {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.projects .section-label {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: 0;
}

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

.project-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: var(--shadow);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.34;
  font-weight: 700;
  word-break: keep-all;
}

.project-card p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--muted);
  word-break: keep-all;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 18px;
}

.project-tags span {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--soft);
}

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

.card-actions .button {
  width: 100%;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

.contact-list {
  display: grid;
  gap: 10px;
  font-style: normal;
  color: var(--muted);
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 250, 0.64);
}

.contact-list span {
  font-weight: 700;
  color: var(--ink);
}

.contact .section-label {
  color: var(--ink);
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  color: #aaa39a;
  text-align: center;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 28px 34px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
    padding: 0 20px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .section {
    padding: 52px 20px;
  }

  .about {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-copy {
    order: 2;
  }

  .about-visual {
    order: 1;
  }

  .about-visual img {
    width: min(78vw, 380px);
    max-height: 56vh;
  }

  .hero-text {
    font-size: 17px;
  }

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

  .project-card {
    min-height: auto;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact .button {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .header-inner {
    align-items: flex-start;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    gap: 10px;
  }

  h1 {
    font-size: 34px;
  }

  .projects .section-label {
    font-size: 26px;
  }

  .button {
    flex: 1;
    min-width: 130px;
  }

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

  .contact-list a {
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }
}
