/* 렌더링페이지 자리표시 모양. 외부 자산 없음, 모바일 반응형, 가로 스크롤 없음.
   머리(.site-header)·히어로(.hero)·꼬리(.site-footer)는 매거진(/magazine)에도 그대로 들어가므로 이 파일의 선택자가 거기서도 쓰인다.
   본문 전용 모양은 .site-main 아래에만 둔다(main·h1 같은 전역 선택자는 매거진 공동 영역에도 닿는다). */
:root {
  --text: #1a1a1a;
  --muted: #595959;
  --line: #e2e2e2;
  --link: #146c43;
  --width: 800px;
  --gutter: 20px;

  /* 매거진 공동 영역(카드 목록·글 상세)의 변수를 덮어쓰는 예시. 색 하나와 글꼴만 맞춰도 같은 사이트처럼 보인다.
     쓸 수 있는 변수: --mz-accent --mz-text --mz-muted --mz-bg --mz-surface --mz-line --mz-font --mz-radius */
  --mz-accent: #146c43;
  --mz-font: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ---- 머리 ---- */

.site-header,
.hero-inner,
.site-main,
.site-footer {
  max-width: calc(var(--width) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  margin: 0;
  font-weight: 700;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* ---- 히어로: 초록 그라데이션 띠. 제목(h1)·한 줄·버튼 하나. 매거진에서는 h1·한 줄이 매거진 이름·설명으로 바뀐다 ---- */

.hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
}

.hero-inner {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-lead {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  color: rgb(255 255 255 / 0.88);
}

.hero-actions {
  margin: 24px 0 0;
}

.hero .button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f5132;
  font-weight: 700;
  text-decoration: none;
}

.hero .button:hover {
  text-decoration: underline;
}

.hero a:focus-visible {
  outline-color: #ffffff;
}

/* ---- 본문(렌더링페이지만) ---- */

.site-main {
  padding-top: 40px;
  padding-bottom: 40px;
}

.site-main h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.4;
}

.site-main > section:first-child h2 {
  margin-top: 0;
}

.site-main code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: #f4f4f4;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---- 꼬리 ---- */

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 26px;
  }
}
