/* ===== Tokens ===== */
:root{
  --navy:#1f2d4d;
  --forest:#2c4a35;
  --ink:#1b2230;
  --text:#4a5361;
  --mute:#8a92a0;
  --line:#dfe3e8;
  --bg:#ffffff;
  --bg-gray:#f1f3f5;
  --max:1440px;
  --header-h:110px;
}
/* One self-hosted typeface across desktop and mobile. */
@font-face{font-family:'CCLIM Pretendard';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/PretendardVariable.woff2') format('woff2')}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 20px)}
body{font-family:'CCLIM Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:var(--text);background:var(--bg);line-height:1.7;letter-spacing:-.01em;word-break:keep-all}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.inner{width:100%;max-width:var(--max);margin:0 auto;padding:0 24px}

/* ===== Buttons / links ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 28px;font-weight:600;font-size:15px;transition:background .2s,color .2s}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:#121c33}
.btn-light{background:#fff;color:var(--ink)}
.btn-light:hover{background:#e8ecf2}
.text-link{display:inline-block;min-width:150px;padding:8px 0;border-bottom:1px solid var(--ink);font-size:14px;font-weight:600;color:var(--ink)}
.text-link::after{content:"→";float:right;margin-left:16px}
.text-link:hover{color:var(--navy);border-color:var(--navy)}
.link-light{color:#fff;font-size:14px;border-bottom:1px solid rgba(255,255,255,.6);padding:4px 0}
.btn-row{display:flex;flex-wrap:wrap;gap:20px 28px;margin-top:28px}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.util-bar{background:var(--bg-gray);font-size:14px;color:var(--navy);font-weight:500;}
.util-bar .inner{display:flex;justify-content:space-between;align-items:center;height:50px}
.util-bar ul{display:flex;gap:18px}
.gnb-bar .inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h)}
.logo{display:flex;align-items:center;flex-shrink:0;line-height:1;font-weight:700;font-size:22px;color:var(--navy)}
.logo img{display: block; height: 85px; width: auto;}
.gnb{display:flex;align-items:center;gap:44px}
.gnb ul{display:flex;gap:36px}
.gnb ul a{font-weight:600;font-size:18px;color:var(--ink);padding:8px 0;border-bottom:2px solid transparent}
.gnb ul a:hover,.gnb ul a.is-current{border-color:var(--navy)}
.btn-donate{min-height:44px;padding:0 30px}
.menu-toggle{display:none;width:44px;height:44px;flex-direction:column;justify-content:center;align-items:center;gap:6px}
.menu-toggle span{width:24px;height:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* ===== Hero ===== */
.hero{position:relative;min-height:600px;height:min(72vh,640px);color:#fff;background:var(--forest);overflow:hidden;display:flex;align-items:center}
.hero-slides,.hero-slide,.hero-shade{position:absolute;inset:0}
.hero-slide{background-size:cover;background-position:center;opacity:0;transition:opacity 1s ease}
.hero-slide.is-active{opacity:1}
.hero-shade{background:linear-gradient(90deg,rgba(10,22,18,.78) 0%,rgba(10,22,18,.35) 55%,rgba(10,22,18,.1) 100%)}
.hero-body{position:relative}
.hero-kicker{font-size:16px;font-weight:500;margin-bottom:22px}
.hero h1{font-size:clamp(34px,5vw,52px);line-height:1.28;font-weight:700;letter-spacing:-.03em;margin-bottom:26px}
.hero-desc{font-size:16px;font-weight:500;line-height:1.8;margin-bottom:34px}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:24px}
.hero-ctrl{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);display:flex;justify-content:space-between;align-items:center;font-size:12px}
.hero-tags{display:flex;gap:14px}
.hero-tags li+li::before{content:"|";margin-right:14px;opacity:.5}
.hero-nav{display:flex;align-items:center;gap:10px}
.hero-nav button{width:32px;height:32px;border:1px solid rgba(255,255,255,.55);border-radius:50%;font-size:16px;line-height:1;color:#fff}
.hero-nav button:hover{background:rgba(255,255,255,.2)}
.hero-pause{font-size:9px!important}
.hero-dots{display:flex;gap:8px}
.hero-dots button{width:26px;height:4px;border:0!important;border-radius:0!important;background:rgba(255,255,255,.4)}
.hero-dots button.is-active{background:#fff}

/* ===== Sections ===== */
.section{padding:110px 0}
.section-line{border-top:1px solid var(--line);margin:0 auto;max-width:calc(var(--max) - 48px + 0px); }
.section-gray{background:var(--bg-gray)}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:32px;margin-bottom:56px;border-bottom:1px solid var(--line)}
.sec-head h2{font-size:clamp(26px,3.2vw,34px);color:var(--ink);font-weight:700;letter-spacing:-.03em;line-height:1.3}
.sec-sub{font-size:14px;color:var(--mute);text-align:right}
.eyebrow{font-size:11px;letter-spacing:.12em;color:var(--navy);font-weight:700;margin-bottom:16px}
.meta{font-size:12px;color:var(--mute);margin-bottom:12px}

/* OUR WORK */
.work-item{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;padding:44px 0;border-bottom:1px solid var(--line)}
.work-item:last-child{border-bottom:0}
.work-img{aspect-ratio:16/10;background:var(--bg-gray);overflow:hidden}
.work-img img{width:100%;height:100%;object-fit:cover}
.work-item.reverse .work-img{order:2}
.work-txt h3{font-size:26px;color:var(--ink);letter-spacing:-.03em;margin-bottom:16px;line-height:1.35}
.work-txt p:not(.meta){font-size:14px;max-width:420px;margin-bottom:32px}

/* Magazine */
.tabs{display:flex;gap:26px}
.tabs button{padding:8px 2px;font-size:14px;color:var(--mute);border-bottom:2px solid transparent}
.tabs button.is-active{color:var(--navy);font-weight:700;border-color:var(--navy)}
#magazine .tabs{margin-top:-24px;margin-bottom:44px;border-bottom:1px solid var(--line)}
#magazine .tabs button{margin-bottom:-1px}
.tabpanel{display:none}
.tabpanel.is-active{display:block}
.mag-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px;align-items:center}
.mag-cover{position:relative;aspect-ratio:4/3;background:var(--navy);color:#fff;overflow:hidden}
.mag-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.mag-cover-fallback{position:absolute;inset:0;padding:36px;display:flex;flex-direction:column;justify-content:center;gap:20px}
.mag-cover-fallback small{font-size:11px;opacity:.7}
.mag-cover-fallback strong{font-size:40px;line-height:1.3;letter-spacing:-.03em}
.mag-cover-fallback span{font-size:12px;opacity:.8}
.mag-txt h3{font-size:26px;color:var(--ink);letter-spacing:-.03em;line-height:1.45;margin-bottom:16px}
.mag-txt p:not(.meta){font-size:14px;max-width:560px}
.empty{padding:60px 0;text-align:center;color:var(--mute)}
#magazine{
  position:relative;
  isolation:isolate;
  max-width:none;
  margin:0 auto;
  border-top:0;
  background:none;
}
#magazine::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  margin-left:-50vw;
  background:#f2feff;
  z-index:-1;
}
html, body { overflow-x: clip; }
/* Contest */
.contest-card{background:#fff;padding:44px 48px;border:1px solid var(--line)}
.contest-top{display:flex;align-items:center;gap:16px;margin-bottom:22px;font-size:12px;color:var(--mute)}
.badge{background:var(--navy);color:#fff;font-size:11px;font-weight:700;padding:3px 10px}
.contest-card h3{font-size:26px;color:var(--ink);letter-spacing:-.03em;margin-bottom:10px}
.contest-card>p:not(.notice){font-size:14px}
.contest-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin:34px 0 28px;padding-top:28px;border-top:1px solid var(--line)}
.notice{font-size:12px;color:var(--mute);line-height:1.7}

/* News */
.filter{margin-bottom:-1px}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-bottom:28px}
.news-card[hidden]{display:none}
.news-thumb{aspect-ratio:4/3;background:var(--bg-gray);overflow:hidden;margin-bottom:18px}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.news-card a:hover .news-thumb img{transform:scale(1.04)}
.news-card h3{font-size:19px;color:var(--ink);letter-spacing:-.02em;margin-bottom:6px;line-height:1.4}
.news-desc{font-size:13px;color:var(--mute)}

/* About */
.about{padding:90px 0}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:start}
.about h2{font-size:32px;color:var(--ink);letter-spacing:-.03em;line-height:1.4}
.about p{font-size:14px}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line);padding:32px 0 40px;font-size:14px;color:#000;}
.foot-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.foot-top ul{display:flex;gap:26px;color:var(--ink);font-weight:600;font-size:14px}
.foot-desc{margin-bottom:34px}
.foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* ===== Responsive ===== */
@media (max-width:960px){
  .menu-toggle{display:flex}
  .gnb{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:0;padding:12px 24px 24px;display:none}
  .gnb.is-open{display:flex}
  .gnb ul{flex-direction:column;gap:0}
  .gnb ul a{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .btn-donate{margin-top:18px}
  .section{padding:72px 0}
  .work-item,.mag-grid,.about-grid{grid-template-columns:1fr;gap:28px}
  .work-item.reverse .work-img{order:0}
  .news-grid{grid-template-columns:1fr 1fr}
  .sec-head{flex-direction:column;align-items:flex-start}
  .sec-sub{text-align:left}
  :root { --header-h: 90px; }   /* 태블릿 */
  .logo img{display: block; height: 75px; width: auto;}
}
@media (max-width:600px){
  .news-grid{grid-template-columns:1fr}
  .hero-ctrl{flex-direction:column;align-items:flex-start;gap:12px;left:0;transform:none;bottom:18px}
  .hero-tags{display:none}
  .contest-card{padding:28px 22px}
  .util-bar p{display:none}
  .util-bar .inner{justify-content:flex-end}
  :root { --header-h: 64px; }   /* 모바일 */
  .logo img{display:block;height:56px;width:auto;}
  
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
