:root {
  --leather: #2a1a10;
  --leather-2: #4a2e1b;
  --tan: #c9a27a;
  --cream: #f3e9da;
  --paper: #faf6ef;
  --ink: #241a13;
  --muted: #7a6a5c;
  --line: #e6dccd;
  --accent: #a0683f;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
a { color: var(--accent); }
.wordmark { margin: 0; font: 400 64px/1 "Didot", "Bodoni 72", "Playfair Display", Georgia, serif; letter-spacing: .01em; }
.wordmark .dot { color: var(--tan); }
.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; color: var(--accent); font-weight: 600; }

/* 히어로: 가죽 질감 + 박음질 테두리 */
.hero {
  min-height: 88vh;
  padding: 24px;
  display: grid;
  background:
    var(--grain),
    radial-gradient(120% 90% at 50% 35%, var(--leather-2) 0%, var(--leather) 62%, #1a0f08 100%);
  color: var(--cream);
}
.stitch-frame {
  border: 2px dashed rgba(201, 162, 122, .55);
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; position: relative;
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .12);
}
.badge {
  width: min(64vw, 280px); aspect-ratio: 1;
  background: var(--tan);
  -webkit-mask: url("/assets/badge.svg") center / contain no-repeat;
  mask: url("/assets/badge.svg") center / contain no-repeat;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
  opacity: .92;
}
.hero .tagline { margin: 18px 0 0; color: rgba(243, 233, 218, .78); letter-spacing: .04em; }
.scroll { position: absolute; bottom: 22px; color: rgba(243, 233, 218, .6); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 본문 */
main { max-width: 960px; margin: 0 auto; padding: 88px 24px 72px; }
.intro { margin-bottom: 64px; }
.lead { margin: 0; font: 400 26px/1.6 "Didot", "Bodoni 72", "Apple SD Gothic Neo", Georgia, serif; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.card::after {
  content: ""; position: absolute; inset: 7px; border: 1.5px dashed transparent; border-radius: 9px;
  transition: border-color .2s ease; pointer-events: none;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(42, 26, 16, .45); }
.card:hover::after { border-color: rgba(160, 104, 63, .45); }
.card .icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.card .icon svg { width: 100%; height: 100%; }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.pill { background: var(--leather); color: var(--cream); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.pill.soon { background: var(--tan); color: var(--leather); }
.card.placeholder { background: transparent; border: 1.5px dashed var(--line); }
.card.placeholder .icon { color: var(--tan); }

/* 푸터 */
.site-footer {
  background: var(--grain), var(--leather); color: rgba(243, 233, 218, .7);
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  padding: 28px max(24px, calc((100vw - 912px) / 2)); font-size: 14px;
}
.site-footer a { color: var(--cream); }
.symbol {
  width: 22px; height: 32px; background: var(--tan);
  -webkit-mask: url("/assets/symbol.svg") center / contain no-repeat;
  mask: url("/assets/symbol.svg") center / contain no-repeat;
}

/* 문서 페이지 */
.doc-head { background: var(--grain), var(--leather); padding: 22px 24px; }
.doc-head a { color: var(--cream); text-decoration: none; font: 400 30px/1 "Didot", "Bodoni 72", Georgia, serif; }
.doc-head .dot { color: var(--tan); }
.doc { max-width: 720px; }
.doc h1 { font-size: 26px; margin: 0 0 4px; }
.doc h3 { font-size: 17px; margin: 32px 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 0; }

@media (max-width: 560px) {
  .wordmark { font-size: 48px; }
  .lead { font-size: 21px; }
  .site-footer { flex-direction: column; gap: 10px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
