:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6b675f;
  --line: #e4dfd5;
  --accent: #8a2c22;
  --max: 1080px;
  --serif: "Noto Serif KR", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 700 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; gap: 20px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font: 700 clamp(32px, 5vw, 52px)/1.15 var(--serif); margin: 0 0 20px; max-width: 760px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }

/* sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
h2 { font: 700 28px/1.3 var(--serif); margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 0 40px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols h3 { font-size: 17px; margin: 0 0 8px; }
.cols p { margin: 0; color: var(--muted); font-size: 15px; }

/* books */
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; list-style: none; padding: 0; margin: 0; }
.book img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--line); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.book .t { font-weight: 600; font-size: 14px; line-height: 1.4; margin: 12px 0 2px; }
.book .ko { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin: 0 0 4px; }
.book .meta { font-size: 12px; color: var(--muted); margin: 0; }
.book .meta span { display: block; }

/* company table */
.info { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.info th, .info td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.info th { width: 34%; color: var(--muted); font-weight: 500; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }

/* legal pages */
.doc { padding: 56px 0 80px; max-width: 760px; }
.doc h1 { font: 700 36px/1.2 var(--serif); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc p, .doc li { color: #34322e; }

/* footer */
.site-footer { padding: 40px 0 56px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 4px; }

@media (max-width: 860px) {
  .books { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 12px; gap: 6px; }
  .brand { white-space: nowrap; }
  .nav { width: 100%; gap: 18px; font-size: 13px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .info th { width: 40%; }
}
