/* Layout: mengikuti logo — hitam-putih, serif tipis berjarak lebar, garis jalur terbang putus-putus sebagai motif penghubung antarbagian */
:root {
  --bg: #FFFFFF;
  --surface: #F6F7F7;
  --ink: #141414;
  --muted: #6B6F72;
  --line: #E3E5E6;
  --accent: #2E4E6E;
  --sky: #E4ECF1;
  --sea: #A9BDCB;
  --sand: #EEEAE3;
  --blush: #F1E8E4;
  --leaf: #E5EBE1;
  --papa: #2E4E6E;
  --mama: #9C4F3F;
  --jovanka: #6A5B91;
  --jolene: #B38728;
  --on-accent: #FFFFFF;
  --logo-blend: multiply;
  --logo-filter: none;
  --panel: #ECE8E7;
  --scrim: rgba(20, 20, 20, .38);
  --shadow: rgba(20, 20, 20, .14);
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-body: "Jost", "Avenir Next", "Futura", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111213; --surface: #1A1C1E; --ink: #EDEDEB; --muted: #9A9FA3; --line: #2B2E31;
    --accent: #9DB9D6; --sky: #1F2A33; --sea: #34495A; --sand: #2A2724; --blush: #2D2422; --leaf: #222A22;
    --papa: #9DB9D6; --mama: #DE9584; --jovanka: #B4A6DC; --jolene: #E2B95A; --on-accent: #111213;
    --logo-blend: screen; --logo-filter: invert(1); --panel: #1E1C1C; --scrim: rgba(0, 0, 0, .6); --shadow: rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111213; --surface: #1A1C1E; --ink: #EDEDEB; --muted: #9A9FA3; --line: #2B2E31;
  --accent: #9DB9D6; --sky: #1F2A33; --sea: #34495A; --sand: #2A2724; --blush: #2D2422; --leaf: #222A22;
  --papa: #9DB9D6; --mama: #DE9584; --jovanka: #B4A6DC; --jolene: #E2B95A; --on-accent: #111213;
  --logo-blend: screen; --logo-filter: invert(1); --panel: #1E1C1C; --scrim: rgba(0, 0, 0, .6); --shadow: rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 17px; line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; text-wrap: balance; margin: 0; line-height: 1.08; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.label, .tag, nav.main, .chip, .kind {
  font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.label { color: var(--muted); }

/* Menu geser dari kiri */
.menu-btn {
  position: fixed; z-index: 30; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  top: calc(16px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px));
  background: var(--bg); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 1px 8px var(--shadow);
}
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.scrim { position: fixed; inset: 0; z-index: 35; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(360px, 86vw); background: var(--bg);
  display: flex; flex-direction: column; gap: 36px; overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px)) calc(28px + env(safe-area-inset-left, 0px));
  box-shadow: 0 0 48px var(--shadow);
  transform: translateX(-102%); visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .38s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.close-btn { appearance: none; border: 0; background: none; color: var(--ink); width: 40px; height: 40px; font: 300 30px/1 var(--f-body); cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { font-family: var(--f-display); font-size: 30px; font-weight: 400; text-decoration: none; padding-block: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.drawer-nav a small { font-family: var(--f-body); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.drawer-nav a:hover { padding-left: 6px; }
.drawer-foot { margin: auto 0 0; font-size: 13px; color: var(--muted); }
.logo { display: block; line-height: 0; }
/* logo asli hitam di atas putih: multiply menghilangkan putih di tema terang, invert + screen di tema gelap */
.logo img, .hero-logo { height: 40px; width: auto; mix-blend-mode: var(--logo-blend); filter: var(--logo-filter); }

/* Hero: panel logo + perkenalan di kiri, foto keluarga di kanan, selebar layar */
.hero {
  display: grid; grid-template-columns: 56fr 44fr; min-height: min(100svh, 940px);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
}
.hero-text {
  background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px; padding-block: 96px;
  padding-left: max(24px, 6vw, env(safe-area-inset-left, 0px)); padding-right: max(24px, 6vw);
}
.hero-text h1 { margin: 0; line-height: 0; }
.hero-logo { height: auto; width: min(300px, 72vw); }
.hero-text p { margin: 0; max-width: 54ch; font-size: 17px; line-height: 1.6; }
.hero-text .story { font-style: italic; font-size: 25px; font-weight: 400; }
.hero-photo { margin: 0; min-width: 0; background: var(--surface); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* Keluarga: filter cerita per orang */
.family-strip { padding-block: 44px; display: grid; gap: 18px; }
.family-strip .label { margin: 0; }
.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.member {
  appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 4px; padding: 14px; text-align: left; cursor: pointer; display: grid;
  grid-template-columns: 44px 1fr; gap: 12px; align-items: center; font: inherit;
  transition: border-color .15s;
}
.member:hover { border-color: var(--muted); }
.member[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .04em; }
.member[aria-pressed="true"] .avatar { background: var(--c); color: var(--on-accent); }
.member b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.member div span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }

/* Bagian */
.section { padding-block: 48px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 400; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  appearance: none; font-size: 11px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 8px 14px; border-radius: 2px; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.status { font-size: 14px; color: var(--muted); margin: -10px 0 20px; min-height: 1.4em; }
.status button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; text-decoration: none; }
.card.featured { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card.featured h3, .card.featured p { max-width: 30ch; }
.card.featured p { max-width: 62ch; font-size: 17px; }
.card .pic { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 2px; position: relative; overflow: hidden; }
.card.featured .pic { aspect-ratio: 21 / 9; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pic .coord { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--ink); background: var(--bg); padding: 3px 7px; }
.pic.photo { background: var(--surface); }
.pic.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .pic.photo img { transform: scale(1.03); }
/* ilustrasi pengganti foto per kategori */
.pic.perjalanan { background:
  radial-gradient(circle at 74% 30%, var(--bg) 0 8%, transparent 8.5%),
  linear-gradient(to bottom, var(--sky) 0 60%, var(--sea) 60% 76%, var(--sand) 76%); }
.pic.review { background: radial-gradient(circle at 50% 52%, var(--bg) 0 22%, var(--line) 22.5% 23.5%, var(--bg) 24% 33%, transparent 33.5%), var(--blush); }
.pic.random { background: repeating-linear-gradient(to bottom, transparent 0 27px, var(--line) 27px 28px), var(--surface); }
.pic.anak { background:
  radial-gradient(circle at 26% 36%, var(--jovanka) 0 9%, transparent 9.5%),
  radial-gradient(circle at 62% 60%, var(--jolene) 0 13%, transparent 13.5%),
  radial-gradient(circle at 81% 26%, var(--mama) 0 5%, transparent 5.5%), var(--leaf); }
.pic.perjalanan::after { /* jalur terbang kecil dari logo */
  content: ""; position: absolute; left: 12%; top: 18%; width: 52%; height: 34%;
  border-top: 2px dashed var(--ink); border-radius: 50% 50% 0 0; opacity: .55;
}
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { font-size: 10px; color: var(--muted); }
.who { display: inline-flex; }
.who i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--on-accent); font: 600 10px/18px var(--f-body); text-align: center; font-style: normal; border: 2px solid var(--bg); margin-left: -6px; }
.who i:first-child { margin-left: 0; }
.card h3 { font-size: 26px; font-weight: 500; line-height: 1.12; }
.card.featured h3 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 400; line-height: 1.05; }
.card p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 300; }
.card .date { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* Jejak: cap paspor dengan garis putus-putus seperti jalur terbang */
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stamp { min-width: 0; }
.more { display: flex; justify-content: flex-end; margin-top: 22px; }
.more-link { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.more-link:hover { color: var(--muted); border-bottom-color: var(--muted); }
.stamp { border: 1.5px dashed var(--ink); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stamp .yr { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.stamp b { font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.stamp .c { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.stamp .km { margin-top: 10px; font-size: 14px; }
.stamp .who { margin-top: auto; padding-top: 14px; }
.stamp .who i { width: 26px; height: 26px; font-size: 10px; line-height: 22px; }
.total { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Review keluarga */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.review { border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.review h3 { font-size: 28px; font-weight: 500; }
.review .kind { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.votes { display: grid; gap: 9px; }
.vote { display: grid; grid-template-columns: 92px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); }
.vote .n { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.verdict { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; gap: 12px; }
.verdict q { font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: 19px; }
.verdict .avg { font-family: var(--f-display); font-weight: 500; font-size: 36px; font-variant-numeric: tabular-nums; line-height: 1; }
.verdict .avg small { font-size: 15px; color: var(--muted); }

/* Random */
.thoughts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.thought { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.thought time { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-top: 8px; }
.thought p { margin: 0; font-family: var(--f-display); font-size: 23px; line-height: 1.3; }
.thought cite { display: block; font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.about { max-width: 60ch; margin: 0; font-size: 19px; font-weight: 300; }

footer { border-top: 1px solid var(--line); padding-block: 40px 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
footer .logo img { height: 32px; }

@media (max-width: 860px) {
  .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-block: 88px 56px; }
  .hero-photo { aspect-ratio: 4 / 5; max-width: 100%; }
  .family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { gap: 28px 18px; }
  .card h3 { font-size: 21px; }
  .card.featured .pic { aspect-ratio: 16 / 9; }
  .reviews, .thoughts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo img { height: 32px; }
  .hero-text .story { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr 1fr; gap: 8px; }
  .member { grid-template-columns: 36px 1fr; padding: 10px; gap: 10px; }
  .avatar { width: 36px; height: 36px; font-size: 16px; }
  .member b { font-size: 17px; }
  .member div span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover .pic.photo img { transform: none; } }
