/* 모아 웹 읽을거리(/moa/*) — 소담·별담 웹 면과 같은 구성, 색만 모아 랜딩(templates/landing/index-moa-ko.html)을 따른다. */
:root{
  --accent:#D9663F; --accent-deep:#BF5431; --accent-soft:#FBE7DD;
  --bg:#FBF8F3; --card:#FFFFFF; --ink:#2C2622; --muted:#6B5F57; --line:#EBE2D8;
  --radius:16px; --shadow:0 2px 14px rgba(44,38,34,.07);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);line-height:1.72;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  font-size:17px;word-break:keep-all;overflow-wrap:break-word}
img{max-width:100%;height:auto}
a{color:var(--accent-deep)}
h1,h2,h3{line-height:1.3;letter-spacing:-.02em;margin:0 0 .5em}
h1{font-size:clamp(1.65rem,4.4vw,2.5rem)}
h2{font-size:clamp(1.3rem,3vw,1.75rem)}
h3{font-size:1.1rem}
em{font-style:normal;color:var(--accent-deep)}
.shell{width:min(1120px,100% - 2.5rem);margin-inline:auto}
.shell.narrow{width:min(760px,100% - 2.5rem)}
.section{padding:2.6rem 0}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;z-index:20;background:var(--card);padding:.6rem 1rem;border-radius:10px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* 머리글·바닥글 */
.site-header{position:sticky;top:0;z-index:10;background:rgba(251,248,243,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:1rem;min-height:62px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.5rem;font-weight:700;text-decoration:none;color:var(--ink)}
.brand img{border-radius:9px}
.brand-note{font-weight:500;font-size:.78rem;color:var(--muted)}
.site-nav{display:flex;gap:.9rem;margin-left:auto;flex-wrap:wrap;font-size:.92rem}
.site-nav a{text-decoration:none;color:var(--muted)}
.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--accent-deep);font-weight:600}
.button{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;
  padding:.72rem 1.3rem;border-radius:999px;border:0;cursor:pointer}
.button:hover{background:var(--accent-deep)}
.button.small{padding:.5rem 1rem;font-size:.9rem}
.header-cta{margin-left:.25rem}
.site-footer{margin-top:2.5rem;border-top:1px solid var(--line);background:#fff;font-size:.92rem}
.footer-top{display:flex;gap:2rem;flex-wrap:wrap;padding:2rem 0 1.2rem}
.footer-top>div:first-child{flex:1 1 260px}
.footer-note{color:var(--muted);font-size:.85rem;margin:.6rem 0 0}
.footer-cols{display:flex;gap:2rem;flex-wrap:wrap}
.footer-cols div{display:flex;flex-direction:column;gap:.35rem}
.footer-cols b{margin-bottom:.2rem}
.footer-cols a{color:var(--muted);text-decoration:none}
.footer-cols a:hover{color:var(--accent-deep)}
.footer-bottom{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 0 1.6rem;color:var(--muted);border-top:1px solid var(--line)}

/* 머리 영역 */
.page-header{padding:2.2rem 0 1.4rem}
.hero-header{background:radial-gradient(760px 420px at 92% -12%,rgba(246,231,178,.6),transparent 60%),
  radial-gradient(560px 380px at 0% 112%,rgba(207,224,200,.55),transparent 60%),var(--bg)}
.hero{display:flex;gap:2.2rem;align-items:center;flex-wrap:wrap}
.hero-copy{flex:1 1 360px}
.hero-art{flex:1 1 320px}
.hero-art img{border-radius:var(--radius);box-shadow:var(--shadow)}
.eyebrow{margin:0 0 .5rem;font-size:.8rem;font-weight:700;letter-spacing:.06em;color:var(--accent-deep)}
.lede{color:var(--muted);margin:0 0 1.2rem}
.hero-note,.small-note{color:var(--muted);font-size:.85rem}
.hero-links{display:flex;gap:1rem;flex-wrap:wrap;margin:.8rem 0 0}
.text-link{text-decoration:none;font-weight:600;white-space:nowrap}
.text-link:hover{text-decoration:underline}
.breadcrumbs{display:flex;gap:.4rem;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-bottom:.8rem}
.breadcrumbs a{color:var(--muted);text-decoration:none}
.breadcrumbs a:hover{color:var(--accent-deep)}

/* 스토어 버튼 */
.store-buttons{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0 .6rem}
.store-button,.store-soon{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.05rem;border-radius:14px;
  border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow)}
.store-button:hover{border-color:var(--accent);color:var(--accent-deep)}
.store-button span,.store-soon{display:inline-flex;flex-direction:column;line-height:1.25}
.store-button small,.store-soon small{font-size:.72rem;color:var(--muted)}
.store-button strong,.store-soon strong{font-size:.95rem}
.store-soon{background:var(--accent-soft);border-style:dashed;color:var(--muted)}

/* 소개 묶음 */
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;margin-bottom:1.1rem}
.section-heading h2{margin:0}
.what-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:1rem}
.what-grid article{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow)}
.what-grid p{margin:0;color:var(--muted);font-size:.93rem}
.shot-strip{display:flex;gap:.8rem;overflow-x:auto;padding:1.4rem 0 .4rem;scroll-snap-type:x proximity}
.shot-strip figure{flex:0 0 160px;margin:0;scroll-snap-align:start;text-align:center}
.shot-strip img{border-radius:14px;border:1px solid var(--line);background:#fff}
.shot-strip figcaption{font-size:.82rem;color:var(--muted);margin-top:.35rem}

/* 글 목록 */
.filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.filters a{display:inline-flex;gap:.35rem;align-items:center;padding:.4rem .85rem;border-radius:999px;
  border:1px solid var(--line);background:#fff;color:var(--muted);text-decoration:none;font-size:.9rem}
.filters a small{color:var(--accent-deep)}
.filters a[aria-current=page]{background:var(--accent);border-color:var(--accent);color:#fff}
.filters a[aria-current=page] small{color:#fff}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.1rem}
.guide-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;text-decoration:none;color:inherit;box-shadow:var(--shadow)}
.guide-card:hover{border-color:var(--accent);transform:translateY(-2px);transition:transform .15s}
.guide-image{aspect-ratio:16/10;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;overflow:hidden}
.guide-image img{width:100%;height:100%;object-fit:contain}
.guide-body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.guide-meta{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;font-size:.8rem;color:var(--muted)}
.chip{background:var(--accent-soft);color:var(--accent-deep);border-radius:999px;padding:.15rem .6rem;font-weight:600}
.chip.gold{background:#F6E7B2;color:#7A5B12}
.guide-card h3{margin:0}
.guide-body p{margin:0;color:var(--muted);font-size:.92rem}
.guide-more{margin-top:auto;font-weight:600;color:var(--accent-deep);font-size:.9rem}
.featured{display:flex;gap:1.4rem;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.2rem;text-decoration:none;color:inherit;box-shadow:var(--shadow);margin-bottom:1.6rem}
.featured:hover{border-color:var(--accent)}
.featured-image{flex:0 0 200px;aspect-ratio:16/10;background:var(--accent-soft);border-radius:12px;overflow:hidden;
  display:flex;align-items:center;justify-content:center}
.featured-image img{width:100%;height:100%;object-fit:contain}
.featured-body{flex:1 1 320px;display:flex;flex-direction:column;gap:.5rem}
.featured-body h2{margin:0}
.featured-body p{margin:0;color:var(--muted)}
.list-title{margin:1.6rem 0 1rem;font-size:1.05rem;color:var(--muted)}
.pagination{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:1.6rem}
.pagination a{min-width:40px;text-align:center;padding:.45rem .7rem;border-radius:10px;border:1px solid var(--line);
  background:#fff;text-decoration:none;color:var(--muted)}
.pagination a[aria-current=page]{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
.empty-state{background:var(--card);border:1px dashed var(--line);border-radius:var(--radius);padding:1.4rem;color:var(--muted)}

/* 글 상세 */
.article-page{padding-bottom:1rem}
.article-description{color:var(--muted);margin:0 0 .8rem}
.article-byline{font-size:.85rem;color:var(--muted);margin:0}
.article-cover{margin:1rem auto 0;text-align:center}
.article-cover img{border-radius:var(--radius);border:1px solid var(--line);background:#fff;max-height:520px;width:auto}
.article-layout{padding:1.6rem 0 0}
.toc{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem;margin-bottom:1.6rem}
.toc p{margin:0 0 .5rem;font-weight:700;font-size:.9rem}
.toc a{display:block;color:var(--muted);text-decoration:none;font-size:.92rem;padding:.15rem 0}
.toc a.sub{padding-left:1rem}
.toc a:hover{color:var(--accent-deep)}
.article-body h2{margin-top:2.2rem}
.article-body h3{margin-top:1.6rem}
.article-body p{margin:0 0 1.1rem}
.article-body ul,.article-body ol{padding-left:1.3rem;margin:0 0 1.1rem}
.article-body li{margin-bottom:.35rem}
.article-body img{display:block;margin:1.4rem auto .5rem;border-radius:14px;border:1px solid var(--line);background:#fff;max-height:560px;width:auto}
.article-body img+em,.article-body em{color:var(--muted)}
.article-body blockquote{margin:0 0 1.1rem;padding:.8rem 1.1rem;border-left:4px solid var(--accent-soft);
  background:var(--card);border-radius:0 12px 12px 0;color:var(--muted)}
.article-body code{background:var(--accent-soft);border-radius:6px;padding:.1rem .35rem;font-size:.9em}
.table-scroll{overflow-x:auto;margin:0 0 1.2rem}
.article-body table{border-collapse:collapse;width:100%;min-width:420px;font-size:.92rem;background:#fff}
.article-body th,.article-body td{border:1px solid var(--line);padding:.55rem .7rem;text-align:left;vertical-align:top}
.article-body th{background:var(--accent-soft);color:var(--accent-deep)}

/* 자주 묻는 질문 */
.faq-list{display:flex;flex-direction:column;gap:.6rem}
.faq-list details{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.9rem 1.1rem}
.faq-list summary{cursor:pointer;font-weight:600;display:flex;justify-content:space-between;gap:1rem;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list details[open] summary span{transform:rotate(45deg)}
.faq-list summary span{color:var(--accent);transition:transform .15s}
.faq-list p{margin:.7rem 0 0;color:var(--muted);font-size:.94rem}

/* 앱 받기 띠 */
.article-cta{display:flex;gap:1.6rem;align-items:center;flex-wrap:wrap;background:var(--accent-soft);
  border-radius:var(--radius);padding:1.6rem;margin:2.2rem auto}
.article-cta h2{margin:0 0 .3rem}
.article-cta p{margin:0;color:var(--muted)}
.cta-side{display:flex;flex-direction:column;gap:.3rem}
.cta-link{font-weight:600;text-decoration:none;font-size:.9rem}
.cta-link:hover{text-decoration:underline}

/* 광고 자리·오류 */
.ad-slot{width:min(1120px,100% - 2.5rem);margin:1.6rem auto;min-height:1px}
.error-page{padding:3.5rem 0 4rem;text-align:center}
.error-page p{color:var(--muted)}

@media (max-width:700px){
  body{font-size:16px}
  .site-nav{order:3;margin-left:0;width:100%;padding-bottom:.5rem}
  .header-cta{margin-left:auto}
  .featured-image{flex-basis:140px}
}
