/*
Theme Name: MADURA88 Organic Editorial iRltqduk
Theme URI: https://madura88login.asia/
Author: MADURA88 Panduan Indonesia
Description: Tema editorial organik untuk panduan independen MADURA88 Indonesia.
Version: 1.0.1
Text Domain: madura88-organic
*/

:root {
  --paper: #f7f0e5;
  --surface: #fffdf8;
  --soft: #efe1d2;
  --forest: #314a43;
  --terracotta: #a94e37;
  --sage: #557565;
  --ochre: #b67d1e;
  --ink: #302a26;
  --muted: #675f59;
  --line: #d7c4b1;
  --focus: #235d4b;
  --reading: 760px;
  --wide: 1280px;
  --radius: 14px;
  --organic: 34px;
  --shadow: 0 18px 42px rgba(80, 50, 35, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #7c2f22; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -120px; z-index: 9999; padding: 12px 18px; color: #fff; background: var(--forest); border-radius: 8px; }
.skip-link:focus { top: 14px; }

.site-header { position: relative; z-index: 50; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--wide), calc(100% - 48px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 20px; }
.site-brand { flex: 0 0 auto; display: flex; align-items: center; }
.custom-logo-link, .brand-fallback { display: inline-flex; min-height: 48px; align-items: center; }
.custom-logo { width: 205px; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-fallback img { width: 205px; height: auto; }
.nav-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; padding: 8px; color: var(--forest); background: transparent; border: 2px solid var(--forest); border-radius: 12px; font: inherit; font-weight: 700; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: stretch; flex-wrap: nowrap; justify-content: flex-end; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 48px; align-items: center; padding: 8px 7px; color: var(--forest); border-radius: 9px; font-size: .76rem; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; background: var(--terracotta); }

.site-main { overflow: hidden; }
.page-shell { padding: clamp(44px, 7vw, 94px) 0 clamp(70px, 9vw, 116px); }
.page-heading { width: min(var(--reading), calc(100% - 48px)); margin: 0 auto 34px; }
.page-heading::before { content: "Panduan independen • Indonesia"; display: inline-block; margin-bottom: 14px; color: var(--terracotta); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest); font-weight: 800; letter-spacing: -.025em; line-height: 1.16; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { margin: 0 0 20px; font-size: clamp(1.65rem, 3.6vw, 2.55rem); }
h3 { margin: 36px 0 14px; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p, ul, ol { margin-top: 0; margin-bottom: 1.25em; }
li + li { margin-top: .55em; }

.article-body { width: 100%; }
.article-section { position: relative; width: min(var(--reading), calc(100% - 48px)); margin: 0 auto; padding: clamp(40px, 6vw, 74px) 0; }
.article-section:nth-of-type(3n+2)::before { content: ""; position: absolute; z-index: -1; inset: 12px -34vw; background: var(--surface); border-radius: 7% 12% 8% 11% / 16% 12% 18% 14%; }
.article-section:nth-of-type(3n)::before { content: ""; position: absolute; z-index: -1; inset: 12px -34vw; background: var(--soft); clip-path: polygon(0 5%, 100% 0, 98% 95%, 2% 100%); }
.article-section > :last-child { margin-bottom: 0; }
.article-section a { font-weight: 700; }
.article-section ol, .article-section ul { padding-left: 1.35em; }
.editorial-asset { width: min(960px, calc(100vw - 48px)); margin-left: calc((min(960px, calc(100vw - 48px)) - min(var(--reading), calc(100vw - 48px))) / -2); padding: clamp(24px, 4vw, 40px); background: var(--forest); color: #fff; border-radius: 12px 46px 12px 46px; box-shadow: var(--shadow); }
.editorial-asset h2, .editorial-asset h3, .editorial-asset strong { color: #fff7e9; }
.editorial-asset a { color: #ffe1a3; }
.editorial-asset table { color: var(--ink); }

.editorial-figure { width: min(var(--wide), calc(100vw - 48px)); margin: 34px 50%; transform: translateX(-50%); }
.editorial-figure img { width: 100%; max-height: 650px; object-fit: cover; border-radius: 58px 14px 58px 14px; box-shadow: var(--shadow); background: var(--soft); }
.editorial-figure.is-square { width: min(760px, calc(100vw - 48px)); }
.editorial-figure.is-square img { aspect-ratio: 1 / 1; }
.editorial-figure figcaption { max-width: 760px; margin: 10px auto 0; color: var(--muted); font-size: .85rem; }
.home-identity .editorial-figure img { aspect-ratio: 16 / 9; }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.fact-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic) 12px var(--organic) 12px; }
.fact-card strong { display: block; color: var(--forest); font-size: 1.08rem; }
.source-note { padding: 22px 26px; background: #e4eee8; border-left: 5px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; }

.faq-section { width: min(900px, calc(100% - 48px)); margin: clamp(38px, 7vw, 86px) auto 0; }
.faq-list { display: grid; gap: 14px; }
.faq-item { overflow: clip; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq-item summary { min-height: 54px; padding: 18px 58px 18px 22px; color: var(--forest); cursor: pointer; font-weight: 800; line-height: 1.35; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 13px; font-size: 1.4rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 28px 0; background: var(--surface); }
th, td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--forest); }

.site-footer { color: #f8efe2; background: var(--forest); }
.footer-inner { width: min(var(--wide), calc(100% - 48px)); margin: auto; padding: 58px 0 34px; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(280px, 2fr); gap: 42px; }
.footer-title { margin: 0 0 10px; color: #fff; font-size: 1.15rem; font-weight: 800; }
.footer-statement { margin: 0; color: #eadfd3; max-width: 500px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-email { display: inline-flex; min-height: 44px; align-items: center; color: #fff4df; }
.footer-email { gap: .35em; margin-top: 12px; }
.email-address { display: inline-flex; gap: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); color: #d8cbc0; font-size: .85rem; }

@media (max-width: 1199px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 14px 24px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav a { padding: 12px 14px; font-size: .95rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.7; }
  .header-inner, .page-heading, .article-section, .faq-section, .footer-inner { width: min(100% - 32px, var(--wide)); }
  .custom-logo, .brand-fallback img { width: 190px; max-height: 52px; }
  .primary-nav { padding-inline: 16px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .page-shell { padding-top: 34px; }
  h1 { font-size: clamp(2rem, 10.5vw, 2.7rem); }
  .article-section { padding: 46px 0; }
  .article-section:nth-of-type(n)::before { inset-inline: -16px; border-radius: 0; clip-path: none; }
  .editorial-asset { width: calc(100vw - 32px); margin-left: calc((calc(100vw - 32px) - min(var(--reading), calc(100vw - 32px))) / -2); padding: 22px 18px; border-radius: 12px 28px 12px 28px; }
  .editorial-figure { width: calc(100vw - 32px); }
  .editorial-figure img, .home-identity .editorial-figure img { max-height: 430px; aspect-ratio: 4 / 3; border-radius: 34px 10px 34px 10px; }
  .editorial-figure.is-square img { aspect-ratio: 1 / 1; }
  .fact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-bottom: 14px; border: 1px solid var(--line); }
  td { border: 0; border-bottom: 1px solid var(--line); }
}

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