@import url('aktura.css');

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100%;
}

.body-content {
  position: relative;
  z-index: 1;
}

.all-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  background-color: white;
}

.all-content > :not(.background-stars) {
  position: relative;
  z-index: 1;
}

.background-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.background-stars .star {
  position: absolute;
  display: block;
  width: clamp(18px, 2vw, 36px);
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.star-1 { top: 6%; left: 6%; }
.star-2 { top: 14%; right: 8%; }
.star-3 { top: 24%; left: 7%; }
.star-4 { top: 30%; right: 5%; }
.star-5 { top: 40%; left: 4%; width: clamp(14px, 1.6vw, 24px); }
.star-6 { top: 48%; right: 8%; width: clamp(14px, 1.6vw, 24px); }
.star-7 { top: 58%; left: 6%; }
.star-8 { top: 66%; right: 4%; }
.star-9 { top: 74%; left: 5%; }
.star-10 { top: 82%; right: 7%; }
.star-11 { top: 90%; left: 6%; width: clamp(14px, 1.6vw, 24px); }
.star-12 { top: 94%; right: 4%; width: clamp(14px, 1.6vw, 24px); }

h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 42px;
}

h2 {
    color: #2c3e50;
    font-size: 24px;
}

h3 {
    color: #2c3e50;
    font-size: 18px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

a {
    color: #1461ae;
    font-weight: 400;
    font-style: italic;
}


.rsvp-message {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 14px;
}

button {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 24px;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: none;
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
}

button.scroll-button {    
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
    background-color: white;
    /* border-radius: 999px; */
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 80vw;
    padding: 0.3rem 0.6rem;
}

button.rsvp-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 999px;
    color: white;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    transition: background-color 0.3s ease, color 0.3s ease;
    backdrop-filter: blur(2px);
}

button.scroll-button:hover {
    opacity: 0.8;
}

button.scroll-button img {
    margin-left: 0.5rem;
}

.hero {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;        /* fixed distance below logo */
  width: min(90%, 600px);
  z-index: 3;
}

.logo {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background: rgb(255, 255, 255);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    min-width: 320px;
    max-width: 100%;
    backdrop-filter: blur(8px);
}

/* .banner {
    min-width: 200px;
    max-width: 250px;
    height: auto;
    z-index: 1;
}

.banner-wrap {
    position: relative;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.banner-countdown,
#countdown {
    position: absolute;
    top: 20%;
    color: #2c3e50;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 5;
    text-align: center;
    margin: 0;
} */

#countdown {
    color: #2c3e50;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* .logo-shape {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    border-radius: 999px;
    z-index: -1;
} */

.logo-names {
    font-family: Aktura-Regular, serif;
    font-optical-sizing: auto;
    color: #2c3e50;
    margin-top: .4rem;
    margin-bottom: .5rem;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1.05;
}

.logo-subtitle {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    color: #2c3e50;
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.logo-subtitle#subtle {
    font-weight: 300;
}

@media (max-width: 600px) {
    .hero {
        top: 15%;
        gap: .5rem;
    }

    .logo {
        padding: 1rem 2rem;
        min-width: 260px;
    }

    .logo-names {
        font-size: clamp(1.8rem, 12vw, 3rem);
    }
}

.landing {
    position: relative;
}

.decoration-image {
    position: absolute;
    z-index: 2;
    opacity: 0.90;
}

.decoration-image#moon {
    width: 50vw;
    height: auto;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
}

@media only screen and (min-width: 200px) {
    .decoration-image#moon {
        width: 80vw;
        height: auto;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media only screen and (min-width: 300px) {
    .decoration-image#moon {
        width: 80vw;
        height: auto;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media only screen and (min-width: 500px) {
    .decoration-image#moon {
        width: 50vw;
        height: auto;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media only screen and (min-width: 2000px) {
    .decoration-image#moon {
        width: 60vw;
        height: auto;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media only screen and (min-width: 200px) {
    .decoration-image {
        width: 30px;
        height: auto;
    }
    .decoration-image#sun { top: 15%; left: 10%; }
    .decoration-image#heart { bottom: 35%; left: 50%; transform: translate(-50%, -50%); }
    .decoration-image#cat { bottom: 35%; left: 20%; width: 40px; height: auto; }
    .decoration-image#flower { top: 40%; right: 15%;}
    .decoration-image#stars { top: 15%; right: 7%; }
    .decoration-image#cloud { bottom: 10%; left: 10%; }
    .decoration-image#d20 { top: 30%; left: 25%; width: 25px; height: auto; }
    .decoration-image#fuji { top: 60%; right: 25%; }
    .decoration-image#married { bottom: 20%; left: 30%; width: 45px; height: auto; }
    .decoration-image#paw { top: 80%; right: 30%; }
    .decoration-image#rainbow { bottom: 30%; right: 7%;}
    .decoration-image#mugs { top: 25%; right: 25%; }
    .decoration-image#initials { top: 45%; left: 5%; }
    .decoration-image#anniversary { bottom: 10%; right: 5%; transform: translate(-50%, -50%); width: 55px; height: auto; }
}
@media only screen and (min-width: 300px) {
    .decoration-image {
        width: 30px;
        height: auto;
    }
    .decoration-image#sun { top: 15%; left: 10%; }
    .decoration-image#heart { bottom: 35%; left: 50%; transform: translate(-50%, -50%); }
    .decoration-image#cat { bottom: 35%; left: 20%; width: 40px; height: auto; }
    .decoration-image#flower { top: 40%; right: 15%;}
    .decoration-image#stars { top: 15%; right: 7%; }
    .decoration-image#cloud { bottom: 10%; left: 10%; }
    .decoration-image#d20 { top: 30%; left: 25%; width: 25px; height: auto; }
    .decoration-image#fuji { top: 60%; right: 25%; }
    .decoration-image#married { bottom: 20%; left: 30%; width: 45px; height: auto; }
    .decoration-image#paw { top: 80%; right: 30%; }
    .decoration-image#rainbow { bottom: 30%; right: 7%;}
    .decoration-image#mugs { top: 25%; right: 25%; }
    .decoration-image#initials { top: 45%; left: 5%; }
    .decoration-image#anniversary { bottom: 10%; right: 5%; transform: translate(-50%, -50%); width: 55px; height: auto; }
}
@media only screen and (min-width: 700px) {
    .decoration-image {
        width: 100px;
        height: auto;
    }
    .decoration-image#sun { top: 15%; left: 10%; }
    .decoration-image#heart { bottom: 35%; left: 50%; transform: translate(-50%, -50%); }
    .decoration-image#cat { bottom: 35%; left: 20%; width: 120px; height: auto; }
    .decoration-image#flower { top: 40%; right: 15%; }
    .decoration-image#stars { top: 15%; right: 7%; }
    .decoration-image#cloud { bottom: 10%; left: 10%; }
    .decoration-image#d20 { top: 30%; left: 25%; width: 90px; height: auto; }
    .decoration-image#fuji { top: 60%; right: 25%; }
    .decoration-image#married { bottom: 20%; left: 30%; width: 120px; height: auto; }
    .decoration-image#paw { top: 80%; right: 30%; }
    .decoration-image#rainbow { bottom: 30%; right: 7%;}
    .decoration-image#mugs { top: 25%; right: 25%; }
    .decoration-image#initials { top: 45%; left: 5%; }
    .decoration-image#anniversary { bottom: 10%; right: 5%; transform: translate(-50%, -50%); width: 140px; height: auto; }
}


.cover-photo {
    width: 100%;
    height: 100vh;
    min-width: 320px;
    position: relative;
    display: block;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.cover-photo picture, .cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.80);
}

/* .fraunces-h1 {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
}
*/
.fraunces-h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
}

.fraunces-h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
}

.all-content {
    position: relative;
    z-index: 1;
    background-color: white;
    /* border-radius: 999px; */
    opacity: 1;
    transition: opacity 0.3s ease;
    padding-top: 30px;
    padding-left: 10px;
    padding-right: 10px;
}

* {
  box-sizing: border-box;
}

button.scroll-button-small {
    background-color: transparent;
    border: none;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

button.scroll-button-small:hover {
    transform: translateY(3px);
    opacity: 0.9;
}

.divider {
    width: 70vw;
    height: 1px;
    background-color: #2c3e50;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    /* margin: 20px auto; */
}

@media (max-width: 600px) {
    .divider {
        width: 60vw;
    }
}

.block {
    width: 80%;
    padding: 40px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    gap: 20px;
}

.block#divider {
    padding: 0;
    gap: 0;
}

.block-heading {
    flex: 0 0 30%;
    min-width: 0;
    padding: 20px;
}

.block-content {
    flex: 1 1 70%;
    min-width: 0;
    padding: 20px;
    text-align: left;
}


#kingston-image {
    display: block;
    width: min(100%, clamp(220px, 24vw, 320px));
    max-width: 100%;
    height: auto;
    margin: 1rem 0 0.5rem;
    rotate: 2deg;
}

input, textarea {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 16px;
    /* Larger gap after inputs to separate from the next label */
    margin-bottom: 1rem;
}

#guest-names {
    margin-bottom: 10px;
}

/* Guest name fields are generated dynamically; place label and input on one line */
.guest-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    /* larger gap between this pair and the next label/input group */
    margin-bottom: 1rem;
}
.guest-field label {
    margin-bottom: 0; /* no extra gap between label and its input when inline */
    white-space: nowrap;
}
.guest-field input {
    flex: 1 1 auto;
    min-width: 140px;
    margin-bottom: 0; /* handled by .guest-field spacing */
}

/* Make inputs and selects visually match textareas */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    padding: 0.56rem 0.6rem;
    border: 1px solid rgba(44,62,80,0.12);
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(44,62,80,0.04) inset;
    color: #2c3e50;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(20,97,174,0.9);
    box-shadow: 0 0 0 3px rgba(20,97,174,0.08);
}

/* Small space between label and its input */
label {
    display: block;
    margin-bottom: 0.35rem;
}

/* Adjust select spacing to match inputs */
select {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 16px;
    margin-bottom: 1rem;
}

/* Textarea improvements */
textarea {
    padding: 0.6rem;
    border: 1px solid rgba(44,62,80,0.12);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: none;
}
textarea:focus {
    outline: none;
    border-color: rgba(20,97,174,0.9);
    box-shadow: 0 0 0 3px rgba(20,97,174,0.06);
}

/* Submit button style (input[type=submit]) */
input[type="submit"] {
    background-color: #1461ae;
    color: white;
    border: none;
    padding: 0.56rem 1.1rem;
    border-radius: 10px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 10px rgba(20,97,174,0.06);
    transition: opacity 0.12s ease, box-shadow 0.12s ease;
}
input[type="submit"]:hover {
    opacity: 0.95;
}
input[type="submit"]:active {
    opacity: 0.9;
}

/* RSVP feedback message */
.rsvp-message {
    display: inline-block;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-weight: 600;
    color: #1b1b1b;
    background: transparent;
}
.rsvp-message.success {
    color: white;
    background: #28a745;
}
.rsvp-message.error {
    color: white;
    background: #dc3545;
}
.rsvp-message.info {
    color: #1461ae;
    background: rgba(20,97,174,0.06);
}

select {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 14px;
    margin-bottom: 10px;
}

p, label, li {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

label {
    display: block;
}

textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    width: 100%;
}

#subtitle {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: italic;
    font-variation-settings:
        "wdth" 100;
}

form {
    margin-top: 30px;
}

@media (max-width: 800px) {
  .block {
    flex-flow: column nowrap;
    width: 100%;
    padding: 20px;
    gap: 0;
  }

  .block#divider {
    flex-flow: row nowrap;
  }

  .block-heading,
  .block-content {
    flex: 1 1 100%;
    width: 100%;
    padding-right: 10px;
    padding-top: 0;
  }
}

#rsvp.block-content {
    background-color: #3c7d98;
} 

/* .roboto-nav {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
} */
