:root {
  --ink: #213f63;
  --cream: #f6e4c0;
  --coral: #f49b84;
  --sky-scene: #bbd7eb;
  --sky-top: var(--sky-scene);
  --sky-mid: var(--sky-scene);
  --sky-low: var(--sky-scene);
  --panel: rgba(255, 249, 232, 0.9);
  --shadow: 0 18px 42px rgba(55, 104, 137, 0.16);
  --letter-font: "Gaegu", "Nunito", system-ui, sans-serif;
  --script-font: "Sacramento", "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  color: var(--ink);
  background: var(--sky-scene);
  font-family: "Nunito", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--sky-scene);
}

body::before {
  display: none;
  content: "";
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: clamp(18px, 3vw, 34px) clamp(22px, 4vw, 52px);
  pointer-events: none;
}

.site-header a,
.site-header span,
.site-header button {
  pointer-events: auto;
}

.nav-toggle {
  display: none;
}

.top-nav {
  display: flex;
  gap: clamp(22px, 4vw, 50px);
  align-items: center;
  padding: 12px clamp(16px, 2.6vw, 28px);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--letter-font);
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled .top-nav {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(55, 104, 137, 0.16);
  backdrop-filter: blur(12px);
}

.top-nav a {
  text-decoration: none;
}

.decor-cloud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0.88;
}

.decor-cloud img {
  display: block;
  width: 100%;
  height: auto;
}

.cloud-top-left {
  top: 12vh;
  left: max(64px, calc(50% - 760px));
  width: clamp(150px, 20vw, 285px);
}

.cloud-top-right {
  top: 13vh;
  left: calc(50% + 500px);
  width: clamp(130px, 18vw, 250px);
}

.cloud-mid-right {
  top: 31vh;
  left: calc(50% + 720px);
  width: clamp(82px, 11vw, 150px);
}

.cloud-low-left {
  top: 43vh;
  left: max(18px, calc(50% - 960px));
  width: clamp(88px, 12vw, 150px);
}

.cloud-low-right {
  top: 50vh;
  left: calc(50% + 600px);
  width: clamp(82px, 10vw, 132px);
}

main {
  position: relative;
}

.mockup-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(96px, 11vh, 140px) 18px 0;
}

.hero-copy {
  position: relative;
  z-index: 8;
  display: grid;
  width: min(900px, 92vw);
  justify-items: center;
  text-align: center;
}

.tiny-heart {
  width: clamp(28px, 3vw, 44px);
}

.married-arc {
  position: relative;
  width: min(760px, 88vw);
  height: clamp(96px, 13vw, 150px);
  margin: -10px 0 -2px;
}

.married-arc svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.married-arc text {
  fill: var(--ink);
  font-family: var(--letter-font);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.name-banner {
  width: min(850px, 88vw);
  margin: -18px 0 -2px;
  filter: drop-shadow(0 14px 18px rgba(70, 108, 122, 0.18));
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wedding-date {
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--letter-font);
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wedding-place {
  margin: -6px 0 0;
  color: var(--ink);
  font-family: var(--script-font);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.divider-heart {
  display: grid;
  grid-template-columns: minmax(48px, 84px) auto minmax(48px, 84px);
  gap: 16px;
  align-items: center;
  margin: 20px 0 18px;
}

.divider-heart span {
  height: 2px;
  background: rgba(80, 147, 190, 0.34);
}

.divider-heart img {
  width: 34px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}

.asset-pill {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-width: clamp(300px, 28vw, 380px);
  min-height: clamp(60px, 6vw, 74px);
  align-items: center;
  justify-content: center;
  padding: 12px clamp(36px, 4vw, 52px);
  background: url("/assets/pill.png") center / 100% 100% no-repeat;
  color: var(--ink);
  font-family: var(--letter-font);
  font-size: clamp(1.2rem, 1.38vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  filter: drop-shadow(0 9px 12px rgba(93, 83, 55, 0.12));
}

.globe-art {
  position: relative;
  z-index: 3;
  display: block;
  width: 100vw;
  height: auto;
  max-width: none;
  margin-top: clamp(56px, 7vh, 104px);
  pointer-events: none;
  transform: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--letter-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: url("/assets/pill.png") center / 100% 100% no-repeat;
  color: var(--ink);
  font-family: var(--letter-font);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  filter: drop-shadow(0 9px 12px rgba(93, 83, 55, 0.12));
}

.login-body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--sky-scene);
  color: var(--ink);
}

.login-body::before {
  position: fixed;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 26%, rgba(246, 252, 255, 0.42), rgba(246, 252, 255, 0) 34%),
    linear-gradient(180deg, rgba(187, 215, 235, 0.98), rgba(187, 215, 235, 1));
  content: "";
  pointer-events: none;
}

.login-cloud {
  position: fixed;
  z-index: 1;
  width: clamp(150px, 19vw, 280px);
  opacity: 0.76;
  pointer-events: none;
}

.login-cloud-left {
  top: 17vh;
  left: max(-36px, calc(50% - 660px));
}

.login-cloud-right {
  right: max(-28px, calc(50% - 660px));
  bottom: 16vh;
}

.login-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 18px;
}

.login-panel {
  display: grid;
  width: min(460px, 100%);
  justify-items: center;
  padding: clamp(30px, 6vw, 50px) clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.74);
  box-shadow: 0 24px 56px rgba(55, 104, 137, 0.18);
  text-align: center;
  backdrop-filter: blur(14px);
}

.login-heart {
  width: 42px;
  margin-bottom: 10px;
  filter: drop-shadow(0 5px 6px rgba(170, 82, 72, 0.14));
}

.login-panel h1 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--script-font);
  font-size: clamp(4.2rem, 14vw, 6.1rem);
  font-weight: 400;
  line-height: 0.9;
  white-space: normal;
}

.login-form {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.login-form label {
  font-family: var(--letter-font);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(33, 63, 99, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font: 700 1.1rem/1 var(--letter-font);
  letter-spacing: 0.04em;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(33, 63, 99, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.36);
}

.login-form button {
  min-height: 62px;
  width: 100%;
  cursor: pointer;
}

.login-error {
  margin: 8px 0 0;
  color: #9e2f2d;
  font-family: var(--letter-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: inline-grid;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(55, 104, 137, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
    gap: 4px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .top-nav {
    position: absolute;
    top: 66px;
    right: 14px;
    display: grid;
    width: min(270px, calc(100vw - 28px));
    gap: 8px;
    padding: 16px 18px;
    border-color: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(55, 104, 137, 0.18);
    text-align: right;
    font-size: 1.08rem;
    line-height: 1.1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
    backdrop-filter: blur(12px);
  }

  .site-header.is-open .top-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mockup-hero {
    min-height: 100svh;
    padding-top: 84px;
  }

  .hero-copy {
    margin-bottom: clamp(44px, 7vh, 104px);
  }

  .cloud-top-left {
    top: 15vh;
    left: -80px;
  }

  .cloud-top-right {
    top: 16vh;
    left: auto;
    right: 0;
  }

  .cloud-mid-right,
  .cloud-low-left,
  .cloud-low-right {
    display: none;
  }

  .globe-art {
    margin-top: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px;
  }

  .top-nav {
    width: min(270px, calc(100vw - 28px));
  }

  .top-nav a,
  .top-nav span {
    max-width: none;
  }

  .decor-cloud {
    opacity: 0.72;
  }

  .mockup-hero {
    min-height: 100svh;
    padding: 78px 12px 0;
  }

  .hero-copy {
    width: min(430px, 100%);
  }

  .married-arc {
    width: min(390px, 96vw);
    height: 86px;
    margin: -8px 0 0;
  }

  .married-arc text {
    font-size: 24px;
    letter-spacing: 0.075em;
  }

  .name-banner {
    width: min(460px, 100vw);
    max-width: 100%;
    margin: -4px 0 0;
  }

  .wedding-date {
    font-size: 1.45rem;
    letter-spacing: 0.16em;
  }

  .wedding-place {
    font-size: 2.1rem;
  }

  .button-row {
    width: 100%;
    gap: 10px;
  }

  .asset-pill {
    max-width: 88vw;
    min-width: min(300px, 88vw);
    min-height: 56px;
    padding: 12px 34px;
    font-size: 1.08rem;
  }

  .globe-art {
    margin-top: auto;
  }
}

@media (max-width: 380px) {
  .top-nav {
    width: min(250px, calc(100vw - 28px));
    font-size: 1rem;
  }

  .mockup-hero {
    padding-top: 76px;
  }

  .married-arc {
    height: 78px;
  }

  .married-arc text {
    font-size: 21px;
  }

  .wedding-date {
    font-size: 1.3rem;
  }

  .wedding-place {
    font-size: 1.9rem;
  }

  .asset-pill {
    min-width: min(270px, 88vw);
    padding: 11px 28px;
    font-size: 1rem;
  }
}
