/* jong.chaaaaan.app — HIG 원칙: 여백이 일하고, UI는 물러난다 */

:root {
  --bg: #fbfbfd;
  --bg-raised: #f2f2f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73; /* 4.5:1 이상 (HIG/WCAG AA, docs/HIG.md §2.6) */
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161617;
    --bg-raised: #1d1d1f;
    --text: #f5f5f7;
    --text-soft: #86868b;
    --hairline: rgba(255, 255, 255, 0.1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

header {
  margin-bottom: 3.5rem;
}

.lang {
  margin-bottom: 1.5rem;
}

.lang a {
  display: inline-block;
  color: var(--text-soft);
  font-size: 0.8125rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

.lang a:hover {
  color: var(--accent);
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 1.0625rem;
}

.rooms {
  list-style: none;
}

.rooms li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
}

.rooms li:first-child {
  border-top: 1px solid var(--hairline);
}

.room-name {
  font-size: 1.0625rem;
  font-weight: 500;
}

a.room-name {
  color: var(--text);
  text-decoration: none;
}

a.room-name::after {
  content: " →";
  color: var(--text-soft);
}

a.room-name:hover {
  color: var(--accent);
}

a.room-name:hover::after {
  color: var(--accent);
}

.room-note {
  color: var(--text-soft);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* --- 방(하위 페이지) 공통: breadcrumb + 본문 --- */

.crumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.crumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  font-weight: 600;
}

.specs {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.15rem;
  font-size: 0.9375rem;
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}

.specs th {
  font-weight: 600;
  white-space: nowrap;
  padding-right: 1.25rem;
  width: 1%;
}

.specs td {
  color: var(--text-soft);
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

footer {
  margin-top: auto;
  padding-top: 4rem;
}

footer p {
  color: var(--text-soft);
  font-size: 0.8125rem;
}
