/* 통역 라이프 — editorial, 한국어 가독성 우선 (Bootstrap 아님) */

:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe6dc;
  --ink: #141210;
  --ink-soft: #3d3a36;
  --muted: #6b655c;
  --line: rgba(20, 18, 16, 0.12);
  --accent: #2c4a42;
  --accent-hover: #1e342d;
  --wash: #e8f0ec;
  --serif: "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --max: 40rem;
  --side-pad: clamp(1.15rem, 4vw, 2.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.88;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(44, 74, 66, 0.22);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 상단 띠 — 잡지식 마스트헤드 */
.masthead {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #faf8f4 0%, var(--paper) 100%);
  padding: 0.65rem var(--side-pad);
}

.masthead-inner {
  max-width: calc(var(--max) + 8rem);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.masthead-mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.masthead-ad {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: #5c2e24;
  background: linear-gradient(180deg, #fceee8 0%, #f5ddd4 100%);
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(92, 46, 36, 0.28);
  max-width: min(26rem, 100%);
  text-align: right;
}

.masthead-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 520px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead-ad {
    text-align: left;
    max-width: 100%;
  }
}

/* 본문 컨테이너 — 비대칭 여백 */
.article-shell {
  flex: 1;
  padding: clamp(2rem, 6vw, 3.5rem) var(--side-pad) 4rem;
  background: #e9e9e9;
}

.article-inner {
  max-width: calc(var(--max) + 5rem);
  margin: 0 auto;
  padding-left: clamp(0px, 3vw, 2.5rem);
  border-left: 3px solid var(--accent);
  padding-bottom: 2rem;
}

/* 한국형 포털/블로그식 — 가운데 정렬·짧은 단락 */
.article-inner--kr {
  border-left: none;
  padding: 2.25rem clamp(1rem, 4vw, 2rem) 2.75rem;
  max-width: 32rem;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}

@media (max-width: 520px) {
  .article-inner {
    border-left-width: 2px;
    padding-left: 1rem;
  }

  .article-inner--kr {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.title-block--kr {
  text-align: center;
  margin-bottom: 1.75rem;
}

.title-block--kr h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.title-block--kr h1 + h1 {
  color: #c62828;
}

.title-block--kr .lede {
  margin: 0.85rem auto 0;
  max-width: 22rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
}

.kr-subhead {
  margin: 2rem 0 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  text-underline-position: under;
  line-height: 1.45;
}

.prose--kr {
  max-width: 26.5rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 2;
  letter-spacing: -0.02em;
  color: #2c2c2c;
}

.prose--kr p {
  margin: 0 0 1.15em;
}

.prose--kr p:last-child {
  margin-bottom: 0;
}

.prose--kr strong {
  font-weight: 700;
  color: var(--ink);
}

.prose--kr .prose-link-sponsored {
  font-weight: 800;
  color: #0b6bcb;
  text-decoration: underline;
  text-decoration-color: rgba(11, 108, 203, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.prose--kr .prose-link-sponsored:hover {
  color: #054a94;
  text-decoration-color: #054a94;
  background-color: rgba(11, 108, 203, 0.08);
  border-radius: 2px;
}

/* 중요 고지 — 빨간 강조 (한국 정보글 흔한 스타일) */
.kr-warn {
  margin: 0.4rem auto 1.15rem;
  max-width: 26.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.85;
  color: #c62828;
}

.kr-warn--inline {
  font-weight: 700;
  color: #c62828;
}

.figure--kr {
  max-width: 26.5rem;
  margin-left: auto;
  margin-right: auto;
}

.figure--kr + .kr-subhead {
  margin-top: 1.5rem;
}

.figure {
  margin: 2rem 0;
  position: relative;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 48px rgba(20, 18, 16, 0.12);
}

.figure::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}

.figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem;
  letter-spacing: 0.02em;
}

.prose {
  max-width: var(--max);
}

.prose p {
  margin: 0 0 1.35em;
}

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

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

/* 인용 느낌 단락 */
.prose .standout {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--ink);
  padding: 1rem 0 1rem 1rem;
  border-left: 2px solid var(--paper-deep);
  margin: 1.75rem 0;
}

/* 하단 CTA — 한지·카드 느낌 + 포털형 버튼 */
.cta-panel {
  margin-top: 3.25rem;
  max-width: 26.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.65rem 1.35rem 1.5rem;
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f0e8 100%);
  color: var(--ink-soft);
  border: 1px solid rgba(44, 74, 66, 0.45);
  border-radius: 2px;
  box-shadow:
    4px 4px 0 rgba(44, 74, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c62828 20%, #c62828 80%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 6px,
    rgba(44, 74, 66, 0.02) 6px,
    rgba(44, 74, 66, 0.02) 7px
  );
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel__eyebrow {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: none;
}

.cta-panel__title {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 1.38rem);
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cta-panel__sub {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 15.5rem);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: #c62828;
  padding: 0.82rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #9a2020;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-cta:hover {
  background: #b71c1c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.btn-cta--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  background: transparent;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-cta--outline:hover {
  background: var(--wash);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.cta-panel__hint {
  margin: 0.95rem 0 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #8a8278;
}

.site-footer {
  padding: 2rem var(--side-pad) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.site-footer__disclaimer {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  padding: 1.15rem 1.1rem;
  text-align: left;
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--muted);
  background: rgba(20, 18, 16, 0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.site-footer__disclaimer p {
  margin: 0 0 0.65em;
}

.site-footer__disclaimer p:last-child {
  margin-bottom: 0;
}

.site-footer__disclaimer-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.site-footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* 운영사(사업자) 표기 */
.site-footer__company {
  max-width: 44rem;
  margin: 0 auto 1.35rem;
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.site-footer__company-line {
  margin: 0 0 0.35em;
}

.site-footer__company-line:last-child {
  margin-bottom: 0;
}

.site-footer__link {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* 법적 안내 모달 (<dialog>) */
.site-modal {
  width: min(92vw, 36rem);
  max-height: 85vh;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  background: transparent;
}

.site-modal::backdrop {
  background: rgba(20, 18, 16, 0.45);
}

.site-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.site-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #faf9f7;
}

.site-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.site-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.site-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.site-modal__body {
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.site-modal__body p {
  margin: 0 0 0.75em;
}

.site-modal__h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.site-modal__muted {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-modal__list {
  margin: 0 0 0.75em;
  padding-left: 1.1rem;
}

.site-modal__list li {
  margin-bottom: 0.35em;
}

.site-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.8rem;
}

.site-modal__table th,
.site-modal__table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
}

.site-modal__table th {
  width: 8.5rem;
  background: #fffde7;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
