/* ══ Ulos — charcoal · dried red ulos · raw white ══
   Prefix: bk- · Fonts: Rozha One · Work Sans · Noto Sans Batak */

:root {
  --bk-char: #232323;
  --bk-char-2: #2E2A26;
  --bk-char-3: #3B3733;
  --bk-red: #8E2F1F;
  --bk-red-2: #5A2620;
  --bk-raw: #EDE6DA;
  --bk-mut: #B7AD9E;
  --bk-red-hi: #D9704F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Work Sans", system-ui, sans-serif; background: #171513; color: var(--bk-mut); -webkit-font-smoothing: antialiased; }
body:not(.is-open) { overflow: hidden; }

.bk-page { max-width: 480px; margin: 0 auto; background: var(--bk-char); box-shadow: 0 0 70px rgba(0,0,0,.6); position: relative; overflow-x: clip; }

/* ── cover: ulos drape lifts ── */
.bk-cover {
  position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto;
  background: var(--bk-char); display: flex; align-items: flex-end; justify-content: center;
}
.bk-drape {
  position: absolute; inset: -2% -2% 0; transition: transform 1.05s cubic-bezier(.7,0,.25,1);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.bk-drape svg { display: block; width: 100%; height: 100%; }
.bk-drape-fringe {
  position: absolute; bottom: -16px; left: 0; right: 0; height: 16px;
  background: linear-gradient(90deg, var(--bk-red) 0 8px, var(--bk-char) 8px 12px, var(--bk-raw) 12px 18px, var(--bk-char) 18px 24px);
  background-size: 24px 100%;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 96% 100%, 92% 40%, 88% 100%, 84% 40%, 80% 100%, 76% 40%, 72% 100%, 68% 40%, 64% 100%, 60% 40%, 56% 100%, 52% 40%, 48% 100%, 44% 40%, 40% 100%, 36% 40%, 32% 100%, 28% 40%, 24% 100%, 20% 40%, 16% 100%, 12% 40%, 8% 100%, 4% 40%, 0 100%);
}
body.is-open .bk-cover { visibility: hidden; pointer-events: none; transition: visibility 0s 1.1s; }
body.is-open .bk-drape { transform: translateY(-108%); }
.bk-cover-inner {
  position: relative; text-align: center; color: var(--bk-raw); padding: 28px 22px 26px;
  background: rgba(35,35,35,.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--bk-red);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  width: calc(100% - 32px); max-width: 360px; margin: 0 16px 28px;
  transition: opacity .45s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bk-cover-inner { background: rgba(35,35,35,.88); }
}
body.is-open .bk-cover-inner { opacity: 0; }
.bk-horas { font-family: "Noto Sans Batak", serif; font-size: 30px; color: var(--bk-red-hi); }
.bk-horas-lg { font-size: 46px; }
.bk-cover-kicker { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--bk-mut); margin-top: 6px; }
.bk-cover-names { font-family: "Rozha One", Georgia, serif; font-weight: 400; font-size: 44px; line-height: 1.12; margin: 16px 0 8px; }
.bk-cover-names span { display: block; font-size: 18px; color: var(--bk-red-hi); margin: 6px 0; }
.bk-cover-date { font-size: 13px; letter-spacing: .1em; color: var(--bk-mut); }
.bk-cover-guest { margin: 26px 0 22px; font-size: 12.5px; color: var(--bk-mut); }
.bk-guest-name { font-family: "Rozha One", serif; font-size: 21px; color: var(--bk-raw); margin-top: 5px; }
.bk-open-btn {
  font-family: "Work Sans", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  background: var(--bk-red); color: var(--bk-raw); border: none; padding: 14px 36px; cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}
.bk-open-btn:hover { background: #A63A26; transform: translateY(-2px); }

/* ── hero: left-ragged ── */
.bk-hero { padding: 58px 26px 46px; }
.bk-hero-intro { font-size: 13px; line-height: 1.75; max-width: 34ch; border-left: 3px solid var(--bk-red); padding-left: 14px; }
.bk-hero-names { font-family: "Rozha One", serif; font-weight: 400; font-size: 50px; line-height: 1.08; color: var(--bk-raw); margin: 22px 0 10px; }
.bk-hero-names em { font-style: normal; color: var(--bk-red-hi); }
.bk-hero-date { font-size: 13.5px; letter-spacing: .12em; color: var(--bk-mut); }
.bk-cd { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; max-width: 330px; margin-top: 26px; }
.bk-cd-cell { border: 1px solid var(--bk-char-3); border-bottom: 3px solid var(--bk-red); padding: 10px 4px 8px; text-align: center; background: var(--bk-char-2); }
.bk-cd-cell b { display: block; font-family: "Rozha One", serif; font-weight: 400; font-size: 24px; color: var(--bk-raw); font-variant-numeric: tabular-nums; }
.bk-cd-cell span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--bk-mut); }

/* ── ulos bands + weave signature ── */
.bk-band { height: 52px; }
.bk-band svg { display: block; width: 100%; height: 100%; }
.bk-weave { display: block; width: 100%; height: 56px; padding: 6px 0; background: var(--bk-char); }
.bk-wv { stroke-dasharray: 760; stroke-dashoffset: 760; }
.bk-weave.revealed .bk-wv { animation: bk-interlace 1.8s ease forwards; }
.bk-weave.revealed .bk-wv:nth-child(2) { animation-delay: .35s; }
@keyframes bk-interlace { to { stroke-dashoffset: 0; } }

/* ── sections: left-aligned ── */
.bk-sec { padding: 50px 26px; }
.bk-sec-head { margin-bottom: 30px; }
.bk-sec-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .2em;
  background: var(--bk-red); color: var(--bk-raw); padding: 4px 10px; margin-bottom: 10px;
}
.bk-sec-title { font-family: "Rozha One", serif; font-weight: 400; font-size: 28px; color: var(--bk-raw); }

/* ── couple ── */
.bk-person { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--bk-char-3); }
.bk-person:last-of-type { border-bottom: none; }
.bk-mono {
  flex: none; width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--bk-red); color: var(--bk-raw); font-family: "Rozha One", serif; font-size: 21px;
  border: 2px solid var(--bk-char-3); outline: 2px solid var(--bk-red-2); outline-offset: 3px;
}
.bk-mono-r { background: var(--bk-char-3); outline-color: var(--bk-char-3); color: var(--bk-raw); }
.bk-person-name { font-family: "Rozha One", serif; font-weight: 400; font-size: 21px; color: var(--bk-raw); }
.bk-person-parents { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.bk-person-ig { margin-top: 5px; font-size: 12px; color: var(--bk-red-hi); letter-spacing: .05em; }

/* ── events ── */
.bk-events { background: var(--bk-char-2); }
.bk-event { border-left: 4px solid var(--bk-red); background: var(--bk-char); padding: 20px 20px 18px; margin-bottom: 14px; }
.bk-event-title { font-family: "Rozha One", serif; font-weight: 400; font-size: 22px; color: var(--bk-raw); }
.bk-event-time { font-size: 13px; font-weight: 600; color: var(--bk-red-hi); margin-top: 4px; letter-spacing: .05em; }
.bk-event-venue { font-size: 14.5px; font-weight: 600; color: var(--bk-raw); margin-top: 10px; }
.bk-event-addr { font-size: 12.5px; line-height: 1.55; margin-top: 2px; }
.bk-cal { margin-top: 12px; display: flex; gap: 14px; }
.bk-cal a { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--bk-mut); text-decoration: none; border-bottom: 1.5px solid var(--bk-red); padding-bottom: 2px; }
.bk-map-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.bk-map-tab {
  appearance: none; border: 1px solid var(--bk-char-3); background: var(--bk-char); cursor: pointer;
  padding: 10px 0; font-family: "Work Sans", sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bk-mut);
}
.bk-map-tab.is-active { background: var(--bk-red); color: var(--bk-raw); border-color: var(--bk-red); }
.bk-map { display: block; width: 100%; height: 220px; border: 1px solid var(--bk-char-3); filter: grayscale(.25); }

/* ── story ── */
.bk-story { list-style: none; }
.bk-story-item { position: relative; padding: 0 0 26px 24px; border-left: 2px solid var(--bk-red-2); }
.bk-story-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.bk-story-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; background: var(--bk-red); transform: rotate(45deg); }
.bk-story-year { font-family: "Rozha One", serif; font-size: 15px; color: var(--bk-red-hi); letter-spacing: .08em; }
.bk-story-title { font-family: "Rozha One", serif; font-weight: 400; font-size: 19px; color: var(--bk-raw); margin: 4px 0 6px; }
.bk-story-text { font-size: 13px; line-height: 1.7; }

/* ── gallery ── */
.bk-gal-sec { background: var(--bk-char-2); }
.bk-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-g-item { cursor: zoom-in; border: 1px solid var(--bk-char-3); transition: transform .25s ease;  aspect-ratio: 4/3; overflow: hidden; }
.bk-g-item:hover { transform: translateY(-3px); }
.bk-g-item svg { display: block; width: 100%; height: auto; }
.bk-g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bk-g-item { color: #C05B44; }

/* ── forms ── */
.bk-form { display: grid; gap: 15px; }
.bk-field { display: grid; gap: 6px; border: none; }
.bk-field span, .bk-field legend { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bk-red-hi); }
.bk-field input, .bk-field select, .bk-field textarea {
  font-family: "Work Sans", sans-serif; font-size: 14.5px; color: var(--bk-raw);
  background: var(--bk-char-2); border: 1px solid var(--bk-char-3); border-radius: 0; padding: 11px 13px; outline: none; width: 100%;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: var(--bk-red); }
.bk-radios { display: block; }
.bk-radios label { display: flex; gap: 9px; align-items: center; font-size: 14px; padding: 4px 0; text-transform: none; letter-spacing: 0; color: var(--bk-mut); }
.bk-radios input { accent-color: var(--bk-red); width: 16px; height: 16px; }
.bk-submit {
  justify-self: start; appearance: none; cursor: pointer;
  background: var(--bk-red); color: var(--bk-raw); border: none;
  font-family: "Work Sans", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; padding: 13px 32px; transition: background .25s ease, transform .2s ease;
}
.bk-submit:hover { background: #A63A26; transform: translateY(-2px); }
.bk-thanks { font-family: "Rozha One", serif; font-size: 18px; color: var(--bk-red-hi); padding: 22px 4px; }

/* ── wishes ── */
.bk-wish-form { margin-bottom: 26px; }
.bk-wishes { display: grid; gap: 10px; margin-bottom: 16px; }
[data-wishes-list] .wish { background: var(--bk-char-2); border: 1px solid var(--bk-char-3); border-left: 4px solid var(--bk-red); padding: 13px 16px 11px; }
[data-wishes-list] .wish h4 { font-family: "Rozha One", serif; font-weight: 400; font-size: 15.5px; color: var(--bk-raw); }
[data-wishes-list] .wish p { font-size: 13px; line-height: 1.6; margin-top: 3px; }
[data-wishes-list] .wish time { display: block; font-size: 10.5px; color: #847A6C; margin-top: 5px; }
.bk-more {
  display: block; margin: 0 auto; appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--bk-char-3); color: var(--bk-mut); font-family: "Work Sans", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 9px 20px;
}

/* ── amplop ── */
.bk-amplop { background: var(--bk-char-2); }
.bk-amplop-note { font-size: 13px; line-height: 1.65; max-width: 40ch; margin-bottom: 20px; }
.bk-envs { display: grid; gap: 12px; }
.bk-env { background: var(--bk-char); border: 1px solid var(--bk-char-3); border-top: 4px solid var(--bk-red); text-align: center; padding: 20px 18px 17px; }
.bk-env-name { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--bk-red-hi); }
.bk-env-num { font-family: "Rozha One", serif; font-size: 24px; color: var(--bk-raw); letter-spacing: .06em; margin-top: 7px; }
.bk-env-holder { font-size: 12px; margin-top: 3px; }
.bk-copy {
  margin-top: 12px; appearance: none; cursor: pointer; background: var(--bk-red); color: var(--bk-raw); border: none;
  font-family: "Work Sans", sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 8px 16px;
}

/* ── closing ── */
.bk-closing { background: var(--bk-char); text-align: center; padding: 54px 26px 0; }
.bk-closing-text { font-size: 13px; line-height: 1.7; max-width: 34ch; margin: 14px auto 20px; }
.bk-closing-names { font-family: "Rozha One", serif; font-size: 36px; color: var(--bk-raw); }
.bk-closing-fam { margin: 12px 0 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bk-red-hi); }
.bk-closing-band { height: 52px; margin: 0 -26px; }
.bk-closing-band svg { display: block; width: 100%; height: 100%; }

/* ── music ── */
.bk-music {
  position: fixed; right: 18px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  background: var(--bk-char-2); color: var(--bk-red); border: 1px solid var(--bk-red);
  cursor: pointer; display: grid; place-items: center; border-radius: 0;
}
.bk-music svg { width: 20px; height: 20px; }
.bk-music.is-playing { background: var(--bk-red); color: var(--bk-raw); }

/* ── reveal (behavior-critical) ── */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

.lb-overlay { font-family: "Work Sans", sans-serif; }
.map-open { color: var(--bk-red-hi); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* cover-open end-states so content remains reachable */
  body.is-open [data-cover] { opacity: 0 !important; visibility: hidden !important; }
}
