:root {
  --ink: #241f1a;
  --paper: #f6f2ea;
  --line: #ddd4c4;
  --gold: #a8834a;
  --dim: #8b8175;
  --red: #a8443a;
  --green: #4a7a52;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif CJK KR", "Noto Serif KR", serif;
  line-height: 1.7;
}
a { color: inherit; }
.top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--line);
  max-width: 1180px; margin: 0 auto;
}
.brand { font-size: 1.35rem; letter-spacing: .22em; text-decoration: none; }
.brand-sub { font-size: .78rem; color: var(--dim); margin-left: 8px; letter-spacing: .08em; }
.top nav a { margin-left: 20px; font-size: .9rem; color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.admin-link { color: var(--gold) !important; }
main { max-width: 1180px; margin: 0 auto; padding: 30px 28px 70px; }
footer {
  max-width: 1180px; margin: 0 auto; padding: 24px 28px 40px;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim);
}
.dim { color: var(--dim); }

.hero { text-align: center; padding: 30px 0 46px; }
.hero h1 { font-size: 2rem; margin: 0 0 10px; font-weight: 500; letter-spacing: .04em; }
.hero p { margin: 0; color: var(--dim); }

.counts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.counts span {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  font-size: .82rem; color: var(--dim);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card { text-decoration: none; display: block; }
.card figure { margin: 0; }
.card img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(60, 45, 25, .10); display: block;
  transition: transform .18s ease;
}
.card:hover img { transform: translateY(-3px); }
.card .serial { font-size: .78rem; letter-spacing: .1em; color: var(--dim); margin-top: 10px; text-align: center; }
.card .title { font-size: 1.02rem; margin: 2px 0 6px; text-align: center; }
.card .meta { display: flex; justify-content: center; gap: 10px; font-size: .84rem; }
.tag { border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; font-size: .76rem; }
.tag.SOLD { color: var(--green); border-color: var(--green); }
.tag.LISTED { color: var(--gold); border-color: var(--gold); }
.empty { text-align: center; color: var(--dim); padding: 70px 0; }

.plate { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.plate img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(60,45,25,.12); }
.side h1 { font-size: 1.5rem; margin: 0 0 4px; font-weight: 500; }
.side .serial { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--dim); letter-spacing: .06em; }
.side .price { font-size: 1.5rem; margin: 18px 0 4px; }
.side .left { color: var(--red); font-size: .88rem; }
.facts { list-style: none; padding: 0; margin: 22px 0; font-size: .9rem; }
.facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.facts span:first-child { color: var(--dim); }
code, .mono { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: .78rem; word-break: break-all; }

.audio { margin: 18px 0; }
.audio audio { width: 100%; }
.script { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin: 20px 0; }
.script b { font-size: .78rem; color: var(--dim); font-weight: 500; letter-spacing: .1em; }
.script p { margin: 4px 0 0; }

form.order { display: grid; gap: 10px; margin-top: 18px; }
form.order input, form.order textarea {
  font-family: inherit; font-size: .95rem; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 6px; background: #fffdf8;
}
button {
  font-family: inherit; font-size: .98rem; padding: 11px 18px; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper);
}
button.ghost { background: transparent; color: var(--ink); }
button:hover { opacity: .88; }
.note { font-size: .82rem; color: var(--dim); margin-top: 10px; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 500; font-size: .78rem; letter-spacing: .08em; }
tr.bad td { color: var(--red); }

.cert {
  max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px;
  padding: 40px 44px; background: #fffdf8;
}
.cert h1 { text-align: center; font-size: 1.4rem; letter-spacing: .1em; font-weight: 500; }
.cert .lead { text-align: center; color: var(--dim); margin-top: 6px; }
.cert .owner { text-align: center; font-size: 1.6rem; margin: 26px 0 6px; }
.cert dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: .88rem; margin: 24px 0; }
.cert dt { color: var(--dim); }
.cert .sealbox { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 10px; font-size: .78rem; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.ok { color: var(--green); }
.bad { color: var(--red); }
.section { margin-top: 46px; }
.section h2 { font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pill { display: inline-block; font-size: .76rem; border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; color: var(--dim); }
