:root {
  --bg: #f7f1e8;
  --bg-soft: #fbf7f1;
  --text: #14110f;
  --muted: rgba(20, 17, 15, 0.7);
  --line: rgba(20, 17, 15, 0.12);
  --accent: #d9772e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 46, 0.07), transparent 26%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  font-family: "Pretendard", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(217, 119, 46, 0.2);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 22px;
  color: var(--muted);
  font-family: "Inter", "Pretendard", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  gap: 28px;
}

.hero,
.section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  padding: clamp(24px, 4vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow,
.label,
.project-index,
dt {
  font-family: "Inter", "Pretendard", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3,
p,
dl {
  margin: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 700;
}

h1 span {
  display: block;
  margin-top: 18px;
  max-width: 11ch;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--muted);
  font-weight: 500;
}

.summary,
.about-grid p,
.project-card p,
.contact-box p,
.profile-meta span {
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.06rem);
}

.summary {
  max-width: 56ch;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 16px;
}

.profile-photo {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px dashed rgba(20, 17, 15, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 119, 46, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(20, 17, 15, 0.06), rgba(20, 17, 15, 0.02));
  display: grid;
  place-items: center;
  color: rgba(20, 17, 15, 0.45);
  font-family: "Inter", "Pretendard", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
}

.profile-meta {
  display: grid;
  gap: 8px;
}

.profile-meta strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

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

.facts > div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 8px;
}

dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section {
  display: grid;
  gap: 22px;
}

.section-head {
  display: grid;
  gap: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 14px;
  min-height: 240px;
}

.project-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card li {
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: "Inter", "Pretendard", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(20, 17, 15, 0.76);
}

.contact-box {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.contact-box a {
  width: fit-content;
  font-family: "Inter", "Pretendard", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  text-decoration-color: rgba(217, 119, 46, 0.55);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

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

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

@media (max-width: 560px) {
  .page {
    padding: 16px;
  }

  .topline {
    padding-bottom: 16px;
    letter-spacing: 0.16em;
  }

  .hero,
  .section {
    border-radius: 20px;
    padding: 20px;
  }

  h1 {
    max-width: none;
  }

  .project-card {
    min-height: auto;
    padding: 18px;
  }
}
