/* 유치회관 매거진 — index.html의 먹색·금색·한지 톤을 따릅니다 */
:root{ --ink:#0e0c0a; --ink2:#16120e; --clay:#241d17; --paper:#f4ede0; --paper2:#ece1cf; --gold:#c8a86b; --gold-dk:#7a5a1e; --seal:#b5341f; --stone:#5c5042; --naver:#03c75a; --ease:cubic-bezier(.16,1,.3,1); }
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--ink); color:var(--paper); font-family:Pretendard,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; font-size:17px; line-height:1.75; word-break:keep-all; overflow-wrap:break-word; overflow-x:hidden; }
::selection{ background:var(--seal); color:#fff; }
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }
h1,h2,h3{ font-family:"Noto Serif KR",serif; line-height:1.35; margin:0; }
:focus-visible{ outline:3px solid #e9d4a3; outline-offset:3px; }
.sheet :focus-visible{ outline-color:var(--gold-dk); }
.wrap{ width:min(1180px,100% - 40px); margin-inline:auto; }
.wrap-narrow{ width:min(800px,100% - 40px); margin-inline:auto; }
.skip-link{ position:fixed; left:16px; top:-80px; z-index:140; padding:12px 18px; border-radius:8px; background:var(--paper); color:var(--ink); font-weight:700; }
.skip-link:focus{ top:12px; }

/* nav */
.site-nav{ position:sticky; top:0; z-index:50; background:rgba(14,12,10,.9); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid rgba(200,168,107,.18); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--gold); }
.brand img{ height:44px; width:auto; }
.brand i,.foot-brand i{ font-family:"Noto Serif KR",serif; font-style:normal; letter-spacing:.14em; font-size:19px; }
.brand em,.foot-brand em{ font-family:"Nanum Brush Script","Noto Serif KR",cursive; font-style:normal; font-size:24px; }
.nav-links{ display:flex; align-items:center; gap:clamp(18px,2.6vw,34px); font-size:15px; }
.nav-links>a:not(.nav-shop){ position:relative; text-decoration:none; color:rgba(244,237,224,.82); padding:8px 0; transition:color .3s; }
.nav-links>a:not(.nav-shop):hover,.nav-links>a[aria-current]{ color:var(--gold); }
.nav-links>a:not(.nav-shop)::after{ content:''; position:absolute; left:0; bottom:2px; height:1.5px; width:0; background:var(--gold); transition:width .4s var(--ease); }
.nav-links>a:not(.nav-shop):hover::after,.nav-links>a[aria-current]::after{ width:100%; }
.nav-shop{ display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border-radius:9999px; font-size:13px; font-weight:700; text-decoration:none; color:var(--paper); background:rgba(3,199,90,.14); border:1px solid rgba(3,199,90,.5); transition:background .3s,color .3s; }
.nav-shop:hover{ background:var(--naver); color:var(--ink); }
.nav-shop b,.store-fab b,.btn-store b{ flex:none; display:grid; place-items:center; border-radius:50%; background:var(--naver); }
.nav-shop b{ width:16px; height:16px; }
.nav-shop svg{ width:7px; height:7px; fill:#fff; }
.nav-mobile{ display:none; position:relative; }
.nav-mobile summary{ list-style:none; cursor:pointer; width:44px; height:44px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; }
.nav-mobile summary::-webkit-details-marker{ display:none; }
.nav-mobile summary span{ display:block; width:24px; height:2px; background:var(--paper); }
.nav-mobile nav{ position:absolute; right:0; top:52px; width:min(280px,calc(100vw - 40px)); background:var(--ink2); border:1px solid rgba(200,168,107,.3); border-radius:12px; padding:8px 18px; }
.nav-mobile nav a{ display:block; padding:12px 0; text-decoration:none; border-bottom:1px solid rgba(244,237,224,.12); }
.nav-mobile nav a:last-child{ border-bottom:0; }
.nav-mobile nav a[aria-current]{ color:var(--gold); }
.nav-mobile .m-shop{ color:#3ddc84; font-weight:700; }

/* shared */
.tag{ display:inline-block; font-size:13px; font-weight:700; color:var(--gold); }
.seal{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; font-family:"Noto Serif KR",serif; font-size:22px; line-height:1; border-radius:4px; background:var(--paper); color:var(--seal); }

/* list */
.list-head{ text-align:center; padding:clamp(56px,8vw,104px) 0 clamp(36px,5vw,64px); }
.brush{ display:block; font-family:"Nanum Brush Script","Noto Serif KR",cursive; font-size:30px; color:var(--gold); line-height:1.3; margin-bottom:8px; }
.list-head h1{ font-size:clamp(34px,5vw,56px); font-weight:700; }
.list-head p{ margin:16px 0 0; color:rgba(244,237,224,.78); }
.list-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{ background:var(--clay); border:1px solid rgba(200,168,107,.18); border-radius:20px; overflow:hidden; transition:border-color .4s,transform .5s var(--ease); }
.card:hover{ border-color:rgba(200,168,107,.6); transform:translateY(-4px); }
.card a{ display:flex; flex-direction:column; height:100%; text-decoration:none; }
.card-img{ aspect-ratio:4/3; overflow:hidden; background:var(--ink2); }
.card-img img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
.card:hover .card-img img{ transform:scale(1.06); }
.card-body{ padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.card-body h2,.card-body h3{ font-size:21px; font-weight:700; margin-top:6px; }
.card-body p{ font-size:15px; line-height:1.65; color:rgba(244,237,224,.76); margin:10px 0 16px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.card-body time{ margin-top:auto; font-size:13px; color:rgba(244,237,224,.66); }
.card-lead{ grid-column:1/-1; }
.card-lead a{ display:grid; grid-template-columns:1.25fr 1fr; }
.card-lead .card-img{ aspect-ratio:auto; min-height:380px; }
.card-lead .card-body{ padding:clamp(28px,4vw,52px); justify-content:center; }
.card-lead .card-body h2{ font-size:clamp(26px,3vw,36px); margin-top:10px; }
.card-lead .card-body p{ font-size:17px; -webkit-line-clamp:5; }
.card-lead .card-body time{ margin-top:0; }

/* article */
.article-head{ padding:clamp(40px,6vw,72px) 0 28px; }
.crumbs{ display:flex; flex-wrap:wrap; gap:8px; font-size:14px; color:rgba(244,237,224,.7); margin-bottom:28px; }
.crumbs a{ text-decoration:none; }
.crumbs a:hover{ color:var(--gold); }
.article-head h1{ font-size:clamp(30px,4.6vw,46px); font-weight:700; margin-top:8px; }
.lede{ margin:18px 0 0; color:rgba(244,237,224,.82); }
.byline{ margin:16px 0 0; font-size:14px; color:rgba(244,237,224,.66); }
.article-hero{ margin-block:0; }
.article-hero img{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:20px 20px 0 0; }
.article-hero figcaption{ background:var(--clay); color:rgba(244,237,224,.8); font-size:14px; line-height:1.5; padding:12px 20px; }
.sheet{ background:var(--paper); color:#2a231d; padding:clamp(28px,6vw,64px); border-radius:0 0 20px 20px; }
.sheet>p:first-child{ margin-top:0; }
.sheet p{ margin:0 0 1.1em; }
.sheet h2{ font-size:clamp(23px,3vw,28px); font-weight:700; color:var(--ink); margin:2em 0 .7em; }
.sheet h3{ font-size:19px; font-weight:700; color:var(--ink); margin:1.5em 0 .5em; }
.sheet figure{ margin:2em 0; }
.sheet figure img{ width:100%; max-height:520px; object-fit:cover; border-radius:12px; }
.sheet figcaption{ font-size:14px; line-height:1.5; color:var(--stone); margin-top:10px; }
.sheet a{ color:var(--gold-dk); font-weight:600; text-underline-offset:3px; }
.sheet a.tel{ color:var(--seal); font-weight:800; }
.table-wrap{ overflow-x:auto; margin:1.4em 0 1.8em; }
.sheet table{ width:100%; border-collapse:collapse; font-size:15.5px; line-height:1.55; }
.sheet th{ text-align:left; background:var(--ink2); color:var(--paper); padding:11px 14px; font-weight:700; white-space:nowrap; }
.sheet td{ padding:11px 14px; border-bottom:1px solid #d9ccb6; vertical-align:top; }
.cta{ display:flex; align-items:center; justify-content:space-between; gap:24px; background:var(--ink2); color:var(--paper); border:1px solid rgba(200,168,107,.3); border-radius:16px; padding:24px 28px; margin:2em 0; }
.cta p{ margin:0; font-size:15px; line-height:1.55; color:rgba(244,237,224,.8); }
.cta .cta-title{ font-family:"Noto Serif KR",serif; font-size:20px; font-weight:700; color:var(--gold); margin-bottom:4px; }
a.btn-store{ flex:none; display:inline-flex; align-items:center; gap:9px; min-height:48px; padding:0 20px; border-radius:10px; background:var(--naver); color:var(--ink); font-size:16px; font-weight:800; text-decoration:none; white-space:nowrap; transition:transform .4s var(--ease),background .3s; }
a.btn-store:hover{ transform:translateY(-2px); background:#1fd873; }
.btn-store b{ width:22px; height:22px; background:var(--ink); }
.btn-store svg{ width:10px; height:10px; fill:var(--naver); }
.warn{ display:flex; gap:18px; align-items:flex-start; background:var(--seal); color:#fff; border-radius:14px; padding:22px 24px; margin:2em 0; }
.warn p{ margin:0; font-size:15px; line-height:1.6; }
.warn .warn-title{ font-family:"Noto Serif KR",serif; font-size:18px; font-weight:700; margin-bottom:4px; }
.faq{ margin-top:2.6em; padding-top:.4em; border-top:2px solid #d9ccb6; }
.source{ font-size:14px; color:var(--stone); margin-top:2em; }
.next{ font-size:16px; margin:0; }
.related{ padding:clamp(56px,7vw,88px) 0 0; }
.related>h2{ font-size:clamp(24px,3vw,30px); font-weight:700; margin-bottom:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

/* footer */
.site-foot{ margin-top:clamp(64px,8vw,104px); background:#000; border-top:1px solid rgba(200,168,107,.18); padding:48px 0 104px; font-size:14px; }
.site-foot p{ margin:0 0 4px; }
.foot-brand{ color:var(--gold); margin-bottom:12px!important; }
.foot-links{ display:flex; flex-wrap:wrap; gap:6px 22px; margin-top:20px!important; }
.foot-links a{ display:inline-block; padding:6px 0; text-decoration:none; }
.foot-links a:hover{ color:var(--gold); }
.copy{ margin-top:18px!important; font-size:12.5px; color:rgba(244,237,224,.72); }
.store-fab{ position:fixed; z-index:60; right:max(16px,env(safe-area-inset-right)); bottom:calc(18px + env(safe-area-inset-bottom)); display:inline-flex; align-items:center; gap:10px; padding:7px 18px 7px 7px; border-radius:9999px; background:rgba(14,12,10,.95); border:1.5px solid var(--naver); font-size:15px; font-weight:800; text-decoration:none; box-shadow:0 14px 34px -12px rgba(0,0,0,.8); transition:transform .4s var(--ease); }
.store-fab:hover{ transform:translateY(-3px); }
.store-fab b{ width:34px; height:34px; }
.store-fab svg{ width:13px; height:13px; fill:#fff; }

@media (max-width:980px){
  .nav-links{ display:none; }
  .nav-mobile{ display:block; }
  .list-grid{ grid-template-columns:repeat(2,1fr); }
  .card-lead a{ grid-template-columns:1fr; }
  .card-lead .card-img{ aspect-ratio:16/10; min-height:0; }
}
@media (max-width:640px){
  body{ font-size:16px; }
  .nav-row{ min-height:64px; }
  .list-grid,.grid-3{ grid-template-columns:1fr; }
  .cta{ flex-direction:column; align-items:stretch; padding:22px; }
  a.btn-store{ justify-content:center; }
  .warn{ padding:20px; gap:14px; }
  .sheet th,.sheet td{ padding:10px; }
  .sheet th{ white-space:normal; }
}
/* scroll-linked reading progress and photo reveals; browsers without support show everything at rest */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    body::before{ content:''; position:fixed; z-index:70; top:0; left:0; right:0; height:2px; background:var(--gold); transform-origin:left; animation:mag-progress linear both; animation-timeline:scroll(root); }
    .sheet figure img,.article-hero img{ animation:mag-unveil linear both; animation-timeline:view(); animation-range:entry 0% entry 55%; }
    .cta,.warn{ animation:mag-rise linear both; animation-timeline:view(); animation-range:entry 0% entry 70%; }
  }
}
@keyframes mag-progress{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@keyframes mag-unveil{ from{ clip-path:inset(12% 6% 12% 6% round 16px); transform:scale(1.05); } to{ clip-path:inset(0 0 0 0 round 12px); transform:none; } }
@keyframes mag-rise{ from{ opacity:.25; transform:translateY(22px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation:none!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
