/* ============================================================
   PRIVÉ — Fashion editorial invitation
   ============================================================ */

:root {
  /* Color — light «paper» default (Plaster). JS theming overrides these. */
  --bg:        #dcd6ca;
  --fg:        #241f19;
  --muted:     rgba(36, 31, 25, 0.50);
  --hover:     rgba(36, 31, 25, 0.74);
  --line:      rgba(36, 31, 25, 0.14);
  --line-soft: rgba(36, 31, 25, 0.10);

  /* Dress-code swatches (overridable via Tweaks) */
  --d1: #F3EFE7;
  --d2: #DCC7A1;
  --d3: #C9B8A0;

  /* Type families */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Editorial label */
  --label-size: 11px;
  --label-track: 0.32em;

  /* Body */
  --body-size: 16px;
  --body-lh:   1.7;

  /* Rhythm */
  --pad-x:       clamp(24px, 6vw, 120px);
  --pad-section: clamp(80px, 14vw, 160px);
  --maxw:        1200px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-weight: 400;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ============================================================
   Editorial chrome — fixed masthead
   ============================================================ */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 34px) var(--pad-x);
  pointer-events: none;
  mix-blend-mode: difference;
}

.masthead__mark,
.masthead__index {
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
}

.masthead__index { font-variant-numeric: tabular-nums; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__line { display: block; }

.hero__day {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(150px, 36vw, 480px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums;
}

.hero__month {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 4.4vw, 52px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding: clamp(22px, 3.2vw, 44px) 0 clamp(14px, 2vw, 26px);
  /* optical alignment: caps tracking pushes the block right */
  padding-left: 0.22em;
}

.hero__year {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(84px, 18vw, 210px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
}

/* Hero entrance (staggered).
   Base state is VISIBLE so content never gets stuck hidden;
   we animate FROM hidden only while the animation is actually running. */
.hero__line {
  opacity: 1;
  transform: none;
}
.hero.is-ready .hero__line {
  animation: heroReveal 1.2s var(--ease) forwards;
}
.hero.is-ready .hero__line--2 { animation-delay: 0.14s; }
.hero.is-ready .hero__line--3 { animation-delay: 0.26s; }

@keyframes heroReveal {
  0%   { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Content blocks
   ============================================================ */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.block {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(32px, 6vw, 90px);
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--line);
}

.block__label {
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-top: 0.6em;
}

.block__content {
  max-width: 760px;
}

/* ---------- Geolocation ---------- */
/* ---------- Location: map link styled as a label, with underline ---------- */
.maplink {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--muted);
  pointer-events: auto;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.maplink:hover { color: var(--hover); border-color: var(--hover); }

/* ---------- Dress code — three fabric images, no text on them ---------- */
.fabrics {
  display: flex;
  gap: clamp(10px, 1.6vw, 18px);
  max-width: 560px;
}
.fabric {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--line-soft);
}
.fabric img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
}
.dress__note {
  margin-top: clamp(22px, 3vw, 34px);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- Transfer ---------- */
.transfer {
  display: flex;
  flex-direction: column;
}
.transfer__row {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.transfer__row:first-child {
  border-top: 1px solid var(--line);
}
.transfer__time {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  min-width: 2.6em;
}
.transfer__city {
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Coordinates ---------- */
.coords {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  margin-top: clamp(24px, 3vw, 38px);
  white-space: nowrap;
}

/* ---------- Organizers ---------- */
.organizers {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vw, 56px);
}
.person__role {
  display: block;
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(10px, 1.4vw, 16px);
}
.person__tel {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--fg);
  transition: color 0.5s var(--ease);
}
a.person__tel:hover { color: var(--hover); }

/* ---------- Address ---------- */
.address__venue {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.address__line {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--muted);
  max-width: 42ch;
}

/* ============================================================
   Paper grain overlay
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
body.no-grain .grain { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) var(--pad-x) clamp(60px, 8vw, 90px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer__mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 0.04em;
  line-height: 1;
}
.footer__meta {
  font-family: var(--sans);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line { opacity: 1; transform: none; }
  .hero.is-ready .hero__line { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root { --body-size: 15px; }

  .block {
    grid-template-columns: 1fr;
    gap: clamp(20px, 6vw, 32px);
  }
  .block__label { padding-top: 0; }

  .hero__month { padding-left: 0.18em; }
}
