/* --- Custom font: Milton Two by Youssef Habchi (personal use license) --- */
@font-face {
  font-family: "Milton Two";
  src: url("fonts/Milton_Two.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Milton Two";
  src: url("fonts/Milton_Two_Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens: dark green + margarita palette --- */
:root {
  /* palette:
     --cream: #f3f0e4;   (cached; original text/lace color)
     --dark: #27301B;    (background)
     --olive: #41521E;   (reserve)
     --chartreuse: #909632; (reserve accent)
     --sage: #99A558;    (reserve)
     --margarita: #D8DDA8; (current text/lace)
  */
  --ink: #f3f0e4;              /* cream — text */
  --paper: #6E7A3D;             /* darkened sage — background */
  --accent: #f3f0e4;            /* cream */
  --accent-deep: #f3f0e4;      /* cream */
  --muted: #f3f0e4;             /* cream */
  --display: "Milton Two", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

/* --- Nav toggle (hamburger icon, positioned clear of the lace frame) --- */
.nav-toggle {
  position: fixed;
  top: 155px;
  left: 155px;
  z-index: 30;
  width: 34px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

body.nav-open .nav-toggle {
  visibility: hidden;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  opacity: 1;
  outline: none;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--ink);
}

.nav-toggle__bar:nth-child(2) {
  width: 70%;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .nav-toggle {
    top: 75px;
    left: 75px;
    width: 28px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .nav-toggle {
    top: 60px;
    left: 60px;
    width: 24px;
    height: 18px;
  }
}

/* --- Full-screen menu overlay --- */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.nav-menu[hidden] {
  display: none;
}

.nav-close {
  position: absolute;
  top: 155px;
  left: 155px;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-close:hover,
.nav-close:focus-visible {
  opacity: 1;
  outline: none;
}

.nav-close__bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--ink);
  transform-origin: center;
}

.nav-close__bar:nth-child(1) { transform: rotate(45deg); }
.nav-close__bar:nth-child(2) { transform: rotate(-45deg); }

.nav-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.nav-menu__list a {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-menu__list a:hover,
.nav-menu__list a:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 700px) {
  .nav-close {
    top: 75px;
    left: 75px;
  }
}

@media (max-width: 420px) {
  .nav-close {
    top: 60px;
    left: 60px;
  }
}

body.nav-open {
  overflow: hidden;
}


html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

/* --- Hero layout --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

@media (max-width: 700px) {
  .hero {
    padding: 6rem 5rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 5rem 3.5rem;
  }
}

/* --- Content page layout (accommodations, schedule, etc.) --- */
.page {
  min-height: 100vh;
  padding: 220px 1.5rem 200px;
  max-width: 820px;
  margin: 0 auto;
}

.page__header {
  text-align: center;
  margin-bottom: 5rem;
}

.page__header .names {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1.15;
  word-spacing: normal;
}

.prose {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.lodging {
  margin-top: 6rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  text-align: left;
}

.section-lede {
  font-family: var(--serif);
  font-style: italic;
  text-align: left;
  font-size: 1.15rem;
  opacity: 0.75;
  margin: 0 0 1.5rem;
}

.lodging__item {
  margin-top: 1.5rem;
}

.lodging__item:first-of-type {
  margin-top: 0;
}

.lodging__name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.lodging__name a:hover,
.lodging__name a:focus-visible {
  opacity: 1;
  outline: none;
}

.lodging__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.lodging__name em {
  font-style: italic;
}

.lodging__desc {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 700px) {
  .page {
    padding: 100px 5rem 100px;
  }
  .page__header {
    margin-bottom: 3rem;
  }
  .page__header .names {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  .lodging {
    margin-top: 4rem;
  }
  .prose {
    font-size: 1.05rem;
  }
  .lodging__name {
    font-size: 1.05rem;
  }
  .lodging__desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 80px 3.5rem 80px;
  }
}

/* --- Lace trim: strips on all four edges --- */
.lace-trim {
  position: fixed;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.6s ease;
}

body.in-gate .lace-trim {
  opacity: 0;
}

.photo-lace {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.lace-trim.left,
.lace-trim.right {
  top: 0;
  bottom: 0;
  width: 140px;
  background-image: url("images/lace.png");
  background-repeat: repeat-y;
  background-size: 220px auto;
  overflow: hidden;
  clip-path: polygon(140px 0, 0 140px, 0 calc(100% - 140px), 140px 100%);
}
.lace-trim.left  { left: 0;  transform: scaleX(-1); background-position: left top; }
.lace-trim.right { right: 0; background-position: left top; }

.lace-trim.top,
.lace-trim.bottom {
  left: 0;
  right: 0;
  height: 140px;
  background-image: url("images/lace-horizontal.png");
  background-repeat: repeat-x;
  background-size: auto 220px;
  overflow: hidden;
  clip-path: polygon(140px 0, calc(100% - 140px) 0, 100% 140px, 0 140px);
}
.lace-trim.top    { top: 0;    transform: scaleY(-1); background-position: left top; }
.lace-trim.bottom { bottom: 0; background-position: left top; }

@media (max-width: 700px) {
  .lace-trim.left,
  .lace-trim.right {
    width: 60px;
    background-size: 95px auto;
    clip-path: polygon(60px 0, 0 60px, 0 calc(100% - 60px), 60px 100%);
  }
  .lace-trim.top,
  .lace-trim.bottom {
    height: 60px;
    background-size: auto 95px;
    clip-path: polygon(60px 0, calc(100% - 60px) 0, 100% 60px, 0 60px);
  }
}

@media (max-width: 420px) {
  .lace-trim.left,
  .lace-trim.right {
    width: 45px;
    background-size: 70px auto;
    clip-path: polygon(45px 0, 0 45px, 0 calc(100% - 45px), 45px 100%);
  }
  .lace-trim.top,
  .lace-trim.bottom {
    height: 45px;
    background-size: auto 70px;
    clip-path: polygon(45px 0, calc(100% - 45px) 0, 100% 45px, 0 45px);
  }
}


.names {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 700px) {
  .names {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  .names .amp {
    margin: 0.25rem 0;
  }
}

.hero .names > span:not(.amp) {
  word-spacing: -0.2em;
}

.amp {
  font-family: var(--display);
  color: var(--accent-deep);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  opacity: 0.85;
}

.date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1rem;
}

.date-divider {
  color: var(--accent);
}

.venue {
  margin: 2.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--muted);
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.venue-place {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1rem;
  opacity: 0.9;
}

.swans {
  display: block;
  margin: 2.5rem auto 0;
  width: min(260px, 45vw);
  height: auto;
  opacity: 0.9;
}

/* --- The Details link on landing page --- */
.details-link {
  display: inline-block;
  position: absolute;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.details-link .arrow {
  display: inline-block;
  margin-left: -0.2em;
  width: 1.4em;
  height: 0.6em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.details-link--down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.details-link .arrow--down {
  width: 0.6em;
  height: 1.4em;
  margin-left: 0;
}

.details-link:hover,
.details-link:focus-visible {
  opacity: 1;
  outline: none;
}

.details-link:hover .arrow,
.details-link:focus-visible .arrow {
  transform: translateX(0.25em);
}

.details-link:hover .arrow--down,
.details-link:focus-visible .arrow--down {
  transform: translateY(0.35em);
}

/* --- Password gate form --- */
.gate-split {
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 3rem 3rem;
}

.gate-photo {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-photo__frame {
  position: relative;
  display: inline-block;
  max-width: calc(100% - 120px);
  max-height: 72vh;
}

.gate-photo__frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  object-fit: cover;
}

.photo-lace {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.gate-photo__frame img {
  position: relative;
  z-index: 1;
}
.photo-lace.left,
.photo-lace.right {
  top: -60px;
  bottom: -60px;
  width: 60px;
  background-image: url("images/lace.png");
  background-repeat: repeat-y;
  background-size: 120px auto;
}
.photo-lace.left {
  left: -60px;
  background-position: left top;
  clip-path: polygon(0 0, 60px 60px, 60px calc(100% - 60px), 0 100%);
}
.photo-lace.right {
  right: -60px;
  background-position: right top;
  clip-path: polygon(60px 0, 60px 100%, 0 calc(100% - 60px), 0 60px);
}

.photo-lace.top,
.photo-lace.bottom {
  left: -60px;
  right: -60px;
  height: 60px;
  background-image: url("images/lace-horizontal.png");
  background-repeat: repeat-x;
  background-size: auto 120px;
}
.photo-lace.top {
  top: -60px;
  background-position: left top;
  clip-path: polygon(0 0, 100% 0, calc(100% - 60px) 60px, 60px 60px);
}
.photo-lace.bottom {
  bottom: -60px;
  background-position: left bottom;
  clip-path: polygon(60px 0, calc(100% - 60px) 0, 100% 60px, 0 60px);
}

.gate-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gate-content > * {
  max-width: 380px;
  width: 100%;
}

@media (max-width: 800px) {
  .gate-split {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .gate-photo {
    max-width: 70vw;
  }
  .gate-photo img {
    max-height: 45vh;
  }
}

.gate-copy {
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  font-size: 1.35rem;
  color: var(--muted);
  opacity: 0.85;
  margin: 2.5rem 0 2.5rem;
  line-height: 1.5;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(320px, 80vw);
}

.gate-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  letter-spacing: 0.1em;
}

.gate-input::placeholder {
  color: var(--ink);
  opacity: 0.4;
  font-style: italic;
  letter-spacing: normal;
}

.gate-input:focus {
  background-color: rgba(243, 240, 228, 0.06);
}

.gate-button {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0.5rem 0.5rem 0.5rem 0.95rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.gate-button:hover,
.gate-button:focus-visible {
  opacity: 1;
  outline: none;
}

.gate-button .arrow {
  display: inline-block;
  margin-left: -0.2em;
  width: 1.4em;
  height: 0.6em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.gate-button:hover .arrow,
.gate-button:focus-visible .arrow {
  transform: translateX(0.25em);
}

.gate-error {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden;
}

.gate-error[hidden] {
  display: block !important;
}

.gate-error:not([hidden]) {
  opacity: 0.75;
  transform: translateY(0);
  visibility: visible;
}

