/* Rounded Magazine (2026-11-25) — 홈 섹션(_home_magazine.html) · 목록(magazine_list.html) · 글(magazine_detail.html).
   라이트 테마 전용 — 시안의 어두운 배경은 쓰지 않고 다른 홈 섹션과 같은 흰 바탕·토큰 색을 쓴다. */

/* 홈 섹션 — '브랜드' 섹션 위. 제목 왼쪽, 한 줄 소개(목록 링크) 오른쪽. */
.market-magazine { border-top:1px solid var(--market-line, var(--r-border-light)); padding-top:44px; }
.magazine-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:4px 0 24px; }
.magazine-heading h2, .magazine-heading h1 { font-size:30px; font-weight:800; letter-spacing:-.045em; line-height:1.4; color:var(--r-text); }
.magazine-heading a, .magazine-heading p { font-size:15px; color:var(--r-text-muted); white-space:nowrap; word-break:keep-all; }
.magazine-heading a:hover { color:var(--r-primary-deep); text-decoration:underline; text-underline-offset:4px; }

/* 카드 — 이미지(16:9, 둥근 모서리) + 제목 한 줄. 홈은 2열, 목록은 2열(넓은 화면 3열). */
.magazine-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 16px; }
.magazine-card { display:flex; flex-direction:column; min-width:0; color:var(--r-text); }
.magazine-thumb { display:block; aspect-ratio:16/9; border-radius:20px; overflow:hidden; background:var(--r-bg-soft); }
.magazine-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.magazine-card:hover .magazine-thumb img { transform:scale(1.03); }
.magazine-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:16px; font-size:18px; font-weight:600; line-height:1.45; letter-spacing:-.02em; word-break:keep-all; }
.magazine-card:hover .magazine-title { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.magazine-summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:6px; font-size:14px; line-height:1.6; color:var(--r-text-muted); word-break:keep-all; }
.magazine-card:focus-visible { outline:3px solid var(--r-primary); outline-offset:4px; border-radius:20px; }

/* 목록 페이지 */
.magazine-page { padding:32px 0 64px; }
.magazine-page .magazine-grid { gap:40px 20px; }
@media (min-width:1280px) { .magazine-page .magazine-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.magazine-empty { padding:80px 0; text-align:center; font-size:14px; color:var(--r-text-muted); }
.magazine-pager { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:48px; font-size:14px; color:var(--r-text-muted); }
.magazine-pager a { padding:8px 14px; border:1px solid var(--r-border); border-radius:8px; color:var(--r-text); }

/* 글 페이지 (2026-11-25 에디토리얼) — 독립 디자인 매거진처럼: 흰 바탕, 넓은 여백, 큰 이미지.
   본문은 이름 붙은 격자 줄 — text(읽기 폭) / wide(넓은 이미지·인용구) / full(화면 가득). */
body:has(.mz) main { background:var(--r-surface); }
.mz { color:var(--r-text); padding-bottom:40px; }
.mz-preview { max-width:760px; margin:20px auto 0; padding:12px 16px; border-radius:12px; font-size:13px; font-weight:600; background:var(--r-warm-light); color:var(--r-warm-deep); }
.mz-head { max-width:920px; margin:0 auto; padding:88px 24px 64px; text-align:center; }
.mz-kicker { font-size:18px; font-weight:800; letter-spacing:.02em; color:var(--r-primary-deep); } /* 2026-11-25 13px → 18px (사용자 요청) */
.mz-head h1 { margin-top:28px; font-size:clamp(34px, 5.4vw, 64px); font-weight:700; line-height:1.22; letter-spacing:-.045em; word-break:keep-all; }
.mz-deck { margin-top:22px; font-family:Georgia, "Times New Roman", serif; font-style:italic; font-size:clamp(18px, 2vw, 24px); color:var(--r-text-secondary); }
.mz-date { margin-top:28px; font-size:13px; color:var(--r-text-muted); font-variant-numeric:tabular-nums; }

/* 대표 이미지·넓은 이미지의 좌우 여백 — 화면 폭에 따라 20px ~ 80px (2026-11-25 사용자 요청) */
.mz { --mz-gutter:clamp(20px, 5.5vw, 80px); }
.mz-cover { margin:0 auto; max-width:1600px; padding:0 var(--mz-gutter); }
.mz-cover img { width:100%; max-height:88vh; object-fit:cover; display:block; background:var(--r-bg-soft); }
.mz-cover figcaption, .mz-fig figcaption { margin-top:12px; font-size:13px; line-height:1.6; color:var(--r-text-muted); white-space:pre-line; word-break:keep-all; }

.mz-flow { display:grid; padding-top:96px;
  grid-template-columns:[full-start] minmax(24px,1fr) [wide-start] minmax(0,180px) [text-start] minmax(0,680px) [text-end] minmax(0,180px) [wide-end] minmax(24px,1fr) [full-end]; }
.mz-flow > * { grid-column:text; }
.mz-p { margin-top:28px; font-size:18px; line-height:1.95; color:var(--r-text-secondary); white-space:pre-line; word-break:keep-all; overflow-wrap:anywhere; }
.mz-p.is-lead { margin-top:0; font-size:22px; line-height:1.75; color:var(--r-text); }
.mz-h { margin-top:120px; font-size:28px; font-weight:700; line-height:1.4; letter-spacing:-.03em; word-break:keep-all; }
.mz-h + .mz-p { margin-top:24px; }
.mz-quote { grid-column:wide; margin:112px 0; text-align:center; }
.mz-quote p { font-size:clamp(24px, 3vw, 36px); font-weight:600; line-height:1.55; letter-spacing:-.03em; color:var(--r-text); white-space:pre-line; word-break:keep-all; }
.mz-quote::before { content:""; display:block; width:40px; height:2px; margin:0 auto 36px; background:var(--r-primary); }
.mz-fig { grid-column:wide; margin:96px 0 0; }
.mz-fig img { width:100%; height:auto; display:block; background:var(--r-bg-soft); }
.mz-fig.is-wide { grid-column:full; width:100%; max-width:1600px; margin-left:auto; margin-right:auto; padding:0 var(--mz-gutter); }
.mz-fig.is-wide img { max-height:92vh; object-fit:cover; }

.mz-fig + .mz-p, .mz-pair + .mz-p, .mz-fig + .mz-h, .mz-pair + .mz-h { margin-top:96px; }
.mz-fig + .mz-h, .mz-pair + .mz-h { margin-top:120px; }
.mz-pair { grid-column:wide; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:96px; }
.mz-pair .mz-fig { margin:0; grid-column:auto; } /* 두 칸 묶음 안에서는 바깥 격자 이름(wide)을 쓰지 않는다 */
.mz-pair .mz-fig img { aspect-ratio:1; object-fit:cover; }
.mz-credit { margin-top:120px; padding:48px 0 0; border-top:1px solid var(--r-text); text-align:center; }
.mz-credit p { margin-top:8px; font-size:14px; color:var(--r-text-secondary); }
.mz-credit p.mz-credit-name { margin-top:0; font-size:20px; font-weight:800; letter-spacing:.18em; color:var(--r-text); }
.mz-credit a { color:var(--r-primary-deep); text-decoration:underline; text-underline-offset:3px; }
/* 'Curated by Rounded' — 브랜드 정보 끝의 큐레이션 표기를 크게, 라운디드 민트로 강조 */
.mz-credit p.mz-curator { margin-top:36px; font-size:18px; font-weight:800; letter-spacing:.02em; color:var(--r-primary-deep); }
.mz-credit p.mz-curator::before { content:""; display:block; width:32px; height:2px; margin:0 auto 18px; background:var(--r-primary); }
.mz-source { margin-top:56px; padding-top:20px; border-top:1px solid var(--r-border); font-size:13px; line-height:1.7; color:var(--r-text-muted); word-break:keep-all; overflow-wrap:anywhere; }
.mz-source b { margin-right:8px; color:var(--r-text-secondary); }
.mz-source a { color:var(--r-text-secondary); text-decoration:underline; text-underline-offset:3px; }

.magazine-related { padding-top:56px; padding-bottom:88px; border-top:1px solid var(--r-border-light); }
.magazine-related h2 { font-size:20px; font-weight:800; margin-bottom:20px; color:var(--r-text); }

@media (max-width:639px) {
  .market-magazine { padding-top:28px; }
  .magazine-heading { flex-direction:column; align-items:flex-start; gap:6px; margin-bottom:18px; }
  .magazine-heading h2, .magazine-heading h1 { font-size:23px; }
  .magazine-heading a, .magazine-heading p { font-size:13px; }
  .magazine-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
  .magazine-thumb { border-radius:16px; }
  .magazine-title { margin-top:12px; font-size:16px; }
  .mz-head { padding:48px 20px 36px; }
  .mz-flow { padding-top:56px; grid-template-columns:[full-start] 20px [wide-start text-start] minmax(0,1fr) [text-end wide-end] 20px [full-end]; }
  .mz-p { font-size:16px; line-height:1.9; }
  .mz-p.is-lead { font-size:18px; }
  .mz-h { margin-top:80px; font-size:22px; }
  .mz-quote { margin:72px 0; }
  .mz-fig, .mz-pair { margin-top:56px; }
  .mz-fig + .mz-p, .mz-pair + .mz-p { margin-top:56px; }
  .mz-fig + .mz-h, .mz-pair + .mz-h { margin-top:80px; }
  .mz-pair { grid-template-columns:minmax(0,1fr); gap:28px; }
  .mz-credit { margin-top:80px; }
}
@media (prefers-reduced-motion:reduce) { .magazine-thumb img { transition:none; } }
