:root {
  color-scheme: light;
  --bg: #11100f;
  --paper: #fff3d9;
  --paper-strong: #fffaf0;
  --ink: #16110d;
  --muted: #6c6259;
  --line: #2a211b;
  --brand: #cc1616;
  --brand-dark: #7f0d0d;
  --accent: #ffbd2e;
  --danger: #cc1616;
  --ok: #177245;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 189, 46, .08) 0 18%, transparent 18% 100%),
    radial-gradient(circle at top right, rgba(204, 22, 22, .22), transparent 34rem),
    var(--bg);
  color: var(--paper-strong);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .1;
  background-image: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(17, 16, 15, .84);
  border-bottom: 1px solid rgba(255, 243, 217, .16);
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -.05em;
  text-decoration: none;
  text-transform: uppercase;
}
.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  box-shadow: 7px 7px 0 #000;
  border: 2px solid #fff3d9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  border: 1px solid rgba(255, 243, 217, .25);
  background: transparent;
  padding: 10px 13px;
  border-radius: 0;
  text-decoration: none;
  color: var(--paper);
  font-weight: 900;
}
.nav-link:hover, .nav-link.active {
  background: var(--accent);
  color: #11100f;
  border-color: var(--accent);
}

.hero {
  padding: 72px 0 34px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 28px;
  align-items: stretch;
}
.hero-card, .panel, .post-card, .admin-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #15110e;
  border-radius: 0;
  box-shadow: var(--shadow), 10px 10px 0 rgba(204, 22, 22, .92);
}
.hero-card { padding: 42px; }
.manifesto {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(255,255,255,.74), rgba(255,255,255,.74)),
    repeating-linear-gradient(-8deg, #fff3d9 0 20px, #f6dfb9 20px 40px);
}
.manifesto::after {
  content: "규탄";
  position: absolute;
  right: -18px;
  bottom: 10px;
  transform: rotate(-9deg);
  border: 6px solid var(--brand);
  color: var(--brand);
  font-weight: 950;
  font-size: clamp(56px, 10vw, 130px);
  letter-spacing: -.08em;
  padding: 0 18px 10px;
  opacity: .13;
}
.kicker {
  color: var(--brand);
  font-weight: 950;
  letter-spacing: .09em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(44px, 7.5vw, 86px);
  line-height: .91;
  letter-spacing: -.085em;
  word-break: keep-all;
}
.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #30251e;
  font-size: 19px;
  line-height: 1.78;
  font-weight: 650;
  word-break: keep-all;
}
.slogan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.slogan-row span {
  background: #11100f;
  color: #fff3d9;
  padding: 8px 11px;
  font-weight: 950;
  border: 2px solid #11100f;
}
.hero-side {
  padding: 22px;
  display: grid;
  gap: 14px;
  background: #15110e;
  color: var(--paper);
  border-color: var(--paper);
}
.point {
  padding: 18px;
  border-radius: 0;
  background: #fff3d9;
  border: 3px solid #11100f;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--brand);
}
.point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -.04em;
}
.point span { color: #40352d; line-height: 1.58; font-weight: 650; }

.section { padding: 34px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: -.06em;
}
.section-head p { margin: 0; color: #c8b89b; font-weight: 800; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #15110e;
  box-shadow: 6px 6px 0 var(--accent);
}
.stat-card b {
  display: inline-block;
  font-size: 30px;
  letter-spacing: -.04em;
  color: var(--brand);
  margin-bottom: 12px;
}
.stat-card p { color: #30251e; line-height: 1.6; font-weight: 750; }

.panel { padding: 28px; }
.protest-form { box-shadow: var(--shadow), 10px 10px 0 var(--accent); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
}
.field { display: grid; gap: 8px; margin-bottom: 14px; }
label { font-weight: 950; }
input, textarea, select {
  width: 100%;
  border: 3px solid #15110e;
  background: #fffaf0;
  color: var(--ink);
  border-radius: 0;
  padding: 13px 15px;
  outline: none;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px rgba(204, 22, 22, .18); }
.help { color: #5e5147; font-size: 13px; line-height: 1.55; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  border: 3px solid #11100f;
  border-radius: 0;
  padding: 12px 18px;
  font-weight: 950;
  background: var(--brand);
  color: #fff;
  box-shadow: 4px 4px 0 #11100f;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #11100f; }
.btn.secondary { background: #fffaf0; color: var(--ink); }
.btn.danger { background: var(--danger); }
.btn.ok { background: var(--ok); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #11100f; }
.notice {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 0;
  background: #fff3d9;
  border: 3px solid #15110e;
  color: var(--brand-dark);
  display: none;
  line-height: 1.55;
  font-weight: 850;
}
.notice.show { display: block; }
.notice.error { background: #ffe6e6; color: #8f1111; }
.notice.ok { background: #e6fff2; color: #105c3b; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.post-card { padding: 22px; box-shadow: 6px 6px 0 rgba(255, 189, 46, .92); }
.post-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
  color: #11100f;
  background: var(--accent);
  border: 2px solid #11100f;
}
.badge-dark { background: #11100f; color: #fff3d9; }
.post-card h3 { margin: 13px 0 10px; font-size: 24px; letter-spacing: -.05em; }
.post-card p { color: #3b3028; line-height: 1.72; white-space: pre-wrap; font-weight: 650; }
.meta { color: #75695f; font-size: 13px; font-weight: 750; }
.post-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.empty {
  padding: 28px;
  border: 3px dashed #c8b89b;
  color: #c8b89b;
  background: rgba(255,255,255,.03);
  font-weight: 800;
}

.admin-layout {
  padding: 42px 0;
  display: grid;
  gap: 18px;
}
.admin-card { padding: 24px; box-shadow: 6px 6px 0 var(--brand); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 2px solid #2a211b; vertical-align: top; }
th { color: #5f534a; font-size: 13px; font-weight: 950; }
.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-box { max-width: 460px; margin: 54px auto; }

.footer {
  color: #c8b89b;
  padding: 42px 0 70px;
  text-align: center;
  font-weight: 900;
}
.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .hero-card { padding: 28px; }
  .grid-4, .posts-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { height: auto; padding: 12px 0; flex-direction: column; align-items: stretch; }
  .nav-links { overflow-x: auto; padding-bottom: 2px; }
}
