:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-sub: #5c6470;
  --accent: #3b82f6;
  --border: #e2e5ea;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-hover: 0 4px 8px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1e2127;
    --text: #e8eaed;
    --text-sub: #9aa3af;
    --accent: #60a5fa;
    --border: #2c3038;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
    --shadow-hover: 0 6px 20px rgba(0,0,0,.5);
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-sub);
  padding: 3px 9px;
  border: 1px solid rgba(201, 162, 75, .5);
  border-radius: 999px;
}
nav { display: flex; gap: 4px; }
nav a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--bg); color: var(--accent); }
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero p { color: var(--text-sub); font-size: 15px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 2px solid rgba(201, 162, 75, .5);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 162, 75, .9);
}
.card .art {
  display: block;
  width: 100%;
  aspect-ratio: 832 / 1216;
  object-fit: cover;
}
.card-body {
  padding: 18px 20px 20px;
  border-top: 2px solid rgba(201, 162, 75, .5);
}
.card h2 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--text-sub); font-size: 14px; margin-bottom: 12px; }
.card .url { font-size: 12px; color: var(--accent); word-break: break-all; }
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-sub);
  font-size: 13px;
}
/* services.json 을 읽지 못했을 때만 노출되는 안내 문구 */
.notice {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-sub);
  font-size: 15px;
  padding: 40px 0;
}
