:root {
  --ink: #0b0c0e;
  --ink-soft: #111316;
  --wine: #3a151c;
  --wine-deep: #241015;
  --gold: #c9ae7b;
  --gold-muted: #9e875f;
  --paper: #eee8df;
  --muted: #a7a199;
  --line: rgba(201, 174, 123, 0.24);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --page: min(1180px, calc(100% - 80px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 18% 34%,
      rgba(88, 32, 42, 0.09),
      transparent 28rem
    ),
    var(--ink);

  color: var(--paper);

  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";

  position: fixed;

  inset: 0;

  z-index: 100;

  pointer-events: none;

  opacity: .12;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");

  mix-blend-mode: soft-light;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 50;

  width: 100%;
  min-height: 76px;

  padding:
    max(18px, env(safe-area-inset-top))
    34px
    16px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 20px;

  color: #fff;

  transition:
    background .45s ease,
    border-color .45s ease,
    min-height .45s ease,
    backdrop-filter .45s ease;

  border-bottom:
    1px solid transparent;
}

.site-header.is-scrolled {
  min-height: 64px;

  background:
    rgba(11, 12, 14, .78);

  border-color:
    rgba(255, 255, 255, .07);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.monogram,
.header-link {
  text-decoration: none;
}

.monogram {
  justify-self: start;

  font-family: var(--serif);

  font-size: 1.08rem;

  letter-spacing: .15em;
}

.header-date,
.header-link {
  font-size: .68rem;
  font-weight: 400;

  letter-spacing: .18em;

  text-transform: uppercase;
}

.header-date {
  justify-self: center;

  color:
    rgba(255, 255, 255, .72);
}

.header-link {
  justify-self: end;

  position: relative;

  padding-bottom: 3px;
}

.header-link::after,
.text-link::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;

  background: currentColor;

  transform: scaleX(1);

  transform-origin: right;

  transition:
    transform .4s var(--ease);
}

.header-link:hover::after,
.text-link:hover::after {
  transform: scaleX(0);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 92svh;

  display: grid;

  place-items: center;

  overflow: hidden;

  isolation: isolate;

  background: #141416;
}

.hero-media,
.hero-shade {
  position: absolute;

  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  height: 100%;

  object-fit: cover;
  object-position: 100% center;

  filter:
    saturate(.58)
    contrast(1.05)
    brightness(.75);

  transform:
    scale(1.035);

  animation:
    heroIn 2.4s var(--ease) forwards;
}

.hero-shade {
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 6, .48) 0%,
      rgba(5, 5, 6, .12) 38%,
      rgba(5, 5, 6, .4) 100%
    ),
    linear-gradient(
      90deg,
      rgba(20, 5, 9, .2),
      transparent 45%,
      rgba(8, 8, 9, .16)
    );
}

.hero-content {
  width:
    min(1040px, calc(100% - 48px));

  padding:
    110px 0 82px;

  text-align: center;

  text-shadow:
    0 4px 28px rgba(0, 0, 0, .3);
}

.eyebrow {
  margin:
    0 0 22px;

  color: var(--gold);

  font-size: .67rem;
  font-weight: 500;

  line-height: 1.4;

  letter-spacing: .25em;

  text-transform: uppercase;
}

.hero-eyebrow {
  color:
    rgba(255, 255, 255, .75);

  animation:
    fadeUp 1s .35s both;
}

.hero-title {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(4.5rem, 10vw, 9.8rem);

  font-weight: 400;

  line-height: .76;

  letter-spacing: -.04em;

  color: #f5f1eb;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-title span:first-child {
  transform:
    translateX(-7%);

  animation:
    fadeUp 1.2s .45s both;
}

.hero-title span:last-child {
  transform:
    translateX(7%);

  animation:
    fadeUp 1.2s .65s both;
}

.hero-title em {
  margin:
    .02em 0 -.04em;

  color: var(--gold);

  font-size: .38em;

  font-weight: 400;

  line-height: 1;

  animation:
    fadeUp 1s .55s both;
}

.hero-line {
  width: 1px;
  height: 38px;

  margin:
    26px auto 18px;

  background:
    rgba(255, 255, 255, .48);
}

.hero-date,
.hero-place {
  margin: 0;

  font-size: .72rem;
  font-weight: 400;

  letter-spacing: .2em;

  text-transform: uppercase;
}

.hero-place {
  margin-top: 5px;

  color:
    rgba(255, 255, 255, .62);

  font-size: .62rem;
}

.scroll-mark {
  position: absolute;

  right: 34px;
  bottom: 28px;

  display: flex;

  align-items: center;

  gap: 12px;

  color:
    rgba(255, 255, 255, .58);

  font-size: .58rem;

  letter-spacing: .18em;

  text-decoration: none;
  text-transform: uppercase;

  writing-mode: vertical-rl;
}

.scroll-mark i {
  display: block;

  width: 1px;
  height: 34px;

  background:
    rgba(255, 255, 255, .45);

  animation:
    linePulse 1.8s ease-in-out infinite;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-pad {
  padding:
    clamp(90px, 10vw, 150px) 0;
}

.section-pad--tight {
  padding-top: 20px;
}

.narrow {
  width:
    min(700px, calc(100% - 48px));

  margin:
    0 auto;

  text-align: center;
}

.display-title {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(2.75rem, 5vw, 5.2rem);

  font-weight: 400;

  line-height: .98;

  letter-spacing: -.025em;
}

.lead {
  max-width: 570px;

  margin:
    34px auto 0;

  color: var(--muted);

  font-size: .98rem;

  line-height: 1.9;
}

.signature {
  margin:
    36px 0 0;

  color: var(--gold);

  font-family: var(--serif);

  font-size: 1.6rem;

  font-style: italic;
}


/* =========================================================
   EDITORIAL
========================================================= */

.editorial {
  width: var(--page);

  margin:
    0 auto;
}

.editorial-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(280px, .8fr);

  align-items: center;

  gap:
    clamp(50px, 8vw, 110px);
}

.editorial-photo {
  position: relative;

  margin: 0;
}

.editorial-photo::before {
  content: "";

  position: absolute;

  inset:
    14px -14px -14px 14px;

  z-index: -1;

  border:
    1px solid var(--line);
}

.editorial-photo img {
  aspect-ratio: 1.2 / 1;

  object-fit: cover;

  filter:
    saturate(.55)
    contrast(1.03)
    brightness(.77);
}

.editorial-photo figcaption {
  margin-top: 18px;

  color: #77736e;

  font-size: .61rem;

  letter-spacing: .18em;

  text-transform: uppercase;
}

.editorial-copy {
  max-width: 430px;
}

.editorial-number {
  display: block;

  margin-bottom: 46px;

  color: #4f4d49;

  font-family: var(--serif);

  font-size: 1.35rem;
}

.editorial-copy blockquote {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(2rem, 3.2vw, 3.7rem);

  font-weight: 400;

  font-style: italic;

  line-height: 1.04;
}


/* =========================================================
   DETAILS
========================================================= */

.details {
  width: var(--page);

  margin:
    0 auto;
}

.section-heading {
  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 40px;

  margin-bottom: 46px;

  padding-bottom: 28px;

  border-bottom:
    1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 1px;

  background: var(--line);

  border:
    1px solid var(--line);
}

.detail-card {
  position: relative;

  min-height: 330px;

  padding: 34px;

  overflow: hidden;

  background: #0e1012;
}

.detail-card--wine {
  background:
    linear-gradient(
      145deg,
      #3a151c 0%,
      #261015 100%
    );
}

.detail-index {
  color: #5d5a55;

  font-family: var(--serif);

  font-size: .95rem;
}

.detail-card--wine .detail-index {
  color:
    rgba(255, 255, 255, .32);
}

.detail-time {
  margin:
    54px 0 2px;

  color: var(--gold);

  font-size: .66rem;
  font-weight: 500;

  letter-spacing: .2em;

  text-transform: uppercase;
}

.detail-card h3 {
  margin:
    0 0 14px;

  font-family: var(--serif);

  font-size: 2.35rem;

  font-weight: 400;

  line-height: 1;
}

.detail-card > p:last-of-type {
  margin: 0;

  color: #95918b;

  font-size: .85rem;

  line-height: 1.75;
}

.detail-card--wine > p:last-of-type {
  color:
    rgba(255, 255, 255, .58);
}

.palette {
  display: flex;

  gap: 9px;

  margin-top: 24px;
}

.palette-dot {
  width: 25px;
  height: 25px;

  border:
    1px solid rgba(255, 255, 255, .16);

  border-radius: 50%;

  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .08);
}


/* =========================================================
   LOCATION
========================================================= */

.venue {
  padding-top: 30px;
}

.venue-inner {
  width:
    min(900px, calc(100% - 48px));

  margin:
    0 auto;

  padding:
    clamp(44px, 6vw, 72px);

  display: grid;

  grid-template-columns:
    .55fr 1.45fr;

  align-items: center;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}

.venue-date {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  padding-right: 48px;

  border-right:
    1px solid var(--line);
}

.venue-date span {
  font-family: var(--serif);

  font-size:
    clamp(5rem, 9vw, 8rem);

  line-height: .72;
}

.venue-date small {
  margin-top: 24px;

  color: var(--gold);

  font-size: .6rem;

  letter-spacing: .2em;
}

.venue-copy {
  padding-left:
    clamp(40px, 6vw, 78px);
}

.venue-copy h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(2.6rem, 5vw, 4.6rem);

  font-weight: 400;

  line-height: 1;
}

.venue-copy > p:not(.eyebrow) {
  margin:
    14px 0 28px;

  color: var(--muted);

  font-size: .9rem;
}

.text-link {
  position: relative;

  display: inline-block;

  padding-bottom: 4px;

  color: var(--gold);

  font-size: .68rem;
  font-weight: 500;

  letter-spacing: .16em;

  text-decoration: none;
  text-transform: uppercase;
}


/* =========================================================
   CLOSING
========================================================= */

.closing {
  position: relative;

  width:
    calc(100% - 48px);

  max-width: 1380px;

  min-height:
    min(72svh, 760px);

  margin:
    20px auto 0;

  display: grid;

  place-items: center;

  overflow: hidden;

  text-align: center;
}

.closing-photo,
.closing-shade {
  position: absolute;

  inset: 0;

  height: 100%;
}

.closing-photo {
  object-fit: cover;

  object-position: center;

  filter:
    grayscale(1)
    contrast(1.05)
    brightness(.68);
}

.closing-shade {
  background:
    linear-gradient(
      180deg,
      rgba(6, 6, 7, .14),
      rgba(6, 6, 7, .54)
    );
}

.closing-content {
  position: relative;

  z-index: 2;

  width:
    min(700px, calc(100% - 42px));
}

.closing-content .eyebrow {
  color:
    rgba(255, 255, 255, .68);
}

.closing-content h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 6vw, 6rem);

  font-weight: 400;

  line-height: .9;

  letter-spacing: -.03em;
}

.closing-content > p:last-child {
  margin:
    28px 0 0;

  color: var(--gold);

  font-family: var(--serif);

  font-size: 1.45rem;

  font-style: italic;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  width:
    min(900px, calc(100% - 48px));

  margin:
    0 auto;

  padding:
    64px 0
    max(38px, env(safe-area-inset-bottom));

  text-align: center;
}

.footer-couple {
  color: var(--gold);

  font-family: var(--serif);

  font-size: 1.5rem;

  letter-spacing: .12em;
}

.site-footer > p {
  margin:
    8px 0 0;

  color: #706d68;

  font-size: .62rem;

  letter-spacing: .16em;

  text-transform: uppercase;
}

.creator {
  width: max-content;

  margin:
    42px auto 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  color: #67645f;

  font-size: .56rem;

  letter-spacing: .18em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    opacity .3s ease;
}

.creator:hover {
  opacity: .68;
}

.creator img {
  width: auto;

  max-width: 108px;
  height: 28px;

  object-fit: contain;
}

.copyright {
  margin-top:
    34px !important;

  opacity: .65;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(28px);

  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes heroIn {

  from {
    transform: scale(1.09);
    opacity: .3;
  }

  to {
    transform: scale(1.035);
    opacity: 1;
  }

}

@keyframes fadeUp {

  from {
    opacity: 0;
    translate: 0 22px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }

}

@keyframes linePulse {

  0%,
  100% {
    transform: scaleY(.6);
    opacity: .45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  :root {
    --page:
      min(100% - 44px, 760px);
  }


  .editorial-grid {
    grid-template-columns: 1fr;

    gap: 54px;
  }


  .editorial-photo {
    width: 84%;
  }


  .editorial-copy {
    width: 72%;

    margin-left: auto;
  }


  .editorial-number {
    margin-bottom: 28px;
  }


  .detail-grid {
    grid-template-columns: 1fr;
  }


  .detail-card {
    min-height: 0;

    padding: 30px;
  }


  .detail-time {
    margin-top: 32px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  :root {
    --page:
      calc(100% - 32px);
  }


  body {
    font-size: 16px;
  }


  /* HEADER */

  .site-header {
    min-height: 62px;

    padding:
      max(15px, env(safe-area-inset-top))
      18px
      13px;

    grid-template-columns:
      1fr 1fr;
  }


  .header-date {
    display: none;
  }


  .header-link {
    font-size: .62rem;
  }


  /* HERO */

  .hero {
    min-height: 88svh;
  }


  .hero-media img {

    /*
      На мобильном экране исходная фотография горизонтальная,
      а пара расположена в правой части кадра.

      Поэтому точка кадрирования смещена вправо,
      чтобы оба человека полностью попадали в видимую область.
    */

    object-position:
      88% center;

    /*
      На десктопе фотография слегка увеличивается.
      На телефоне увеличение отключаем,
      чтобы не обрезать людей ещё сильнее.
    */

    animation: none;

    transform:
      scale(1);
  }


  .hero-content {
    width:
      calc(100% - 28px);

    padding-top: 86px;
  }


  .hero-title {
    font-size:
      clamp(4rem, 20vw, 6.8rem);
  }


  .hero-title span:first-child,
  .hero-title span:last-child {
    transform: none;
  }


  .scroll-mark {
    right: 16px;

    bottom: 18px;
  }


  .scroll-mark span {
    display: none;
  }


  /* GENERAL */

  .eyebrow {
    margin-bottom: 17px;
  }


  .section-pad {
    padding:
      82px 0;
  }


  .section-pad--tight {
    padding-top: 14px;
  }


  .narrow {
    width:
      calc(100% - 36px);
  }


  .lead {
    margin-top: 26px;

    font-size: .93rem;

    line-height: 1.82;
  }


  /* EDITORIAL */

  .editorial-photo {
    width:
      calc(100% - 14px);
  }


  .editorial-photo img {
    aspect-ratio:
      .92 / 1;
  }


  .editorial-photo::before {
    inset:
      10px -10px -10px 10px;
  }


  .editorial-copy {
    width: 94%;
  }


  /* DETAILS */

  .section-heading {
    display: block;

    margin-bottom: 28px;
  }


  .section-heading .eyebrow {
    margin-bottom: 16px;
  }


  .detail-card {
    padding: 26px;
  }


  .detail-card h3 {
    font-size: 2.1rem;
  }


  /* VENUE */

  .venue {
    padding-top: 0;
  }


  .venue-inner {
    width:
      calc(100% - 32px);

    padding:
      42px 16px;

    grid-template-columns: 1fr;
  }


  .venue-date {
    padding:
      0 0 34px;

    border-right: 0;

    border-bottom:
      1px solid var(--line);
  }


  .venue-date span {
    font-size: 5.5rem;
  }


  .venue-copy {
    padding:
      34px 0 0;
  }


  /* CLOSING */

  .closing {
    width:
      calc(100% - 20px);

    min-height:
      70svh;
  }


  .closing-photo {

    /*
      В финальном кадре пара также расположена
      правее центра фотографии.

      Перемещаем мобильную точку кадрирования,
      не затрагивая десктоп.
    */

    object-position:
      75% center;
  }


  /* FOOTER */

  .site-footer {
    width:
      calc(100% - 32px);

    padding-top: 52px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  /*
    На самых узких телефонах ещё немного смещаем
    первый кадр вправо.
  */

  .hero-media img {
    object-position:
      92% center;
  }


  /*
    Отдельное кадрирование последней фотографии
    для экранов 320–420px.
  */

  .closing-photo {
    object-position:
      70% center;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .01ms !important;
  }


  .reveal {
    opacity: 1;

    transform: none;
  }

}