:root {
  --bg: #07111f;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.12);
  --text: #f4f7fb;
  --muted: #bcc7d9;
  --accent: #dbe7ff;
  --danger: #ff7676;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  background: radial-gradient(circle at top left, #0c1c38 0%, var(--bg) 42%, #060d17 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea {
  font: inherit;
}
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { font-size: 2rem; font-weight: 800; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.nav-links a, .nav-links button { color: var(--muted); }
.eyebrow { margin: 0 0 12px; color: #cad5e9; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.hero { padding: 72px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .85fr); gap: 20px; align-items: end; }
#heroTitle { margin: 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; }
.hero-subtitle { margin: 16px 0 0; color: var(--muted); max-width: 50ch; font-size: 1.08rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card, .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.stat-card { padding: 16px 18px; min-width: 0; }
.stat-label { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.stat-value { display: block; margin-top: 6px; font-size: 1.4rem; }
.section { padding: 28px 0 36px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: 28px; }
.body-copy { margin: 0; color: var(--muted); line-height: 1.75; white-space: pre-wrap; }
.bullet-list { margin: 8px 0 0 20px; padding: 0; color: var(--muted); line-height: 1.8; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2, .card h2, .card h1 { margin: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #8fa0bc; }
textarea { resize: vertical; min-height: 120px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.artwork-card {
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.artwork-image-wrap { aspect-ratio: 1 / 1; background: rgba(255,255,255,0.03); }
.artwork-image { width: 100%; height: 100%; object-fit: cover; }
.artwork-meta { padding: 18px; }
.artwork-topline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.artwork-title { margin: 0; font-size: 1.08rem; }
.artwork-year, .artwork-category, .artwork-description, .artwork-tags { color: var(--muted); }
.artwork-category, .artwork-description, .artwork-tags { margin: 8px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-label { display: block; color: var(--muted); margin-bottom: 8px; }
.empty-state { color: var(--muted); }
.hidden { display: none !important; }
.stack-md > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compact-grid { gap: 10px; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); }
.primary-btn, .ghost-btn, .danger-btn {
  border-radius: 16px; padding: 12px 16px; border: 1px solid var(--border); cursor: pointer;
}
.primary-btn { background: #f2f6ff; color: #07111f; font-weight: 700; }
.ghost-btn { background: transparent; color: var(--text); }
.danger-btn { background: transparent; color: var(--danger); border-color: rgba(255,118,118,.38); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-text { color: var(--muted); font-size: .94rem; }
.error-text { color: #ff9797; }
.checkbox-row { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.checkbox-row input { width: auto; }
.checkbox-row.small { font-size: .95rem; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(520px, 100%);
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.text-link { color: #d7e5ff; }
.admin-main { padding-top: 40px; }
.admin-grid { display: grid; gap: 20px; }
.admin-section h1, .admin-section h2 { margin: 0; }
.admin-list { display: grid; gap: 16px; }
.admin-item {
  display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 16px;
  border: 1px solid var(--border); border-radius: 20px; padding: 16px;
  background: rgba(255,255,255,0.04);
}
.admin-item-image-wrap { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; }
.admin-item-image { width: 100%; height: 100%; object-fit: cover; }
.admin-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.admin-item-title { margin: 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-grid, .two-col, .contact-grid, .grid-2, .admin-item { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1120px); }
  .nav-row { min-height: 64px; }
  .brand { font-size: 1.6rem; }
  .nav-links { gap: 10px; font-size: .92rem; }
  .hero { padding-top: 46px; }
  .compact-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; border-radius: 18px; }
  .stat-label { font-size: .72rem; }
  .stat-value { font-size: 1rem; margin-top: 4px; }
  .gallery { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 20px; }
  .admin-item { padding: 12px; }
}
