/* fraunces-latin-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/fraunces-latin-600-normal.BFCDtZfi.woff2) format('woff2'), url(/_astro/fraunces-latin-600-normal.DL5QCzvS.woff) format('woff');
}/* fraunces-latin-400-italic */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/fraunces-latin-400-italic.ChpO6tcr.woff2) format('woff2'), url(/_astro/fraunces-latin-400-italic.B7iDoVhm.woff) format('woff');
}/* plus-jakarta-sans-latin-400-normal */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/plus-jakarta-sans-latin-400-normal.Dhut76fR.woff2) format('woff2'), url(/_astro/plus-jakarta-sans-latin-400-normal.BDKaGhyp.woff) format('woff');
}/* plus-jakarta-sans-latin-700-normal */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_astro/plus-jakarta-sans-latin-700-normal.CfpNZvy6.woff2) format('woff2'), url(/_astro/plus-jakarta-sans-latin-700-normal.DqEcQeE5.woff) format('woff');
}/*
 * v4 "Cerita Warga" design tokens. To apply a new colour palette, change the values in the first block only.
 * Contrast (WCAG, all AA or better): tinta on kertas 15.1, tinta-lembut on kertas 7.2 / kertas-2 6.5 / putih 8.0,
 * kopi on kertas 7.5 / kertas-2 6.8, daun on kertas 6.8 / kertas-2 6.1, kertas on daun 6.8, kertas on daun-tua 10.4,
 * daun-muda on daun-tua 6.9, tinta on putih 16.7.
 */
:root {
  --kertas: #F6F1E7;      /* page background */
  --kertas-2: #EDE5D6;    /* alternate section background */
  --putih: #FFFDF8;       /* cards */
  --tinta: #1F1C17;       /* text */
  --tinta-lembut: #554F47;/* secondary text */
  --daun: #2F5D3A;        /* buttons, links */
  --daun-tua: #1E3F28;    /* dark band */
  --daun-muda: #B9D08B;   /* accent on the dark band only */
  --kopi: #6B4429;        /* labels, numbers */
  --garis: #D9CFBD;       /* hairlines */

  --huruf-judul: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --huruf-isi: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --u-isi: clamp(1.125rem, 1.09rem + 0.15vw, 1.1875rem);            /* 18 → 19 px */
  --u-kecil: 0.9375rem;                                             /* 15 px */
  --u-h1: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --u-h2: clamp(1.875rem, 1.35rem + 2.3vw, 3rem);
  --u-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --u-kutipan: clamp(1.375rem, 1.1rem + 1.3vw, 2.125rem);

  --tepi: clamp(20px, 5vw, 48px);
  --lebar: 1160px;
  --ruang-bagian: clamp(64px, 9vw, 120px);
  --sudut: 6px;
  --tinggi-kepala: 68px;
  --keluar: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Placeholder illustration tones (bg, light, mid, dark, accent, highlight). */
.nada-daun  { --i-bg: #DDE6CD; --i-1: #B5C99A; --i-2: #7E9F6A; --i-3: #2F5D3A; --i-4: #B7653A; --i-5: #F4DC9C; }
.nada-kopi  { --i-bg: #ECDDC8; --i-1: #D8BE9C; --i-2: #B08258; --i-3: #6B4429; --i-4: #2F5D3A; --i-5: #F8E8BE; }
.nada-pasir { --i-bg: #F0E7D3; --i-1: #DECEA9; --i-2: #BCA473; --i-3: #6F5A33; --i-4: #2F5D3A; --i-5: #FBF3DC; }
.nada-air   { --i-bg: #DDE8E4; --i-1: #B5CFC8; --i-2: #74A69D; --i-3: #2C635C; --i-4: #6B4429; --i-5: #F6F1E7; }
/* v4 "Cerita Warga": calm, people-first, CSS-only motion. Everything is readable with JavaScript off. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tinggi-kepala) + 16px); }
body {
  margin: 0; background: var(--kertas); color: var(--tinta);
  font-family: var(--huruf-isi); font-size: var(--u-isi); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--huruf-judul); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--u-h1); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--u-h2); }
h3 { font-size: var(--u-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--daun); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--daun); outline-offset: 3px; border-radius: 2px; }
.gelap :focus-visible { outline-color: var(--daun-muda); }
::selection { background: var(--daun); color: var(--kertas); }

.wrap { width: min(100% - 2 * var(--tepi), var(--lebar)); margin-inline: auto; }
.sempit { max-width: 44rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lompat { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--tinta); color: var(--kertas); padding: 12px 16px; border-radius: var(--sudut); }
.lompat:focus { top: 12px; }

.label { font-size: var(--u-kecil); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kopi); }
.label::before { content: ''; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 12px; translate: 0 -1px; }
.lembut { color: var(--tinta-lembut); }
.keterangan { font-size: var(--u-kecil); color: var(--tinta-lembut); margin-top: 10px; }

/* Buttons */
.tombol {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px;
  background: var(--daun); color: var(--kertas); border: 2px solid var(--daun); border-radius: var(--sudut);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, translate 0.2s var(--keluar);
}
.tombol:hover { background: var(--daun-tua); border-color: var(--daun-tua); }
.tombol:active { translate: 0 1px; }
.tombol-garis { background: transparent; color: var(--daun); }
.tombol-garis:hover { background: var(--daun); color: var(--kertas); }
.gelap .tombol { background: var(--kertas); border-color: var(--kertas); color: var(--daun-tua); }
.gelap .tombol:hover { background: var(--daun-muda); border-color: var(--daun-muda); }
.gelap .tombol-garis { background: transparent; color: var(--kertas); }
.gelap .tombol-garis:hover { background: var(--kertas); color: var(--daun-tua); }
.baris-tombol { display: flex; flex-wrap: wrap; gap: 12px; }
.panah { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.panah::after { content: '→'; transition: translate 0.25s var(--keluar); }
.panah:hover::after, .kartu:hover .panah::after { translate: 5px 0; }

/* Header */
.kepala { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--kertas) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--garis); }
.kepala-isi { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tinggi-kepala); position: relative; }
.merek { display: flex; flex-direction: column; justify-content: center; min-height: 48px; color: var(--tinta); text-decoration: none; line-height: 1.15; }
.merek-nama { font-family: var(--huruf-judul); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.merek-ket { font-size: 0.8125rem; color: var(--tinta-lembut); }
.nav-lebar { display: none; }
.nav-lebar ul { display: flex; gap: 4px; }
.nav-lebar a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 1rem; border-radius: var(--sudut); }
.nav-lebar a:hover { color: var(--daun); background: var(--kertas-2); }
.nav-hp summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; cursor: pointer;
  border: 2px solid var(--tinta); border-radius: var(--sudut); font-weight: 700; font-size: 1rem; user-select: none;
}
.nav-hp summary::-webkit-details-marker { display: none; }
.nav-hp summary::before { content: ''; width: 18px; height: 12px; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.nav-hp[open] summary { background: var(--tinta); color: var(--kertas); }
.nav-hp .tutup, .nav-hp[open] .buka { display: none; }
.nav-hp[open] .tutup { display: inline; }
.nav-hp nav { position: absolute; left: calc(-1 * var(--tepi)); right: calc(-1 * var(--tepi)); top: 100%; background: var(--kertas); border-bottom: 1px solid var(--garis); padding: 8px var(--tepi) 20px; box-shadow: 0 24px 40px -24px rgb(31 28 23 / 0.35); }
.nav-hp nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; color: var(--tinta); text-decoration: none; font-family: var(--huruf-judul); font-weight: 600; font-size: 1.5rem; border-bottom: 1px solid var(--garis); }
.nav-hp nav a::after { content: '→'; font-family: var(--huruf-isi); font-size: 1.125rem; color: var(--kopi); }
@media (min-width: 900px) {
  .nav-lebar { display: block; }
  .nav-hp { display: none; }
}

/* Sections */
.bagian { padding-block: var(--ruang-bagian); }
.bagian-2 { background: var(--kertas-2); }
.gelap { background: var(--daun-tua); color: var(--kertas); }
.gelap .label { color: var(--daun-muda); }
.gelap a { color: var(--kertas); }
.judul-bagian { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.judul-bagian p:not(.label) { color: var(--tinta-lembut); font-size: 1.125rem; }

/* Photo frame + placeholder */
.foto { container-type: inline-size; position: relative; overflow: hidden; border-radius: var(--sudut); background: var(--i-bg, var(--kertas-2)); isolation: isolate; }
.foto > svg, .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-chip { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgb(255 253 248 / 0.94); color: var(--tinta); border-radius: 999px; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; max-width: calc(100% - 20px); }
.foto-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--i-4, var(--kopi)); flex: none; }
@container (max-width: 250px) { .foto-chip-label { display: none; } }
.i-bg { fill: var(--i-bg); } .i-1 { fill: var(--i-1); } .i-2 { fill: var(--i-2); } .i-3 { fill: var(--i-3); } .i-4 { fill: var(--i-4); } .i-5 { fill: var(--i-5); }
.i-l { fill: none; stroke: var(--i-3); stroke-linecap: round; stroke-linejoin: round; }
.i-l2 { fill: none; stroke: var(--i-2); stroke-linecap: round; }
.i-l5 { fill: none; stroke: var(--i-5); stroke-linecap: round; }

/* Pembuka */
.pembuka { padding-block: clamp(28px, 5vw, 72px) var(--ruang-bagian); }
.pembuka-isi { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pembuka-teks { display: grid; gap: 20px; justify-items: start; }
.pembuka-kalimat { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem); color: var(--tinta-lembut); max-width: 32rem; line-height: 1.55; }
.pembuka-foto .foto { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .pembuka-isi { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .pembuka-foto { order: 2; }
  .pembuka-foto .foto { aspect-ratio: 5 / 6; }
}
@media (max-width: 899px) { .pembuka-foto .foto { aspect-ratio: 4 / 3; } }

/* Cerita warga cards */
.kartu-warga { display: grid; gap: clamp(36px, 5vw, 48px); }
/* Cerita warga in two groups; the card number (01–08) runs on across both. */
.kelompok-warga { counter-reset: warga; display: grid; gap: clamp(56px, 8vw, 96px); }
.kelompok { display: grid; gap: clamp(24px, 3.5vw, 36px); }
.pembatas { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; row-gap: 4px; }
.pembatas::after { content: ''; grid-column: 2; grid-row: 1; height: 2px; background: linear-gradient(90deg, var(--kopi), transparent); }
.pembatas h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--kopi); display: flex; align-items: center; gap: 12px; }
.pembatas-ikon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, currentColor 12%, var(--putih)); border: 1.5px solid currentColor; }
.pembatas-ikon svg { width: 24px; height: 24px; }
.pembatas p { grid-column: 1 / -1; color: var(--tinta-lembut); max-width: none; text-wrap: wrap; }
.kelompok-pengrajin .pembatas h3 { color: var(--daun); }
.kelompok-pengrajin .pembatas::after { height: 8px; border-radius: 4px; background: var(--anyaman); }
.kartu { position: relative; display: grid; gap: 18px; align-content: start; counter-increment: warga; }
.kartu-nama a { color: inherit; text-decoration: none; }
.kartu-nama a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.kartu:hover .kartu-nama a { color: var(--daun); }
.kartu:has(a:focus-visible) { outline: 3px solid var(--daun); outline-offset: 6px; border-radius: var(--sudut); }
.kartu-nama a:focus-visible { outline: none; }
.kartu .foto { aspect-ratio: 4 / 3; }
.kartu .foto > svg, .kartu .foto img { transition: scale 0.7s var(--keluar); }
.kartu:hover .foto > svg, .kartu:hover .foto img { scale: 1.03; }
.kartu-isi { display: grid; gap: 8px; align-content: start; }
.kartu-nomor { font-size: var(--u-kecil); font-weight: 700; letter-spacing: 0.08em; color: var(--kopi); }
.kartu-nomor::before { content: counter(warga, decimal-leading-zero) ' / '; }
.kartu-nama { margin: 0; font-family: var(--huruf-judul); font-weight: 600; font-size: var(--u-h3); line-height: 1.15; letter-spacing: -0.01em; }
.kartu-peran { color: var(--tinta-lembut); font-size: 1.0625rem; }
.kartu-ringkasan { margin-top: 6px; color: var(--tinta); }
.kartu-kutipan { font-family: var(--huruf-judul); font-style: italic; font-weight: 400; font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.4; margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--daun); }
.kartu .panah { color: var(--daun); margin-top: 2px; }
/* Tokoh padukuhan: a formal "album" card. Fine double frame with corner marks, the photo mounted on a mat, the role
   as a brown name badge. Set with "sorot": true in warga.json. */
.kartu-bingkai { border-radius: var(--sudut); }
.kartu-sorot {
  --tanda: color-mix(in srgb, var(--kopi) 85%, transparent);
  background:
    linear-gradient(var(--tanda), var(--tanda)) 12px 12px / 18px 2px, linear-gradient(var(--tanda), var(--tanda)) 12px 12px / 2px 18px,
    linear-gradient(var(--tanda), var(--tanda)) calc(100% - 12px) 12px / 18px 2px, linear-gradient(var(--tanda), var(--tanda)) calc(100% - 12px) 12px / 2px 18px,
    linear-gradient(var(--tanda), var(--tanda)) 12px calc(100% - 12px) / 18px 2px, linear-gradient(var(--tanda), var(--tanda)) 12px calc(100% - 12px) / 2px 18px,
    linear-gradient(var(--tanda), var(--tanda)) calc(100% - 12px) calc(100% - 12px) / 18px 2px, linear-gradient(var(--tanda), var(--tanda)) calc(100% - 12px) calc(100% - 12px) / 2px 18px,
    var(--putih);
  background-repeat: no-repeat;
  border: 1.5px solid var(--kopi);
  border-radius: calc(var(--sudut) + 4px);
  padding: clamp(28px, 3.4vw, 40px);
  box-shadow: inset 0 0 0 5px var(--putih), inset 0 0 0 6px color-mix(in srgb, var(--kopi) 40%, transparent), 0 14px 30px -22px rgba(31, 28, 23, 0.55);
}
.kartu-sorot .kartu-bingkai { background: var(--kertas-2); padding: clamp(8px, 1.2vw, 12px); border: 1px solid var(--garis); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset; }
.kartu-sorot .foto { border-radius: 3px; }
.kartu-sorot .kartu-peran {
  justify-self: start; background: var(--kopi); color: var(--putih); font-weight: 700; font-size: 0.95rem;
  padding: 5px 14px 6px; border-radius: 999px; letter-spacing: 0.01em;
}

/* Sesepuh perajin: a handmade card. Warm paper with a stitched (jahitan) border, the photo set in a woven-bamboo
   (anyaman) frame, the role as a green tag. */
.kelompok-warga {
  --anyaman:
    repeating-linear-gradient(90deg, rgba(107, 68, 41, 0.26) 0 1.5px, transparent 1.5px 6px),
    conic-gradient(from 0deg at 50% 50%, #D8BC86 0 25%, #C29A5B 0 50%, #D8BC86 0 75%, #C29A5B 0) 0 0 / 18px 18px;
}
.kartu-pengrajin {
  background: color-mix(in srgb, var(--putih) 82%, #E9D6AE);
  border: 1px solid color-mix(in srgb, var(--kopi) 30%, var(--garis));
  border-radius: calc(var(--sudut) + 6px);
  padding: clamp(26px, 3.2vw, 36px);
  outline: 1.5px dashed color-mix(in srgb, var(--kopi) 45%, transparent);
  outline-offset: -10px;
}
.kartu-pengrajin:has(a:focus-visible) { outline: 3px solid var(--daun); outline-offset: 6px; }
.kartu-pengrajin .kartu-bingkai { background: var(--anyaman); padding: clamp(8px, 1.1vw, 11px); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(107, 68, 41, 0.35), 0 8px 18px -14px rgba(31, 28, 23, 0.6); }
.kartu-pengrajin .foto { border-radius: 4px; box-shadow: 0 0 0 1px rgba(107, 68, 41, 0.35); }
.kartu-pengrajin .kartu-nomor { color: var(--daun); }
.kartu-pengrajin .kartu-peran {
  justify-self: start; color: var(--daun); background: color-mix(in srgb, var(--daun) 10%, var(--putih)); font-weight: 700; font-size: 0.95rem;
  padding: 4px 13px 5px; border: 1.5px solid color-mix(in srgb, var(--daun) 55%, transparent); border-radius: 999px;
}

/* One resident per row, so they arrive one at a time while scrolling (photo left, story right). */
@media (min-width: 700px) {
  .kartu-warga { row-gap: clamp(56px, 7vw, 96px); }
  .kartu { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  .kartu-utama .foto { aspect-ratio: 5 / 4; }
  .kartu-utama .kartu-nama { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
  .kartu-utama .kartu-kutipan { font-size: var(--u-kutipan); line-height: 1.3; padding-left: 20px; }
}
@media (min-width: 1000px) { .kartu-isi { max-width: 34rem; } }

/* Sekilas */
.dua-kolom { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.dua-kolom .foto { aspect-ratio: 4 / 3; }
.teks { display: grid; gap: 18px; justify-items: start; }
.teks > p:not(.label) { color: var(--tinta-lembut); }
@media (min-width: 900px) { .dua-kolom { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .dua-kolom .foto { aspect-ratio: 5 / 4; } }

/* Order of pictures within a row, for the one-by-one entrance */
:is(.suasana, .keseharian) > li:nth-child(3n+2) { --urut: 1; }
:is(.suasana, .keseharian) > li:nth-child(3n+3) { --urut: 2; }

/* Suasana (everyday photos) and the team photos under Tentang */
.suasana { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.suasana figure { margin: 0; display: grid; gap: 8px; }
.suasana .foto { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .suasana { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
/* Kehidupan on Beranda: 8 photos, so 4 per row on laptops (2 rows), with the entrance order counted per 4. */
@media (min-width: 900px) {
  .suasana-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); --langkah: 12%; }
  .suasana-4 > li:nth-child(n) { --urut: 0; }
  .suasana-4 > li:nth-child(4n+2) { --urut: 1; }
  .suasana-4 > li:nth-child(4n+3) { --urut: 2; }
  .suasana-4 > li:nth-child(4n+4) { --urut: 3; }
}
/* A single extra photo (Tentang air page): one wide picture instead of a lone small one. */
.foto-lebar { margin: 0; display: grid; gap: 8px; }
.foto-lebar .foto { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .foto-lebar .foto { aspect-ratio: 21 / 9; } }
.tentang-foto { grid-column: 1 / -1; margin-top: 12px; }
@media (min-width: 900px) { .tentang-foto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Potensi */
.potensi { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.potensi li { display: grid; gap: 12px; align-content: start; }
.potensi .foto { aspect-ratio: 1 / 1; }
.potensi h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.potensi p { color: var(--tinta-lembut); font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 900px) { .potensi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } .potensi .foto { aspect-ratio: 4 / 5; } }

/* Data */
.data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.data li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--tinta); }
.data-angka { font-family: var(--huruf-judul); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--kopi); overflow-wrap: anywhere; }
.data-ket { color: var(--tinta-lembut); font-size: 1.0625rem; line-height: 1.45; }
@media (min-width: 900px) { .data { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

/* Kampanye band */
.ajakan { display: grid; gap: 28px; align-items: end; }
.ajakan h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.75rem); }
.ajakan-teks { display: grid; gap: 18px; max-width: 44rem; }
.ajakan-teks p:not(.label) { font-size: 1.1875rem; color: color-mix(in srgb, var(--kertas) 86%, transparent); }
@media (min-width: 900px) { .ajakan { grid-template-columns: minmax(0, 1fr) auto; } }
.status-bagikan { font-size: var(--u-kecil); min-height: 1.5em; }

/* Tentang */
.tentang { display: grid; gap: 20px; }
.tentang p:not(.label) { color: var(--tinta-lembut); }
@media (min-width: 900px) { .tentang { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; } .tentang-isi { display: grid; gap: 18px; } }
.tentang-isi { display: grid; gap: 16px; }

/* Footer */
.kaki { border-top: 1px solid var(--garis); padding-block: 48px 40px; font-size: 1rem; }
.kaki-isi { display: grid; gap: 28px; }
.kaki-merek { font-family: var(--huruf-judul); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.01em; }
.kaki ul { display: grid; gap: 4px; }
.kaki li { min-height: 44px; display: flex; align-items: center; }
.kaki a { color: var(--tinta); display: inline-flex; align-items: center; min-height: 44px; }
.kaki-catatan { color: var(--tinta-lembut); font-size: var(--u-kecil); max-width: 40rem; }
.kaki-bawah { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--garis); color: var(--tinta-lembut); font-size: var(--u-kecil); }
.saklar { min-height: 48px; padding: 0 18px; background: transparent; border: 1px solid var(--tinta); border-radius: var(--sudut); cursor: pointer; font-size: var(--u-kecil); font-weight: 700; color: var(--tinta); }
.saklar[aria-pressed='true'] { background: var(--tinta); color: var(--kertas); }
@media (min-width: 800px) { .kaki-isi { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); } .kaki-bawah, .kaki-catatan { grid-column: 1 / -1; } }

/* Story page */
.kembali { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; text-decoration: none; }
.kembali::before { content: '←'; }
.kepala-cerita { padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.kepala-cerita-isi { display: grid; gap: clamp(24px, 4vw, 64px); align-items: end; }
.kepala-cerita .foto { aspect-ratio: 4 / 5; }
.kepala-cerita-teks { display: grid; gap: 14px; justify-items: start; }
.kepala-cerita h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem); }
.kepala-cerita .peran { font-size: 1.1875rem; color: var(--tinta-lembut); }
@media (min-width: 900px) { .kepala-cerita-isi { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .kepala-cerita-teks { padding-bottom: 12px; } }
.isi-cerita { display: grid; gap: 20px; max-width: 42rem; margin-inline: auto; }
.isi-cerita h2 { font-size: var(--u-h3); margin-top: 20px; }
.isi-cerita h2:first-child { margin-top: 0; }
.isi-cerita > p:first-of-type { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem); line-height: 1.6; }
.kutipan-besar { margin: 28px 0 12px; padding: 28px 0 24px; border-block: 1px solid var(--garis); position: relative; display: grid; gap: 12px; }
.kutipan-besar::before { content: '“'; font-family: var(--huruf-judul); font-size: 6rem; line-height: 0.6; color: var(--daun); opacity: 0.35; height: 2.4rem; display: block; }
.kutipan-besar p { font-family: var(--huruf-judul); font-style: italic; font-weight: 400; font-size: var(--u-kutipan); line-height: 1.3; }
.kutipan-besar footer { font-size: var(--u-kecil); color: var(--tinta-lembut); font-weight: 700; }
.keseharian { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keseharian figure { margin: 0; }
.keseharian .foto { aspect-ratio: 3 / 2; }
@media (min-width: 800px) { .keseharian { gap: 20px; } }
.lainnya { display: grid; gap: 16px; }
.lainnya a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; background: var(--putih); border: 1px solid var(--garis); border-radius: var(--sudut); color: var(--tinta); text-decoration: none; transition: border-color 0.2s, translate 0.25s var(--keluar); }
.lainnya a:hover { border-color: var(--daun); translate: 0 -2px; }
.lainnya .foto { aspect-ratio: 1 / 1; }
.lainnya .foto-chip { display: none; }
.lainnya b { font-family: var(--huruf-judul); font-weight: 600; font-size: 1.3125rem; display: block; line-height: 1.2; }
.lainnya span { color: var(--tinta-lembut); font-size: 1rem; }
@media (min-width: 800px) { .lainnya { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sejarah + kampanye pages */
.kepala-halaman { padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.kepala-halaman-isi { display: grid; gap: 16px; max-width: 48rem; justify-items: start; }
.kepala-halaman p.pengantar { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem); color: var(--tinta-lembut); line-height: 1.55; }
.daftar-isi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.daftar-isi a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--tinta); border-radius: 999px; color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 1rem; }
.daftar-isi a:hover { background: var(--tinta); color: var(--kertas); }
.bab { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--garis); }
.bab .foto { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .bab { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bab:nth-of-type(even) .bab-foto { order: 2; } }
.langkah { display: grid; gap: 12px; counter-reset: langkah; margin-top: 8px; }
.langkah li { counter-increment: langkah; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; background: var(--putih); border: 1px solid var(--garis); border-radius: var(--sudut); font-weight: 700; }
.langkah li::before { content: counter(langkah); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--daun); color: var(--kertas); font-family: var(--huruf-judul); font-size: 1.25rem; }
.kotak-sumber { padding: 24px; background: var(--putih); border: 1px solid var(--garis); border-radius: var(--sudut); display: grid; gap: 8px; }
.kotak-sumber h2 { font-size: 1.375rem; }

/* Motion: gentle and optional. Content is visible by default; these only add a soft entrance. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html:not([data-animasi='kurang']) .masuk { animation: masuk 0.6s var(--keluar) both; }
  html:not([data-animasi='kurang']) .masuk-2 { animation-delay: 0.08s; }
  html:not([data-animasi='kurang']) .masuk-3 { animation-delay: 0.16s; }
  @supports (animation-timeline: view()) {
    html:not([data-animasi='kurang']) .muncul { animation: muncul linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    /* Pictures appear one by one while scrolling: each photo slides in from the right and unveils as it enters the screen.
       Pictures in the same row wait their turn (--urut 0, 1, 2), so a row fills left to right. */
    html:not([data-animasi='kurang']) :is(.suasana, .keseharian) > li .foto {
      animation: foto-muncul linear both; animation-timeline: view();
      animation-range: entry calc(5% + var(--urut, 0) * var(--langkah, 18%)) entry calc(60% + var(--urut, 0) * var(--langkah, 18%));
    }
    /* Cerita warga: one resident at a time, coming in from the right. Each card is its own scroll timeline
       (view-timeline); the photo slides in and unveils right-to-left, then the number, name, role, quote and link
       follow one after another on the same timeline. Tied to scrolling, so it runs backwards when scrolling up. */
    html:not([data-animasi='kurang']) .kartu-warga > .kartu { view-timeline: --kartu block; }
    html:not([data-animasi='kurang']) .kartu-warga > .kartu > .kartu-bingkai {
      animation: kartu-foto linear both; animation-timeline: --kartu; animation-range: entry 0% cover 38%;
    }
    html:not([data-animasi='kurang']) .kartu-warga .kartu-isi > * {
      animation: kartu-teks linear both; animation-timeline: --kartu;
      animation-range: entry calc(30% + var(--i, 0) * 9%) cover calc(30% + var(--i, 0) * 4%);
    }
    .kartu-isi > :nth-child(2) { --i: 1; } .kartu-isi > :nth-child(3) { --i: 2; }
    .kartu-isi > :nth-child(4) { --i: 3; } .kartu-isi > :nth-child(5) { --i: 4; }
  }
}
@keyframes masuk { from { opacity: 0; translate: 0 14px; } }
@keyframes muncul { from { opacity: 0; translate: 0 20px; } }
@keyframes kartu-foto {
  from { opacity: 0; translate: min(180px, 24vw) 0; scale: 1.06; clip-path: inset(0 0 0 55% round var(--sudut)); }
  55% { opacity: 1; }
  to { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0 round var(--sudut)); }
}
@keyframes kartu-teks { from { opacity: 0; translate: 64px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes foto-muncul {
  from { opacity: 0; translate: 56px 0; clip-path: inset(0 0 0 35% round var(--sudut)); }
  60% { opacity: 1; }
  to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round var(--sudut)); }
}
/* Pictures slide in from the right: keep that slide from ever widening the page. */
main { overflow-x: clip; }
html[data-animasi='kurang'] *, html[data-animasi='kurang'] *::before, html[data-animasi='kurang'] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html[data-animasi='kurang']::view-transition-group(*), html[data-animasi='kurang']::view-transition-old(*), html[data-animasi='kurang']::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print { .kepala, .kaki-bawah, .tombol { display: none; } }
