html, body, #root { margin: 0; min-height: 100%; }
body { background: #0d1117; }

.file-card, [class*="file-card"], [class*="FileCard"] {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

:root {
    --silver: #d9dfe7;
    --silver-dim: rgba(217, 223, 231, 0.62);
    --silver-line: rgba(217, 223, 231, 0.38);
    --card: #1a2334;
    --card-field: #141b29;
    --ink: #141a26;
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Karla', 'Helvetica Neue', sans-serif;
}

.invite {
    background-color: #0d1117;
    background-image: url("marble.jpg");
    background-size: 1100px;
    background-position: center top;
    color: var(--silver);
    font-family: var(--sans);
    text-align: center;
    padding: 72px 24px 64px;
    min-height: 100vh;
}

/* Hero */
.monogram {
    width: 184px; height: 184px;
    margin: 0 auto 40px;
    border-radius: 50%;
    border: 1.5px solid var(--silver-line);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; display: block; }

.invite-line {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    max-width: 520px;
    margin: 0 auto 48px;
}

.title {
    margin: 0 0 56px;
    font-family: var(--serif);
    font-weight: 500;
    color: var(--silver);
    line-height: 1.12;
}
.title-first { display: block; font-size: clamp(50px, 13vw, 92px); }
.title-second {
    display: inline-block;
    position: relative;
    font-size: clamp(50px, 13vw, 92px);
    padding: 0 18px;
}

.date-line {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.year-line {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin: 0 0 0;
}
.shabbos-line {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.5;
    max-width: 500px;
    margin: 18px auto 0;
    color: var(--silver);
}
.venue-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 40px;
    margin: 34px 0 6px;
}
.venue-address { margin: 0; }
.venue-address a {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--silver);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--silver-line);
}

/* Ornament divider */
.ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 14px;
    margin: 56px auto 0;
    max-width: 320px;
}
.ornament-line { height: 1px; flex: 1; background: var(--silver-line); }
.ornament-diamond {
    width: 8px; height: 8px;
    background: var(--silver);
    transform: rotate(45deg);
}

/* About + photos */
.about { margin-top: 72px; }
.name-heading {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 10vw, 68px);
    line-height: 1.15;
    margin: 0 0 40px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 940px;
    margin: 0 auto;
    align-items: start;
}
@media (min-width: 768px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.final-portrait {
    width: min(360px, 84vw);
    margin: 64px auto 0;
}
.final-portrait .photo-frame { border-width: 2px; }
.photo-frame {
    margin: 0;
    border: 1.5px solid var(--silver-line);
    background: var(--card);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.photo-frame.is-arch { border-radius: 999px 999px 6px 6px; }
.photo-frame.is-rect { border-radius: 22px; }
.photo-frame.is-oval { border-radius: 50% / 38%; aspect-ratio: 4 / 4.6; }
.photo-empty {
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    color: var(--silver-dim);
}
.photo-empty figcaption {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* RSVP */
.rsvp { margin-top: 88px; }
.kicker {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.rsvp-heading {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(48px, 11vw, 72px);
    line-height: 1.15;
    margin: 0 0 10px;
}
.rsvp-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    margin: 0 0 40px;
}
.rsvp-card {
    background: var(--card);
    border: 1px solid var(--silver-line);
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 28px;
    text-align: left;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.field-label {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--silver);
    margin: 0 0 10px;
}
.rsvp-card input[type="text"],
.rsvp-card input[type="email"],
.rsvp-card input[type="tel"],
.rsvp-card select,
.rsvp-card textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--card-field);
    border: 1px solid var(--silver-line);
    color: var(--silver);
    font-family: var(--sans);
    font-size: 15px;
    padding: 14px;
    margin: 0 0 26px;
    border-radius: 0;
}
.rsvp-card textarea { resize: vertical; }
.choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 26px;
}
.choice {
    background: transparent;
    border: 1px solid var(--silver-line);
    color: var(--silver);
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    padding: 16px 8px;
    cursor: pointer;
    min-height: 44px;
}
.choice.is-selected {
    background: var(--silver);
    color: var(--ink);
    border-color: var(--silver);
}
.send-button {
    width: 100%;
    background: var(--silver);
    color: var(--ink);
    border: none;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    padding: 18px;
    cursor: pointer;
    min-height: 44px;
}
.send-button:disabled { opacity: 0.6; cursor: default; }
.form-status {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--silver);
    margin: 18px 0 0;
    text-align: center;
}

/* Footer */
.closing-block { margin-top: 88px; }
.closing-block .ornament { margin: 0 auto 48px; }
.hebrew { font-size: 26px; margin: 0 0 10px; }
.parents {
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
    margin: 0;
}

/* Metallic silver lettering for display text (logo image unchanged) */
.title-first, .title-second, .name-heading, .venue-name, .rsvp-heading, .hebrew, .parents {
    background-image: linear-gradient(165deg, #eef1f5 0%, #c6ced8 24%, #8f9caa 46%, #e2e7ed 60%, #8794a2 78%, #bcc6d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 4.5vw, 24px);
    color: var(--silver);
    text-align: center;
    max-width: 580px;
    margin: -22px auto 42px;
    line-height: 1.45;
}
.final-portrait { max-width: 100%; }
.photo-grid .photo-frame:nth-child(3) img { object-position: center top; }
/* Uniform square photo frames, including the larger final portrait. */
.photo-frame.is-arch,
.photo-frame.is-rect,
.photo-frame.is-oval {
    border-radius: 0;
    aspect-ratio: 1 / 1;
}
/* Soft square corners retain the uniform square proportions. */
.photo-frame.is-arch,
.photo-frame.is-rect,
.photo-frame.is-oval {
    border-radius: 12%;
}
/* A closer crop for the fence photo. */
.photo-grid .photo-frame:nth-child(4) img {
    transform: translateX(6%) scale(1.4);
    transform-origin: 50% 35%;
}

/* Final portrait: keep the head fully in the square frame. */
.final-portrait .photo-frame img { object-position: center top; }
