:root {
  --wine: #7c001a;
  --wine-2: #a11b41;
  --ink: #222;
  --muted: #666;
  --line: #e8bec5;
  --pale: #f8f2f4;
  --paper: #fff;
  --soft: #f7f7f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "KoPubWorld돋움체", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.55;
}
.site-header {
  height: 76px;
  padding: 0 max(6vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 28px;
  margin-right: 10px;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
}
nav {
  display: flex;
  gap: 26px;
}
nav a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--wine);
  border-color: var(--wine);
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px 64px;
}
.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero.compact {
  padding-top: 58px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--wine-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.keep-phrase {
  white-space: nowrap;
}
.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.module-card {
  display: block;
  min-height: 210px;
  padding: 28px;
  border: 1px solid #ddd;
  border-top: 5px solid var(--wine);
  color: var(--ink);
  text-decoration: none;
  transition: 0.15s;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(50, 0, 10, 0.09);
}
.module-card strong {
  color: var(--wine-2);
  font-size: 13px;
}
.module-card h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}
.module-card p {
  margin: 0;
  color: var(--muted);
}
.module-card span {
  display: block;
  margin-top: 25px;
  color: var(--wine);
  font-weight: 700;
}
.wide-callout {
  margin-top: 18px;
  padding: 24px 28px;
  background: var(--pale);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wide-callout span {
  display: block;
  color: var(--wine-2);
  font-size: 12px;
  font-weight: 700;
}
.wide-callout strong {
  font-size: 18px;
}
.wide-callout a {
  color: var(--wine);
  font-weight: 700;
}
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  margin-top: 32px;
}
.panel {
  min-height: 390px;
  padding: 28px;
  border: 1px solid #ddd;
  background: #fff;
}
.control-panel {
  background: var(--soft);
}
.panel-label {
  color: var(--wine-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.panel h2 {
  margin: 8px 0 24px;
  font-size: 24px;
}
label {
  display: block;
  margin: 15px 0 0;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #bbb;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
button {
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid var(--wine);
  border-radius: 2px;
  background: var(--wine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: #5f0014;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:disabled:hover {
  background: var(--wine);
}
.button-row {
  display: flex;
  gap: 9px;
}
.button-row button {
  flex: 1;
}
.secondary {
  background: #fff;
  color: var(--wine);
}
.secondary:hover {
  background: var(--pale);
}
.endpoint,
.hint {
  color: var(--muted);
  font:
    12px Consolas,
    "Malgun Gothic",
    monospace;
  overflow-wrap: anywhere;
}
.result-line {
  padding: 12px;
  background: #fff;
  border-left: 4px solid var(--wine);
  color: #444;
  word-break: keep-all;
}
.evidence-list {
  margin: 0;
}
.evidence-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}
.evidence-list dt {
  color: var(--wine);
  font-weight: 700;
}
.evidence-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.compact-list div {
  padding: 11px 0;
}
.note-strip {
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 6px solid var(--wine);
  background: var(--pale);
  display: flex;
  gap: 25px;
}
.note-strip strong {
  color: var(--wine);
}
.flow-strip {
  margin-top: 20px;
  padding: 20px;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.flow-strip span {
  padding: 11px 16px;
  border: 1px solid var(--wine);
  background: #fff;
  font-weight: 700;
}
.flow-strip i {
  color: var(--wine-2);
  font-style: normal;
  font-size: 12px;
}
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.decision {
  margin: 0;
  min-height: 96px;
  text-align: left;
}
.decision span,
.decision strong {
  display: block;
}
.decision span {
  font-size: 12px;
  opacity: 0.8;
}
.stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.stage-list b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
}
.stage-list em {
  color: var(--wine-2);
  font-style: normal;
  font-weight: 700;
}
.code-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.code-compare div {
  padding: 18px 20px;
  border: 1px solid #ccc;
  border-left: 5px solid #777;
}
.code-compare .safe {
  border-color: var(--line);
  border-left-color: var(--wine);
  background: var(--pale);
}
.code-compare span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.code-compare code {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.output-box {
  min-height: 150px;
  padding: 22px;
  background: var(--pale);
  border: 1px solid var(--line);
  font:
    16px Consolas,
    "Malgun Gothic",
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.method-grid article {
  padding: 24px 20px;
  border: 1px solid #ddd;
  border-top: 5px solid var(--wine);
}
.method-grid b {
  color: var(--wine-2);
}
.method-grid h2 {
  font-size: 19px;
}
.method-grid p {
  font-size: 14px;
  color: var(--muted);
}
.matrix {
  margin-top: 24px;
  border: 1px solid var(--line);
}
.matrix > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr;
}
.matrix span,
.matrix strong {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.matrix-head {
  background: var(--wine);
  color: #fff;
  font-weight: 700;
}
.matrix-head span {
  border: 0;
}
.lab-frame {
  display: block;
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  background: #fff;
}
.proof-token {
  font:
    12px Consolas,
    "Malgun Gothic",
    monospace;
  white-space: nowrap;
}
.offensive-lab .panel {
  min-height: 430px;
}
.offensive-lab .lede {
  max-width: 900px;
}
.board-grid {
  grid-template-columns: 1.05fr 1.3fr;
}
.post-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.post-row strong {
  display: block;
  margin-bottom: 6px;
}
.post-source {
  max-height: 76px;
  margin: 0;
  color: var(--muted);
  font: 12px Consolas, "Malgun Gothic", monospace;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.post-actions {
  text-align: right;
}
.post-actions form,
.post-actions button {
  margin: 0;
}
.post-actions button {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
}
.post-status {
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
}
.empty-state {
  margin: 0 0 22px;
  padding: 32px 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.stored-sink {
  min-height: 210px;
  background: #fff;
}
.query {
  word-break: keep-all;
}
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 36px 38px;
  border-top: 1px solid #eee;
  color: #777;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
@media (max-width: 900px) {
  .site-header {
    height: auto;
    padding: 18px 24px;
    align-items: flex-start;
  }
  .site-header nav {
    display: none;
  }
  main {
    padding: 0 22px 50px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .lab-grid,
  .board-grid,
  .code-compare {
    grid-template-columns: 1fr;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow-strip {
    flex-wrap: wrap;
  }
  .panel {
    min-height: auto;
  }
}
@media (max-width: 560px) {
  .offensive-lab .hero h1 {
    font-size: 30px;
    line-height: 1.28;
    letter-spacing: -0.045em;
  }
  .module-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }
  .matrix > div {
    grid-template-columns: 1fr;
  }
  .matrix-head {
    display: none !important;
  }
  .matrix span,
  .matrix strong {
    padding: 10px 14px;
  }
  .lab-grid {
    gap: 14px;
  }
  .hero {
    padding-top: 40px;
  }
  .panel {
    padding: 24px;
  }
  .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .button-row button {
    padding: 13px 10px;
    white-space: nowrap;
  }
  .button-row button:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }
  .evidence-list div {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .lab-frame {
    min-height: 220px;
  }
  .offensive-lab textarea {
    min-height: 150px;
    font-size: 12px;
    line-height: 1.5;
  }
  .note-strip {
    display: block;
  }
  .note-strip strong {
    display: block;
    margin-bottom: 6px;
  }
  .post-row {
    grid-template-columns: 1fr;
  }
  .post-actions {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
    text-align: left;
  }
  .post-actions button {
    margin-top: 0;
  }
}
