/* 아이보리 라이트 테마. 글자는 회색 없이 진한 갈색 */
:root {
  --bg: #f6f1e3;
  --tile: #fffaf0;
  --line: #d9cfb4;
  --ink: #3b2f22;
  --accent: #8a5a2b;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
[hidden] { display: none !important; }
.screen { max-width: 760px; margin: 0 auto; padding: 16px; }

h1 { font-size: 1.3rem; margin: 0; }
.bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.doc .bar { justify-content: flex-start; margin-bottom: 8px; }

button {
  font: inherit; color: var(--ink); background: var(--tile);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer;
}
button:hover { border-color: var(--accent); }
button.ghost { background: transparent; }

.login { max-width: 320px; margin: 22vh auto 0; display: grid; gap: 12px; text-align: center; }
.login input {
  font: inherit; color: var(--ink); background: var(--tile);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.login button { background: var(--accent); color: #fffaf0; border-color: var(--accent); }
.msg { margin: 0; min-height: 1.4em; color: #a3361f; }
.center { text-align: center; margin-top: 30vh; color: var(--ink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
.tile {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none;
  background: var(--tile); border: 1px solid var(--line); border-radius: 16px;
}
.tile:hover, .tile:focus-visible { border-color: var(--accent); outline: none; }

/* 자료 화면: 원본 페이지가 창 전체를 쓰고, 대문으로 가는 버튼만 모서리에 띄운다 */
.doc { position: fixed; inset: 0; max-width: none; padding: 0; margin: 0; background: #16171a; }
#frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc .bar { position: fixed; left: 12px; bottom: 12px; z-index: 10; margin: 0; }
.doc .bar h1 { display: none; }
.doc .bar button { background: rgba(31, 33, 37, .92); color: #ececea; border-color: #34363b; }
.doc .center { color: #ececea; }
