:root {
    --ink: #171717;
    --soft-ink: rgba(23, 23, 23, .92);
    --weekend: #d88a95;
    --paper: #ffffff;
    --cream: #f6f1eb;
    --dark: #2d211a;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--cream);
    -webkit-text-size-adjust: 100%;
}

body.site-body {
    min-height: 100%;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.wedding-page {
    min-height: 100vh;
    background: var(--cream);
}

.wedding-shell {
    width: 100%;
    max-width: 407px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(41, 32, 27, .08);
}

.section-title {
    margin: 0;
    color: #1a1a1a;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .04em;
    text-align: center;
}

.reveal-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease-out, transform .55s ease-out;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.placeholder-image {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 12px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .7), transparent 35%),
        linear-gradient(145deg, #d6d6d6, #bfbfbf);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

/* 1. Cover */
.cover-screen {
    width: 100%;
    background: #1d1715;
}

.cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 407 / 491;
    overflow: hidden;
}

.cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: cover-zoom 12s ease-out forwards;
}

@keyframes cover-zoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.10); }
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .1), transparent 48%, rgba(0, 0, 0, .3));
}

.cover-copy {
    position: absolute;
    left: 50%;
    bottom: 20px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    color: #fff;
    text-align: center;
    transform: translateX(-50%);
    animation: cover-copy-in .45s ease-out both;
}

@keyframes cover-copy-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.cover-date {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1;
    letter-spacing: .06em;
}

.cover-line {
    width: 170px;
    height: 1px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .9);
}

.cover-names {
    margin: 0;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .08em;
}

.cover-names span {
    display: block;
}

.cover-amp {
    margin: 6px 0;
    font-size: 28px;
    font-style: italic;
    letter-spacing: .02em;
}

/* 2. Greeting */
.greeting-screen {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #efeeeb;
}

.greeting-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 30%, rgba(255,255,255,.95), rgba(255,255,255,.65) 25%, transparent 55%),
        radial-gradient(circle at 100% 20%, rgba(255,255,255,.85), transparent 34%),
        radial-gradient(circle at 80% 100%, rgba(232,223,214,.9), transparent 28%),
        linear-gradient(135deg,#f2f1ee,#e5e2dd);
}

.greeting-content {
    position: relative;
    padding: 34px 22px 38px;
    text-align: center;
}

.greeting-title span {
    display: block;
}

.greeting-divider {
    width: min(278px, 100%);
    height: 1px;
    margin: 22px auto 20px;
    background: #242424;
}

.greeting-text {
    max-width: 360px;
    margin: 0 auto 26px;
    color: rgba(23, 23, 23, .95);
    font-size: 17px;
    line-height: 1.46;
    letter-spacing: -.005em;
}

.greeting-note {
    max-width: 340px;
    margin: -10px auto 24px;
    color: rgba(23, 23, 23, .82);
    font-size: 15px;
    line-height: 1.42;
}

.couple-frame {
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 36px;
    background: #dcdcdc;
}

.couple-ratio {
    width: 100%;
    aspect-ratio: .92 / 1;
}

.couple-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    filter: grayscale(1);
}

/* 3. Calendar */
.calendar-screen {
    width: 100%;
    padding: 34px 18px 34px;
    background: #fff;
    color: #1f1f1f;
    text-align: center;
}

.calendar-divider {
    width: 178px;
    height: 1px;
    margin: 22px auto;
    background: #474747;
}

.calendar-month {
    margin-bottom: 22px;
    color: #141414;
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
}

.calendar-box {
    width: 100%;
    max-width: 348px;
    margin: 0 auto;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 16px;
    color: #4a4a4a;
    font-size: 17px;
    line-height: 1;
    letter-spacing: -.02em;
}

.calendar-weekday {
    display: flex;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.calendar-weekday.is-weekend {
    color: var(--weekend);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 38px;
    align-items: center;
    margin-top: 18px;
    color: #3d3d3d;
    font-size: 18px;
    line-height: 1;
}

.calendar-day {
    position: relative;
    display: flex;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.calendar-day.is-event > span:not(.heart-mark) {
    position: relative;
    z-index: 2;
    color: var(--weekend);
}

.heart-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    color: var(--weekend);
    transform: translate(-50%, -50%);
    animation: heart-pulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

.heart-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes heart-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.date-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    color: #1f1f1f;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1;
}

.date-line div {
    width: 70px;
    height: 1px;
    background: #353535;
}

/* 4. Countdown */
.countdown-screen {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f2efea;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 20%, rgba(255,255,255,.95), rgba(255,255,255,.7) 35%, transparent 58%),
        radial-gradient(circle at 100% 100%, rgba(226,217,208,.8), transparent 30%),
        linear-gradient(135deg,#f4f1ec,#e6e0d8);
}

.countdown-content {
    position: relative;
    padding: 20px 20px 26px;
    color: #151515;
    text-align: center;
}

.countdown-heading {
    max-width: 320px;
    margin: 0 auto;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 330px;
    margin: 28px auto 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.countdown-value {
    color: #111;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    transition: opacity .25s ease-out, transform .25s ease-out;
}

.countdown-value.is-ticking {
    opacity: .62;
    transform: translateY(-3px) scale(.98);
}

.countdown-label {
    margin-top: 6px;
    color: #222;
    font-size: 13px;
    line-height: 1;
}

/* 5. Locations */
.locations-screen {
    width: 100%;
    padding: 38px 0 24px;
    background: #fff;
    color: #151515;
    text-align: center;
}

.locations-heading {
    margin-bottom: 20px;
}

.location-card {
    margin: 0 0 28px;
}

.location-card:last-child {
    margin-bottom: 0;
}

.location-head {
    padding: 0 18px;
    text-align: center;
}

.location-title {
    margin: 0;
    color: #1d1d1d;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: .08em;
}

.location-title span {
    display: block;
}

.location-title-line {
    width: 112px;
    height: 1px;
    margin: 10px auto 0;
    background: rgba(47, 42, 39, .7);
}

.location-address {
    max-width: 300px;
    margin: 10px auto 0;
    color: rgba(32, 32, 32, .9);
    font-size: 14px;
    line-height: 1.42;
    letter-spacing: .005em;
}

.location-image-pad {
    margin-top: 16px;
    padding: 0 16px;
}

.location-image-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #d8d8d8;
    box-shadow: 0 14px 32px rgba(40, 30, 24, .13);
    transition: box-shadow .3s ease, transform .25s ease;
}

.location-image-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(40, 30, 24, .18);
}

.location-image-ratio {
    width: 100%;
    aspect-ratio: 344 / 232;
    overflow: hidden;
}

.location-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease-out;
}

.location-image-shell:hover .location-image {
    transform: scale(1.035);
}

.location-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,.1), transparent 45%, rgba(0,0,0,.1));
}

.location-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 13px;
    padding: 0 18px;
    color: #181818;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1;
    letter-spacing: .12em;
}

.location-meta-line {
    width: 1px;
    height: 19px;
    background: rgba(68, 68, 68, .7);
}

.location-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 0 18px;
}

.location-button {
    display: inline-flex;
    min-width: 226px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #292929;
    border-radius: 999px;
    background: #292929;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .01em;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
    padding: 0 26px;
}

.location-button:hover {
    transform: translateY(-2px);
    background: #1f1f1f;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.location-button:active {
    transform: translateY(0) scale(.97);
}

.location-button.is-disabled {
    opacity: .55;
    pointer-events: none;
}

/* 6. Day plan */
.day-plan-screen {
    width: 100%;
    padding: 26px 18px 24px;
    background: #fff;
    color: #171717;
}

.day-plan-heading {
    margin-bottom: 24px;
}

.day-plan-list {
    position: relative;
    max-width: 370px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.day-plan-line {
    position: absolute;
    top: 2px;
    bottom: 4px;
    left: 106px;
    width: 1px;
    background: #1f1f1f;
}

.day-plan-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.day-plan-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 18px;
}

.day-plan-time {
    padding-top: 2px;
    color: #111;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1;
    text-align: right;
}

.day-plan-info {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
}

.plan-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1px;
}

.plan-icon-shell {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.plan-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.plan-placeholder {
    width: 100%;
    height: 100%;
    font-size: 8px;
    letter-spacing: .12em;
}

.plan-copy {
    min-width: 0;
    padding-top: 1px;
    text-align: left;
}

.plan-title {
    display: inline-block;
    width: 142px;
    margin: 0;
    padding-bottom: 4px;
    overflow: hidden;
    border-bottom: 1px solid #1f1f1f;
    color: #161616;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-description {
    padding-top: 7px;
    color: rgba(31,31,31,.9);
    font-size: 14px;
    line-height: 1.38;
    letter-spacing: .005em;
}

/* 7. FAQ */
.questions-screen {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 22px;
    background: var(--dark);
    color: #fff;
}

.questions-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.12), transparent 40%),
        linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.questions-card {
    position: relative;
    margin: 0 auto;
    padding: 32px 18px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 34px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
}

.questions-heading {
    color: #fff;
}

.questions-divider {
    width: 162px;
    height: 1px;
    margin: 12px auto 8px;
    background: rgba(255, 255, 255, .7);
}

.faq-item.has-border {
    border-top: 1px solid rgba(255, 255, 255, .3);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 16px 0;
    text-align: left;
    transition: transform .2s ease;
}

.faq-question:active {
    transform: scale(.995);
}

.faq-question > span:first-child {
    padding-right: 6px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.18;
}

.faq-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-top: 2px;
    color: #fff;
    transition: transform .25s ease-out;
}

.faq-icon span {
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease, transform .2s ease;
}

.faq-icon span:first-child {
    width: 22px;
    height: 1px;
}

.faq-icon span:last-child {
    width: 1px;
    height: 22px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-icon span:last-child {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(.2);
}

.faq-answer-wrap {
    overflow: hidden;
    opacity: .9;
}

.faq-answer-wrap[hidden] {
    display: none;
}

.faq-answer-wrap:not([hidden]) {
    display: block;
    opacity: 1;
}

.faq-answer {
    min-height: 0;
    overflow: hidden;
    padding: 0 34px 14px 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.42;
    letter-spacing: .005em;
}

/* 8. Form */
.form-screen {
    width: 100%;
    padding: 38px 22px 24px;
    background: #fff;
    color: #171717;
}

.form-heading {
    margin-bottom: 12px;
}

.form-subtitle {
    margin: 8px 0 0;
    color: rgba(58, 58, 58, .9);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: .005em;
    text-align: center;
}

.rsvp-form {
    margin-top: 14px;
}

.form-block {
    margin-top: 22px;
}

.form-block:first-child {
    margin-top: 0;
}

.form-label {
    color: rgba(23, 23, 23, .95);
    font-size: 16px;
    line-height: 1.32;
    letter-spacing: .005em;
}

.form-hint {
    margin-top: 2px;
    color: rgba(102, 102, 102, .9);
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: .005em;
}

.field-control {
    margin-top: 1px;
}

.text-field-wrap input,
.text-field-wrap textarea,
.form-text-input,
.form-textarea,
.select-wrap select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 16px;
    line-height: 1;
    transition: border-color .2s ease, transform .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.text-field-wrap input,
.form-text-input,
.select-wrap select {
    height: 24px;
    padding: 0 0 2px;
}

.text-field-wrap textarea,
.form-textarea {
    height: 22px;
    min-height: 22px;
    resize: vertical;
    padding: 0 0 1px;
    line-height: 1.2;
}

.text-field-wrap input:focus,
.text-field-wrap textarea:focus,
.form-text-input:focus,
.form-textarea:focus,
.select-wrap select:focus {
    border-color: #000;
    transform: translateY(-1px);
}

.choice-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    color: rgba(23, 23, 23, .9);
    text-align: left;
    transition: transform .2s ease, opacity .2s ease;
}

.choice-option:active {
    transform: scale(.99);
}

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

.choice-box {
    display: flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
    transition: border-color .2s ease, background .2s ease;
}

.choice-option--radio .choice-box {
    border-radius: 50%;
}

.choice-box::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background: #000;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s ease, transform .2s ease;
}

.choice-option--radio .choice-box::after {
    border-radius: 50%;
}

.choice-option--checkbox .choice-box::after {
    width: 9px;
    height: 9px;
    background: #fff;
}

.choice-option input:checked + .choice-box {
    border-color: #000;
}

.choice-option--checkbox input:checked + .choice-box {
    background: #000;
}

.choice-option input:checked + .choice-box::after {
    opacity: 1;
    transform: scale(1);
}

.choice-text {
    color: rgba(23, 23, 23, .9);
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: .005em;
}

.form-block--dependent.is-disabled {
    opacity: .42;
}

.form-block--dependent.is-disabled .choice-option,
.form-block--dependent.is-disabled input,
.form-block--dependent.is-disabled textarea,
.form-block--dependent.is-disabled select {
    pointer-events: none;
}

.form-errors,
.form-success,
.field-error {
    margin-top: 14px;
    color: #8a2d2d;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.form-success {
    color: #2a2a2a;
}

.field-error {
    margin-top: 6px;
    text-align: left;
}

.submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 26px;
}

.submit-button {
    border: 0;
    border-radius: 999px;
    background: #262626;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
    color: #fff;
    padding: 10px 28px;
    font-size: 15px;
    line-height: 1.2;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #1f1f1f;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0) scale(.97);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

/* 9. Contacts */
.contacts-screen {
    width: 100%;
    padding: 28px 22px 40px;
    background: #fff;
    color: #151515;
    text-align: center;
}

.contacts-heading {
    margin-bottom: 12px;
}

.contacts-text {
    max-width: 360px;
    margin: 18px auto 0;
    color: rgba(35, 35, 35, .9);
    font-size: 15px;
    line-height: 1.42;
    letter-spacing: .005em;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 26px;
}

.contact-name {
    color: #191919;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    letter-spacing: .16em;
}

.contact-phone {
    display: inline-block;
    margin-top: 10px;
    color: #151515;
    font-size: 16px;
    line-height: 1;
}

.final-accent {
    margin-top: 34px;
}

.final-line {
    width: 120px;
    height: 1px;
    margin: 0 auto 16px;
    background: rgba(47, 42, 39, .6);
}

.final-text {
    color: #1a1a1a;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: .01em;
}

@media (max-width: 360px) {
    .section-title {
        font-size: 25px;
    }

    .cover-names {
        font-size: 31px;
    }

    .cover-amp {
        font-size: 26px;
    }

    .greeting-content,
    .form-screen,
    .contacts-screen {
        padding-left: 18px;
        padding-right: 18px;
    }

    .day-plan-screen {
        padding-left: 14px;
        padding-right: 14px;
    }

    .day-plan-item {
        grid-template-columns: 92px 1fr;
        column-gap: 14px;
    }

    .day-plan-time {
        font-size: 32px;
    }

    .day-plan-line {
        left: 98px;
    }

    .day-plan-info {
        grid-template-columns: 38px 1fr;
        column-gap: 10px;
    }

    .plan-icon-shell {
        width: 36px;
        height: 36px;
    }

    .plan-title {
        width: 130px;
        font-size: 15px;
    }
}
