/*
Theme Name: Onter Green
Theme URI: https://green.onterbiotics.com
Description: 온터바이오 식이섬유 가이드 전용 프리미엄 정보형 테마. 식이섬유, 부티르산, 낙산균, 밀싹 주제 브랜드 사이트.
Author: 온터바이오 식이섬유 가이드
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Text Domain: onter-green
*/

/* ============ tokens ============ */
:root{
  --green-900:#123420; --green-800:#164a2c; --green-700:#1f5c39; --green-600:#2a7548;
  --green-500:#369160; --green-400:#57ab7d; --green-050:#eaf4ee; --green-025:#f4faf6;
  --wheat:#c9922f; --wheat-050:#fbf4e6;
  --ink:#182420; --body:#33423b; --muted:#66756c; --line:#e5ece6; --line-2:#eef2ee;
  --bg:#ffffff; --bg-soft:#f5f8f5; --bg-deep:#0f2418;
  --radius:18px; --radius-sm:12px; --radius-xs:8px;
  --shadow-sm:0 4px 14px rgba(18,52,32,.06);
  --shadow:0 14px 40px rgba(18,52,32,.10);
  --shadow-lg:0 24px 60px rgba(18,52,32,.14);
  --maxw:1180px; --readw:768px;
  --sp:8px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --fs-body:17px;
}
@font-face{font-family:'PretendardFallback';src:local('Pretendard');}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;background:var(--bg);color:var(--body);
  font-family:'Pretendard','Pretendard Variable',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Segoe UI',Roboto,'Noto Sans KR',sans-serif;
  font-size:var(--fs-body);line-height:1.75;-webkit-font-smoothing:antialiased;letter-spacing:-.01em;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--green-700);text-decoration:none;transition:color .2s var(--ease);}
a:hover{color:var(--green-500);}
h1,h2,h3,h4{color:var(--ink);line-height:1.32;letter-spacing:-.02em;font-weight:800;margin:0;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
:focus-visible{outline:3px solid var(--green-400);outline-offset:2px;border-radius:4px;}

/* ============ header ============ */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line);}
.site-header .wrap{display:flex;align-items:center;gap:20px;height:72px;}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.brand .logo{width:40px;height:40px;flex:0 0 40px;border-radius:11px;display:block;box-shadow:var(--shadow-sm);}
.brand .btext{display:flex;flex-direction:column;line-height:1.15;}
.brand .btext b{font-size:16px;color:var(--ink);font-weight:800;letter-spacing:-.02em;}
.brand .btext span{font-size:11.5px;color:var(--muted);font-weight:600;letter-spacing:.02em;}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:6px;}
.main-nav a{padding:9px 14px;border-radius:10px;font-size:15px;font-weight:600;color:var(--body);}
.main-nav a:hover{background:var(--green-050);color:var(--green-700);}
.nav-cta{background:var(--green-600);color:#fff!important;padding:10px 18px!important;border-radius:11px;font-weight:700;box-shadow:var(--shadow-sm);}
.nav-cta:hover{background:var(--green-700);}
.nav-toggle{margin-left:auto;display:none;width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:11px;cursor:pointer;align-items:center;justify-content:center;}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{content:'';display:block;width:20px;height:2px;background:var(--ink);position:relative;transition:.25s;}
.nav-toggle span::before{position:absolute;top:-6px;}.nav-toggle span::after{position:absolute;top:6px;}

/* ============ buttons ============ */
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:16px;padding:14px 26px;border-radius:12px;cursor:pointer;border:1px solid transparent;transition:.22s var(--ease);text-align:center;}
.btn-primary{background:var(--green-600);color:#fff;box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--green-700);color:#fff;transform:translateY(-2px);box-shadow:var(--shadow);}
.btn-ghost{background:#fff;color:var(--green-700);border-color:var(--line);}
.btn-ghost:hover{border-color:var(--green-400);color:var(--green-700);background:var(--green-025);}
.btn-wheat{background:var(--wheat);color:#fff;}
.btn-wheat:hover{background:#b47f26;color:#fff;}

/* ============ sections ============ */
.section{padding:96px 0;}
.section.tight{padding:64px 0;}
.section.soft{background:var(--bg-soft);}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;letter-spacing:.06em;color:var(--green-600);text-transform:uppercase;margin-bottom:16px;}
.eyebrow::before{content:'';width:22px;height:2px;background:var(--green-500);border-radius:2px;}
.section-head{max-width:720px;margin-bottom:48px;}
.section-head h2{font-size:clamp(26px,3.4vw,38px);margin-bottom:14px;}
.section-head p{color:var(--muted);font-size:17px;margin:0;}

/* ============ hero ============ */
.hero{position:relative;overflow:hidden;background:linear-gradient(160deg,var(--green-025) 0%,#fff 60%);}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding-top:80px;padding-bottom:96px;}
.hero h1{font-size:clamp(32px,5vw,56px);line-height:1.14;letter-spacing:-.03em;margin-bottom:22px;color:var(--ink);}
.hero h1 em{font-style:normal;color:var(--green-600);}
.hero .lede{font-size:19px;color:var(--body);max-width:540px;margin-bottom:32px;}
.hero .cta-row{display:flex;gap:12px;flex-wrap:wrap;}
.hero .trust{margin-top:26px;display:flex;gap:22px;flex-wrap:wrap;color:var(--muted);font-size:14px;}
.hero .trust b{color:var(--green-700);font-weight:800;font-size:22px;display:block;letter-spacing:-.02em;}
.hero-visual{position:relative;}
.hero-visual img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:24px;box-shadow:var(--shadow-lg);}
.hero-badge{position:absolute;left:-18px;bottom:34px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 20px;box-shadow:var(--shadow);max-width:240px;}
.hero-badge b{display:block;color:var(--ink);font-size:15px;margin-bottom:4px;}
.hero-badge span{font-size:13px;color:var(--muted);line-height:1.5;}

/* ============ cards / grid ============ */
.grid{display:grid;gap:26px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.25s var(--ease);display:flex;flex-direction:column;}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--line-2);}
.card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--green-050);}
.card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.card:hover .thumb img{transform:scale(1.05);}
.card .cbody{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.card .cat{font-size:12px;font-weight:800;color:var(--green-600);letter-spacing:.03em;}
.card h3{font-size:19px;line-height:1.4;}
.card h3 a{color:var(--ink);}
.card:hover h3 a{color:var(--green-700);}
.card p{margin:0;color:var(--muted);font-size:15px;line-height:1.65;}
.card .more{margin-top:auto;font-weight:700;font-size:14px;color:var(--green-600);display:inline-flex;align-items:center;gap:6px;}
.card .more::after{content:'';width:14px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translateX(-2px);}

/* feature tiles */
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px 28px;transition:.25s var(--ease);}
.feature:hover{box-shadow:var(--shadow-sm);transform:translateY(-3px);}
.feature .ic{width:52px;height:52px;border-radius:14px;background:var(--green-050);display:flex;align-items:center;justify-content:center;margin-bottom:18px;}
.feature .ic svg{width:26px;height:26px;stroke:var(--green-600);}
.feature h3{font-size:19px;margin-bottom:10px;}
.feature p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.7;}
.step-n{font-size:13px;font-weight:800;color:var(--wheat);letter-spacing:.08em;margin-bottom:8px;}

/* ============ footer ============ */
.site-footer{background:var(--bg-deep);color:#c7d6cc;padding:64px 0 28px;margin-top:0;}
.site-footer a{color:#c7d6cc;}
.site-footer a:hover{color:#fff;}
.foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.10);}
.foot-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.foot-brand img{width:40px;height:40px;border-radius:11px;}
.foot-brand b{color:#fff;font-size:17px;font-weight:800;}
.foot-desc{font-size:14.5px;line-height:1.75;color:#a9bcb0;max-width:380px;}
.foot-col h4{color:#fff;font-size:14px;margin-bottom:16px;letter-spacing:.02em;}
.foot-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;font-size:14.5px;}
.foot-legal{padding-top:24px;font-size:13px;color:#8ea497;line-height:1.7;}
.foot-notice{margin-top:16px;font-size:13px;color:#93a89b;background:rgba(255,255,255,.04);border-radius:12px;padding:14px 18px;line-height:1.7;}
.foot-copy{margin-top:18px;font-size:13px;color:#7e9488;}

/* ============ single / page article ============ */
.post-hero{background:linear-gradient(160deg,var(--green-025),#fff);border-bottom:1px solid var(--line);}
.post-hero .wrap{padding:44px 24px 0;}
.crumbs{font-size:13.5px;color:var(--muted);margin-bottom:16px;}
.crumbs a{color:var(--muted);} .crumbs a:hover{color:var(--green-600);}
.post-hero .cat{color:var(--green-600);font-weight:800;font-size:13px;letter-spacing:.04em;}
.post-hero h1{font-size:clamp(28px,4.2vw,44px);margin:12px 0 16px;line-height:1.22;}
.post-hero .post-meta{color:var(--muted);font-size:14px;display:flex;gap:16px;flex-wrap:wrap;padding-bottom:36px;}
.post-featured{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.post-featured img{width:100%;max-height:460px;object-fit:cover;border-radius:22px;box-shadow:var(--shadow);margin-top:-8px;}

.article{max-width:var(--readw);margin:0 auto;padding:48px 24px 8px;}
.article p{margin:0 0 20px;font-size:17.5px;line-height:1.85;color:var(--body);}
.article h2{font-size:26px;margin:44px 0 16px;padding-top:8px;position:relative;}
.article h2::before{content:'';position:absolute;top:-6px;left:0;width:44px;height:4px;background:var(--green-500);border-radius:3px;}
.article h3{font-size:20px;margin:32px 0 12px;color:var(--green-800);}
.article ul,.article ol{margin:0 0 22px;padding-left:22px;}
.article li{margin:0 0 9px;line-height:1.8;}
.article a{font-weight:600;border-bottom:1px solid var(--green-050);}
.article a:hover{border-color:var(--green-400);}
.article strong{color:var(--ink);}
.post-figure{margin:32px 0;}
.post-figure img{width:100%;border-radius:16px;box-shadow:var(--shadow-sm);}
.post-figure figcaption{margin-top:10px;font-size:13.5px;color:var(--muted);text-align:center;}

.key-summary{background:var(--green-025);border:1px solid var(--green-050);border-left:4px solid var(--green-500);border-radius:0 14px 14px 0;padding:22px 24px;margin:0 0 32px;}
.key-summary strong{display:block;color:var(--green-800);font-size:15px;margin-bottom:8px;letter-spacing:.01em;}
.key-summary p{font-size:15.5px;margin:0 0 12px;color:var(--body);}
.key-summary ul{margin:0;padding-left:20px;}
.key-summary li{font-size:15px;color:var(--body);margin-bottom:6px;}

.toc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 24px;margin:0 0 34px;}
.toc-title{font-weight:800;color:var(--ink);font-size:15px;margin-bottom:12px;}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:28px;}
.toc li{margin-bottom:8px;font-size:14.5px;break-inside:avoid;}
.toc a{color:var(--body);font-weight:500;border:0;}
.toc a:hover{color:var(--green-600);}

.article .lead{font-size:19px;color:var(--ink);line-height:1.8;font-weight:500;}

.article table{width:100%;border-collapse:separate;border-spacing:0;margin:8px 0 28px;font-size:15.5px;border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.article th{background:var(--green-600);color:#fff;text-align:left;padding:13px 16px;font-weight:700;font-size:14.5px;}
.article td{padding:12px 16px;border-top:1px solid var(--line);color:var(--body);}
.article tbody tr:nth-child(even){background:var(--bg-soft);}
.table-scroll{overflow-x:auto;}

.callout{margin:8px 0 28px;background:var(--wheat-050);border:1px solid #f0e0bf;border-left:4px solid var(--wheat);border-radius:0 12px 12px 0;padding:16px 20px;}
.callout p{margin:0;color:#7a5b1e;font-size:16px;line-height:1.75;font-weight:500;}

.chart{margin:8px 0 30px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px;}
.chart-title{font-weight:800;color:var(--ink);font-size:15px;margin-bottom:16px;}
.bar-row{display:grid;grid-template-columns:128px 1fr auto;align-items:center;gap:12px;margin-bottom:12px;}
.bar-label{font-size:14px;color:var(--body);font-weight:600;}
.bar-track{height:12px;background:var(--green-050);border-radius:8px;overflow:hidden;}
.bar-fill{display:block;height:100%;background:linear-gradient(90deg,var(--green-500),var(--green-600));border-radius:8px;}
.bar-val{font-size:13.5px;color:var(--muted);font-weight:600;white-space:nowrap;}
.chart-note{margin:8px 0 0!important;font-size:12.5px!important;color:var(--muted)!important;}

.faq{margin:8px 0 12px;}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:12px;}
.faq-q{font-weight:800;color:var(--ink);margin:0 0 8px!important;font-size:16.5px;}
.faq-a{margin:0!important;color:var(--body);font-size:15.5px;line-height:1.75;}

.related{margin:36px 0 8px;background:var(--bg-soft);border-radius:16px;padding:24px 26px;}
.related-title{font-weight:800;color:var(--ink);font-size:17px;margin-bottom:14px;}
.related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;}
.related li a{font-weight:600;color:var(--green-700);border:0;display:inline-flex;align-items:center;gap:8px;}
.related li a::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--green-400);flex:0 0 6px;}
.sources{font-size:14px;color:var(--muted);margin-top:22px;}
.basis-note{font-size:13.5px;color:var(--muted);background:var(--bg-soft);border-radius:10px;padding:12px 16px;line-height:1.7;}

/* article cta */
.article-cta{max-width:var(--readw);margin:8px auto 0;padding:0 24px;}
.article-cta .box{background:linear-gradient(150deg,var(--green-700),var(--green-800));color:#fff;border-radius:20px;padding:36px 34px;text-align:center;box-shadow:var(--shadow);}
.article-cta h3{color:#fff;font-size:23px;margin-bottom:10px;}
.article-cta p{color:#d5e6db;margin:0 0 22px;font-size:16px;}

/* listing / archive */
.page-head{background:linear-gradient(160deg,var(--green-025),#fff);border-bottom:1px solid var(--line);padding:56px 0;}
.page-head h1{font-size:clamp(28px,4vw,40px);margin-bottom:10px;}
.page-head p{color:var(--muted);font-size:17px;margin:0;}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:48px;flex-wrap:wrap;}
.pagination a,.pagination span{padding:10px 16px;border-radius:10px;border:1px solid var(--line);font-weight:700;font-size:15px;color:var(--body);}
.pagination .current{background:var(--green-600);color:#fff;border-color:var(--green-600);}
.pagination a:hover{border-color:var(--green-400);color:var(--green-700);}

/* page body (privacy/terms) */
.page-body{max-width:var(--readw);margin:0 auto;padding:48px 24px;}
.page-body h2{font-size:23px;margin:36px 0 14px;}
.page-body h3{font-size:18px;margin:26px 0 10px;color:var(--green-800);}
.page-body p,.page-body li{font-size:16px;line-height:1.8;color:var(--body);}
.page-body ul,.page-body ol{padding-left:22px;margin-bottom:18px;}

/* reveal animation */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease);}
.reveal.in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1!important;transform:none!important;transition:none!important;}*{scroll-behavior:auto!important;}}

/* ============ responsive ============ */
@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr;gap:36px;padding-top:52px;padding-bottom:64px;}
  .hero-visual{order:-1;}
  .hero-visual img{aspect-ratio:16/11;}
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}
  .foot-top{grid-template-columns:1fr;gap:28px;}
  .section{padding:64px 0;}
  .main-nav{display:none;}
  .main-nav.open{display:flex;position:absolute;top:72px;left:0;right:0;flex-direction:column;background:#fff;border-bottom:1px solid var(--line);padding:12px 24px;gap:4px;box-shadow:var(--shadow);}
  .main-nav.open a{padding:12px 10px;}
  .nav-toggle{display:flex;}
  .brand{margin-right:auto;}
  .toc ol{columns:1;}
  .related ul{grid-template-columns:1fr;}
}
@media (max-width:560px){
  :root{--fs-body:16px;}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr;}
  .wrap{padding:0 18px;}
  .bar-row{grid-template-columns:96px 1fr auto;}
  .hero-badge{left:12px;right:12px;max-width:none;}
  .article h2{font-size:22px;}
}
