:root {
  --bg: #faf8f4;
  --panel: #ffffff;
  --ink: #2b2622;
  --muted: #6b6259;
  --accent: #8a6d3b;
  --accent-soft: #f1e6d2;
  --border: #e7ddc9;
  --sidebar-w: 220px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 28px 4px;
  text-transform: uppercase;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu a:hover {
  background: var(--accent-soft);
}

.menu a.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- Main content ---------- */
.main {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  justify-content: center;
}

.content {
  width: 100%;
  max-width: 720px;
}

/* Home page hero */
.hero {
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 36px;
  box-shadow: 0 12px 30px rgba(60, 45, 20, 0.12);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero h1 {
  font-size: 26px;
  margin: 0 0 18px;
  color: var(--accent);
}

.hero p {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
  text-align: left;
}

/* Sub pages */
.page-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
}

.page-card .label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.page-card .value {
  font-size: 28px;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .main {
    padding: 32px 20px;
  }
  .page-card {
    padding: 32px 24px;
  }
}
