:root {
  --ink: #1d1d1b;
  --muted: #6f6c66;
  --line: #dedbd4;
  --paper: #f7f4ee;
  --panel: #fffdfa;
  --blue: #55768a;
  --rose: #b05f6b;
  --charcoal: #1f2526;
  --soft-select: #8b918d;
  --soft-select-text: #fffdfa;
  --shadow: 0 22px 60px rgba(43, 35, 28, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
}

img {
  max-width: 100%;
}

video {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.brand span {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav button,
.page-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav button {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.main-nav button:hover,
.main-nav button.active {
  background: #ece6da;
}

.view[hidden] {
  display: none;
}

.artist-overview {
  min-height: 604px;
  display: grid;
  align-items: end;
  padding: 88px 7vw 80px;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.94) 52%, rgba(247, 244, 238, 0.74) 100%),
    url("extracted/images/Chang-MiHyun---Artist-Portfolio-p03-11.png") right center / auto 88% no-repeat;
  border-bottom: 1px solid var(--line);
}

.overview-copy {
  max-width: 740px;
}

.overview-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.counter-icon {
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.social-row {
  display: flex;
  gap: 10px;
  margin: 0 0 28px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.82);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(43, 35, 28, 0.06);
}

.social-row a:hover {
  background: var(--ink);
  color: #fff;
}

.social-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-row a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.page-tabs {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 20px;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.page-tabs button {
  color: var(--muted);
  font-size: 18px;
}

.page-tabs button:hover,
.page-tabs button.active {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.88;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h3 {
  font-size: 24px;
  line-height: 1.25;
}

p {
  color: #3d3b37;
  line-height: 1.75;
}

.section {
  /* 큰 화면에서 콘텐츠 폭을 1340px로 고정하고 좌우 여백을 자동 확장
     (배경색은 풀블리드 유지, 작품 이미지가 과도하게 커지지 않음) */
  padding: 96px max(40px, calc((100% - 1340px) / 2));
}

.section-heading {
  max-width: 360px;
}

.artwork-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
}

.sticky-heading {
  position: sticky;
  top: 150px;
  align-self: start;
}

.artwork-years {
  display: grid;
  gap: 80px;
}

.year-block {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 30px;
}

.year-label {
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

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

.art-card {
  appearance: none;
  display: grid;
  align-content: start;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.art-card .frame {
  display: block;
  margin-bottom: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.art-card:hover .frame {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(42, 34, 26, 0.16);
}

.art-card strong,
.art-card small {
  display: block;
}

.art-card strong {
  font-size: 16px;
}

.art-card small {
  margin-top: 4px;
  color: var(--muted);
}

.frame {
  background: #2a2520;
  border: 4px solid #2a2520;
  box-shadow: 0 14px 28px rgba(42, 34, 26, 0.13);
}

.frame-tight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #eee9dd;
}

.art-card .frame {
  aspect-ratio: 4 / 5;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.78);
  color: var(--muted);
  font-size: 13px;
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fc9c7;
}

.status-chip.sold::before {
  background: #e79a98;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 720px);
  gap: 70px;
  align-items: start;
  background: #eeebe4;
}

.profile-portrait {
  aspect-ratio: 3 / 4;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.profile-meta div,
.career-list {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
}

.career-list ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
  color: #3d3b37;
  line-height: 1.9;
}

.profile-depth {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
  border: 1px solid var(--line);
}

.profile-depth article {
  min-height: 260px;
  background: #f7f4ee;
  padding: 28px;
}

.profile-depth h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-grid span {
  border: 1px solid var(--line);
  background: #fffdfa;
  color: #5f625f;
  padding: 9px 12px;
  font-size: 13px;
}

.profile-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  color: #3d3b37;
  line-height: 1.6;
}

.profile-timeline span {
  color: var(--blue);
  font-weight: 800;
}

.notes-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 70px;
  align-items: start;
}

.note-sidebar {
  position: sticky;
  top: 112px;
}

.archive-year {
  margin-top: 22px;
  padding-top: 18px;
  padding-left: 12px;
  border-top: 1px solid var(--line);
}

.archive-year button {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.tree-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  color: #77756f;
}

.year-toggle {
  border-color: transparent;
  padding-left: 8px;
  color: #74726c;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.month-tree,
.title-tree {
  display: none;
}

.archive-year.open > .month-tree,
.month-node.open > .title-tree {
  display: grid;
}

.month-tree {
  gap: 8px;
  margin-top: 10px;
}

.month-node {
  display: grid;
  gap: 8px;
}

.month-toggle {
  margin-left: 10px;
}

.note-title-link {
  width: calc(100% - 28px);
  margin-left: 28px;
  padding: 9px 12px;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
}

.title-marquee-track {
  display: inline-flex;
  min-width: max-content;
  gap: 34px;
  will-change: transform;
}

.title-marquee-track span {
  display: inline-block;
}

.archive-year button.active,
.archive-year button:hover,
.note-title-link.active,
.note-title-link:hover {
  background: var(--soft-select);
  border-color: var(--soft-select);
  color: var(--soft-select-text);
}

.note-title-link:hover .title-marquee-track {
  animation: title-marquee 7s linear infinite;
}

@keyframes title-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 17px));
  }
}

.note-post {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 44px;
  box-shadow: var(--shadow);
}

.note-post h3 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

.note-inline-image {
  width: min(100%, 560px);
  margin: 0 0 24px;
  border: 1px solid var(--line);
}

.admin-view {
  background: #eeebe4;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 40px;
}

.admin-login,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 34px;
}

.admin-login {
  max-width: 420px;
  margin: 0 auto;
}

.admin-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

.admin-card,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-card {
  border: 1px solid var(--line);
  background: #f7f4ee;
  padding: 22px;
}

.admin-card h3 {
  margin-bottom: 4px;
}

.admin-card label,
.admin-form label {
  display: grid;
  gap: 6px;
}

.admin-card span,
.admin-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-card input,
.admin-card textarea,
.admin-card select,
.admin-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
}

.admin-card button,
.admin-form button,
#admin-logout {
  border: 0;
  background: var(--soft-select);
  color: #fff;
  cursor: pointer;
  padding: 12px 16px;
}

.admin-card button:hover,
.admin-form button:hover,
#admin-logout:hover {
  background: #6f7772;
}

.admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pipeline-status {
  display: grid;
  gap: 7px;
  min-height: 0;
}

.pipeline-status div {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 9px 11px;
  font-size: 13px;
}

.pipeline-status div.done {
  border-color: #aeb6b1;
  background: #edf0ed;
  color: #59615d;
  font-weight: 700;
}

.portfolio-view {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--charcoal);
  color: #f7f4ee;
}

.portfolio-sidebar {
  min-height: calc(100vh - 72px);
  padding: 34px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: #171d1e;
}

.portfolio-sidebar h2 {
  font-size: 28px;
}

.portfolio-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.portfolio-nav button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #d7d0c3;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.portfolio-nav button.active,
.portfolio-nav button:hover {
  background: #f7f4ee;
  color: var(--ink);
}

.portfolio-stage {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(340px, 56vw) minmax(300px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
}

.slide-image {
  width: 100%;
  max-height: calc(100vh - 170px);
  aspect-ratio: 4 / 5;
}

.slide-image.frame-tight img {
  object-fit: contain;
  background: #fff;
}

.slide-image.frame-tight video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
  border: 3px solid #eee9dd;
}

.slide-copy {
  max-width: 520px;
}

.slide-copy .eyebrow,
.portfolio-sidebar .eyebrow,
.portfolio-stage p {
  color: #d7d0c3;
}

.slide-copy h3 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.slide-controls button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #f7f4ee;
  cursor: pointer;
  padding: 11px 18px;
}

.slide-controls button:hover {
  background: #f7f4ee;
  color: var(--ink);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(20, 18, 16, 0.76);
}

.modal-dialog {
  width: min(1160px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 34px;
  overflow: auto;
  background: var(--panel);
  padding: 24px;
}

.modal-art {
  min-height: 420px;
}

.modal-info {
  align-self: center;
  padding: 18px 10px;
}

.modal-info h2 {
  font-size: 46px;
}

.modal-info dl {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.modal-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .main-nav,
  .page-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .artist-overview {
    min-height: 0;
    padding: 42vh 22px 56px;
    background:
      linear-gradient(180deg, rgba(247, 244, 238, 0.8), rgba(247, 244, 238, 1)),
      url("extracted/images/Chang-MiHyun---Artist-Portfolio-p03-11.png") center top / 100% auto no-repeat;
  }

  .artwork-section,
  .profile-section,
  .notes-section,
  .portfolio-view,
  .portfolio-stage,
  .profile-depth,
  .admin-grid,
  .modal-dialog {
    grid-template-columns: 1fr;
  }

  .sticky-heading,
  .note-sidebar {
    position: static;
  }

  .year-block {
    grid-template-columns: 1fr;
  }

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

  .portfolio-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .portfolio-stage {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 54px;
  }

  h2,
  .note-post h3 {
    font-size: 30px;
  }

  .overview-title-row {
    display: block;
  }

  .visit-counter {
    margin: 0 0 20px;
  }

  .artwork-grid,
  .profile-meta,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 68px;
  }

  .note-post {
    padding: 28px 20px;
  }

  .career-list ul {
    columns: 1;
  }

  .comment-policy {
    display: block;
  }

  .portfolio-stage {
    padding: 20px;
  }

  .slide-image {
    max-height: none;
  }

  .modal {
    padding: 14px;
  }

  .modal-dialog {
    padding: 14px;
  }
}
