:root {
  box-sizing: border-box;
  --bark: #2E2118; --parchment: #EDE3CB; --paper: #FAF6EC;
  --cherry: #8C2F39; --cherry-deep: #6E2530;
  --leaf: #4B6043; --leaf-deep: #37472F;
  --gold: #C99A3B; --gold-deep: #A67D2C;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: var(--parchment);
  --text: var(--bark); --text-soft: #6B5A45;
  --border: rgba(46,33,24,0.14); --shadow: 0 1px 2px rgba(46,33,24,0.06);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; margin: 0; line-height: 1.15; }
p { margin: 0 0 .75em; color: var(--text-soft); max-width: 62ch; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: .6rem .78rem; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
label { display: block; font-size: .82rem; color: var(--text-soft); margin-bottom: .3rem; }
.field { margin-bottom: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: .6rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cherry); border-color: var(--cherry); color: #FAF3E9; }
.btn-leaf { background: var(--leaf); border-color: var(--leaf); color: #F3F6EE; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2E2118; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab { text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--text-soft); border: 1px solid transparent; }
.tab.active { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.section { padding: 1.8rem 0 2.4rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.3rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: .9rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.5rem; }
@media (max-width: 760px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.kpi-card .kpi-num { font-family: "Fraunces", serif; font-size: 1.55rem; font-weight: 600; }
.kpi-card .kpi-lbl { font-size: .77rem; color: var(--text-soft); margin-top: .15rem; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-dipanen { background: rgba(201,154,59,.18); color: var(--gold-deep); }
.badge-diproses { background: rgba(140,47,57,.14); color: var(--cherry); }
.badge-siap { background: rgba(75,96,67,.16); color: var(--leaf); }
.badge-terjual { background: var(--leaf); color: #F3F6EE; }

.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); padding: .5rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.plot-item { border: 1px solid var(--border); border-radius: 8px; padding: .8rem .9rem; margin-bottom: .6rem; }
.plot-item .name { font-weight: 700; }
.plot-item .meta { font-size: .82rem; color: var(--text-soft); }

.list-btn { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; cursor: pointer; margin-bottom: .7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.list-btn:hover { border-color: var(--gold); }
.list-btn .name { font-weight: 700; }
.list-btn .sub { font-size: .82rem; color: var(--text-soft); }
.hint { font-size: .82rem; color: var(--text-soft); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1.2rem; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; cursor: pointer; font-weight: 600; color: var(--text-soft); }
.chip.active { background: var(--bark); color: #F3EBDA; border-color: var(--bark); }

.search-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 200px; }

.journey-hero { background: var(--bark); color: #F3EBDA; padding: 2.2rem 0 1.8rem; }
.journey-hero .code { font-family: "Fraunces", serif; font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 600; color: var(--gold); }
.journey-hero .sub { color: #D9CBAE; margin-top: .3rem; }

.story-block { background: var(--surface-2); border-radius: 12px; padding: 1.2rem 1.3rem; margin: 1.1rem 0 1.5rem; }
.story-block p { color: var(--text); max-width: 68ch; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: .9rem; margin: 1.1rem 0 1.4rem; }
.fact .k { font-size: .78rem; color: var(--text-soft); margin-bottom: .15rem; }
.fact .v { font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600; }

.timeline { position: relative; margin: 1rem 0 0; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.t-item { position: relative; padding-bottom: 1.3rem; }
.t-item:last-child { padding-bottom: 0; }
.t-dot { position: absolute; left: -1.6rem; top: .2rem; width: 15px; height: 15px; border-radius: 50%; background: var(--leaf); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border); }
.t-title { font-weight: 700; font-size: .96rem; }
.t-meta { font-size: .78rem; color: var(--text-soft); margin: .1rem 0 .25rem; }
.t-note { font-size: .9rem; color: var(--text-soft); }

.qr-card { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 1.1rem 0; }
.qr-box { background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.map-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--leaf); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.note-item { border-bottom: 1px solid var(--border); padding: .75rem 0; }
.note-item:last-child { border-bottom: none; }
.note-meta { font-size: .74rem; color: var(--text-soft); margin-top: .2rem; }

.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--text-soft); border: 1px dashed var(--border); border-radius: 10px; }
.empty-state h3 { color: var(--text); margin-bottom: .3rem; }

.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--bark); color: #F3EBDA; padding: .65rem 1.05rem; border-radius: 8px;
  font-size: .86rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.toast.show { opacity: 1; }

.hero-simple { background: var(--bark); color: #F3EBDA; padding: 3rem 0; text-align: center; }
.hero-simple h1 { color: #FBF4E6; font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 18ch; margin: 0 auto; }
.hero-simple p { color: #D9CBAE; max-width: 46ch; margin: .8rem auto 0; }

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: -2rem 0 2.5rem; position: relative; z-index: 2; }
@media (max-width: 800px) { .panels { grid-template-columns: 1fr; margin-top: 1.5rem; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent, var(--leaf)); border-radius: 10px; padding: 1.3rem; box-shadow: var(--shadow); text-decoration: none; display: block; }
.panel h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.panel .go { font-size: .85rem; font-weight: 700; color: var(--accent, var(--leaf)); }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.news-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-body { padding: 1rem 1.05rem 1.1rem; }
.news-body h4 { font-size: .98rem; font-family: "Fraunces", serif; font-weight: 600; margin-bottom: .3rem; }
.news-meta { font-size: .72rem; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }
.news-body p { font-size: .85rem; margin: 0; }

.site-footer { background: var(--bark); color: #C9B99A; padding: 1.4rem 0; text-align: center; font-size: .82rem; margin-top: 1rem; }
.site-footer a { color: #F3EBDA; text-decoration: underline; }

@media print {
  .topbar, .btn, .search-row, .no-print, .tabs { display: none !important; }
  body { background: #fff; }
  .journey-hero { background: #fff !important; color: var(--bark) !important; }
  .journey-hero .code { color: var(--cherry) !important; }
}
