/* Fonts are hosted locally, including the extended Latin glyphs used in Lithuanian. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --green: #2f3e36;
  --cream: #f4efe6;
  --gold: #a98b4f;
  --light-gold: #cdb98a;
  background: var(--green);
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--cream); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--light-gold); }
a:focus-visible { outline: 2px solid var(--light-gold); outline-offset: 4px; }

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/courtyard.jpg") center / cover no-repeat;
  filter: blur(28px) brightness(.5);
  transform: scale(1.12);
}

.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(47 62 54 / 42%);
}

.scene {
  position: relative;
  width: min(100%, 150vh);
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  overflow: hidden;
  background: var(--green);
}

.courtyard {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fade-in 1.4s ease-out both;
}

.photo-tint { position: absolute; inset: 0; background: rgb(47 62 54 / 8%); }
.title {
  position: absolute;
  top: 3.2%;
  left: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  animation: rise-in 1s .7s ease-out both;
}

.title-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2cqw, 18px);
  max-width: 100%;
  padding: clamp(12px, 1.6cqw, 26px) clamp(20px, 4.1cqw, 60px);
  border: 2px solid var(--gold);
  background: rgb(47 62 54 / 72%);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(30px, 4.2cqw, 62px);
  line-height: 1.05;
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
}

.title-rule { width: clamp(80px, 9.5cqw, 140px); height: 2px; background: var(--gold); }
.address {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1.2cqw, 18px);
  line-height: 1.2;
  letter-spacing: .27em;
  text-align: center;
}

.contact-band {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 40px;
  width: 100%;
  padding: clamp(14px, 2cqw, 30px) clamp(20px, 4.2cqw, 64px);
  border-top: 2px solid var(--gold);
  background: rgb(47 62 54 / 80%);
  animation: rise-in 1s 1.2s ease-out both;
}

.intro {
  flex: 1 1 340px;
  max-width: 58cqw;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6cqw, 26px);
  line-height: 1.25;
}

.contacts { display: flex; flex: 0 0 auto; flex-direction: column; gap: 2px; }
.contacts h2 {
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .3em;
  color: var(--light-gold);
}

.contact-links { display: flex; flex-wrap: wrap; column-gap: 32px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 400;
  font-size: clamp(15px, 1.3cqw, 19px);
}

.mobile-break { display: none; }

/* Phones and portrait tablets use the whole viewport instead of a scaled artboard. */
@media (max-width: 899px), (max-width: 1100px) and (orientation: portrait) {
  .landing::before, .landing::after, .photo-tint { display: none; }
  .landing { min-height: 0; }
  .scene {
    display: grid;
    grid-template-rows: minmax(300px, 1fr) auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    aspect-ratio: auto;
  }

  .courtyard {
    position: relative;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-position: 50% 48%;
  }

  .title {
    top: max(24px, env(safe-area-inset-top));
    z-index: 2;
    padding: 0 20px;
  }

  .title-panel {
    width: min(100%, 480px);
    gap: 12px;
    padding: 18px clamp(16px, 5vw, 36px);
    background: rgb(47 62 54 / 85%);
  }

  h1 { font-size: clamp(25px, 6.4vw, 42px); letter-spacing: .1em; }
  .title-rule { flex-shrink: 0; width: clamp(64px, 18vw, 100px); height: 1px; }
  .address { font-size: clamp(10px, 2.5vw, 13px); letter-spacing: .23em; }
  .contact-band {
    position: relative;
    grid-row: 2;
    isolation: isolate;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 26px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: var(--green);
    text-align: center;
  }

  .contact-band::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -2;
    background: url("./assets/courtyard.jpg") 50% 100% / cover no-repeat;
    filter: blur(16px) brightness(.4) saturate(.95);
  }

  .contact-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(47 62 54 / 65%);
  }

  .intro {
    flex: none;
    width: 100%;
    max-width: 32ch;
    font-size: clamp(21px, 4.8vw, 27px);
    line-height: 1.35;
    text-wrap: pretty;
  }

  .contacts { flex: none; align-items: center; gap: 8px; }
  .contacts h2 { font-size: 10px; letter-spacing: .26em; }
  .contact-links { justify-content: center; gap: 4px 24px; }
  .contact-links a { min-height: 44px; font-size: 15px; white-space: nowrap; }
  .mobile-break { display: none; }
}

/* Narrow phones get a separate, easy-to-tap row for each contact. */
@media (max-width: 479px) and (orientation: portrait) {
  .contact-links { flex-direction: column; align-items: center; gap: 0; }
  .title { top: max(20px, env(safe-area-inset-top)); }
  .title-panel { gap: 10px; padding-block: 16px; }
  .contact-band { gap: 20px; padding-top: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Short landscape screens keep the photograph and contacts together. */
@media (max-height: 600px) and (orientation: landscape) {
  .scene {
    display: block;
    width: 100%;
    min-height: max(360px, 100vh);
    min-height: max(360px, 100svh);
    aspect-ratio: auto;
  }

  .courtyard { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 45%; }
  .title { top: max(12px, env(safe-area-inset-top)); padding-inline: 20px; }
  .title-panel { width: auto; gap: 7px; padding: 12px 28px; }
  h1 { font-size: clamp(25px, 4vw, 36px); }
  .title-rule { width: 70px; height: 1px; }
  .address { font-size: 10px; }
  .contact-band {
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 12px max(24px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: rgb(47 62 54 / 92%);
    text-align: left;
  }

  .intro { max-width: 46ch; font-size: 18px; line-height: 1.35; }
  .contacts { align-items: flex-start; gap: 4px; }
  .contacts h2 { font-size: 10px; }
  .contact-links { gap: 0 20px; }
  .contact-links a { min-height: 44px; font-size: 14px; }
}

@media (max-height: 600px) and (max-width: 700px) and (orientation: landscape) {
  .contact-links { flex-direction: column; }
  .contact-band { gap: 20px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .courtyard, .title, .contact-band { animation: none; }
  a { transition: none; }
}

/* A quiet branded introduction; only shown when JavaScript enables it. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--green);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 0s 700ms;
}

.is-loading { overflow: hidden; }
.is-loading .preloader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.preloader-brand { width: min(100%, 440px); text-align: center; }
.preloader-name {
  margin: 0;
  padding-left: .12em;
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.2;
  letter-spacing: .12em;
}

.preloader-line {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100px;
  height: 1px;
  margin: 24px auto 20px;
  background: rgb(169 139 79 / 25%);
}

.preloader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light-gold);
  transform: scaleX(.1);
  transform-origin: left;
  animation: loading-line 1600ms ease-in-out infinite;
}

.preloader-address {
  margin: 0;
  padding-left: .27em;
  color: var(--light-gold);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .27em;
}

.is-loading .courtyard, .is-loading .title, .is-loading .contact-band {
  animation-play-state: paused;
}

@keyframes loading-line {
  0% { transform: translateX(-100%) scaleX(.3); }
  50% { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(100%) scaleX(.3); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader-line::after { animation: none; transform: none; }
}

