:root {
  --green: #03c75a;
  --green-dark: #009f47;
  --ink: #222;
  --muted: #666;
  --soft: #f5f6f7;
  --line: #e3e5e8;
  --paper: #fff;
  --blue: #4d79c7;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--green);
  border-bottom: 1px solid var(--green-dark);
}

.top-inner {
  width: min(1080px, calc(100% - 24px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-name {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.search {
  flex: 1;
  max-width: 440px;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 4px;
  background: #fff;
  color: #999;
  font-size: 14px;
}

.top-link {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.page {
  width: min(1080px, calc(100% - 24px));
  margin: 18px auto 56px;
}

.cafe-cover {
  min-height: 154px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.15)),
    url("./assets/hero-bamboo-salt.png") center 58% / cover;
  border: 1px solid #d6d9dd;
}

.small-label,
.category {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.cafe-cover .small-label {
  color: #d9ffe9;
}

.cafe-cover h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0;
}

.cafe-cover p {
  margin: 6px 0 0;
}

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.sidebar,
.post {
  background: var(--paper);
  border: 1px solid var(--line);
}

.sidebar {
  align-self: start;
  padding: 16px;
}

.profile-box {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-box span,
.side-card p,
.meta span,
.board-path,
figcaption,
.sources p {
  color: var(--muted);
  font-size: 13px;
}

.menu {
  display: grid;
  padding: 12px 0;
}

.menu a {
  padding: 8px 6px;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
}

.menu a.active {
  color: var(--green-dark);
  font-weight: 900;
  background: #edf9f2;
}

.side-card {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.side-card p {
  margin: 6px 0 0;
}

.post {
  min-width: 0;
}

.board-path {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.post-head {
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.post-head h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.32;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta div {
  display: grid;
  gap: 1px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.post-body {
  padding: 26px 28px;
  font-size: 17px;
}

.video-note {
  margin: 26px 28px 0;
  padding-bottom: 4px;
}

.video-note h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.video-note video {
  display: block;
  width: min(520px, 100%);
  max-height: 720px;
  margin: 0 auto;
  background: #111;
  border: 1px solid var(--line);
}

.before-after {
  margin: 26px 28px 0;
  padding: 22px;
  border: 1px solid #d9eadf;
  background: #f7fffa;
}

.interview-note {
  margin: 18px 28px 0;
}

.interview-screen {
  padding: 22px;
  border: 1px solid var(--line);
  background: #151515;
  color: #f8f8f8;
}

.interview-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.interview-screen p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.interview-screen p:last-child {
  margin-bottom: 0;
}

.before-after-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.before-after-head p:last-child {
  margin: 0 0 18px;
  color: var(--muted);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ba-grid figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.ba-grid span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ba-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.ba-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.raw-post {
  font-size: 18px;
}

.loading-text {
  color: var(--muted);
}

.source-line {
  margin: 0 0 18px;
  white-space: normal;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.strong-line {
  font-size: 20px;
  font-weight: 900;
}

.quote-line {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: #f5fff9;
  font-weight: 800;
}

.source-photo {
  width: min(640px, 100%);
  margin: 28px auto;
}

.source-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lead {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.55;
}

.post-body p {
  margin: 0 0 18px;
}

.post-body h3 {
  margin: 38px 0 12px;
  padding-top: 6px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}

figure {
  margin: 28px 0;
}

figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 8px;
  text-align: center;
}

.narrow-photo {
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.quote-box {
  margin: 22px 0;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: #f5fff9;
  font-size: 18px;
  font-weight: 800;
}

.quote-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.toc {
  margin: 0 0 24px;
  padding: 18px 18px 18px 42px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.check-grid div {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.check-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.caution-line {
  padding: 14px 16px;
  background: #fff7e9;
  border: 1px solid #efd8aa;
  color: #6b4c18;
}

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  word-break: break-all;
}

.sources {
  margin-top: 36px;
  padding: 18px;
  background: #fafafa;
  border: 1px solid var(--line);
}

.sources h3 {
  margin-top: 0;
}

.post-foot {
  display: flex;
  gap: 8px;
  padding: 14px 28px 24px;
  border-bottom: 1px solid var(--line);
}

.post-foot button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #444;
  font-weight: 700;
}

.comments {
  padding: 24px 28px 30px;
}

.comments h3 {
  margin: 0 0 14px;
}

.comment {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.comment.reply {
  margin-left: 28px;
  padding-left: 14px;
  border-left: 3px solid #d7f5e3;
  background: #fbfffd;
}

.comment b span {
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.comment p {
  margin: 4px 0 0;
  color: #444;
}

.comment-input {
  margin-top: 12px;
  padding: 14px;
  color: #999;
  border: 1px solid var(--line);
  background: #fafafa;
}

@media (max-width: 820px) {
  .top-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .service-name {
    width: 100%;
  }

  .search {
    order: 3;
    max-width: none;
    width: 100%;
  }

  .cafe-cover {
    min-height: 190px;
    align-items: start;
    flex-direction: column;
    padding: 22px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 12px;
  }

  .menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .menu a {
    text-align: center;
    font-size: 13px;
  }

  .side-card {
    display: none;
  }

  .post-head,
  .post-body,
  .comments {
    padding-left: 18px;
    padding-right: 18px;
  }

  .video-note,
  .before-after {
    margin-left: 18px;
    margin-right: 18px;
  }

  .before-after {
    padding: 16px;
  }

  .interview-note {
    margin-left: 18px;
    margin-right: 18px;
  }

  .ba-grid {
    grid-template-columns: 1fr;
  }

  .notice {
    margin-left: 18px;
    margin-right: 18px;
  }

  .check-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .join-button {
    width: 100%;
  }
}
