/* =====================================================================
   Pondok Daun Farm — lapisan tema premium ("Estate Reserve")
   Palet : pine #0f2a20 · estate #1c4f3b · porcelain #f4f6f1 · gold-leaf #b08a3c · espresso #241a13
   Huruf : Fraunces (judul) + Plus Jakarta Sans (isi & antarmuka)
   Dimuat paling akhir di <head>. Warna dasar sudah diselaraskan lewat token tiap halaman.
   ===================================================================== */
:root{
  --pd-pine:#0f2a20; --pd-estate:#1c4f3b; --pd-gold:#b08a3c; --pd-gold-deep:#86671f;
  --pd-gold-soft:#eadfba; --pd-mist:#e9f0ea; --pd-hair:#dbe3da; --pd-paper:#fbfcfa; --pd-espresso:#241a13;
  --pd-serif:'Fraunces','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --pd-sans:'Plus Jakarta Sans','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --pd-shadow-1:0 1px 2px rgba(15,42,32,.05),0 10px 28px rgba(15,42,32,.06);
  --pd-shadow-2:0 2px 4px rgba(15,42,32,.06),0 20px 46px rgba(15,42,32,.12);
}

/* ---------- dasar ---------- */
html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility;scrollbar-color:#b6c4ba #f4f6f1}
html body{font-family:var(--pd-sans);font-feature-settings:"kern" 1,"liga" 1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.003em}
html body :is(h1,h2,h3,h4){font-family:var(--pd-serif);font-optical-sizing:auto;font-weight:560;letter-spacing:-.022em;text-wrap:balance}
html body :is(p,li,figcaption){text-wrap:pretty}
html body :is(input,textarea,select,button){font-family:var(--pd-sans)}
::selection{background:#cfe3d6;color:#0f2a20}
:focus-visible{outline:2px solid var(--pd-gold)!important;outline-offset:3px!important;border-radius:6px}
html body a{text-underline-offset:.22em;text-decoration-thickness:1px}

/* ---------- header & navigasi ---------- */
html body header.bar,html body .bar{background:rgba(251,252,250,.86);-webkit-backdrop-filter:saturate(1.5) blur(16px);backdrop-filter:saturate(1.5) blur(16px);border-bottom:1px solid var(--pd-hair);box-shadow:0 1px 0 rgba(176,138,60,.16)}
html body .bar .logo,html body .bar .brand{font-family:var(--pd-serif);font-weight:600;letter-spacing:-.02em;color:var(--pd-pine)}
html body .bar .logo span{font-size:21px}
html body .bar nav a{position:relative;font-family:var(--pd-sans);font-weight:500;font-size:14.5px;letter-spacing:0;color:#4a6157;border-radius:999px;transition:color .2s ease,background-color .2s ease}
html body .bar nav a:hover{background:transparent;color:var(--pd-pine)}
html body .bar nav a:not(#nav-admin-chat):after{content:"";position:absolute;left:14px;right:14px;bottom:3px;height:1px;background:var(--pd-gold);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
html body .bar nav a:not(#nav-admin-chat):hover:after{transform:scaleX(1)}
html body .bar nav a#nav-admin-chat{margin-left:6px;padding:7px 16px;color:var(--pd-gold-deep);border:1px solid rgba(176,138,60,.65);background:transparent;font-weight:600}
html body .bar nav a#nav-admin-chat:hover{background:var(--pd-gold);border-color:var(--pd-gold);color:#10261c}

/* ---------- hero beranda ---------- */
html body .home-hero{background-color:#f2f6f1}
html body .home-hero-content{padding-top:56px;padding-bottom:44px}
html body .home-ornament img{width:76px;height:76px;object-fit:contain;border-radius:50%;background:#fbfcfa;padding:5px;box-shadow:0 0 0 1px rgba(176,138,60,.55),0 12px 30px rgba(15,42,32,.14)}
html body .home-hero h1{font-family:var(--pd-serif);font-weight:500;font-size:clamp(46px,7.4vw,108px);line-height:.98;letter-spacing:-.038em;text-transform:none;color:var(--pd-pine);font-variation-settings:"opsz" 144,"SOFT" 40;margin:6px auto 22px}
html body .home-hero p{font-family:var(--pd-sans);font-weight:400;font-size:clamp(16px,1.45vw,19px);line-height:1.75;color:#3b574b;max-width:64ch;letter-spacing:-.002em}
html body .home-slogan{font:italic 400 clamp(20px,2vw,27px)/1.3 var(--pd-serif);letter-spacing:0;color:var(--pd-gold-deep);gap:22px;margin-top:22px}
html body .home-slogan:before,html body .home-slogan:after{border-top:1px solid var(--pd-gold);opacity:.75}

/* ---------- barisan komoditas ---------- */
html body .crop-showcase{background:var(--pd-paper);border-bottom:1px solid var(--pd-hair)}
html body .commodity-card{border-right:1px solid var(--pd-hair)}
html body .commodity-card:last-child{border-right:0}
html body .commodity-card img{border-radius:16px;box-shadow:inset 0 0 0 1px rgba(15,42,32,.06);transition:transform .3s ease}
html body .commodity-card b{position:relative;font:600 21px/1.2 var(--pd-serif);letter-spacing:-.01em;text-transform:none;color:var(--pd-pine);padding-bottom:7px}
html body .commodity-card b:after{content:"";position:absolute;left:50%;bottom:0;width:28px;height:1px;background:var(--pd-gold);transform:translateX(-50%) scaleX(.4);opacity:.55;transition:transform .3s ease,opacity .3s ease}
html body .commodity-card:hover b:after{transform:translateX(-50%) scaleX(1.5);opacity:1}
@media(max-width:560px){html body .commodity-card b{font-size:16px}}

/* ---------- judul bagian & teks pengantar ---------- */
html body main h2{letter-spacing:-.025em}
html body main .lead,html body main .section-lead{font-family:var(--pd-sans);line-height:1.75;color:#55695f}

/* ---------- label, chip, tombol ---------- */
html body :is(.agri-news-tag,.tag,.kicker,.article-cover span){font-family:var(--pd-sans);font-weight:600;letter-spacing:0;text-transform:none}
html body :is(.agri-news-tag,.kicker){background:var(--pd-gold-soft);color:#4d3a0f}
html body :is([data-news-filter],.chips button,#achips button){font-family:var(--pd-sans);font-weight:600;font-size:13.5px;letter-spacing:0;border:1px solid var(--pd-hair);background:var(--pd-paper);color:#2c4a3d;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
html body :is([data-news-filter],.chips button,#achips button):hover{border-color:var(--pd-gold)}
html body :is([data-news-filter][aria-pressed="true"],.chips button[aria-pressed="true"],#achips button[aria-pressed="true"]){background:var(--pd-pine);border-color:var(--pd-pine);color:#f6f3e8}
html body .btn,html body .back{background:var(--pd-pine);color:#f6f3e8;font-family:var(--pd-sans);font-weight:600;letter-spacing:0;border:1px solid rgba(176,138,60,.6);box-shadow:0 8px 20px rgba(15,42,32,.16)}
html body .btn:hover,html body .back:hover{background:#163d2e;filter:none}
html body .btn.ghost{background:transparent;color:var(--pd-pine);border:1px solid var(--pd-pine);box-shadow:none}
html body .article-more{border:1px solid var(--pd-pine);background:transparent;color:var(--pd-pine);font-weight:600;box-shadow:none;transition:background-color .2s ease,color .2s ease}
html body .article-more:hover{background:var(--pd-pine);color:#f6f3e8;transform:none}


/* kotak catatan redaksi pada berita: hangat seperti kertas catatan, bukan abu-abu */
html body #kabar-pertanian :is(.agri-news-points){background:#f7f2e2;border-left:3px solid var(--pd-gold);border-radius:0 14px 14px 0}
html body #kabar-pertanian :is(.agri-news-points) b{font-family:var(--pd-sans);letter-spacing:0;text-transform:none;color:var(--pd-gold-deep)}

/* ---------- kartu ---------- */
html body :is(.article-card,.card,.q,.ar){border-color:var(--pd-hair);box-shadow:var(--pd-shadow-1)}
html body :is(.article-card,.card,.q,.ar):hover{box-shadow:var(--pd-shadow-2)}
html body #kabar-pertanian .agri-news-card{border-color:var(--pd-hair)}
html body :is(.article-card h3,.agri-news-card h3,.card h3){font-family:var(--pd-serif);font-weight:560;letter-spacing:-.018em}
html body .article-cover:after{font-family:var(--pd-serif);font-weight:500}

/* ---------- halaman baca (berita & artikel statis) ---------- */
html body main{font-size:18px;line-height:1.82}
html body .crumbs{font-family:var(--pd-sans);letter-spacing:0}
html body .kicker{border:1px solid rgba(176,138,60,.5);background:transparent;color:var(--pd-gold-deep);padding:5px 13px}
html body .kicker.alt{border-color:var(--pd-estate);color:var(--pd-estate)}
html body main h1{font-weight:500;font-size:clamp(32px,5.2vw,50px);line-height:1.1;letter-spacing:-.03em}
html body .dek{font:400 clamp(19px,2.1vw,22px)/1.6 var(--pd-serif);letter-spacing:-.005em;color:#3a574b}
html body .by{border-top:1px solid var(--pd-hair);border-bottom:1px solid var(--pd-hair);font-family:var(--pd-sans);font-weight:500;letter-spacing:0}
html body figure .img{border-radius:16px;box-shadow:var(--pd-shadow-1)}
html body .body{max-width:68ch}
html body :is(.body,.prose) h2{font-weight:560;font-size:clamp(24px,3vw,30px);line-height:1.2;letter-spacing:-.025em;margin-top:1.9em}
html body :is(.body,.prose) h3{font-size:20px;font-weight:600;letter-spacing:-.015em}
html body .body a{color:var(--pd-estate);text-decoration-color:rgba(176,138,60,.8)}
html body .note{background:var(--pd-paper);border:1px solid var(--pd-hair);border-left:3px solid var(--pd-gold);border-radius:12px}
html body .note b,html body .refs b{font-family:var(--pd-sans);font-weight:700;font-size:13px;letter-spacing:0;text-transform:none}
html body .rel h3{font-weight:560;letter-spacing:-.02em}
html body .rel a{font-family:var(--pd-sans);font-weight:600;border-color:var(--pd-hair);transition:border-color .2s ease,box-shadow .2s ease}
html body .rel a:hover{border-color:var(--pd-gold);box-shadow:var(--pd-shadow-1)}

/* ---------- formulir ---------- */
html body :is(input,textarea,select){border-radius:12px;border:1px solid #cbd7cd;background:#fdfefc;color:var(--pd-pine)}
html body :is(input,textarea,select):focus{border-color:var(--pd-gold);box-shadow:0 0 0 3px rgba(176,138,60,.18)}

/* ---------- gerak ---------- */
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
