/* Tema "Tinta": modern minimalis berani. Arah desain dan alasan tiap keputusan ada di DESIGN.md.
   Dimuat setelah invitation.css hanya bila tema = tinta. Tiga warna: tinta, kertas, merah bata. Sudut tajam, tanpa bayangan. */
.theme-tinta {
  --bg: #f3efe6; --bg2: #e7e0cf; --ink: #14110f; --muted: #5b554c;
  --primary: #14110f; --deep: #0c0a09; --on-primary: #f3efe6; --accent: #c13b1f; --card: #faf7f0;
  --line: rgba(20, 17, 15, .35);
  --paper: #f3efe6; --soft: #d9d3c5;
  --sans: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
}
.theme-tinta .page { box-shadow: none; }

/* ---------- Tipografi ---------- */
.theme-tinta h1, .theme-tinta h2, .theme-tinta h3, .theme-tinta .cname, .theme-tinta .names, .theme-tinta .hero-names,
.theme-tinta .h, .theme-tinta .salam, .theme-tinta .to-name, .theme-tinta .wishes h3 {
  font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -.025em;
}
.theme-tinta .eyebrow { text-transform: none; letter-spacing: 0; font: 500 1rem var(--sans); color: inherit; }
.theme-tinta .center { text-align: left; }

/* ---------- Gerak: hanya gerbang dan muncul saat digulir ---------- */
.theme-tinta .sky, .theme-tinta .orn, .theme-tinta .hero-pat, .theme-tinta .door svg { display: none; }
.theme-tinta .btn-open { animation: fadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.theme-tinta .countdown [data-cd="s"], .theme-tinta .sound-btn.on::after { animation: none; }
.js .theme-tinta [data-reveal="left"], .js .theme-tinta [data-reveal="right"] { transform: translateY(28px); }
.js .theme-tinta [data-reveal].in { transform: none; }

/* ---------- Gerbang: dua pintu beda warna ---------- */
.theme-tinta .gate { color: var(--paper); }
.theme-tinta .door { background: var(--ink); border: 0; box-shadow: none; }
.theme-tinta .door-r { background: var(--accent); }
.theme-tinta .gate-content { text-align: left; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 40px 26px 44px; }
.theme-tinta .gate-content::-webkit-scrollbar { display: none; }
.theme-tinta .cover-art { width: 96px; border-radius: 0; border: 0; margin: 0 0 16px; }
.theme-tinta .gate .names { align-items: flex-start; font-size: clamp(3.3rem, 17vw, 4.6rem); line-height: .92; margin: 6px 0 18px; }
.theme-tinta .names i { font: 500 .5em var(--sans); color: var(--paper); line-height: 1.1; margin: 4px 0; }
.theme-tinta .cover-date { color: var(--paper); font-weight: 600; letter-spacing: 0; margin-bottom: 26px; }
.theme-tinta .to { border-color: var(--paper); border-width: 2px 0 0; padding: 14px 0 0; margin: 0 0 26px; max-width: none; }
.theme-tinta .to-name { font-size: 1.5rem; }
.theme-tinta .to-note, .theme-tinta .sound-note { color: var(--paper); opacity: .92; }
.theme-tinta .sound-note { margin: 18px 0 0; max-width: none; }
.theme-tinta .btn-open {
  display: block; width: 100%; text-align: left; padding: 16px 20px; border-radius: 0; background: var(--paper); color: var(--ink); font-weight: 700; letter-spacing: 0;
}
.theme-tinta .btn-open:hover { box-shadow: none; transform: none; background: #fff; }
.theme-tinta .btn-open:focus-visible, .theme-tinta .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: none; }
.theme-tinta .gate .btn-open:focus-visible { outline-color: var(--paper); }

/* ---------- Hero: kertas, nama raksasa, bintang khatam terpotong ---------- */
.theme-tinta .hero { background: var(--bg); color: var(--ink); align-items: flex-end; justify-content: flex-start; text-align: left; }
.mn-star { position: absolute; right: -118px; top: -78px; width: 300px; height: 300px; z-index: 0; pointer-events: none; }
.mn-star .star-line { stroke: var(--accent); stroke-width: .55; opacity: 1; }
.theme-tinta .hero-in { padding: 96px 26px 120px; }
.theme-tinta .bismillah { color: var(--ink); font-size: 1.7rem; text-align: left; margin-bottom: 26px; }
.theme-tinta .hero-names { align-items: flex-start; font-size: clamp(3.5rem, 19vw, 5.2rem); line-height: .9; margin: 12px 0 26px; color: var(--ink); }
.theme-tinta .hero-names i { color: var(--accent); font: 500 .5em var(--sans); margin: 6px 0; }
.theme-tinta .hero-date { display: inline-block; background: var(--accent); color: #fff; padding: 9px 16px; font-weight: 600; letter-spacing: 0; opacity: 1; margin: 0; }
.theme-tinta .scroll-hint { left: 26px; margin-left: 0; border-color: var(--ink); border-radius: 0; }
.theme-tinta .scroll-hint span { background: var(--ink); border-radius: 0; }

/* ---------- Bagian umum ---------- */
.theme-tinta .sec { padding: 64px 26px; }
.theme-tinta .h { font-size: 2.7rem; line-height: .95; color: var(--ink); margin-bottom: 30px; padding-top: 14px; border-top: 5px solid var(--ink); }
.theme-tinta .salam { color: var(--ink); font-size: 1.9rem; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }
.theme-tinta .intro { color: var(--ink); font-size: 1.05rem; }
.theme-tinta #opening { padding-top: 56px; }

/* Mempelai: dua blok lebar penuh bergantian, karakter menempel di dasar blok */
.theme-tinta #mempelai { padding: 0; background: var(--bg); }
.theme-tinta .couple { display: block; margin: 0; }
.theme-tinta .couple .amp { display: none; }
.theme-tinta .couple article { padding: 40px 26px; text-align: left; }
.theme-tinta .couple article:nth-of-type(1) { background: var(--bg2); }
.theme-tinta .couple article:nth-of-type(2) { background: var(--ink); color: var(--paper); text-align: right; }
.theme-tinta .couple.has-av article { display: grid; align-items: end; gap: 18px; padding-top: 34px; padding-bottom: 0; min-height: 220px; }
.theme-tinta .couple.has-av article:nth-of-type(1) { grid-template-columns: 150px 1fr; }
.theme-tinta .couple.has-av article:nth-of-type(2) { grid-template-columns: 1fr 150px; }
.theme-tinta .couple.has-av article:nth-of-type(2) .avatar { grid-column: 2; }
.theme-tinta .couple.has-av article h2 { align-self: end; margin: 0; }
.theme-tinta .couple.has-av article .parents { align-self: start; }
.theme-tinta .couple.has-av article:nth-of-type(1) > :not(.avatar) { grid-column: 2; }
.theme-tinta .couple.has-av article:nth-of-type(2) > :not(.avatar) { grid-column: 1; }
.theme-tinta .avatar { width: 150px; margin: 0; grid-row: 1 / span 2; align-self: end; }
.theme-tinta .avatar::before { display: none; }
.theme-tinta .avatar .avatar-frame { width: 150px; height: auto; aspect-ratio: 148 / 178; border: 0; border-radius: 0; box-shadow: none; background: none; overflow: visible; }
.theme-tinta .avatar .avatar-frame img { animation: none; }
.theme-tinta .cname { font-size: 1.75rem; line-height: 1; color: inherit; }
.theme-tinta .parents { color: inherit; font-size: .88rem; margin: 8px 0 0; }

/* Ayat: pita merah bata penuh lebar */
.theme-tinta .quote { margin: 0; padding: 64px 26px; background: var(--accent); color: #fff; border: 0; border-radius: 0; }
.theme-tinta .quote::before { display: none; }
.theme-tinta .quote .arab, .theme-tinta .quote .terjemah, .theme-tinta .quote footer { color: #fff; }
.theme-tinta .quote .terjemah { font-style: normal; font-size: 1rem; }
.theme-tinta .quote footer { font-weight: 700; }

/* Hitung mundur: angka besar bergaris */
.theme-tinta .countdown { max-width: none; gap: 0; margin: 0 0 34px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.theme-tinta .countdown div { background: none; color: var(--ink); border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 14px 0 14px 12px; text-align: left; }
.theme-tinta .countdown div:first-child { border-left: 0; padding-left: 0; }
.theme-tinta .countdown b { font: 800 2.3rem/1 var(--sans); letter-spacing: -.03em; }
.theme-tinta .countdown span { text-transform: none; letter-spacing: 0; font-size: .8rem; opacity: 1; }

/* Acara: tanggal raksasa di kiri, rincian di kanan, dipisah garis */
.theme-tinta .event.ev-split {
  display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; padding: 24px 0; margin: 0; border: 0; border-top: 2px solid var(--ink);
  border-radius: 0; background: none; box-shadow: none; text-align: left;
}
.theme-tinta .event.ev-split:last-of-type { border-bottom: 2px solid var(--ink); }
.theme-tinta .event::before { display: none; }
.theme-tinta .ev-badge { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
.theme-tinta .ev-badge b { font: 800 4.2rem/.85 var(--sans); letter-spacing: -.06em; }
.theme-tinta .ev-badge span { font-size: .8rem; font-weight: 600; margin-top: 10px; }
.theme-tinta .event h3 { font-size: 1.55rem; line-height: 1.05; color: var(--ink); margin-bottom: 10px; }
.theme-tinta .ev-actions { justify-content: flex-start; }

/* Adab: nomor besar, garis tipis */
.theme-tinta .notes { counter-reset: n; gap: 0; }
.theme-tinta .notes li { counter-increment: n; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 16px 58px; }
.theme-tinta .notes li::before { content: counter(n, decimal-leading-zero); animation: none; left: 0; top: 14px; font: 800 1.5rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }

/* Tanda kasih: blok tinta */
.theme-tinta #hadiah { background: var(--ink); color: var(--paper); }
.theme-tinta #hadiah .h { color: var(--paper); border-top-color: var(--paper); }
.theme-tinta #hadiah .intro { color: var(--soft); }
.theme-tinta .acc { background: none; border: 0; border-top: 1px solid rgba(243, 239, 230, .35); border-radius: 0; box-shadow: none; align-items: flex-start; padding: 18px 0 20px; }
.theme-tinta .acc b { color: var(--paper); }
.theme-tinta .acc .num { font: 800 2rem var(--sans); letter-spacing: -.01em; color: var(--paper); }
.theme-tinta .acc .holder { color: var(--soft); }
.theme-tinta .acc .btn.alt { color: var(--paper); border-color: var(--paper); }
.theme-tinta .acc .btn.alt:hover { background: var(--paper); color: var(--ink); }

/* Formulir: garis bawah, tanpa kotak */
.theme-tinta .btn { border-radius: 0; font-weight: 700; }
.theme-tinta .btn:hover { transform: none; box-shadow: none; }
.theme-tinta .rsvp-form input:not([type="radio"]), .theme-tinta .rsvp-form select, .theme-tinta .rsvp-form textarea {
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; padding: 12px 0;
}
.theme-tinta .rsvp-form input:focus, .theme-tinta .rsvp-form select:focus, .theme-tinta .rsvp-form textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: none; border-color: var(--ink);
}
.theme-tinta .radios label { border: 2px solid var(--ink); border-radius: 0; background: none; }
.theme-tinta .radios label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.theme-tinta .rsvp-form .btn { width: 100%; padding: 16px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.theme-tinta .wishes li { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 0; }
.theme-tinta .wishes h3 { font-size: 1.6rem; }

/* Penutup: blok merah bata */
.theme-tinta .closing { background: var(--accent); color: #fff; padding: 72px 26px 120px; }
.theme-tinta .closing .intro, .theme-tinta .closing .salam, .theme-tinta .closing .doa, .theme-tinta .closing .credit { color: #fff; }
.theme-tinta .closing .salam { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.theme-tinta .closing .doa { font-size: 1.7rem; }
.theme-tinta .closing .names.small { font-size: 3rem; line-height: .95; color: #fff; margin: 22px 0 28px; }
.theme-tinta .closing .credit { opacity: .9; }

/* Navigasi bawah & tombol suara: datar, tajam */
.theme-tinta .dock { bottom: 0; width: min(100%, 520px); border: 0; border-radius: 0; padding: 4px 6px; background: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-tinta .dock a { border-radius: 0; color: var(--soft); }
.theme-tinta .dock a.on { background: var(--accent); color: #fff; }
.theme-tinta .dock a:focus-visible { outline-color: var(--paper); }
.theme-tinta .sound-btn { border-radius: 0; border: 2px solid var(--ink); background: var(--paper); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Pelunakan: bentuk lebih luwes, tetap minimalis ----------
   Sudut membulat sedang (14-32 px) dan blok yang "mengambang" di dalam halaman, bukan lagi garis lurus tajam. */
.theme-tinta { --r-s: 14px; --r-m: 22px; --r-l: 32px; }
.theme-tinta h1, .theme-tinta h2, .theme-tinta h3, .theme-tinta .cname, .theme-tinta .names, .theme-tinta .hero-names,
.theme-tinta .h, .theme-tinta .salam, .theme-tinta .to-name, .theme-tinta .wishes h3 { font-weight: 700; letter-spacing: -.02em; }

/* Gerbang & hero */
.theme-tinta .btn-open { border-radius: var(--r-s); transition: transform .35s cubic-bezier(.3, .8, .3, 1), background .2s; }
.theme-tinta .btn-open:hover { transform: translateY(-2px); }
.theme-tinta .to { border-width: 0; padding: 0; }
.theme-tinta .to-name { margin-top: 2px !important; }
.mn-star { transform: rotate(-14deg); }
.theme-tinta .hero-date { border-radius: 999px; padding: 10px 20px; }
.theme-tinta .scroll-hint { border-radius: 16px; }
.theme-tinta .scroll-hint span { border-radius: 3px; }

/* Judul bagian: batang pendek membulat, bukan garis penuh */
.theme-tinta .h { border-top: 0; padding-top: 0; }
.theme-tinta .h::before { content: ""; display: block; width: 56px; height: 7px; border-radius: 7px; background: var(--ink); margin-bottom: 18px; }
.theme-tinta #hadiah .h::before { background: var(--paper); }

/* Mempelai & ayat: kartu membulat dengan jarak, karakter tetap menempel di dasar kartu */
.theme-tinta #mempelai { padding: 0 14px 14px; }
.theme-tinta .couple { display: grid; gap: 12px; padding-top: 14px; }
.theme-tinta .couple article { border-radius: var(--r-l); overflow: hidden; }
.theme-tinta .quote { margin: 12px 0 0; border-radius: var(--r-l); }

/* Hitung mundur: empat kotak membulat */
.theme-tinta .countdown { gap: 8px; border: 0; margin-bottom: 34px; }
.theme-tinta .countdown div, .theme-tinta .countdown div:first-child { border: 2px solid var(--ink); border-radius: var(--r-m); padding: 14px 6px 12px 14px; }

/* Acara: garis lebih ringan, tanggal tetap besar */
.theme-tinta .event.ev-split { border-top-width: 1.5px; }
.theme-tinta .event.ev-split:last-of-type { border-bottom-width: 1.5px; }
.theme-tinta .ev-actions .btn { border-radius: 999px; }

/* Tanda kasih & penutup: blok melayang membulat */
.theme-tinta #hadiah { margin: 0 12px; border-radius: var(--r-l); }
.theme-tinta .closing { margin: 12px 12px 0; border-radius: var(--r-l) var(--r-l) 0 0; }

/* Formulir: kotak bergaris membulat, tombol lembut */
.theme-tinta .btn { border-radius: var(--r-s); }
.theme-tinta .rsvp-form input:not([type="radio"]), .theme-tinta .rsvp-form select, .theme-tinta .rsvp-form textarea {
  border: 2px solid var(--ink); border-radius: var(--r-s); padding: 12px 14px; background: var(--card);
}
.theme-tinta .radios label { border-radius: var(--r-s); }
.theme-tinta .rsvp-form .btn { border-radius: var(--r-s); }
.theme-tinta .wishes li { border: 2px solid var(--ink); border-radius: var(--r-m); padding: 14px 16px; background: var(--card); }

/* Navigasi bawah melayang */
.theme-tinta .dock { bottom: 12px; width: min(92vw, 420px); border-radius: 24px; padding: 6px; }
.theme-tinta .dock a { border-radius: 18px; }
.theme-tinta .sound-btn { border-radius: 50%; }

/* Gerak muncul lebih lembut */
.js .theme-tinta [data-reveal] { transition-duration: 1.1s; }
.js .theme-tinta [data-reveal="left"], .js .theme-tinta [data-reveal="right"] { transform: translateY(20px); }
