:root {
  --ink: #20242a;
  --muted: #626a73;
  --line: #e3e5e7;
  --paper: #ffffff;
  --soft: #f7f8f5;
  --gold: #f2a51d;
  --deep: #283330;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.75;
}

a {
  color: inherit;
}

.post-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(18px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.back-link {
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
}

.post-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.post-article {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.category {
  margin: 0 0 12px;
  color: #b66f00;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.content p {
  margin: 0 0 18px;
  font-size: 1.08rem;
}

.content hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.post-image {
  margin: 30px 0;
}

.post-image img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.imported-link {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.imported-link a {
  font-weight: 800;
  text-decoration: none;
}

.imported-tags {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff1d5;
  color: var(--deep);
  font-size: 0.92rem;
}

.source-note {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .post-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
