:root {
  font-family:
    "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
  color: #252821;
  background: #f8f7f4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  --paper: #f8f7f4;
  --ink: #252821;
  --muted: #686b62;
  --line: #d8d8cf;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #626b43;
  outline-offset: 4px;
}
::selection {
  background: #dce2bb;
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 16px;
}

.section-wrap {
  width: min(1320px, calc(100% - 112px));
  margin-inline: auto;
}
.archive-section {
  padding-top: 64px;
  padding-bottom: 96px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 38px;
}
.artist-studio {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.section-heading h1 {
  margin-top: 16px;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -1.8px;
}
.artist-role {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.1px;
  color: var(--muted);
}
.text-button {
  padding: 9px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.text-button span {
  margin-left: 18px;
  font-size: 16px;
}
.text-button:hover {
  color: #626b43;
}

.archive-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.archive-sidebar {
  position: sticky;
  top: 32px;
  align-self: start;
  min-width: 0;
}
.sidebar-label {
  margin: 4px 0 22px;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 2px;
  text-align: left;
  font-size: 12px;
  transition: background 0.15s;
}
.category-button > span:last-child {
  font:
    10px Arial,
    sans-serif;
  color: var(--muted);
}
.category-button.active {
  background: #e7eadb;
}
.category-button.active > span:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: #69724b;
}
.category-button:hover {
  background: #eceee3;
}
.archive-note {
  margin-top: 28px;
  padding-left: 12px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.archive-main {
  min-width: 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.search-icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  border: 1px solid #848879;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 1px;
  background: #848879;
  transform: rotate(45deg);
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  outline-offset: 1px;
}
.search-form input::placeholder {
  color: var(--muted);
}
.search-form input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.clear-search {
  padding: 0 6px;
  font:
    20px Arial,
    sans-serif;
}
.archive-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.archive-results-top > span {
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}
.archive-category-heading {
  margin-top: 32px;
  padding: 10px 0;
  border-bottom: 1px solid #c3c6b7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #626b43;
}
.archive-entry {
  display: grid;
  grid-template-columns: 83px minmax(0, 1fr) 24px;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.entry-year {
  padding-top: 1px;
  font:
    11px/1.7 Arial,
    sans-serif;
  color: var(--muted);
}
.entry-details h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.entry-details p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.entry-link {
  align-self: start;
  text-align: center;
  font:
    20px Arial,
    sans-serif;
  transition: transform 0.15s;
}
.entry-link:hover {
  transform: translate(2px, -2px);
  color: #626b43;
}
.load-more {
  width: 100%;
  margin-top: 25px;
  padding: 17px;
  border: 1px solid var(--line);
  font-size: 12px;
  transition: background 0.2s;
}
.load-more:hover {
  background: #eaece2;
}
.empty-state {
  padding: 60px 0;
  text-align: center;
}
.empty-state > span {
  display: block;
  margin-bottom: 22px;
  color: #8d9674;
}
.empty-state h2 {
  font-size: 17px;
  font-weight: 400;
}
.empty-state p {
  margin: 14px 0 25px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.notification {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 24px #25282115;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.notification.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1060px) {
  .section-wrap {
    width: calc(100% - 72px);
  }
  .archive-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 24px;
  }
  .section-wrap {
    width: calc(100% - 40px);
  }
  .archive-section {
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .section-heading {
    gap: 20px;
    margin-bottom: 26px;
  }
  .artist-studio {
    font-size: 11px;
  }
  .section-heading h1 {
    margin-top: 16px;
    font-size: 36px;
    letter-spacing: -1.2px;
  }
  .artist-role {
    margin-top: 10px;
    font-size: 12px;
  }
  .text-button {
    font-size: 11px;
  }
  .text-button span {
    margin-left: 8px;
    font-size: 14px;
  }
  .archive-layout {
    display: block;
    padding-top: 14px;
  }
  .archive-sidebar {
    position: static;
  }
  .sidebar-label {
    display: none;
  }
  .category-list {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
    scrollbar-color: #b8bca8 transparent;
  }
  .category-button {
    flex-shrink: 0;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    font-size: 12px;
    white-space: nowrap;
  }
  .category-button > span:last-child {
    font-size: 10px;
  }
  .category-button.active {
    border-color: #bcc3a6;
  }
  .category-button.active > span:first-child::before {
    display: none;
  }
  .archive-note {
    margin: 8px 0 20px;
    padding-left: 0;
    font-size: 11px;
  }
  .archive-note br {
    display: none;
  }
  .archive-main {
    margin-top: 22px;
  }
  .search-form {
    padding-bottom: 13px;
  }
  .archive-results-top {
    margin-top: 17px;
    font-size: 10px;
  }
  .archive-results-top > span {
    font-size: 8px;
  }
  .archive-category-heading {
    margin-top: 26px;
    font-size: 10px;
  }
  .archive-entry {
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 6px;
    padding-block: 19px;
  }
  .entry-year {
    font-size: 11px;
    line-height: 1.9;
  }
  .entry-details h2 {
    font-size: 14px;
  }
  .entry-details p {
    margin-top: 5px;
    font-size: 12px;
  }
  .entry-link {
    font-size: 18px;
  }
  .load-more {
    padding: 15px;
    font-size: 11px;
  }
  .notification {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  @page {
    margin: 15mm;
  }
  body {
    background: white;
    color: black;
  }
  .archive-sidebar,
  .search-form,
  .load-more,
  .text-button,
  .notification,
  .skip-link,
  .archive-results-top {
    display: none !important;
  }
  .section-wrap {
    width: 100%;
    margin: 0;
  }
  .archive-section {
    padding: 0;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .artist-studio {
    font-size: 10px;
    color: black;
  }
  .section-heading h1 {
    margin-top: 8px;
    font-size: 24px;
    letter-spacing: -1px;
  }
  .artist-role {
    font-size: 10px;
    color: black;
  }
  .archive-layout {
    display: block;
    padding-top: 0;
    border-top: 1px solid black;
  }
  .archive-main {
    margin-top: 0;
  }
  .archive-category-heading {
    margin-top: 20px;
    break-after: avoid;
    font-size: 11px;
    color: black;
  }
  .archive-entry {
    break-inside: avoid;
    grid-template-columns: 80px minmax(0, 1fr) 20px;
    padding: 10px 0;
  }
  .entry-details h2 {
    font-size: 11px;
  }
  .entry-details p {
    font-size: 9px;
    color: black;
  }
  .entry-year {
    font-size: 9px;
    color: black;
  }
  .entry-link {
    font-size: 12px;
  }
}

.artist-education {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.artist-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.business-number { white-space: nowrap; }
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.instagram-link:hover { color: var(--ink); background: #e7eadb; }
@media print { .artist-contact { color: black; } .instagram-link { display: none; } }
