/* 색은 로고 원본의 두 색만 씁니다. */
:root {
  --ink: #222222;
  --bone: #f7f6f2;
  --mute: #8d8a84;
  --line: rgba(247, 246, 242, 0.14);
  --latin: 'Marcellus', 'Times New Roman', serif;
  --kr: 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--kr);
  font-size: 16px;
  line-height: 1.5;
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  -webkit-font-smoothing: antialiased;
}

/* ---------- left: brand ---------- */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.logo { display: block; width: clamp(220px, 24vw, 340px); line-height: 0; }
.logo img { width: 100%; height: auto; }

.clocks { margin: 0; display: flex; gap: 32px; }
.clocks div { display: flex; flex-direction: column; gap: 2px; }
.clocks dt { font-family: var(--latin); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.clocks dd { margin: 0; font-family: var(--latin); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.side-note { margin: 22px 0 0; color: var(--mute); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- right: directory ---------- */
.index { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px) 0; }
.rows { display: flex; flex-direction: column; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vh, 34px) clamp(28px, 5vw, 80px);
  color: var(--bone);
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background .18s ease, color .18s ease;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.005em; }
.row-role { font-family: var(--latin); font-size: 15px; letter-spacing: 0.1em; color: var(--mute); transition: color .18s; }

.row:hover, .row:focus-visible {
  background: var(--bone);
  color: var(--ink);
  outline: none;
}
.row:hover .row-role, .row:focus-visible .row-role { color: var(--ink); }
.row:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- narrow screens ---------- */
@media (max-width: 820px) {
  body { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; padding-bottom: 24px; gap: 32px; }
  .logo { width: 210px; }
  .clocks { gap: 24px; }
  .clocks dd { font-size: 24px; }
  .side-note { margin-top: 12px; }
  .index { padding: 0 0 40px; justify-content: flex-start; }
  .row { padding: 20px 24px; grid-template-columns: 1fr; gap: 4px; }
  .row-name { font-size: 20px; }
  .row-role { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .row, .row-role { transition: none; }
}

/* ---------- login ---------- */
body.gate { display: grid; grid-template-columns: 1fr; place-items: center; padding: 24px; }
.gate-form { width: min(100%, 360px); display: flex; flex-direction: column; }
.gate-logo { width: 240px; height: auto; margin-bottom: 56px; }
.gate-label { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.gate-field { display: flex; border-bottom: 1px solid var(--bone); }
.gate-field input {
  flex: 1; min-width: 0; padding: 12px 0; background: none; border: 0; color: var(--bone);
  font: 20px var(--latin); letter-spacing: 0.2em; outline: none;
}
.gate-field button {
  padding: 0 4px 0 16px; background: none; border: 0; color: var(--bone); cursor: pointer;
  font: 16px var(--kr); letter-spacing: 0.08em;
}
.gate-field button:hover, .gate-field button:focus-visible { color: var(--mute); outline: none; }
.gate-field:focus-within { border-color: var(--bone); }
.gate-error { margin: 14px 0 0; font-size: 14px; color: #d98a7c; }
