/* ══ Dark Editorial — ink · bone · no accent · magazine grid ══
   Prefix: ed- · Fonts: Italiana · Archivo */

:root {
  --ed-ink: #111111;
  --ed-ink-2: #1A1A18;
  --ed-ink-3: #232320;
  --ed-bone: #EDE6DA;
  --ed-mut: #9A9285;
  --ed-ghost: #2C2C28;
  --ed-line: #3A3A36;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Archivo", system-ui, sans-serif; background: #0B0B0A; color: var(--ed-mut); -webkit-font-smoothing: antialiased; }
body:not(.is-open) { overflow: hidden; }

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

/* ── cover: initials split ── */
.ed-cover {
  position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto;
  background: var(--ed-ink); display: flex; align-items: center; justify-content: center; text-align: center;
  transition: visibility 0s 1.15s;
}
.ed-split { position: absolute; width: 190px; }
.ed-split-d { left: -34px; top: 50%; transform: translateY(-50%); }
.ed-split-l { right: -34px; top: 50%; transform: translateY(-50%); }
.ed-half { display: block; height: 106px; overflow: hidden; }
.ed-half b {
  display: block; font-family: "Italiana", serif; font-weight: 400;
  font-size: 212px; line-height: 212px; color: var(--ed-ghost);
}
.ed-half-b b { transform: translateY(-106px); }
.ed-half-t { transition: transform .95s cubic-bezier(.7,0,.25,1); }
.ed-half-b { transition: transform .95s cubic-bezier(.7,0,.25,1); }
body.is-open .ed-cover { visibility: hidden; pointer-events: none; }
body.is-open .ed-split-d .ed-half-t { transform: translateY(-90%); }
body.is-open .ed-split-d .ed-half-b { transform: translateY(90%); }
body.is-open .ed-split-l .ed-half-t { transform: translateY(-120%); }
body.is-open .ed-split-l .ed-half-b { transform: translateY(70%); }
.ed-cover-inner { position: relative; padding: 30px; color: var(--ed-bone); transition: opacity .35s ease; }
body.is-open .ed-cover-inner { opacity: 0; }
.ed-cover-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .52em; text-transform: uppercase; color: var(--ed-mut); }
.ed-cover-names { font-family: "Italiana", serif; font-weight: 400; font-size: 52px; line-height: 1.06; margin: 18px 0 10px; }
.ed-cover-names span { display: block; font-size: 20px; color: var(--ed-mut); margin: 6px 0; }
.ed-cover-date { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ed-mut); }
.ed-cover-guest { margin: 28px 0 24px; }
.ed-cover-to { font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--ed-mut); }
.ed-guest-name { font-family: "Italiana", serif; font-size: 24px; letter-spacing: .04em; margin-top: 8px; }
.ed-open-btn {
  font-family: "Archivo", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase;
  background: var(--ed-bone); color: var(--ed-ink); border: none; padding: 15px 42px; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.ed-open-btn:hover { background: #fff; }

/* ── ticker ── */
.ed-ticker { border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); overflow: hidden; background: var(--ed-ink); }
.ed-ticker-track { display: flex; width: max-content; animation: ed-marquee 26s linear infinite; }
.ed-ticker-track span { padding: 9px 0; font-size: 10.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--ed-mut); white-space: nowrap; }
@keyframes ed-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@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; }
} }

/* ── hero ── */
.ed-hero { padding: 44px 0 40px; }
.ed-hero-grid { display: grid; grid-template-columns: 88px 1fr; border-top: 1px solid var(--ed-line); }
.ed-hero-no {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--ed-mut);
  border-right: 1px solid var(--ed-line); padding: 18px 10px 0; writing-mode: vertical-rl; transform: rotate(180deg);
}
.ed-hero-body { padding: 26px 22px 22px; }
.ed-hero-intro { font-size: 12.5px; line-height: 1.7; max-width: 30ch; }
.ed-hero-names { font-family: "Italiana", serif; font-weight: 400; font-size: 56px; line-height: .98; color: var(--ed-bone); margin: 16px 0 10px; letter-spacing: .01em; }
.ed-hero-names em { font-style: normal; color: var(--ed-mut); font-size: 30px; margin: 0 6px; }
.ed-hero-date { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.ed-cd { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ed-line); }
.ed-cd-cell { text-align: left; padding: 18px 0 16px 22px; border-left: 1px solid var(--ed-line); }
.ed-cd-cell:first-child { border-left: none; }
.ed-cd-cell b {
  display: block; font-family: "Italiana", serif; font-weight: 400; font-size: 38px; line-height: 1;
  color: var(--ed-bone); font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--ed-bone); padding-bottom: 8px; min-height: 46px;
}
.ed-cd-cell span { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.ed-rule { border: none; border-top: 1px solid var(--ed-line); margin: 0; }

/* ── sections: ghost numerals ── */
.ed-sec { padding: 46px 0 42px; position: relative; }
.ed-sec-head { position: relative; padding: 0 22px; margin-bottom: 26px; min-height: 96px; }
.ed-sec-no {
  position: absolute; right: 8px; top: -22px; z-index: 0;
  font-family: "Italiana", serif; font-size: 118px; line-height: 1; color: var(--ed-ghost); opacity: .55;
}
.ed-sec-title { position: relative; z-index: 1; font-family: "Italiana", serif; font-weight: 400; font-size: 37px; line-height: 1.02; color: var(--ed-bone); margin-top: 26px; }

/* ── couple ── */
.ed-person { padding: 18px 22px 20px; border-top: 1px solid var(--ed-line); }
.ed-person:last-of-type { border-bottom: 1px solid var(--ed-line); }
.ed-person-label { font-size: 10.5px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--ed-mut); }
.ed-person-name { font-family: "Italiana", serif; font-weight: 400; font-size: 30px; color: var(--ed-bone); margin: 8px 0 8px; }
.ed-person-parents { font-size: 12.5px; line-height: 1.65; max-width: 34ch; }
.ed-person-ig { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--ed-bone); }
.ed-person-r { text-align: right; margin-left: 88px; }
.ed-person-r .ed-person-parents { margin-left: auto; }
.ed-person-l { margin-right: 88px; }

/* ── events ── */
.ed-event { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid var(--ed-line); }
.ed-event:last-of-type { border-bottom: 1px solid var(--ed-line); }
.ed-event-no { font-family: "Italiana", serif; font-size: 22px; color: var(--ed-mut); padding: 20px 0 0 22px; }
.ed-event-body { padding: 18px 22px 20px; }
.ed-event-title { font-family: "Italiana", serif; font-weight: 400; font-size: 26px; color: var(--ed-bone); }
.ed-event-time { font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 6px; }
.ed-event-venue { font-size: 12.5px; line-height: 1.6; margin-top: 10px; }
.ed-cal { margin-top: 12px; display: flex; gap: 10px; }
.ed-cal a {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ed-bone); border: 1px solid var(--ed-line); padding: 7px 12px; transition: border-color .2s ease;
}
.ed-cal a:hover { border-color: var(--ed-bone); }
.ed-maps { margin-top: 24px; }
.ed-map-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ed-line); border-bottom: none; }
.ed-map-tab {
  appearance: none; border: none; background: var(--ed-ink); cursor: pointer; padding: 11px 0;
  font-family: "Archivo", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ed-mut); border-right: 1px solid var(--ed-line);
}
.ed-map-tab:last-child { border-right: none; }
.ed-map-tab.is-active { background: var(--ed-bone); color: var(--ed-ink); }
.ed-map { display: block; width: 100%; height: 210px; border: 1px solid var(--ed-line); filter: grayscale(1) invert(.92) contrast(.9); }

/* ── story: captions + pull quote ── */
.ed-pull {
  font-family: "Italiana", serif; font-size: 23px; line-height: 1.35; color: var(--ed-bone);
  padding: 8px 22px 26px; max-width: 30ch;
}
.ed-story { list-style: none; border-top: 1px solid var(--ed-line); }
.ed-story-item { padding: 20px 22px 22px; border-bottom: 1px solid var(--ed-line); }
.ed-story-item:last-child { border-bottom: none; }
.ed-story-cap { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.ed-story-cap span { color: var(--ed-bone); }
.ed-story-title { font-family: "Italiana", serif; font-weight: 400; font-size: 24px; color: var(--ed-bone); margin: 10px 0 8px; }
.ed-story-text { font-size: 12.5px; line-height: 1.7; max-width: 40ch; }

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

/* ── forms ── */
.ed-form { display: grid; gap: 16px; padding: 0 22px; }
.ed-field { display: grid; gap: 7px; border: none; }
.ed-field span, .ed-field legend { font-size: 10.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--ed-mut); }
.ed-field input, .ed-field select, .ed-field textarea {
  font-family: "Archivo", sans-serif; font-size: 14px; color: var(--ed-bone);
  background: var(--ed-ink-2); border: none; border-bottom: 1px solid var(--ed-line); border-radius: 0;
  padding: 11px 2px; outline: none; width: 100%;
}
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus { border-bottom-color: var(--ed-bone); }
.ed-field input::placeholder, .ed-field textarea::placeholder { color: #5B564C; }
.ed-radios { display: block; }
.ed-radios label { display: flex; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; text-transform: none; letter-spacing: 0; }
.ed-radios input { accent-color: var(--ed-bone); width: 15px; height: 15px; }
.ed-submit {
  justify-self: start; appearance: none; cursor: pointer;
  background: var(--ed-bone); color: var(--ed-ink); border: none;
  font-family: "Archivo", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; padding: 15px 38px; transition: background .25s ease;
}
.ed-submit:hover { background: #fff; }
.ed-thanks { padding: 24px 22px; font-family: "Italiana", serif; font-size: 21px; color: var(--ed-bone); }

/* ── wishes ── */
.ed-wish-form { margin-bottom: 0; }
.ed-wishes { display: grid; gap: 0; margin: 20px 0 16px; border-top: 1px solid var(--ed-line); }
[data-wishes-list] .wish { padding: 16px 22px 14px; border-bottom: 1px solid var(--ed-line); }
[data-wishes-list] .wish h4 { font-family: "Italiana", serif; font-weight: 400; font-size: 17px; color: var(--ed-bone); letter-spacing: .03em; }
[data-wishes-list] .wish p { font-size: 12.5px; line-height: 1.65; margin-top: 4px; }
[data-wishes-list] .wish time { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-top: 7px; }
.ed-more {
  display: block; margin: 0 22px; appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--ed-line); color: var(--ed-mut); font-family: "Archivo", sans-serif;
  font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; padding: 11px 24px;
}

/* ── amplop ── */
.ed-amplop { background: var(--ed-ink-2); }
.ed-amplop-note { padding: 0 22px; font-size: 12.5px; line-height: 1.7; max-width: 38ch; margin-bottom: 20px; }
.ed-envs { display: grid; gap: 10px; padding: 0 22px; }
.ed-env { border: 1px solid var(--ed-line); padding: 18px 18px 15px; }
.ed-env-name { font-size: 10.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; }
.ed-env-num { font-family: "Italiana", serif; font-size: 24px; letter-spacing: .06em; color: var(--ed-bone); margin-top: 8px; }
.ed-env-holder { font-size: 11.5px; margin-top: 3px; }
.ed-copy {
  margin-top: 12px; appearance: none; cursor: pointer; background: none;
  color: var(--ed-bone); border: 1px solid var(--ed-bone);
  font-family: "Archivo", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; padding: 8px 16px;
}

/* ── closing ── */
.ed-closing { padding-top: 44px; text-align: center; }
.ed-closing-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--ed-mut); }
.ed-closing-names { font-family: "Italiana", serif; font-weight: 400; font-size: 46px; color: var(--ed-bone); margin: 16px 0 10px; }
.ed-closing-date { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; padding-bottom: 34px; }

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

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

.lb-overlay { font-family: "Archivo", sans-serif; background: rgba(11,11,10,.96); }
.map-open { color: var(--ed-bone); }