/* Panti Asuhan Samo Kasih Anak Indonesia
   Arah desain: "lampu rumah di waktu senja" + buku tulis.
   Hero gelap dengan rumah yang 18 jendelanya menyala, lalu halaman krem
   bergaya buku tulis: daftar belanja bergaris, foto polaroid, catatan tempel.
   Tanpa framework, tanpa build step. */

/* ---------- Font (self-hosted) ---------- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-variable-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  color-scheme: light;

  --night: #0B2A35;      /* langit senja, section gelap */
  --night-2: #0F3947;    /* kartu di atas gelap */
  --night-3: #081F28;    /* footer */
  --ink: #12313B;        /* teks utama, garis tepi, bayangan tombol */
  --ink-2: #44606A;      /* teks sekunder di kertas */
  --paper: #FFF8EA;      /* latar halaman */
  --paper-2: #FAEDD0;    /* latar section selang-seling */
  --white: #FFFDF7;      /* kartu, kertas buku tulis */
  --line: #E4D4B2;       /* garis halus di kertas */
  --rule: #CFE2E8;       /* garis buku tulis */
  --lamp: #FFC53D;       /* cahaya jendela, tombol utama, stabilo */
  --lamp-2: #FFE49B;     /* catatan tempel */
  --ember: #E4572E;      /* atap, garis margin */
  --ember-ink: #B5380F;  /* ember yang aman untuk teks di kertas */
  --cream: #FFF3D6;      /* teks di atas gelap */
  --mist: #B7CED5;       /* teks sekunder di atas gelap */

  --focus: var(--ink);

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --wrap: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --header-h: 72px;
  --section-y: clamp(4.25rem, 9vw, 7.5rem);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 1px 0 rgba(18, 49, 59, .06), 0 18px 34px -18px rgba(18, 49, 59, .42);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--lamp);
  color: var(--ink);
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid var(--ink);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .75rem; }

.hand { font-family: var(--font-hand); font-weight: 600; }

/* Stabilo di kertas, warna lampu di latar gelap. */
.hl {
  padding: 0 .08em;
  background: linear-gradient(transparent 60%, var(--lamp) 60% 92%, transparent 92%);
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .hl, .section-night .hl { background: none; padding: 0; color: var(--lamp); }

/* ---------- Tombol ---------- */
.btn {
  --edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .7rem 1.35rem;
  border: 2px solid var(--edge);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--edge);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); transition-duration: .06s; }
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: #FFD056; }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-ghost {
  --edge: rgba(4, 20, 26, .7);
  background: rgba(255, 243, 214, .08);
  color: var(--cream);
  border-color: rgba(255, 243, 214, .62);
}
.btn-ghost:hover { background: rgba(255, 243, 214, .16); }
.btn-sm { min-height: 44px; padding: .45rem 1.05rem; font-size: 1rem; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin-top: 1.9rem; }
.cta-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  --focus: var(--lamp);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  --focus: var(--ink);
  background: rgba(255, 248, 234, .95);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(18, 49, 59, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; min-height: 48px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .005em; }
.brand-text small { margin-top: .28rem; font-size: .8rem; font-weight: 700; opacity: .82; }

.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s;
}
.site-nav a:not(.btn):hover { background: rgba(255, 243, 214, .14); }
.is-scrolled .site-nav a:not(.btn):hover { background: rgba(18, 49, 59, .08); }
.site-nav a[aria-current="true"] { text-decoration: underline wavy var(--lamp) 2px; text-underline-offset: .4em; }
.is-scrolled .site-nav a[aria-current="true"] { text-decoration-color: var(--ember); }
.site-nav .btn { margin-left: .6rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .site-nav {
    --focus: var(--ink);
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .7rem;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 6px 0 var(--ink);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { min-height: 50px; padding-inline: 1rem; font-size: 1.08rem; }
  .site-nav a:not(.btn):hover { background: rgba(18, 49, 59, .07); }
  .site-nav a[aria-current="true"] { text-decoration-color: var(--ember); }
  .site-nav .btn { margin: .5rem 0 .25rem; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  --focus: var(--lamp);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(1.75rem, 4.5vw, 3.75rem)) 0 clamp(6rem, 10vw, 8.5rem);
  color: var(--cream);
  background:
    radial-gradient(62% 58% at 76% 104%, rgba(228, 87, 46, .42), transparent 70%),
    linear-gradient(180deg, #071C24 0%, #0B2A35 34%, #114353 74%, #17566A 100%);
}

.sky { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 38%, rgba(255, 243, 214, .7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 31% 27%, rgba(255, 243, 214, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 47% 44%, rgba(255, 243, 214, .5) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 16%, rgba(255, 243, 214, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 82% 12%, rgba(255, 243, 214, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 4% 58%, rgba(255, 243, 214, .45) 50%, transparent 52%);
}
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  opacity: .75;
}
.moon { position: absolute; top: calc(var(--header-h) + .75rem); right: clamp(1rem, 5vw, 5rem); width: clamp(34px, 4.4vw, 56px); rotate: -16deg; opacity: .95; }

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.eyebrow { margin: 0 0 .5rem; font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.15; color: var(--lamp); }
.hero h1 { font-size: clamp(2.45rem, 5.4vw, 4.3rem); letter-spacing: -.012em; line-height: 1.04; }
.lead { margin-top: 1.4rem; max-width: 35rem; font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: #D9E6E8; }
.hero-reg { display: flex; align-items: flex-start; gap: .55rem; margin: 1.7rem 0 0; font-size: .95rem; font-weight: 600; color: var(--mist); }
.hero-reg svg { width: 20px; height: 20px; flex: none; margin-top: .18rem; color: var(--lamp); }

.hero-art { margin: 0; }
.hero-art figcaption { margin-top: .2rem; text-align: center; font-size: clamp(1.4rem, 2.1vw, 1.7rem); line-height: 1.2; color: var(--cream); }
.hero-art #lit-count { display: inline-block; min-width: 1.1em; text-align: right; color: var(--lamp); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 70px); fill: var(--paper); }

/* --- Ilustrasi rumah --- */
.house { width: 100%; height: auto; overflow: visible; }
.h-hill { fill: #0A2F2B; }
.h-path { fill: #D9C596; opacity: .42; }
.h-trunk { fill: #5A3A22; }
.h-leaf { fill: #13594B; }
.h-leaf-2 { fill: #1B6B5A; }
.h-pole { fill: none; stroke: #5A3A22; stroke-width: 4; stroke-linecap: round; }
.h-rope { fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: .8; }
.h-clothes { transform-origin: 614px 406px; }
.h-smoke circle { fill: var(--cream); opacity: 0; }
.h-chimney { fill: #A83D1D; }
.h-chimney-cap { fill: #C4472A; }
.h-wall { fill: #245F6E; }
.h-wall-shade { fill: #071C24; opacity: .3; }
.h-roof { fill: #D9512C; }
.h-roof-hi { fill: #F28058; opacity: .5; }
.h-eave { fill: #B03F1F; }
.h-sign rect { fill: var(--cream); }
.h-sign-sm { font: 600 8.5px var(--font-display); letter-spacing: 1.3px; fill: var(--ink); }
.h-sign-lg { font: 700 13.5px var(--font-display); letter-spacing: .6px; fill: var(--ember-ink); }
.h-lamp-arm { fill: none; stroke: #071C24; stroke-width: 3; stroke-linecap: round; }
.h-door { fill: #0B2A35; }
.h-door-in { fill: var(--ember); }
.h-knob { fill: var(--lamp); }
.h-step { fill: #D9C596; }
.h-box rect { fill: #A83D1D; }
.h-box circle { fill: #2E8B6E; }
.h-bush circle { fill: #10463D; }

/* Keadaan akhir (lampu menyala) adalah bawaan, supaya tetap benar tanpa JS
   dan saat prefers-reduced-motion aktif. */
.win .pane { fill: var(--lamp); }
.win .glow { fill: var(--lamp); opacity: .15; }
.win .inside { fill: #C5790F; }
.win .inside .book { fill: var(--cream); }
.win .h-heart.inside { fill: var(--ember); }
.win .bars { fill: none; stroke: #245F6E; stroke-width: 3; }
.win .frame { fill: none; stroke: #3C8193; stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .star { animation: twinkle 3.6s ease-in-out var(--d) infinite alternate; }
  .h-clothes { animation: sway 3.8s ease-in-out infinite alternate; }
  .h-smoke circle { animation: smoke 6s ease-out infinite; }
  .h-smoke circle:nth-child(2) { animation-delay: 2s; }
  .h-smoke circle:nth-child(3) { animation-delay: 4s; }

  /* .anim dipasang oleh skrip kecil di <head>; .is-lit oleh main.js saat rumah terlihat. */
  .anim .win .pane { fill: #0C2F3A; }
  .anim .win .glow, .anim .win .inside { opacity: 0; }
  .anim .house.is-lit .win .pane { animation: lit .55s ease-out calc(var(--i) * 150ms + 250ms) forwards; }
  .anim .house.is-lit .win .glow { animation: glow .9s ease-out calc(var(--i) * 150ms + 250ms) forwards; }
  .anim .house.is-lit .win .inside { animation: show .5s ease-out calc(var(--i) * 150ms + 480ms) forwards; }
}

@keyframes lit { 0% { fill: #0C2F3A; } 55% { fill: #FFEBB0; } 100% { fill: #FFC53D; } }
@keyframes glow { to { opacity: .15; } }
@keyframes show { to { opacity: 1; } }
@keyframes twinkle { from { opacity: .25; transform: scale(.8); } to { opacity: .95; transform: scale(1.2); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  18% { opacity: .34; }
  100% { opacity: 0; transform: translate(26px, -74px) scale(2.6); }
}
.h-smoke circle { transform-box: fill-box; transform-origin: center; }

/* ---------- Angka ---------- */
.stats-band { position: relative; z-index: 2; margin-top: clamp(-4.25rem, -5vw, -3rem); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
}
.stats li { padding: 1.35rem 1.5rem 1.4rem; display: grid; align-content: start; gap: .3rem; }
.stats li + li { border-left: 2px dashed var(--line); }
.stats b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; color: var(--ink); white-space: nowrap; }
.stats span { font-size: .98rem; line-height: 1.4; color: var(--ink-2); font-weight: 600; }

/* ---------- Section umum ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-alt {
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(18, 49, 59, .075) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
.section-night { --focus: var(--lamp); background: var(--night); color: var(--cream); }

.section-head { max-width: 41rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.kicker { margin: 0 0 .35rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.65rem; line-height: 1.1; color: var(--ember-ink); }
.section-night .kicker { color: var(--lamp); }
.section h2 { font-size: clamp(2rem, 4.1vw, 3.05rem); letter-spacing: -.01em; }
.section-head > p:not(.kicker) { margin-top: 1.1rem; font-size: 1.14rem; color: var(--ink-2); }
.section-night .section-head > p:not(.kicker) { color: var(--mist); }

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-text h2 { margin-bottom: 1.4rem; }
.about-text > p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }

.facts, .contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.facts li, .contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; }
.facts svg, .contact-list svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 14px;
  background: var(--lamp);
  border: 2px solid var(--ink);
  color: var(--ink);
}
.facts b, .contact-list b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.facts span, .contact-list address, .contact-list a { color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); }
.break { overflow-wrap: anywhere; }

.about-side { position: relative; padding: 1rem 0 4.5rem; }

/* Selotip untuk polaroid, catatan tempel, dan kartu kabar. */
.polaroid figure::before, .sticky-note::before, .letter::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 28px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(255, 197, 61, .78);
  box-shadow: 0 1px 2px rgba(18, 49, 59, .2);
  clip-path: polygon(0 0, 4% 50%, 0 100%, 100% 100%, 96% 50%, 100% 0);
}

.sticky-note {
  position: relative;
  margin: 0;
  padding: 2.4rem 2rem 1.8rem;
  background: var(--lamp-2);
  rotate: 2deg;
  box-shadow: var(--shadow-soft);
  border-radius: 2px 2px 28px 2px;
}
.sticky-note::before { background: rgba(228, 87, 46, .55); }
.sticky-note blockquote { margin: 0; }
.sticky-note blockquote p { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.22; }
.sticky-note figcaption { margin-top: 1.1rem; font-weight: 800; font-size: .98rem; }

.stamp { position: absolute; right: -.75rem; bottom: 0; width: 156px; height: 156px; rotate: 11deg; mix-blend-mode: multiply; }
.stamp-ring { fill: none; stroke: var(--ember-ink); stroke-width: 4; opacity: .9; }
.stamp-ring-in { stroke-width: 2; }
.stamp-arc { font: 700 12.5px var(--font-display); fill: var(--ember-ink); }
.stamp-sm { font: 700 11px var(--font-display); letter-spacing: 3px; fill: var(--ember-ink); }
.stamp-no { font: 700 16px var(--font-display); letter-spacing: 1.5px; fill: var(--ember-ink); }

/* ---------- Keseharian ---------- */
.polaroids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.25rem); }
.polaroid figure {
  position: relative;
  margin: 0 0 1.6rem;
  padding: 12px 12px 0;
  background: #fff;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  rotate: var(--r, 0deg);
  transition: rotate .35s var(--ease), scale .35s var(--ease);
}
.polaroid:hover figure { rotate: 0deg; scale: 1.02; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.polaroid figcaption { padding: .5rem 0 .8rem; text-align: center; font-size: 1.8rem; line-height: 1.1; }
.polaroid h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.polaroid p { color: var(--ink-2); }

.photo-note, .source-note { margin-top: clamp(2rem, 4vw, 3rem); font-size: .98rem; color: var(--ink-2); max-width: 46rem; }
.photo-note a, .source-note a { font-weight: 800; color: var(--ink); }

/* ---------- Kebutuhan: buku tulis ---------- */
.needs { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }

.notebook {
  --margin: 64px;
  position: relative;
  padding-bottom: 1.25rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}
/* Lubang spiral di tepi atas. */
.notebook::before {
  content: "";
  display: block;
  height: 38px;
  background:
    radial-gradient(circle at 50% 55%, var(--paper-2) 0 6.5px, var(--ink) 7px 8.5px, transparent 9px) 6px 0 / 40px 38px repeat-x;
  border-bottom: 1px solid var(--rule);
}
/* Garis margin merah. */
.notebook::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 0;
  left: var(--margin);
  width: 2px;
  background: rgba(228, 87, 46, .45);
  pointer-events: none;
}

.notebook-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .1rem 1.25rem;
  padding: 1.1rem 1.5rem .9rem calc(var(--margin) + 18px);
  border-bottom: 1px solid var(--rule);
}
.notebook-head p { margin: 0; line-height: 1.1; }
.notebook-title { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 700; }
.notebook-month { font-size: 1.6rem; color: var(--ember-ink); }

.notebook fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.notebook legend {
  display: block;
  width: 100%;
  padding: 1.5rem 1.5rem .55rem calc(var(--margin) + 18px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}

.need {
  position: relative;
  display: grid;
  grid-template-columns: var(--margin) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color .2s;
}
.need:hover { background: rgba(255, 197, 61, .13); }
.need input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.need:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 8px; }

.box {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  transition: background-color .18s;
}
.box::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312313B' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
  scale: 0;
  rotate: -14deg;
  transition: scale .22s var(--ease), rotate .22s var(--ease);
}
.need input:checked + .box { background: var(--lamp); }
.need input:checked + .box::after { scale: 1; rotate: 0deg; }

.need-name {
  justify-self: start;
  margin-left: 18px;
  padding: .3rem .25rem;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.68rem;
  line-height: 1.1;
  background: linear-gradient(transparent 56%, rgba(255, 197, 61, .72) 56% 90%, transparent 90%) left / 0% 100% no-repeat;
  transition: background-size .32s var(--ease);
}
.need input:checked ~ .need-name { background-size: 100% 100%; }
.need-qty { padding-left: .75rem; font-family: var(--font-hand); font-weight: 600; font-size: 1.42rem; line-height: 1.1; color: var(--ember-ink); text-align: right; white-space: nowrap; }

.notebook-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: 0;
  padding: .95rem 1.5rem .95rem calc(var(--margin) + 18px);
  font-weight: 800;
  border-bottom: 1px solid var(--rule);
}
.notebook-total b { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; border-bottom: 4px double var(--ink); line-height: 1.25; }

/* Kartu pilihan */
.slip {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.5rem 1.4rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
}
.slip h3 { font-size: 1.4rem; margin-bottom: .9rem; }
.slip-empty { color: var(--ink-2); margin: 0; }
.slip-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1.5px dashed var(--line); font-size: 1rem; line-height: 1.35; }
.slip-list li span:first-child { font-weight: 800; }
.slip-list li span:last-child { color: var(--ink-2); text-align: right; white-space: nowrap; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .85rem 0 0; font-weight: 800; }
.slip-total b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.slip .btn { margin-top: 1.3rem; }
.slip-hint { margin-top: 1rem; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Donasi ---------- */
.give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.acct {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--night-2);
  border: 1.5px solid rgba(255, 243, 214, .2);
  border-radius: var(--radius);
}
.acct header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: 1.1rem; }
.acct header svg { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--lamp); color: var(--night); flex: none; }
.acct h3 { font-size: 1.3rem; }
.tag { margin-left: auto; padding: .2rem .7rem; border: 1.5px solid rgba(255, 243, 214, .38); border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--mist); white-space: nowrap; }
.acct-no { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.55rem, 3.3vw, 2.15rem); line-height: 1.15; letter-spacing: .02em; color: var(--lamp); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-name { margin: .4rem 0 1.3rem; color: var(--mist); }
.acct-text { margin: 0 0 1.3rem; color: var(--mist); }
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  align-self: flex-start;
  min-height: 48px;
  margin-top: auto;
  padding: .55rem 1.15rem;
  border: 1.5px solid rgba(255, 243, 214, .5);
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.copy svg { width: 19px; height: 19px; flex: none; }
.copy:hover { background: rgba(255, 243, 214, .12); }
.copy .ico-done { display: none; }
.copy.is-done { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.copy.is-done .ico-copy { display: none; }
.copy.is-done .ico-done { display: block; }

.after { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: clamp(2.25rem, 5vw, 3.25rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 2px dashed rgba(255, 243, 214, .24); }
.after li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; }
.after li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lamp);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.after b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.after span { color: var(--mist); font-size: 1rem; line-height: 1.5; }

.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kabar ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 2.5rem); align-items: start; }
.letter {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem 1.5rem;
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  rotate: var(--r, 0deg);
}
.letter-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; font-size: .9rem; font-weight: 800; color: var(--ink-2); }
.letter-meta .hand { font-size: 1.55rem; line-height: 1; color: var(--ember-ink); }
.letter blockquote { margin: 0 0 1.2rem; }
/* Garis buku tulis mengikuti tinggi baris teks kutipan. */
.letter blockquote p {
  font-size: 1.04rem;
  line-height: 1.85rem;
  background-image: linear-gradient(transparent calc(1.85rem - 1px), var(--rule) calc(1.85rem - 1px));
  background-size: 100% 1.85rem;
}
.letter a { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; min-height: 44px; margin-top: auto; font-family: var(--font-display); font-weight: 600; }
.letter a svg { width: 18px; height: 18px; }

.follow { padding: 1.6rem 1.3rem 1.2rem; background: var(--ink); color: var(--cream); border-radius: var(--radius); --focus: var(--lamp); }
.follow h3 { font-size: 1.4rem; margin: 0 .3rem 1rem; }
.follow li + li { border-top: 1.5px dashed rgba(255, 243, 214, .2); }
.follow a { display: flex; align-items: center; gap: .9rem; min-height: 62px; padding: .5rem .3rem; text-decoration: none; border-radius: 10px; transition: background-color .2s; }
.follow a:hover { background: rgba(255, 243, 214, .09); }
.follow a svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--lamp); color: var(--ink); flex: none; }
.follow a span { display: grid; min-width: 0; line-height: 1.25; }
.follow b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.follow small { font-size: .9rem; color: var(--mist); overflow-wrap: anywhere; }

/* ---------- Kunjungi ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.visit-text h2 { margin-bottom: 1.2rem; }
.visit-text > p:not(.kicker) { color: var(--ink-2); font-size: 1.1rem; }
.map { border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; background: var(--line); height: clamp(340px, 40vw, 470px); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq details { border-bottom: 2px dashed var(--line); }
.faq details:first-child { border-top: 2px dashed var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .9rem .25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 34px; height: 34px; padding: 6px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); transition: rotate .3s var(--ease), background-color .2s; }
.faq summary:hover svg { background: var(--lamp); }
.faq details[open] summary svg { rotate: 45deg; background: var(--lamp); }
.faq details p { margin: 0; padding: 0 3.25rem 1.4rem .25rem; color: var(--ink-2); }
.faq details a { font-weight: 800; color: var(--ink); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Penutup ---------- */
.closing {
  --focus: var(--lamp);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(60% 70% at 50% 108%, rgba(228, 87, 46, .36), transparent 70%),
    linear-gradient(180deg, #0B2A35, #114353);
}
.closing h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 17ch; margin-inline: auto; }
.closing p { max-width: 36rem; margin: 1.2rem auto 0; font-size: 1.15rem; color: #D9E6E8; }
.lights { display: grid; grid-template-columns: repeat(6, 24px); justify-content: center; gap: 12px 14px; margin: 0 auto 2.25rem; }
.lights i { width: 24px; height: 28px; border-radius: 6px; background: var(--lamp); box-shadow: 0 0 0 5px rgba(255, 197, 61, .16); }

/* ---------- Footer ---------- */
.site-footer { --focus: var(--lamp); background: var(--night-3); color: var(--mist); padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; font-size: 1rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, 1.45fr) minmax(0, .75fr); gap: 2.5rem clamp(1.5rem, 4vw, 3rem); }
.footer-brand .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; }
.footer-bless { font-size: 1.7rem; color: var(--lamp); line-height: 1.1; }
.footer-col h3 { font-size: 1.1rem; color: var(--cream); margin-bottom: .9rem; }
.footer-col li { margin-bottom: .1rem; line-height: 1.5; }
.footer-col li:not(:has(a)) { padding: .35rem 0; }
.footer-col a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; text-decoration: none; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; }
.footer-social svg { width: 20px; height: 20px; flex: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1.5px dashed rgba(255, 243, 214, .2); font-size: .92rem; }
.footer-base p { margin: 0; }

/* ---------- Tombol WhatsApp mengambang ---------- */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #2FD46B;
  color: #05231A;
  box-shadow: 0 4px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  transition: opacity .25s, translate .25s var(--ease), visibility .25s, transform .16s var(--ease), box-shadow .16s;
}
.fab svg { width: 28px; height: 28px; }
.fab.is-shown { opacity: 1; visibility: visible; translate: 0 0; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.fab:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Reveal saat digulir ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--n, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .closing-in:not(.is-visible) .lights i { background: #0C2F3A; box-shadow: none; }
  .js .closing-in .lights i { transition: background-color .5s ease-out, box-shadow .7s ease-out; transition-delay: calc(var(--k, 0) * 70ms + 200ms); }
}

/* ---------- Responsif ---------- */
@media (max-width: 1020px) {
  .needs { grid-template-columns: 1fr; }
  .slip { position: static; }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow { grid-column: 1 / -1; }
  .follow ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .follow li:nth-child(2) { border-top: 0; }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .hero-in { grid-template-columns: 1fr; }
  .moon { top: calc(var(--header-h) + .25rem); right: var(--gutter); }
  .eyebrow { max-width: calc(100% - 3.25rem); }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .about, .visit, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: .5rem; }
  .about-side { max-width: 30rem; padding-left: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 2px dashed var(--line); }
  .after { grid-template-columns: 1fr; }
}

@media (max-width: 699px) {
  .polaroids { grid-template-columns: 1fr; max-width: 23rem; margin-inline: auto; gap: 3rem; }
  .give, .news { grid-template-columns: 1fr; }
  .follow ul { grid-template-columns: 1fr; }
  .follow li:nth-child(2) { border-top: 1.5px dashed rgba(255, 243, 214, .2); }
  .letter { rotate: 0deg; }
  .footer-in { grid-template-columns: 1fr; gap: 2rem; }
  .footer-base { flex-direction: column; }
  .site-footer { padding-bottom: 5.75rem; } /* ruang untuk tombol WhatsApp mengambang */
  .cta-row .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .notebook { --margin: 50px; }
  .notebook-head, .notebook legend, .notebook-total { padding-right: 1rem; padding-left: calc(var(--margin) + 12px); }
  .need { padding-right: 1rem; }
  .need-name { margin-left: 12px; font-size: 1.52rem; }
  .need-qty { font-size: 1.3rem; }
  .stats li { padding: 1.1rem 1rem 1.15rem; }
  .stats span { font-size: .93rem; }
  .brand-text small { display: none; }
  .about-side { padding-bottom: 6.5rem; }
  .stamp { width: 128px; height: 128px; right: -.25rem; }
  .notebook-title { font-size: 1.62rem; }
  .notebook-month { font-size: 1.45rem; }
  .acct { padding: 1.3rem 1.2rem 1.25rem; }
  .tag { margin-left: 0; }
  .faq details p { padding-right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
