:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a2219;
  --text-2: #6e6050;
  --text-3: #9a8d7d;
  --line: #e8e0d4;
  --accent: #8a5a1c;
  --accent-bg: #f5ead8;
  --serif: "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #211b16;
    --text: #f1e9de;
    --text-2: #c4b6a4;
    --text-3: #8f8272;
    --line: #3a3129;
    --accent: #e0b36f;
    --accent-bg: #3a2c1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
nav.site { display: flex; gap: 20px; font-size: 14px; color: var(--text-2); }
nav.site a { text-decoration: none; }
nav.site a:hover { color: var(--text); }

.hero { padding: 56px 0 32px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.hero p { margin: 0; color: var(--text-2); font-size: 16px; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-bottom: 28px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card.featured { border: 2px solid var(--accent); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card .addr { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.card h2 { font-size: 19px; margin: 0 0 6px; line-height: 1.4; }
.card .desc { margin: 0 0 12px; color: var(--text-2); font-size: 15px; }
.card .note { margin: 0 0 16px; color: var(--text-3); font-size: 13px; }
.card .go { margin-top: auto; color: var(--accent); font-size: 15px; font-weight: 600; }

.store {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; margin-bottom: 48px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
}
.store:hover { border-color: var(--accent); }
.store .label { font-size: 13px; color: var(--text-3); margin-right: 10px; }
.store .name { font-size: 15px; }
.store .sub { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.store .go { font-size: 14px; color: var(--text-2); white-space: nowrap; }

.about { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.about h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; }
.about p { margin: 0 0 10px; color: var(--text-2); max-width: 640px; }

footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
footer.site .links { margin-bottom: 8px; font-size: 13px; }
footer.site .links a { color: var(--text-2); text-decoration: none; margin-right: 14px; }
footer.site .links a:hover { text-decoration: underline; }
footer.site .biz span { white-space: nowrap; margin-right: 12px; }
footer.site .biz a { color: var(--text-3); }

.doc { padding-top: 40px; padding-bottom: 56px; max-width: 800px; }
.doc h1 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.doc .meta { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 18px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--text-2); }
.doc th { background: var(--accent-bg); color: var(--text); font-weight: 600; }
.doc .scroll { overflow-x: auto; }

@media (max-width: 520px) {
  .hero { padding: 40px 0 24px; }
  nav.site { gap: 14px; }
  .store { flex-direction: column; align-items: flex-start; gap: 6px; }
}
