:root {
  color-scheme: light;
  --paper: #faf9f3;
  --ink: #191b19;
  --muted: #505750;
  --line: #c6cbc4;
  --green: #23634d;
  --coral: #db593d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Malgun Gothic", sans-serif; line-height: 1.55; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
.page-width { width: min(100% - 48px, 1160px); margin: 0 auto; }
.guestbook-header { border-bottom: 1px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font-family: Consolas, monospace; font-size: 17px; font-weight: 800; text-decoration: none; }
.header-inner nav { display: flex; gap: 26px; align-items: center; font-size: 13px; font-weight: 700; }
.header-inner nav a { text-decoration: none; }
.header-inner nav span { color: var(--coral); }
.eyebrow { margin: 0; color: var(--coral); font: 700 12px Consolas, monospace; text-transform: uppercase; }
.intro { padding: 68px 0 50px; border-bottom: 1px solid var(--ink); }
.intro h1 { margin: 14px 0 12px; font-size: clamp(44px, 7vw, 76px); line-height: 1.1; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.write-panel, .entries-panel { min-width: 0; padding: 42px 0 60px; }
.write-panel { padding-right: 52px; border-right: 1px solid var(--line); }
.entries-panel { padding-left: 52px; }
.section-title { margin-bottom: 24px; }
.section-title h2 { margin: 6px 0 0; font-size: 30px; line-height: 1.2; }
.account { min-height: 29px; font-size: 14px; color: var(--muted); }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.providers[hidden] { display: none; }
.providers button { min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 13px; font-weight: 800; }
.providers button[data-provider="naver"]:not(:disabled):hover { background: #03c75a; border-color: #03c75a; color: white; }
.providers button[data-provider="kakao"]:not(:disabled):hover { background: #fee500; border-color: #fee500; }
.providers button[data-provider="google"]:not(:disabled):hover { background: #e8f0fe; border-color: #4285f4; }
.providers button[data-provider="github"]:not(:disabled):hover { background: var(--ink); color: white; }
.signout { margin: 12px 0; padding: 0; border: 0; color: var(--green); background: transparent; text-decoration: underline; font-size: 13px; }
.write-panel form { margin-top: 28px; }
.write-panel label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.write-panel label span { color: var(--muted); font-family: Consolas, monospace; font-weight: 400; }
textarea { display: block; width: 100%; padding: 14px; resize: vertical; border: 1px solid var(--ink); border-radius: 0; background: white; color: var(--ink); }
textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.privacy-note { color: var(--muted); font-size: 12px; }
.submit { min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); color: white; background: var(--ink); font-weight: 700; }
.submit:not(:disabled):hover { background: var(--green); border-color: var(--green); }
.feedback { min-height: 24px; margin-bottom: 0; font-size: 13px; color: var(--green); }
.entry { padding: 22px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.entry-meta strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.entry p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 14px; }
.more { margin-top: 24px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-weight: 700; }
.moderation { padding: 36px 0 72px; border-top: 1px solid var(--ink); }
.moderation[hidden] { display: none; }
.moderation-actions { display: flex; gap: 8px; margin-top: 14px; }
.moderation-actions button { padding: 7px 14px; border: 1px solid var(--ink); background: transparent; }
.moderation-actions button:first-child { color: white; background: var(--green); border-color: var(--green); }
.guestbook-footer { padding: 24px 0; border-top: 1px solid var(--ink); font: 12px Consolas, monospace; }
@media (max-width: 760px) {
  .page-width { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 60px; }
  .header-inner nav { gap: 14px; }
  .intro { padding: 46px 0 36px; }
  .content-grid { grid-template-columns: 1fr; }
  .write-panel { padding: 34px 0 42px; border-right: 0; border-bottom: 1px solid var(--line); }
  .entries-panel { padding: 36px 0 52px; }
}
