:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #3f7d5c;
  --accent-soft: #e6f1ea;
  --line: #e7e2d9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1d1b;
    --card: #242724;
    --text: #ecebe6;
    --muted: #a3a59e;
    --accent: #7fc09b;
    --accent-soft: #2a3a30;
    --line: #353a35;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
a { color: var(--accent); }
header, main, footer { max-width: 880px; margin: 0 auto; padding-inline: 20px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a.active, nav a:hover { color: var(--accent); }
.hero { padding-block: 40px 28px; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; }
.hero .hero-note { font-size: 0.9rem; margin-top: 10px; }
section { padding-block: 24px; }
section h2 { font-size: 1.3rem; margin: 0 0 14px; color: var(--accent); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid .card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.grid .card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
ul.check { padding-left: 1.2em; margin: 0; }
ul.check li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.tag { display: inline-block; font-size: 0.8rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  font: inherit; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.filters button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.res-meta { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
footer { color: var(--muted); font-size: 0.9rem; padding-block: 32px 48px; border-top: 1px solid var(--line); margin-top: 24px; }
@media (max-width: 600px) {
  nav a { margin-left: 10px; }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero h1, .hero p { animation: rise 0.9s ease both; }
.hero p { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); }
.filters button { transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.filters button:active { transform: scale(0.96); }
.brand { position: relative; }
.brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.brand:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.video-card video { display: block; width: 100%; max-width: 360px; margin: 0 auto 10px; border-radius: 8px; background: #000; }
