/* Bazillionaire — Modern Financial Broadsheet */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #eae6e0;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

/* Page */
.page {
    max-width: 680px;
    margin: 2.5rem auto;
    background: #faf8f5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    padding: 0;
    position: relative;
    z-index: 1;
}

.page-inner {
    padding: 1.5rem 2.5rem 3rem;
}

/* ===== MASTHEAD ===== */
.masthead {
    text-align: center;
    padding: 2rem 2.5rem 0;
}

.masthead-rule-top {
    border: none;
    border-top: 3px solid currentColor;
    margin-bottom: 1.25rem;
}

.masthead-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.masthead-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
    margin-top: 0.5rem;
}

.masthead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #999;
    margin-top: 1rem;
    padding: 0;
    letter-spacing: 0.03em;
}

.masthead-meta .edition {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.masthead-rule-bottom {
    border: none;
    border-top: 3px solid currentColor;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== HEADLINES ===== */
h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #920406;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d0cdc8;
}

/* ===== SECTION DIVIDERS ===== */
.section-rule {
    border: none;
    border-top: 1px solid #d0cdc8;
    margin: 1.75rem 0;
}

/* ===== BODY TEXT ===== */
p {
    margin-bottom: 1rem;
}

.lead {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

.welcome {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #555;
}

.byline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 1.25rem;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0.7rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #d0cdc8;
}

.nav a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav a:hover {
    color: #920406;
    border-bottom-color: #920406;
}

.nav a.active {
    color: #920406;
    border-bottom-color: #920406;
}

/* ===== LINKS ===== */
a {
    color: #920406;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #6e0305;
    text-decoration: underline;
}

/* ===== ERROR FLASH ===== */
.error {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #920406;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: #fdf2f2;
    border-left: 3px solid #920406;
}

/* ===== FORMS ===== */
form {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    margin-top: 1.25rem;
    color: #777;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"] {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #d0cdc8;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: #920406;
    box-shadow: 0 0 0 1px #920406;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    background-color: #920406;
    border: 1px solid #920406;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background-color 0.15s;
}

.btn:hover {
    background-color: #6e0305;
    border-color: #6e0305;
}

.btn-danger {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-danger:hover {
    background-color: #333;
    border-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: #555;
    border: 1px solid #d0cdc8;
}

.btn-secondary:hover {
    background-color: #f0eeeb;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-inline {
    margin-top: 0;
    padding: 0.3rem 0.9rem;
    font-size: 0.62rem;
}

/* ===== LISTS ===== */
ul {
    list-style: none;
}

ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8e5e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

ul li:last-child {
    border-bottom: none;
}

ul li a {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.05rem;
    text-decoration: none;
    color: #1a1a1a;
}

ul li a:hover {
    color: #920406;
    text-decoration: none;
}

.inline-form {
    display: inline;
    margin: 0;
}

/* ===== STATUS BADGE ===== */
.status {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    background: #eae8e4;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

/* ===== FOOTER ===== */
.page-footer {
    text-align: center;
    padding: 1rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: #bbb;
    letter-spacing: 0.06em;
    border-top: 1px solid #e8e5e0;
}

/* ===== LOGIN PAGE ===== */
.login-page .page-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.login-page form {
    width: 100%;
    max-width: 340px;
}

.login-page .btn {
    width: 100%;
    text-align: center;
}

/* ===== BANNER ===== */
.banner {
    text-align: center;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: #555;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
}

/* ===== CALLOUT ===== */
.callout {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    color: #666;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #d0cdc8;
    border-bottom: 1px solid #d0cdc8;
    margin: 1.75rem 0;
    background: transparent;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .page {
        margin: 0;
        box-shadow: none;
    }
    .masthead {
        padding: 1.5rem 1.25rem 0;
    }
    .masthead-title {
        font-size: 2.4rem;
    }
    .page-inner {
        padding: 1.25rem 1.25rem 2rem;
    }
}

/* Target Picker Overlay */
.target-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-ink);
    color: var(--color-cream);
    border: 2px solid var(--color-gold);
    padding: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
}

.target-picker__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.target-picker__btn {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-gold);
    background: transparent;
    color: var(--color-cream);
    cursor: pointer;
    transition: background 0.15s;
}

.target-picker__btn:hover {
    background: var(--color-gold);
    color: var(--color-ink);
}

.target-picker__btn--cancel {
    border-color: var(--color-muted);
    color: var(--color-muted);
}

.target-picker__btn--cancel:hover {
    background: var(--color-muted);
    color: var(--color-ink);
}
