/* ============================================================
   12 — NOTION
   Konsep: halaman workspace yang dibagikan. Editorial, tenang,
   banyak ruang kosong, garis tipis, interaksi seperti block editor.
   ============================================================ */

:root {
  --nt-ink: #37352f;
  --nt-ink-soft: #5f5e5b;
  --nt-muted: #787774;
  --nt-faint: #9b9a97;
  --nt-bg: #ffffff;
  --nt-side: #f7f7f5;
  --nt-hover: #f1f1ef;
  --nt-line: #e9e9e7;
  --nt-line-strong: #dcdcd9;
  --nt-blue: #2383e2;
  --nt-blue-dark: #1a73c9;
  --nt-code: #eb5757;
  --nt-radius: 6px;
  --nt-font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nt-serif: "Lora", Georgia, "Times New Roman", serif;
  --nt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nt-topbar: 45px;
  --nt-sidebar: 252px;
}

html { scroll-padding-top: 70px; }

body {
  background: var(--nt-bg);
  color: var(--nt-ink);
  font-family: var(--nt-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nt-locked { overflow: hidden; }

[hidden] { display: none !important; }

::selection { background: rgba(35, 131, 226, 0.22); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  color: var(--nt-code);
  background: var(--nt-hover);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ================= GATE ================= */
.nt-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  background: #f7f7f5;
  overflow-y: auto;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.nt-gate__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(55, 53, 47, 0.14) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
}
.nt-gate__card {
  position: relative; width: min(410px, 100%);
  background: #fff; border: 1px solid var(--nt-line-strong);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(15, 15, 15, 0.04), 0 18px 60px -22px rgba(15, 15, 15, 0.28);
  animation: ntRise 0.8s var(--nt-ease) both;
}
@keyframes ntRise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.nt-gate__cover { position: relative; height: 148px; overflow: hidden; }
.nt-gate__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.nt-gate__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.28), transparent 55%);
}
.nt-gate__cover-tag {
  position: absolute; z-index: 1; left: 12px; bottom: 10px;
  font-size: 10px; letter-spacing: 0.04em; color: #fff;
  background: rgba(15, 15, 15, 0.55); backdrop-filter: blur(6px);
  padding: 4px 8px; border-radius: 3px;
}
.nt-gate__body { position: relative; padding: 0 26px 26px; }
.nt-gate__icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  font-size: 34px; background: #fff; border: 1px solid var(--nt-line);
  border-radius: 12px; margin-top: -31px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 15, 15, 0.08);
}
.nt-gate__crumb { font-size: 11.5px; color: var(--nt-faint); margin-bottom: 6px; }
.nt-gate__crumb span { color: var(--nt-muted); }
.nt-gate__title {
  font-size: clamp(26px, 7vw, 31px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 10px;
}
.nt-gate__sub { font-size: 13.5px; line-height: 1.6; color: var(--nt-muted); margin-bottom: 18px; }
.nt-gate__guest {
  background: var(--nt-hover); border-radius: var(--nt-radius);
  padding: 11px 14px; margin-bottom: 18px;
}
.nt-gate__guest span { display: block; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--nt-faint); margin-bottom: 2px; }
.nt-gate__guest strong { font-size: 14.5px; font-weight: 600; }
.nt-gate__enter { width: 100%; justify-content: center; }
.nt-gate__hint { margin-top: 11px; text-align: center; font-size: 11px; color: var(--nt-faint); }
.nt-gate__back {
  position: relative; font-size: 12px; color: var(--nt-muted);
  text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.nt-gate__back:hover { color: var(--nt-ink); border-color: var(--nt-ink); }
body.nt-open .nt-gate { opacity: 0; visibility: hidden; pointer-events: none; }
body.nt-open .nt-gate__card { transform: scale(0.98); transition: transform 0.5s var(--nt-ease); }

/* ================= APP SHELL ================= */
.nt-app {
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease 0.05s, visibility 0.7s;
}
body.nt-open .nt-app { opacity: 1; visibility: visible; }

.nt-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: calc(var(--nt-topbar) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 10px;
  padding-left: 14px; padding-right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--nt-line);
}
.nt-menu {
  width: 28px; height: 28px; display: grid; align-content: center; gap: 4px;
  background: none; border: 0; padding: 0 4px; border-radius: 4px;
}
.nt-menu span { display: block; height: 1.5px; background: var(--nt-ink-soft); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nt-menu:hover { background: var(--nt-hover); }
.nt-crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--nt-muted); min-width: 0; }
.nt-crumbs strong { color: var(--nt-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-crumbs__sep { color: var(--nt-line-strong); }
.nt-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nt-edited { display: none; align-items: center; gap: 6px; font-size: 11.5px; color: var(--nt-faint); white-space: nowrap; }
.nt-edited i { width: 5px; height: 5px; border-radius: 50%; background: #4dab5a; display: inline-block; }
.nt-edited.is-flash i { animation: ntPulse 0.8s ease 2; }
@keyframes ntPulse { 50% { transform: scale(2.4); opacity: 0.4; } }
.nt-share {
  font-size: 12px; font-weight: 500; color: var(--nt-ink-soft);
  background: none; border: 1px solid var(--nt-line-strong);
  border-radius: 4px; padding: 5px 10px;
  transition: background 0.2s, color 0.2s;
}
.nt-share:hover { background: var(--nt-hover); color: var(--nt-ink); }
.nt-topback { font-size: 11.5px; color: var(--nt-muted); text-decoration: none; padding: 5px 2px; }
.nt-topback:hover { color: var(--nt-ink); }

/* ================= SIDEBAR ================= */
.nt-sidebar {
  position: fixed; top: calc(var(--nt-topbar) + env(safe-area-inset-top)); bottom: 0; left: 0;
  z-index: 100; width: var(--nt-sidebar);
  display: flex; flex-direction: column;
  padding: 10px 8px 14px;
  background: var(--nt-side);
  border-right: 1px solid var(--nt-line);
  transform: translateX(-102%);
  transition: transform 0.32s var(--nt-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.nt-side-open .nt-sidebar { transform: none; }
.nt-workspace {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 10px; border-radius: 5px;
}
.nt-workspace__avatar { width: 22px; height: 22px; border-radius: 4px; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--nt-line-strong); }
.nt-workspace__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nt-workspace__text { min-width: 0; display: flex; flex-direction: column; }
.nt-workspace__text strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-workspace__text small { font-size: 10px; color: var(--nt-faint); line-height: 1.3; }
.nt-workspace__dots { margin-left: auto; color: var(--nt-faint); font-size: 13px; letter-spacing: 1px; }

.nt-find {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--nt-line);
  border-radius: 5px; margin: 2px 4px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nt-find:focus-within { border-color: #b9b9b6; box-shadow: 0 0 0 3px rgba(55, 53, 47, 0.06); }
.nt-find__icon { padding: 0 8px; color: var(--nt-faint); font-size: 13px; }
.nt-find input {
  flex: 1; min-width: 0; border: 0; background: none; outline: 0;
  font-size: 12px; padding: 7px 0; color: var(--nt-ink);
}
.nt-find input::placeholder { color: var(--nt-faint); }
.nt-find kbd {
  font-family: inherit; font-size: 9.5px; color: var(--nt-faint);
  border: 1px solid var(--nt-line); border-radius: 3px;
  padding: 1px 4px; margin-right: 5px; background: #fbfbfa;
}
.nt-sidebar__label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--nt-faint); padding: 4px 10px 5px;
}
.nt-pages { display: flex; flex-direction: column; gap: 1px; }
.nt-page-link {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px; border-radius: 4px;
  font-size: 13px; color: var(--nt-ink-soft); text-decoration: none;
  transition: background 0.15s, color 0.15s;
  min-height: 30px;
}
.nt-page-link span { font-size: 14px; width: 18px; text-align: center; filter: saturate(0.9); }
.nt-page-link:hover { background: rgba(55, 53, 47, 0.055); color: var(--nt-ink); }
.nt-page-link.is-active { background: rgba(55, 53, 47, 0.085); color: var(--nt-ink); font-weight: 500; }
.nt-pages__empty { font-size: 11.5px; color: var(--nt-faint); padding: 8px 10px; }
.nt-sidebar__foot { margin-top: auto; padding: 16px 4px 2px; }
.nt-sidebar__cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--nt-ink-soft); text-decoration: none;
  padding: 8px 9px; border-radius: 4px; border: 1px dashed var(--nt-line-strong);
  transition: background 0.2s, border-color 0.2s;
}
.nt-sidebar__cta:hover { background: #fff; border-color: #c9c9c6; color: var(--nt-ink); }
.nt-sidebar__foot p { font-size: 10.5px; color: var(--nt-faint); padding: 12px 9px 0; }
.nt-sidebar__foot strong { font-weight: 600; color: var(--nt-muted); }
.nt-scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(1px);
  animation: ntFade 0.25s ease;
}
@keyframes ntFade { from { opacity: 0; } }

/* ================= MAIN / COVER ================= */
.nt-main { padding-top: calc(var(--nt-topbar) + env(safe-area-inset-top)); min-height: 100vh; }
.nt-cover { position: relative; height: 168px; overflow: hidden; background: var(--nt-hover); }
.nt-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.nt-cover__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.22), transparent 55%);
}
.nt-cover__hint {
  position: absolute; right: 14px; bottom: 10px;
  font-size: 9.5px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 15, 15, 0.35); padding: 3px 7px; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.nt-page {
  max-width: 760px; margin: 0 auto;
  padding: 0 22px 70px;
}
.nt-head { position: relative; }
.nt-icon {
  position: relative; z-index: 2;
  width: 72px; height: 72px; margin-top: -40px;
  display: grid; place-items: center; font-size: 38px;
  background: #fff; border: 1px solid var(--nt-line);
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(15, 15, 15, 0.09);
}
.nt-title {
  font-size: clamp(31px, 8.5vw, 42px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-top: 16px; outline: none;
}
.nt-title:focus-visible { outline: 2px solid var(--nt-blue); outline-offset: 6px; }
.nt-subtitle { font-size: 13.5px; color: var(--nt-muted); margin-top: 7px; }
.nt-props { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.nt-prop {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--nt-ink-soft);
  background: var(--nt-hover); border-radius: 4px; padding: 4px 8px;
}
.nt-prop span[aria-hidden] { font-size: 11px; }
.nt-prop--status { color: #2f7d3a; background: #eef7ef; }

/* ================= BLOCKS ================= */
.nt-blocks { margin-top: 34px; }
.nt-block { position: relative; margin-bottom: 10px; border-radius: 4px; }
.nt-block:hover { background: rgba(55, 53, 47, 0.018); }
.nt-handle {
  position: absolute; left: -27px; top: 3px;
  width: 22px; height: 24px; border: 0; border-radius: 4px;
  background: transparent; color: var(--nt-faint);
  font-size: 13px; line-height: 1; letter-spacing: -1px;
  opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.nt-block:hover .nt-handle, .nt-handle:focus-visible { opacity: 1; }
.nt-handle:hover { background: var(--nt-hover); color: var(--nt-ink); }
.nt-kicker {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nt-faint); margin-bottom: 7px;
}
.nt-h2 {
  font-size: 23px; font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.3; margin-bottom: 8px;
}
.nt-p { font-size: 15.5px; line-height: 1.72; color: var(--nt-ink); margin-bottom: 12px; max-width: 66ch; }
.nt-p strong { font-weight: 600; }
.nt-p--muted { color: var(--nt-muted); font-size: 13.5px; }
.nt-divider { height: 1px; background: var(--nt-line); margin: 34px 0; border: 0; }
.nt-block--head { margin-bottom: 16px; }

.nt-callout {
  display: flex; gap: 12px;
  background: var(--nt-hover); border-radius: var(--nt-radius);
  padding: 15px 16px;
}
.nt-callout__emoji { font-size: 19px; line-height: 1.3; flex: 0 0 auto; }
.nt-quote {
  font-family: var(--nt-serif); font-style: italic;
  font-size: 16.5px; line-height: 1.65; color: #4a4844;
}
.nt-callout__by { font-size: 11.5px; color: var(--nt-faint); margin-top: 6px; }

/* Couple cards */
.nt-couple { display: grid; gap: 12px; grid-template-columns: 1fr; }
.nt-person {
  border: 1px solid var(--nt-line); border-radius: 8px; overflow: hidden;
  background: #fff; transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--nt-ease);
}
.nt-person:hover { border-color: var(--nt-line-strong); box-shadow: 0 12px 30px -20px rgba(15, 15, 15, 0.35); transform: translateY(-2px); }
.nt-person__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nt-hover); }
.nt-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 0.8s var(--nt-ease); }
.nt-person:hover .nt-person__photo img { transform: scale(1.035); }
.nt-person__role {
  position: absolute; left: 10px; top: 10px;
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: var(--nt-ink-soft);
  padding: 4px 7px; border-radius: 3px;
}
.nt-person__body { padding: 14px 15px 15px; }
.nt-person__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nt-person__nick { font-size: 11.5px; color: var(--nt-faint); margin-top: 1px; }
.nt-person__bio { font-size: 12.5px; line-height: 1.6; color: var(--nt-muted); margin: 10px 0 12px; }
.nt-person__props { border-top: 1px solid var(--nt-line); padding-top: 10px; display: grid; gap: 6px; }
.nt-person__prop { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.45; }
.nt-person__prop span { color: var(--nt-faint); min-width: 58px; }
.nt-person__prop strong { font-weight: 500; color: var(--nt-ink-soft); }
.nt-person__ig {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--nt-blue); text-decoration: none;
  margin-top: 10px; border-bottom: 1px solid transparent;
}
.nt-person__ig:hover { border-color: currentColor; }

/* Checklist */
.nt-count-pill {
  display: inline-block; vertical-align: middle;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--nt-muted); background: var(--nt-hover);
  border-radius: 10px; padding: 2px 8px; margin-left: 6px;
}
.nt-todos { display: flex; flex-direction: column; gap: 2px; }
.nt-todo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 9px; border-radius: 4px; cursor: pointer;
  transition: background 0.15s;
}
.nt-todo:hover { background: var(--nt-hover); }
.nt-todo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nt-todo__box {
  flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px;
  border: 1.5px solid #b7b6b3; border-radius: 3px;
  display: grid; place-items: center;
  transition: background 0.18s, border-color 0.18s;
}
.nt-todo__box::after {
  content: ""; width: 8px; height: 4.5px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px) scale(0.4);
  opacity: 0; transition: opacity 0.15s, transform 0.18s var(--nt-ease);
}
.nt-todo input:checked + .nt-todo__box { background: var(--nt-blue); border-color: var(--nt-blue); }
.nt-todo input:checked + .nt-todo__box::after { opacity: 1; transform: rotate(-45deg) translate(0.5px, -1px) scale(1); }
.nt-todo input:focus-visible + .nt-todo__box { outline: 2px solid var(--nt-blue); outline-offset: 3px; }
.nt-todo__text { font-size: 14.5px; line-height: 1.6; transition: color 0.2s; }
.nt-todo__text code { font-size: 0.82em; }
.nt-todo input:checked ~ .nt-todo__text { color: var(--nt-faint); text-decoration: line-through; text-decoration-color: #c4c3c0; }

/* Toggles */
.nt-toggles { display: flex; flex-direction: column; gap: 2px; }
.nt-toggle { border-radius: 4px; }
.nt-toggle:hover { background: rgba(55, 53, 47, 0.022); }
.nt-toggle summary {
  display: flex; align-items: baseline; gap: 9px;
  padding: 8px 8px; cursor: pointer; list-style: none;
  font-size: 15px; border-radius: 4px;
}
.nt-toggle summary::-webkit-details-marker { display: none; }
.nt-toggle summary:hover { background: var(--nt-hover); }
.nt-toggle summary:focus-visible { outline: 2px solid var(--nt-blue); outline-offset: -2px; }
.nt-toggle__arrow {
  flex: 0 0 auto; width: 14px; font-size: 9px; color: var(--nt-muted);
  transition: transform 0.22s var(--nt-ease); display: inline-block;
  transform-origin: 40% 50%;
}
.nt-toggle[open] .nt-toggle__arrow { transform: rotate(90deg); }
.nt-toggle__date { flex: 0 0 auto; font-size: 11px; color: var(--nt-faint); min-width: 82px; }
.nt-toggle__title { font-weight: 500; color: var(--nt-ink); }
.nt-toggle__body { padding: 2px 8px 14px 31px; animation: ntOpen 0.3s ease; }
@keyframes ntOpen { from { opacity: 0; transform: translateY(-4px); } }
.nt-toggle__body p { font-size: 14px; line-height: 1.72; color: var(--nt-ink-soft); max-width: 62ch; }
.nt-toggle__media {
  margin-top: 10px; border-radius: 5px; overflow: hidden;
  max-width: 340px; border: 1px solid var(--nt-line);
}
.nt-toggle__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Database table */
.nt-db {
  border: 1px solid var(--nt-line); border-radius: 7px;
  overflow: hidden; background: #fff;
}
.nt-db__bar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; border-bottom: 1px solid var(--nt-line);
  background: #fbfbfa;
}
.nt-db__tab {
  font-size: 11.5px; color: var(--nt-muted); padding: 5px 8px; border-radius: 4px;
}
.nt-db__tab.is-active { background: #efefed; color: var(--nt-ink); font-weight: 500; }
.nt-db__spacer { flex: 1; }
.nt-db__count { font-size: 10.5px; color: var(--nt-faint); padding-right: 4px; }
.nt-db__row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.5fr;
  border-bottom: 1px solid var(--nt-line);
  transition: background 0.15s;
}
.nt-db__row:last-child { border-bottom: 0; }
.nt-db__row:not(.nt-db__row--head):hover { background: #fbfbfa; }
.nt-db__row > span {
  padding: 11px 12px; font-size: 12.5px; line-height: 1.45;
  border-right: 1px solid var(--nt-line); min-width: 0;
}
.nt-db__row > span:last-child { border-right: 0; }
.nt-db__row--head > span {
  font-size: 10.5px; font-weight: 500; color: var(--nt-muted);
  background: #fbfbfa; padding: 8px 12px;
}
.nt-db__name { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.nt-db__name i { font-style: normal; font-size: 13px; }
.nt-db__time { color: var(--nt-ink-soft); }
.nt-db__venue { display: block; font-weight: 500; }
.nt-db__addr { display: block; font-size: 11px; color: var(--nt-faint); margin-top: 2px; }
.nt-db__foot {
  padding: 8px 12px; font-size: 10.5px; color: var(--nt-faint);
  border-top: 1px solid var(--nt-line); background: #fbfbfa;
}
.nt-db__foot span { margin-right: 4px; }

/* Countdown */
.nt-block--count { margin-top: 20px; }
.nt-count-label { font-size: 13.5px; color: var(--nt-muted); margin-bottom: 10px; }
.nt-count-label strong { color: var(--nt-ink); font-weight: 500; }
.nt-count {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--nt-line); border-radius: 7px; overflow: hidden;
  background: #fbfbfa;
}
.nt-count__cell {
  padding: 14px 6px 12px; text-align: center;
  border-right: 1px solid var(--nt-line);
}
.nt-count__cell:last-child { border-right: 0; }
.nt-count__cell strong {
  display: block; font-size: clamp(24px, 6.5vw, 31px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--nt-ink);
}
.nt-count__cell span {
  display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nt-faint); margin-top: 7px;
}

/* Gallery */
.nt-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nt-gallery__item {
  position: relative; padding: 0; border: 1px solid var(--nt-line);
  border-radius: 5px; overflow: hidden; background: var(--nt-hover);
  display: block; width: 100%; text-align: left;
  transition: border-color 0.2s, transform 0.3s var(--nt-ease), box-shadow 0.3s;
}
.nt-gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.7s var(--nt-ease); }
.nt-gallery__item:hover { border-color: var(--nt-line-strong); box-shadow: 0 10px 26px -18px rgba(15, 15, 15, 0.4); }
.nt-gallery__item:hover img { transform: scale(1.04); }
.nt-gallery__item:focus-visible { outline: 2px solid var(--nt-blue); outline-offset: 2px; }
.nt-gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 8px 6px; font-size: 10px; color: #fff;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.62), transparent);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-gallery__item:hover .nt-gallery__cap,
.nt-gallery__item:focus-visible .nt-gallery__cap { opacity: 1; transform: none; }
.nt-gallery__item:nth-child(1) { grid-column: span 2; }
.nt-gallery__item:nth-child(1) img { aspect-ratio: 16 / 9; }

/* Embed */
.nt-embed {
  border: 1px solid var(--nt-line); border-radius: 7px; overflow: hidden;
  background: #fff;
}
.nt-embed__chrome {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-bottom: 1px solid var(--nt-line);
  background: #fbfbfa;
}
.nt-embed__dots { display: flex; gap: 4px; }
.nt-embed__dots i { width: 6px; height: 6px; border-radius: 50%; background: #d8d8d5; }
.nt-embed__url {
  font-size: 10.5px; color: var(--nt-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-embed__open {
  margin-left: auto; font-size: 13px; color: var(--nt-muted);
  text-decoration: none; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 3px;
}
.nt-embed__open:hover { background: var(--nt-hover); color: var(--nt-ink); }
.nt-embed iframe { width: 100%; height: 280px; border: 0; display: block; filter: saturate(0.85) contrast(1.02); }

.nt-loc { margin-top: 14px; }
.nt-loc__venue { font-size: 15px; font-weight: 600; }
.nt-loc__address { font-size: 13px; color: var(--nt-muted); margin-top: 2px; max-width: 54ch; }
.nt-loc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nt-loc__note { font-size: 11.5px; color: var(--nt-faint); margin-top: 11px; max-width: 56ch; line-height: 1.6; }

/* Form */
.nt-form {
  border: 1px solid var(--nt-line); border-radius: 8px;
  padding: 6px 16px 16px; background: #fff;
}
.nt-form__row {
  display: grid; grid-template-columns: 1fr; gap: 5px;
  padding: 12px 0; border-bottom: 1px solid var(--nt-line);
}
.nt-form__row label { font-size: 12.5px; font-weight: 500; color: var(--nt-ink-soft); }
.nt-form__req { color: var(--nt-code); }
.nt-form__row input, .nt-form__row select, .nt-form__row textarea {
  width: 100%; border: 1px solid transparent; background: var(--nt-hover);
  border-radius: 5px; padding: 9px 10px; font-size: 14px; color: var(--nt-ink);
  outline: 0; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.nt-form__row input::placeholder, .nt-form__row textarea::placeholder { color: var(--nt-faint); }
.nt-form__row input:focus, .nt-form__row select:focus, .nt-form__row textarea:focus {
  background: #fff; border-color: #b9b9b6; box-shadow: 0 0 0 3px rgba(55, 53, 47, 0.06);
}
.nt-form__row textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.nt-select { position: relative; }
.nt-select::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 6px; height: 6px; border-right: 1.4px solid var(--nt-muted);
  border-bottom: 1.4px solid var(--nt-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.nt-form__foot { padding-top: 16px; }
.nt-form__hint { font-size: 11px; color: var(--nt-faint); margin-top: 9px; line-height: 1.5; }
.nt-form__done {
  margin-top: 12px; font-size: 12.5px; color: #2f7d3a;
  background: #eef7ef; border-radius: 5px; padding: 9px 11px;
}

/* Buttons */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 14px; border-radius: 5px;
  font-size: 12.5px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; background: var(--nt-hover); color: var(--nt-ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.nt-btn:hover { background: #e9e9e7; }
.nt-btn:active { transform: scale(0.985); }
.nt-btn--primary { background: var(--nt-blue); color: #fff; font-weight: 600; min-height: 38px; padding: 8px 16px; }
.nt-btn--primary:hover { background: var(--nt-blue-dark); }
.nt-btn--ghost { background: #fff; border-color: var(--nt-line-strong); color: var(--nt-ink-soft); }
.nt-btn--ghost:hover { background: var(--nt-hover); color: var(--nt-ink); }

/* Closing */
.nt-closing { padding: 6px 0 0; }
.nt-closing__title {
  font-size: clamp(27px, 7vw, 35px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px;
}
.nt-closing__quote {
  font-family: var(--nt-serif); font-style: italic;
  font-size: clamp(17px, 4.4vw, 20px); line-height: 1.6; color: #4a4844;
  border-left: 2px solid var(--nt-line-strong); padding-left: 16px;
  margin-bottom: 20px;
}
.nt-closing__hash {
  font-size: clamp(20px, 5.5vw, 26px); font-weight: 600;
  letter-spacing: -0.01em; margin: 22px 0 8px; color: var(--nt-ink);
}
.nt-closing__meta { display: flex; gap: 8px; font-size: 12px; color: var(--nt-faint); margin-bottom: 24px; }
.nt-closing .nt-btn { margin-top: 4px; }

.nt-footer {
  border-top: 1px solid var(--nt-line);
  margin-top: 46px; padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  font-size: 10.5px; color: var(--nt-faint);
}
.nt-footer strong { color: var(--nt-muted); font-weight: 600; }
.nt-footer__edited { color: #b3b2af; }

/* Toast */
.nt-toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 300; transform: translateX(-50%) translateY(8px);
  background: #2f2f2c; color: #fff; font-size: 12px;
  padding: 9px 15px; border-radius: 5px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.22s, transform 0.3s var(--nt-ease);
  pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
.nt-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal override — Notion is restrained */
[data-reveal] { transform: translateY(10px); transition-duration: 0.7s; }

/* ================= RESPONSIVE ================= */
@media (min-width: 560px) {
  .nt-edited { display: flex; }
  .nt-couple { grid-template-columns: 1fr 1fr; }
  .nt-gallery { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .nt-gallery__item:nth-child(1) { grid-column: span 2; }
  .nt-gallery__item:nth-child(1) img { aspect-ratio: 2 / 1; }
  .nt-form__row { grid-template-columns: 132px 1fr; align-items: center; gap: 14px; }
  .nt-form__row--area { align-items: start; }
  .nt-form__row--area label { padding-top: 9px; }
  .nt-cover { height: 208px; }
  .nt-page { padding-left: 34px; padding-right: 34px; }
}

@media (min-width: 900px) {
  .nt-menu { display: none; }
  .nt-sidebar { transform: none; }
  .nt-scrim { display: none !important; }
  .nt-topbar { padding-left: calc(var(--nt-sidebar) + 16px); }
  .nt-main { margin-left: var(--nt-sidebar); padding-top: calc(var(--nt-topbar) + env(safe-area-inset-top)); }
  .nt-cover { height: 240px; }
  .nt-page { padding-left: 46px; padding-right: 46px; }
  .nt-icon { width: 82px; height: 82px; font-size: 44px; margin-top: -46px; border-radius: 15px; }
  .nt-title { margin-top: 20px; }
  .nt-blocks { margin-top: 40px; }
  .nt-handle { left: -34px; opacity: 0.0; }
  .nt-db__row > span { font-size: 13px; padding: 12px 14px; }
  .nt-embed iframe { height: 330px; }
  .nt-gallery { grid-template-columns: repeat(4, 1fr); }
  .nt-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .nt-gallery__item:nth-child(1) img { aspect-ratio: 1 / 1; height: 100%; }
  .nt-gallery__item:nth-child(1) { display: flex; }
  .nt-gallery__item:nth-child(1) img { height: 100%; }
  .nt-form { padding: 8px 22px 20px; }
  .nt-closing { padding-top: 12px; }
}

@media (max-width: 559px) {
  .nt-db__row { grid-template-columns: 1fr 1fr; }
  .nt-db__row > span:nth-child(3), .nt-db__row > span:nth-child(4) { border-top: 1px solid var(--nt-line); }
  .nt-db__row > span:nth-child(2) { border-right: 0; }
  .nt-db__row > span:nth-child(4) { border-right: 0; }
  .nt-db__row--head { display: none; }
  .nt-db__row > span { padding: 9px 11px; }
  .nt-db__row > span:nth-child(1)::before,
  .nt-db__row > span:nth-child(2)::before,
  .nt-db__row > span:nth-child(3)::before,
  .nt-db__row > span:nth-child(4)::before {
    display: block; font-size: 9px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--nt-faint); margin-bottom: 3px;
  }
  .nt-db__row > span:nth-child(1)::before { content: "Acara"; }
  .nt-db__row > span:nth-child(2)::before { content: "Tanggal"; }
  .nt-db__row > span:nth-child(3)::before { content: "Waktu"; }
  .nt-db__row > span:nth-child(4)::before { content: "Lokasi"; }
}

@media (max-width: 420px) {
  .nt-page { padding-left: 17px; padding-right: 17px; }
  .nt-handle { display: none; }
  .nt-crumbs__hide, .nt-crumbs__sep { display: none; }
  .nt-topback { display: none; }
  .nt-title { font-size: 30px; }
  .nt-gallery { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-gate__card { animation: none; }
  .nt-person:hover { transform: none; }
  .nt-gallery__item:hover img, .nt-person:hover .nt-person__photo img { transform: none; }
  .nt-toggle__body { animation: none; }
  .nt-toast { transition: none; }
}
