:root {
  --ink: #202620;
  --muted: #687268;
  --paper: #fffaf0;
  --surface: #ffffff;
  --line: #e1dac9;
  --gold: #b87a1d;
  --leaf: #2f6b58;
  --rose: #b95465;
  --sky: #d9ecf3;
  --shadow: 0 16px 40px rgba(32, 38, 32, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hero {
  min-height: 54vh;
  padding: 24px min(32px, 5vw) 56px;
  background: linear-gradient(135deg, #f6e5b9, #d6e9e2 58%, #fff6df);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--leaf);
  font-weight: 800;
}
.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 107, 88, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 14px;
}
.hero-copy {
  max-width: 900px;
  margin: 72px auto 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.06;
  letter-spacing: 0;
}
.hero-copy p:last-child,
.detail-header p:last-child {
  max-width: 720px;
  color: #48534b;
  font-size: 1.06rem;
}
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 360px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(10px);
}
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
button,
.button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button.active,
.button.primary {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}
.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px 0;
  color: var(--muted);
  font-weight: 800;
}
.stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 11px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  padding: 0 0 72px;
}
.collection-card,
.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1.25;
  padding: 18px;
  background: linear-gradient(180deg, #fff, var(--sky));
}
.thumb img,
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-body {
  padding: 16px;
}
.category {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
}
h2 {
  min-height: 3.2em;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.card-body > p:not(.category) {
  margin: 8px 0 14px;
  color: var(--muted);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-header {
  padding: 24px min(32px, 5vw) 34px;
  background: linear-gradient(135deg, #f8e9c2, #d8ece4);
}
.detail-header .eyebrow,
.detail-header h1,
.detail-header p:last-child {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.detail-header .eyebrow { margin-top: 58px; }
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 34px 0 72px;
}
.image-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
}
.image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.image-meta a { color: var(--leaf); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 720px) {
  .toolbar { grid-template-columns: 1fr; }
  .nav,
  .footer { align-items: flex-start; flex-direction: column; }
  .collection-grid { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
