/* invite.css — shared styles for invite.html and make-invite.html
   Palette, type and header/footer treatment copied from biblicaltools.org
   (source: ~/Developer/biblicaltools/friday-seminar.html) so these pages
   read as part of the site. Deliberately simplified: no mega-menu, no
   countdown widget, no site-wide GTM/gtag tags — see the build report. */

:root {
    --color-primary: #8B0000;
    --color-primary-light: #a52a2a;
    --color-secondary: #D4AF37;
    --color-secondary-light: #e6c875;
    --color-dark: #0A0A0A;
    --color-text: #1A1A1A;
    --color-text-light: #4d4d4d;
    --color-bg: #FFFFFF;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--color-text);
}

a { color: inherit; }

/* ---------- header (simplified: brand only, no mega-menu) ---------- */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header img {
    height: 2.6rem;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}
.site-header a.brand-link { display: flex; align-items: center; }
.site-header .header-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
}
.site-header .header-link:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- main ---------- */
main {
    background: linear-gradient(135deg, #faf9f7 0%, #f2f0ed 100%);
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 2.75rem 1.25rem 3.5rem;
}
.card {
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    color: var(--color-primary);
    background: rgba(139, 0, 0, 0.08);
    border: 1px solid rgba(139, 0, 0, 0.25);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}
h1.headline {
    font-size: 2.1rem;
    margin-bottom: 1.1rem;
}
p.lede {
    font-size: 1.02rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ---------- single CTA control ---------- */
.cta {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    font-family: var(--font-body);
    margin-bottom: 0.9rem;
}
.cta-live {
    background: var(--color-secondary);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.cta-live:hover { background: var(--color-secondary-light); }
.cta-live .dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #b00000;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.cta-next {
    background: #fff;
    border: 1px solid rgba(139, 0, 0, 0.18);
}
.cta-next .cta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.35rem;
}
.cta-next .cta-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}
.cta-next .cta-ref {
    font-size: 0.82rem;
    color: var(--color-text-light);
    display: block;
    margin-top: 0.3rem;
}

.more-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 0.4rem;
}
.more-link:hover { color: var(--color-primary); }

noscript p {
    max-width: 30rem;
    margin: 1rem auto 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

/* ---------- footer (simplified: brand + one line, no mega-footer) ---------- */
.site-footer {
    background: #0A0A0A;
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 2.4rem 1.25rem;
}
.site-footer img {
    height: 2rem;
    filter: brightness(0) invert(1);
    margin-bottom: 0.9rem;
}
.site-footer p { font-size: 0.78rem; line-height: 1.7; }
.site-footer a { color: var(--color-secondary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- desktop (mobile-first: enhance above 640px) ---------- */
@media (min-width: 640px) {
    .site-header { padding: 1.1rem 2.5rem; }
    .site-header img { height: 3rem; }
    main { padding: 4.5rem 1.25rem 5rem; }
    .card { max-width: 34rem; }
    h1.headline { font-size: 2.6rem; }
    p.lede { font-size: 1.08rem; }
    .cta { padding: 1.3rem 1.5rem; }
}

/* ---------- make-invite.html specific bits ---------- */
.tool-block {
    background: #fff;
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: left;
    margin-top: 1.75rem;
}
.tool-block label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.tool-block input[type="text"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    outline: none;
}
.tool-block input[type="text"]:focus { border-color: var(--color-primary); }
.out-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}
.out-row textarea, .out-row input[type="text"] {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    background: #fafafa;
    resize: none;
    color: var(--color-text);
}
.out-row textarea { min-height: 4.6rem; line-height: 1.5; }
.copy-btn {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.copy-btn:hover { background: var(--color-primary-light); }
.copy-btn.copied { background: #2f6f3e; }
.tool-block h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.tool-block .hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.4rem;
}
.field-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
