/* ==========================================================================
   디자인 토큰
   ========================================================================== */
:root {
  /* 색상 */
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2925;
  --text-muted: #6b6557;
  --text-subtle: #8a8273;
  --border: #ece5d8;
  --border-strong: #d4ccbc;
  --accent: #c4633e;
  --accent-hover: #a04f30;
  --accent-soft: #f5e6d8;
  --error: #b3402a;
  --error-soft: #f5d6cc;

  /* 폰트 */
  --font-serif: "Noto Serif KR", Georgia, "Nanum Myeongjo", serif;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;

  /* 간격·반경 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(43, 41, 37, 0.04);
  --shadow-md: 0 4px 12px rgba(43, 41, 37, 0.06);

  /* 컨텐츠 폭 */
  --content-max: 1100px;
}

/* ==========================================================================
   리셋
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ==========================================================================
   타이포그래피
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

p { margin: 0; }

.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.label-uppercase {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
}

/* ==========================================================================
   페이지 레이아웃
   ========================================================================== */
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.site-content {
  flex: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 32px;
}

/* ==========================================================================
   허브 페이지 (홈)
   ========================================================================== */
.hub-hero {
  text-align: center;
  padding: 36px 0 24px;
}
.hub-hero h1 {
  font-size: 24px;
  font-weight: 500;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.hub-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.hub-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.hub-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.hub-card .arrow {
  color: var(--accent);
  font-size: 13px;
  margin-top: 14px;
  font-weight: 500;
}

/* ==========================================================================
   반응형 (640px 이상: PC/태블릿)
   ========================================================================== */
@media (min-width: 640px) {
  .site-header-inner { padding: 16px 24px; }
  .site-content { padding: 32px 24px; }
  .site-footer { padding: 20px 24px; }

  .hub-hero { padding: 56px 0 36px; }
  .hub-hero h1 { font-size: 34px; }

  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
  }
}