/* Newsletter signup: warm/orange house scheme. Shared by the inline block
   and the popup so both read as the same component. */
.nl-form { margin: 0; }
.nl-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nl-row { display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 520px) { .nl-row { flex-direction: row; } }

.nl-input {
    flex: 1 1 auto; min-width: 0; min-height: 52px;
    padding: 0.85rem 1.1rem;
    font-family: 'Nunito', system-ui, sans-serif; font-size: 1rem; font-weight: 600;
    color: var(--ink, #3A2415); background: var(--paper, #FFFDF7);
    border: 3px solid var(--ink, #3A2415); border-radius: 999px;
    box-shadow: var(--hard-sm, 3px 3px 0 #3A2415);
    -webkit-appearance: none; appearance: none;
}
.nl-input::placeholder { color: #9B8770; }
.nl-input:focus-visible {
    outline: 3px solid var(--rust, #C2410C); outline-offset: 2px;
}
.nl-btn {
    flex: 0 0 auto; min-height: 52px; padding: 0.85rem 1.75rem;
    font-family: 'Nunito', system-ui, sans-serif; font-size: 1rem; font-weight: 800;
    color: var(--milk, #FFF6E9); background: var(--rust, #C2410C);
    border: 3px solid var(--ink, #3A2415); border-radius: 999px;
    box-shadow: var(--hard-sm, 3px 3px 0 #3A2415);
    cursor: pointer; white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease;
}
.nl-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink, #3A2415); }
@media (hover: hover) {
    .nl-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink, #3A2415); }
}
.nl-btn:focus-visible { outline: 3px solid var(--gold, #F2B705); outline-offset: 2px; }
.nl-note {
    margin: 0.75rem 0 0; font-size: 0.83rem; line-height: 1.5;
    color: var(--muted-ink, #7D6149);
}

/* ---- inline block ---- */
.nl-inline {
    background: var(--milk, #FFF6E9);
    border: 3px solid var(--ink, #3A2415);
    border-radius: 1.35rem;
    box-shadow: var(--hard-lg, 6px 6px 0 #3A2415);
    padding: clamp(1.4rem, 4.5vw, 2rem);
}
.nl-inline-title {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.3rem, 4.2vw, 1.75rem); font-weight: 800;
    letter-spacing: -0.028em; line-height: 1.2; color: var(--ink, #3A2415);
    margin: 0 0 0.5rem; text-wrap: balance;
}
.nl-inline-sub {
    font-size: 1rem; line-height: 1.65; color: var(--muted-ink, #7D6149);
    margin: 0 0 1.15rem; max-width: 46ch;
}

/* ---- popup ---- */
.nl-pop[hidden] { display: none; }
.nl-pop { position: fixed; inset: 0; z-index: 9999; display: flex;
          align-items: center; justify-content: center; padding: 1.15rem; }
.nl-pop-backdrop { position: absolute; inset: 0; background: rgba(26,13,4,0.62); }
.nl-pop-card {
    position: relative; width: 100%; max-width: 27rem;
    background: var(--cream, #FBF3E4);
    border: 3px solid var(--ink, #3A2415); border-radius: 1.35rem;
    box-shadow: 8px 8px 0 var(--ink, #3A2415);
    padding: clamp(1.5rem, 5vw, 2rem);
    animation: nl-pop-in .22s ease-out;
}
@keyframes nl-pop-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nl-pop-card { animation: none; } .nl-btn { transition: none; } }
.nl-pop-x {
    position: absolute; top: 0.6rem; right: 0.75rem;
    width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
    background: transparent; border: 0; color: var(--muted-ink, #7D6149);
    cursor: pointer; border-radius: 999px;
}
.nl-pop-x:hover { color: var(--ink, #3A2415); }
.nl-pop-x:focus-visible { outline: 3px solid var(--rust, #C2410C); outline-offset: 2px; }
.nl-pop-eyebrow {
    font-family: 'Nunito', system-ui, sans-serif; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust, #C2410C); margin: 0 0 0.5rem;
}
.nl-pop-title {
    font-family: var(--font-display, Georgia, serif); font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800; letter-spacing: -0.028em; line-height: 1.18;
    color: var(--ink, #3A2415); margin: 0 0 0.5rem;
}
.nl-pop-sub { font-size: 0.98rem; line-height: 1.6; color: var(--muted-ink, #7D6149); margin: 0 0 1.2rem; }
