/* Lista de espera — editorial vintage */

body.ed {
    --ed-paper: #f3efe6;
    --ed-paper-2: #fbf9f4;
    --ed-ink: #2b2a24;
    --ed-muted: #6b6558;
    --ed-line: #cfc6b6;
    --ed-olive: #3f4a37;
    --ed-olive-2: #56634b;
    margin: 0;
    min-height: 100vh;
    background: var(--ed-paper) !important;
    color: var(--ed-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.12rem;
    -webkit-font-smoothing: antialiased;
}
html:has(> body.ed) { background: var(--ed-olive); }

.ed h1, .ed h2, .ed h3 {
    font-family: "Bodoni Moda", "Cormorant Garamond", Georgia, serif !important;
    font-weight: 400;
    color: inherit;
    margin: 0;
    letter-spacing: 0.01em;
}
.ed a { color: inherit; }
.ed img { display: block; max-width: 100%; }

.ed .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.ed-caps {
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.6;
}
.ed-script {
    font-family: "Pinyon Script", "Great Vibes", cursive;
    font-weight: 400;
    line-height: 1;
}

/* ---------- Capa ---------- */
.ed-cover {
    position: relative;
    min-height: clamp(600px, 100vh, 1100px);
    min-height: clamp(600px, 100svh, 1100px);
    display: flex;
    flex-direction: column;
    color: #fff;
    background: #55624a url("images/espera/espera-hero.png") center 60% / cover no-repeat;
    overflow: hidden;
}
.ed-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 24, 18, 0.35) 0%, rgba(20, 24, 18, 0.05) 30%, rgba(20, 24, 18, 0) 55%, rgba(20, 24, 18, 0.45) 100%);
    pointer-events: none;
}
.ed-cover > * { position: relative; z-index: 1; }
.ed-cover-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 8% 0;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
.ed-cover-top a { text-decoration: none; }
.ed-cover-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    text-shadow: 0 2px 24px rgba(20, 24, 18, 0.25);
}
.ed-cover-title .ed-script {
    font-size: clamp(4.5rem, 12vw, 9.5rem);
    margin-bottom: -0.35em;
    transform: translateX(-0.4em) rotate(-4deg);
}
.ed-cover-title h1 {
    font-size: clamp(3.6rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ed-rule {
    width: 70px;
    height: 1px;
    margin: 1.1rem auto;
    background: currentColor;
    opacity: 0.8;
}
.ed-cover-tagline { max-width: 22rem; font-size: 0.95rem; }
.ed-cover-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 0 6% 2.25rem;
}
.ed-cover-bottom p { margin: 0; font-size: 0.8rem; }
.ed-cover-bottom p:last-child { text-align: right; }
.ed-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.7rem;
}
.ed-scroll::after {
    content: "";
    width: 1px;
    height: 34px;
    background: currentColor;
    animation: ed-drip 2.4s ease-in-out infinite;
    transform-origin: top;
}
@keyframes ed-drip {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Carta ---------- */
.ed-section { padding: 6rem 0; }
.ed-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.75rem;
}
.ed-letter .ed-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: start;
}
.ed-figure { margin: 0; }
.ed-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.9) contrast(0.98);
}
.ed-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ed-line);
    color: var(--ed-muted);
    font-size: 0.7rem;
}
.ed-letter-copy { padding-top: 1rem; }
.ed-kicker { margin: 0 0 1.25rem; color: var(--ed-muted); }
.ed-letter-copy h2 {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 1.75rem;
}
.ed-letter-copy p { margin: 0 0 1.1rem; line-height: 1.7; color: #3d3a32; }
.ed-letter-copy p.ed-lede::first-letter {
    float: left;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 4.2rem;
    line-height: 0.8;
    padding: 0.35rem 0.6rem 0 0;
    color: var(--ed-olive);
}
.ed-letter-copy a { color: var(--ed-olive); text-underline-offset: 3px; }
.ed-sign {
    margin-top: 2rem !important;
    font-size: 0.9rem;
    color: var(--ed-muted) !important;
}
.ed-sign .ed-script {
    display: block;
    margin-top: 0.3rem;
    font-size: 3rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ed-ink);
}

.ed-notice {
    margin-top: 2.25rem;
    padding: 1.25rem 1.4rem;
    border-top: 1px solid var(--ed-ink);
    border-bottom: 1px solid var(--ed-ink);
}
.ed-notice .ed-caps { display: block; margin-bottom: 0.4rem; }
.ed-notice p { margin: 0 !important; font-size: 1.02rem; }

/* ---------- Faixa citação ---------- */
.ed-quote {
    background: var(--ed-olive);
    color: #f3efe6;
    text-align: center;
    padding: 5rem 1.5rem;
}
.ed-quote .ed-script { font-size: clamp(3rem, 7vw, 5.5rem); }
.ed-quote p.ed-caps { margin: 0.9rem 0 0; opacity: 0.85; }

/* ---------- Formulário ---------- */
.ed-form .ed-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: stretch;
}
.ed-form-head { margin-bottom: 2rem; }
.ed-form-head .ed-kicker { margin-bottom: 0.9rem; }
#site-agenda-banner {
    margin: 0 0 1.5rem;
    padding: 0.8rem 1rem;
    border-left: 2px solid var(--ed-olive);
    background: var(--ed-paper-2);
    font-size: 1rem;
}
.ed .form-card {
    background: var(--ed-paper-2) !important;
    border: 1px solid var(--ed-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2.75rem 2.5rem !important;
    max-width: none !important;
    margin: 0 !important;
}
.ed .form-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.3rem) !important;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    text-align: left;
    color: var(--ed-ink) !important;
}
.ed .form-card .form-subtitle {
    text-align: left !important;
    margin: 0 0 2rem;
    color: var(--ed-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}
.ed-field { margin-bottom: 1.6rem; }
.ed .ed-field label,
.ed .ed-radio legend {
    position: static !important;
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Bodoni Moda", Georgia, serif !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ed-muted) !important;
}
.ed .ed-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0 0.6rem !important;
    border: 0 !important;
    border-bottom: 1px solid #8a8272 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color-scheme: light;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.25rem !important;
    color: var(--ed-ink) !important;
    outline: none;
    transition: border-color 0.2s ease;
}
.ed .ed-field input:focus { border-bottom: 2px solid var(--ed-olive) !important; }
.ed-radio {
    margin: 0.5rem 0 2rem;
    padding: 0;
    border: 0;
}
.ed-radio legend { margin-bottom: 0.8rem; }
.ed-radio-options { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ed-radio-options label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--ed-line);
    cursor: pointer;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.08rem !important;
    color: var(--ed-ink) !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ed .ed-radio-options input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 14px !important;
    height: 14px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--ed-ink) !important;
    border-radius: 50% !important;
    background: transparent !important;
    display: grid;
    place-items: center;
}
.ed-radio-options input::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ed-olive);
    transform: scale(0);
    transition: transform 0.15s ease;
}
.ed-radio-options input:checked::after { transform: scale(1); }
.ed-radio-options label:has(input:checked) { border-color: var(--ed-olive); background: #eef0e6; }
.ed .ed-submit {
    width: 100%;
    padding: 1.05rem 1.5rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--ed-olive) !important;
    color: #f3efe6 !important;
    font-family: "Bodoni Moda", Georgia, serif !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transform: none !important;
    transition: background 0.2s ease;
}
.ed .ed-submit:hover { background: var(--ed-olive-2) !important; }
.ed-submit:disabled { opacity: 0.7; cursor: wait; }
.ed-privacy { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ed-muted); text-align: center; }

#waitlist-closed { text-align: center; padding: 1rem 0; }
#waitlist-closed .ed-script { font-size: 3.2rem; color: var(--ed-olive); }
#waitlist-closed h3 { margin: 0.5rem 0 1rem; font-size: 1.8rem; }
#waitlist-closed p { color: var(--ed-muted); line-height: 1.6; }

.ed-form-media { position: relative; margin: 0; min-height: 520px; }
.ed-form-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-form-media figcaption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.7rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Modal de sucesso ---------- */
.ed .success-modal-content {
    background: var(--ed-paper-2) !important;
    border: 1px solid var(--ed-line) !important;
    border-radius: 0 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    color: var(--ed-ink) !important;
}
.ed .success-icon .material-icons-outlined { color: var(--ed-olive) !important; }
.ed .success-modal-content h3 { font-size: 2rem !important; color: var(--ed-ink) !important; }
.ed .success-modal-content p { font-size: 1.1rem !important; color: var(--ed-muted) !important; }
.ed .btn-close-modal {
    border-radius: 0 !important;
    background: var(--ed-olive) !important;
    color: #f3efe6 !important;
    font-family: "Bodoni Moda", Georgia, serif !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
}

/* ---------- Publicidade e rodapé ---------- */
.ed .site-ad-section { background: var(--ed-paper); border-top: 1px solid var(--ed-line); }
.ed-foot {
    background: var(--ed-olive);
    color: #e9e4d8;
    padding: 3rem 0 5.5rem;
}
.ed-foot .ed-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(233, 228, 216, 0.5);
}
.ed-foot .ed-script { font-size: 2.6rem; color: #fff; }
.ed-foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ed-foot nav a { text-decoration: none; }
.ed-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-foot small { display: block; width: 100%; margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.7; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .ed-section { padding: 4rem 0; }
    .ed-letter .ed-wrap, .ed-form .ed-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .ed-figure img { aspect-ratio: 4 / 3; }
    .ed-form-media { min-height: 360px; order: -1; }
    .ed .form-card { padding: 2rem 1.4rem !important; }
    .ed-cover-top { margin: 1.25rem 6% 0; padding-right: 3.5rem; }
}
@media (max-width: 620px) {
    .ed-cover-top a { display: none; }
    .ed-cover-bottom { margin-bottom: 1.75rem; }
    .ed-cover-bottom p { font-size: 0.68rem; }
    .ed-cover-bottom p:last-child, .ed-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ed-scroll::after { animation: none; }
}
