/* =========================================================
   MARIA KONIDI — Global design tokens + shared utilities
   Loaded on every front-end page and in the Breakdance builder.
   Element-specific CSS lives in each element's default.css.
   ========================================================= */

:root {
  --ivory: #fbf9f6;
  --ivory-deep: #f3efe8;
  --ink: #1f1d1a;
  --ink-soft: #4a463f;
  --muted: #8a8176;
  --line: #e3ddd2;
  --gold: #a98c63;
  --gold-soft: #c4ac86;
  --white: #ffffff;
  --black: #14110d;

  --serif: "Cormorant Garamond", "GFS Didot", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 108px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Base reset ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body.breakdance,
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ----------------------------- Type ----------------------------- */
.mk-scope h1,
.mk-scope h2,
.mk-scope h3,
.mk-scope h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  font-family: var(--serif);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink-soft);
  font-weight: 400;
}

/* ----------------------------- Layout ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 11vw, 150px); }
.center { text-align: center; }
.divider { width: 56px; height: 1px; background: var(--gold); margin: 26px auto; }
.divider.left { margin-inline: 0; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 17px 38px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Enforce our button colours over Breakdance's default link styles.
   BD ships `.breakdance a:hover { color: … }` (specificity 0,2,1) which
   otherwise overrides `.btn:hover` on <a> buttons and turns the text black.
   These `.breakdance a.btn` selectors (0,3,x) win and cover hover/focus. */
.breakdance a.btn,
.breakdance a.btn:hover,
.breakdance a.btn:focus { text-decoration: none; }
.breakdance a.btn { color: var(--ink); }
.breakdance a.btn:hover,
.breakdance a.btn:focus { color: var(--ivory); }
.breakdance a.btn--light { color: #fff; }
.breakdance a.btn--light:hover,
.breakdance a.btn--light:focus { color: var(--ink); }
.breakdance a.btn--solid { color: #fff; }
.breakdance a.btn--solid:hover,
.breakdance a.btn--solid:focus { color: var(--ivory); }

.link-underline {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ----------------------------- Section heading ----------------------------- */
.mk-section-head { }
.mk-section-head .lead { max-width: 46ch; margin-inline: auto; }
.mk-section-head--left { text-align: left; }
.mk-section-head--left .lead { margin-inline: 0; }

/* ----------------------------- Page hero (inner pages) ----------------------------- */
.page-hero { padding: clamp(36px, 5vw, 56px) 0 clamp(36px,6vw,72px); text-align: center; }
.page-hero .eyebrow { display: block; }
.page-hero h1 { margin-top: 14px; }
.page-hero p { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }

/* ----------------------------- Reveal on scroll ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease) var(--reveal-delay, 0s),
    transform 1s var(--ease) var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--from-left { transform: translateX(-36px); }
.reveal--from-right { transform: translateX(36px); }
.reveal--from-left.in,
.reveal--from-right.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------- Lightbox (appended to <body>) ----------------------------- */
.mk-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(15,13,10,.97); display: none; opacity: 0; transition: opacity .45s var(--ease); }
.mk-lightbox.open { display: block; }
.mk-lightbox.show { opacity: 1; }
.mk-lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px clamp(50px, 9vw, 130px); }
.mk-lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); opacity: 0; transition: opacity .4s var(--ease); }
.mk-lightbox__img.ready { opacity: 1; }
.mk-lightbox__close { position: absolute; top: 28px; right: 34px; color:#fff; font-size: 1.8rem; line-height:1; width:48px;height:48px; display:grid;place-items:center; background:none; border:none; cursor:pointer; transition: transform .4s var(--ease), color .4s var(--ease); }
.mk-lightbox__close:hover { transform: rotate(90deg); color: var(--gold-soft); }
.mk-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color:#fff; font-size: 2.2rem; width: 64px; height: 64px; display:grid; place-items:center; background:none; border:none; cursor:pointer; transition: color .35s var(--ease); }
.mk-lightbox__nav:hover { color: var(--gold-soft); }
.mk-lightbox__nav.prev { left: clamp(10px,3vw,40px); }
.mk-lightbox__nav.next { right: clamp(10px,3vw,40px); }
.mk-lightbox__meta { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; }
.mk-lightbox__title { position:absolute; top: 30px; left: 34px; color:#fff; font-family: var(--serif); font-size: 1.3rem; }

/* ----------------------------- Bride story modal (appended to <body>) ----------------------------- */
.mk-modal { position: fixed; inset: 0; z-index: 100000; display:none; }
.mk-modal.open { display:block; }
.mk-modal__overlay { position:absolute; inset:0; background: rgba(15,13,10,.6); opacity:0; transition: opacity .4s var(--ease); }
.mk-modal.show .mk-modal__overlay { opacity:1; }
.mk-modal__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 92vw);
  background: var(--ivory); transform: translateX(100%); transition: transform .55s var(--ease);
  overflow-y: auto; display: grid; grid-template-rows: auto 1fr;
}
.mk-modal.show .mk-modal__panel { transform: none; }
.mk-modal__panel img { width:100%; aspect-ratio: 4/3; object-fit: cover; }
.mk-modal__body { padding: clamp(30px,5vw,54px); }
.mk-modal__body h3 { font-size: 2rem; font-weight: 500; font-family: var(--serif); }
.mk-modal__body .meta { font-size:0.66rem; letter-spacing:0.26em; text-transform:uppercase; color: var(--gold); margin-top: 10px; }
.mk-modal__body blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; color: var(--ink-soft); margin: 28px 0; font-weight:400; }
.mk-modal__body p { color: var(--ink-soft); }
.mk-modal__close { position: absolute; top: 18px; right: 20px; z-index: 2; width: 44px; height: 44px; display:grid; place-items:center; font-size: 1.5rem; background: rgba(255,255,255,.85); border:none; cursor:pointer; border-radius:50%; transition: transform .4s var(--ease); }
.mk-modal__close:hover { transform: rotate(90deg); }
