:root {
  color-scheme: light;
  --ink: #20271f;
  --muted: #4e594d;
  --paper: #fbfaf4;
  --line: #d8dcce;
  --lime: #ccec76;
  font: 100%/1.5 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, :is(textarea, input, select):focus-visible {
  outline: 3px solid #3c6b43; outline-offset: 3px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 76px; padding: 12px max(24px, calc((100vw - 1280px) / 2));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 900; white-space: nowrap; text-decoration: none; }
.logo {
  display: inline-grid; place-items: center; width: 36px; aspect-ratio: 1;
  background: #fcf4a8; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 11px; box-shadow: 2px 2px var(--ink); font-size: 1.35rem;
}
nav { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 42px; border: 1px solid var(--ink); border-radius: 9px;
  padding: 8px 13px; background: #fff; font-size: .9rem; font-weight: 750;
}
.button:hover { background: #edf4df; }
.button.ink { background: var(--ink); color: #fff; }
.button.ink:hover { background: #405039; }
.button.plain { border-color: transparent; background: transparent; }
.button.plain:hover { background: #eef0e7; }
.button.danger { background: #912d3b; border-color: #912d3b; color: #fff; }

main { max-width: 1328px; margin-inline: auto; padding: 32px 24px 0; }
.hero {
  isolation: isolate; position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 224px; border: 1px solid #a3ac8d; border-radius: 22px;
  padding: clamp(22px, 4.4vw, 52px); background: #e7f1cd;
  background-image: radial-gradient(#76866550 1px, transparent 1px);
  background-size: 16px 16px;
}
.hero-content { position: relative; z-index: 1; max-width: 72%; }
.board-label {
  display: inline-block; margin: 0 0 6px; padding: 4px 9px; border-radius: 6px;
  background: var(--paper); font-size: .82rem; font-weight: 800;
}
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.05rem); line-height: 1.14; letter-spacing: -.06em; overflow-wrap: anywhere; }
#board-description { margin: 10px 0 0; color: #344734; font-size: clamp(1rem, 1.6vw, 1.16rem); white-space: pre-line; overflow-wrap: anywhere; }
#hero-create { margin-top: 20px; }
.hero-art { position: absolute; width: 235px; height: 162px; inset: 50% 7% auto auto; transform: translateY(-50%); }
.paper { position: absolute; width: 122px; height: 137px; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 5px 5px var(--ink); }
.paper.back { inset: 5px 30px auto auto; background: #dbc9f6; transform: rotate(17deg); }
.paper.front { inset: 13px 70px auto auto; background: #fcf4a8; transform: rotate(-12deg); padding: 42px 23px 0; }
.paper.front::before { content: ""; position: absolute; inset: 13px auto auto 16px; width: 13px; aspect-ratio: 1; border-radius: 50%; background: #99af73; }
.paper i { display: block; height: 3px; background: #344734; border-radius: 4px; margin-bottom: 12px; }
.paper i:last-child { width: 56%; }
.spark, .glint { position: absolute; color: var(--ink); font-size: 2.5rem; }
.spark { inset: -1px auto auto 8px; }
.glint { inset: auto 0 -4px auto; }

.board-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.board-bar strong { font-size: 1.05rem; }
.pill { margin-left: 10px; padding: 4px 8px; border-radius: 6px; background: #eaf0df; color: var(--muted); font-size: .82rem; }
.board-tools { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px 14px; }
.view-controls { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f0f2e8; }
.view-controls button { min-height: 30px; border: 0; border-radius: 6px; padding: 4px 9px; background: transparent; font-size: .82rem; }
.view-controls button[aria-pressed="true"] { background: white; box-shadow: 0 1px 3px #20271f25; font-weight: 750; }
.connection { color: var(--muted); font-size: .85rem; }
.connection.online::before { content: ""; display: inline-block; width: 7px; aspect-ratio: 1; margin-right: 7px; border-radius: 50%; background: #378243; vertical-align: .12em; }

.columns {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 16px; align-items: start; overflow-x: auto; padding: 0 0 12px;
  scrollbar-color: #a4ae91 transparent;
}
.columns.feed { display: block; }
.feed-list { display: grid; gap: 11px; max-width: 660px; margin-inline: auto; }
.feed-list .card { --tint: #e7f1cd; }
.feed-list .write { margin: 0; }
.section-tag, .pending-tag { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #edf2e5; color: var(--muted); font-size: .8rem; font-weight: 700; }
.section-tag { margin-top: 5px; }
.pending-tag { color: #6b400e; background: #faebcf; }
.card.pending { border-color: #d3b376; }
.column {
  --tint: #e6efd8; --icon: #d9edac;
  min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  background: color-mix(in srgb, var(--tint) 30%, var(--paper));
}
.column.lavender { --tint: #eae2f7; --icon: #e3d0f9; }
.column.peach { --tint: #f9e7da; --icon: #f7d7bb; }
.column.aqua { --tint: #def0ec; --icon: #bde9de; }
.column.sand { --tint: #f4ead4; --icon: #f0dda0; }
.column-heading {
  display: flex; min-height: 49px; align-items: center; gap: 9px; padding: 8px;
  border-radius: 9px; background: var(--tint); margin-bottom: 11px;
}
.column h2 { margin: 0; flex: 1; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.section-icon { display: grid; place-items: center; width: 29px; min-width: 29px; height: 29px; border-radius: 7px; background: var(--icon); font-weight: 900; }
.section-count { min-width: 25px; padding: 2px 5px; border-radius: 7px; background: #ffffff91; text-align: center; font-size: .8rem; font-weight: 700; }
.write {
  display: block; width: 100%; min-height: 44px; margin-bottom: 11px; border: 1px dashed #89947e;
  border-radius: 9px; color: #354632; background: #fff8; font-weight: 750;
}
.write:hover { background: #ffffff; border-style: solid; }
.card-list { display: grid; gap: 10px; }
.card { padding: 14px; border: 1px solid #d9ddd2; border-radius: 10px; background: #fff; box-shadow: 0 2px #26301f0b; }
.byline { display: flex; align-items: center; gap: 7px; min-height: 29px; color: var(--muted); font-size: .8rem; }
.byline time { margin-left: auto; white-space: nowrap; }
.author { font-weight: 750; overflow-wrap: anywhere; }
.avatar {
  display: inline-grid; place-items: center; min-width: 27px; height: 27px;
  border-radius: 50%; background: var(--tint); color: var(--ink); font-weight: 800;
}
.card h3 { margin: 10px 0 0; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.post-body { margin: 6px 0 0; color: #374336; font-size: .98rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-link { display: inline-block; margin-top: 8px; font-size: .88rem; text-underline-offset: 3px; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.comments, .approve, .comment-remove {
  min-height: 31px; border: 1px solid #dce0d6; border-radius: 7px;
  padding: 4px 8px; background: #fafbf8; font-size: .85rem; font-weight: 750;
}
.comments:hover { background: #edf4df; }
.approve { color: white; background: #3c6645; border-color: #3c6645; }
.approve:hover { background: #2d5135; }
.comment-remove { margin-left: auto; }
.comment-remove:hover { background: #f8e8e9; }
.reaction {
  display: inline-block; min-width: 45px; padding: 5px 8px;
  border: 1px solid #dce0d6; border-radius: 7px; background: #fafbf8;
  text-align: center; font-size: .85rem; font-weight: 750;
}
button.reaction:hover, .reaction[aria-pressed="true"] { background: #fce9e8; color: #862d46; border-color: #ebc7d1; }
.remove { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; font-size: 1.3rem; line-height: 1; }
.remove:hover, .dismiss:hover { background: #f8e8e9; }
.empty { padding: 16px 6px; margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }
footer { max-width: 1328px; margin: 12px auto 0; padding: 14px 24px 24px; color: var(--muted); font-size: .83rem; }
footer span { padding-inline: 4px; }

dialog {
  width: min(480px, calc(100% - 28px)); max-height: calc(100% - 28px);
  border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; color: var(--ink);
  background: var(--paper); box-shadow: 5px 5px var(--ink);
}
dialog::backdrop { background: #1d291e77; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.dialog-heading h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.03em; }
.dismiss { width: 40px; height: 40px; border: 0; border-radius: 8px; background: #edf0e4; font-size: 1.4rem; }
dialog label { display: block; margin-bottom: 11px; font-size: .9rem; font-weight: 750; }
dialog :is(input, textarea, select) {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px; font-size: 1rem;
  border: 1px solid #9ba493; border-radius: 7px; background: white;
}
dialog textarea { resize: vertical; }
dialog label.check { display: flex; gap: 8px; align-items: center; min-height: 30px; }
dialog label.check input { width: 18px; height: 18px; margin: 0; accent-color: #3c6645; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.comments-subject { margin: 0 0 10px; font-weight: 800; overflow-wrap: anywhere; }
.comment-list { display: grid; gap: 8px; max-height: 35dvh; overflow-y: auto; margin-bottom: 13px; }
.comment { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.comment p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
small, .hint { color: var(--muted); font-size: .83rem; }
.hint { margin: -3px 0 13px; }
.form-error { margin: 0 0 12px; color: #9a283d; font-weight: 650; }
.saved-board { display: block; padding: 12px; margin-top: 7px; border: 1px solid var(--line); background: white; border-radius: 8px; overflow-wrap: anywhere; }
.notice {
  z-index: 2; position: fixed; right: 18px; bottom: 18px; max-width: calc(100% - 36px);
  padding: 12px 16px; border-radius: 9px; background: var(--ink); color: white;
}

@media (max-width: 780px) {
  .hero-art { transform: translateY(-50%) scale(.75); transform-origin: right center; right: 4%; }
}
@media (max-width: 600px) {
  .topbar { min-height: 62px; padding: 10px 14px; }
  .brand { font-size: 1.05rem; gap: 7px; }
  .logo { width: 32px; }
  nav { gap: 5px; }
  nav .button { padding: 5px 8px; font-size: .79rem; min-height: 35px; }
  main { padding: 18px 14px 0; }
  .hero { padding: 20px; min-height: 160px; border-radius: 16px; }
  .hero-content { max-width: 100%; }
  .hero-art { display: none; }
  .board-bar { margin-top: 19px; }
  .board-tools { gap: 5px 8px; }
  .columns { grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; overflow: visible; }
  footer { padding-inline: 14px; }
}
