:root { --main: #E8805C; } /* 대표색은 이 한 줄만 바꾸세요 */
/* 90년대 홈페이지 레트로 — 흰 바탕 · 검정 선 · 복숭아색 · 체크무늬 */

/* 색 */
:root {
  --ink: #1A1A1A;
  --paper: #FFFFFF;
  --peach: #FAD4C0;
  --muted: #5A5148;
  --main-soft: color-mix(in srgb, var(--main) 10%, #fff);
  --main-light: color-mix(in srgb, var(--main) 28%, #fff);
  --main-dark: color-mix(in srgb, var(--main) 75%, #000);
}
@supports not (color: color-mix(in srgb, red, blue)) {
  :root {
    --main-soft: #FDF2EF;
    --main-light: #F9DBD1;
    --main-dark: #AE6045;
  }
}

/* 기본 */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 720px) {
  body { font-size: 18px; }
}
h1, h2, h3, .hero-tagline {
  font-family: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}
a { color: var(--main-dark); }
:focus-visible { outline: 3px solid var(--main-dark); outline-offset: 2px; }

/* 공통 폭 */
.wrap {
  padding-inline: max(clamp(20px, 5vw, 40px), calc((100% - 1080px) / 2));
}

/* 아이콘 */
.sprite { display: none; }
.ico {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 2px solid var(--ink);
  background: var(--peach);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 섹션 */
section.wrap {
  padding-block: clamp(64px, 8vw, 104px);
}
h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-size: clamp(30px, 4vw, 44px);
}
h2::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  background: repeating-conic-gradient(var(--peach) 0% 25%, var(--paper) 0% 50%) 0 0 / 10px 10px;
}

/* 첫 화면 */
.hero {
  position: relative;
  margin: 10px 14px 28px;
  padding-block: clamp(64px, 9vw, 96px);
  text-align: center;
  background:
    linear-gradient(var(--paper) 0 0) 0 24px / 100% calc(100% - 48px) no-repeat,
    repeating-conic-gradient(var(--peach) 0% 25%, var(--paper) 0% 50%) 0 0 / 24px 24px;
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
}
.hero::before {
  background:
    linear-gradient(var(--ink) 0 0) left 0 top 0 / 12px 12px no-repeat,
    linear-gradient(var(--ink) 0 0) right 0 top 0 / 12px 12px no-repeat;
}
.hero::after {
  background:
    linear-gradient(var(--ink) 0 0) left 0 bottom 0 / 12px 12px no-repeat,
    linear-gradient(var(--ink) 0 0) right 0 bottom 0 / 12px 12px no-repeat;
}
.avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin-inline: auto;
  border: 2px solid var(--ink);
  border-radius: 0;
  object-fit: cover;
  background: var(--peach);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 56px;
}
.hero-name { margin: 28px 0 6px; font-size: clamp(20px, 2.4vw, 24px); color: var(--main-dark); }
.hero-tagline { margin: 0 0 20px; font-size: clamp(38px, 6.5vw, 72px); line-height: 1.2; }
.hero-greeting { max-width: 560px; margin: 0 auto 32px; }

/* 넓은 화면: 글은 왼쪽, 사진 자리는 오른쪽 창 */
@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr repeat(4, auto) 1fr;
    column-gap: clamp(40px, 6vw, 88px);
    text-align: left;
  }
  .hero > * { grid-column: 1; }
  .hero-name { grid-row: 2; margin-top: 0; }
  .hero-tagline { grid-row: 3; }
  .hero-greeting { grid-row: 4; margin-left: 0; }
  .hero .button { grid-row: 5; justify-self: start; }
  .hero .avatar {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    width: clamp(200px, 22vw, 260px);
    height: clamp(200px, 22vw, 260px);
    margin-right: 8px;
    box-shadow: 10px 10px 0 var(--ink);
    font-size: clamp(96px, 10vw, 128px);
  }
}
.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 36px;
  border: 2px solid var(--ink);
  background: var(--main);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s;
}
.button:hover { background: var(--main-light); }

/* 할 수 있는 일 */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card {
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--peach);
}
.card h3 { margin: 16px 0 8px; font-size: 20px; }
.card p { margin: 0; }

/* 경력 */
.career { background: var(--main-soft); }
.career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.career-list li {
  padding: 18px 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.career-period {
  display: inline-block;
  margin: 0 0 10px;
  padding: 1px 12px;
  border: 2px solid var(--ink);
  background: var(--peach);
  font-weight: 600;
}
.career-title { margin: 0 0 2px; font-size: 20px; }
.career-place { margin: 0; color: var(--muted); font-weight: 600; }
.career-desc { margin: 6px 0 0; }

/* 작업물 */
.work-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.work {
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.work img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
}
.work h3 { margin: 14px 0 6px; font-size: 20px; }
.work p { margin: 0; color: var(--muted); }

/* 영상 */
.video-item + .video-item { margin-top: 32px; }
.video-frame {
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  background: var(--peach);
}
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title { margin: 12px 0 0; }

/* 연락처 */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 440px;
}
.contact-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background-color 0.2s;
}
.contact-list li:hover { background: var(--main-light); }
.contact-list .ico { width: 40px; height: 40px; padding: 8px; }
.contact-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}
.contact-list a::after { content: ""; position: absolute; inset: 0; }

/* 바닥글 */
.footer {
  position: relative;
  padding-block: 44px 40px;
  padding-inline: max(clamp(20px, 5vw, 40px), calc((100% - 1080px) / 2));
  background: var(--peach);
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-conic-gradient(var(--peach) 0% 25%, var(--paper) 0% 50%) 0 0 / 24px 24px;
}
.footer p { margin: 0; }

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  .button, .contact-list li { transition: none; }
}
