/* reportertools.fonn.it — Fonn-styled white editorial site
 *
 * Aesthetic borrowed from fonngroup.com:
 *   - White background (#FFFFFF) with a single light-gray accent (#F5F7F9)
 *   - Manrope sans-serif for everything (matches the parent's body type)
 *   - Black logo on white masthead, no dark mode (yet)
 *   - Generous whitespace, narrow text columns for readability
 */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f7f9;
    --fg: #0a0a0a;
    --muted: #5a5f6a;
    --rule: #e3e6ea;
    --accent: #0c63ff;
    --max: 1100px;
    --max-narrow: 720px;
    --radius: 6px;
    --space: 24px;
    --code-bg: #f0f2f5;
}

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

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--code-bg);
    padding: 1px 6px;
    border-radius: 3px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space);
}
.container.narrow {
    max-width: var(--max-narrow);
}

/* ---------- masthead ---------- */

.masthead {
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}
.masthead-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px var(--space);
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fg);
    font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand-product {
    font-size: 18px;
    letter-spacing: -0.01em;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
}
.masthead nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 15px;
}
.masthead nav a {
    color: var(--fg);
}
.masthead nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
    padding: 96px 0 64px;
    border-bottom: 1px solid var(--rule);
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 820px;
}
.lede {
    margin-top: 20px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--fg);
    max-width: 760px;
}
.hero-sub {
    margin-top: 16px;
    font-size: 16px;
    color: var(--muted);
    max-width: 760px;
}

/* ---------- card grid (sources) ---------- */

.sources {
    padding: 80px 0;
}
.sources h2,
.prose h2,
.protected-section h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 24px;
}
.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.card .meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.card p {
    font-size: 15px;
    color: var(--fg);
}

/* ---------- prose sections ---------- */

.prose {
    padding: 72px 0;
    border-top: 1px solid var(--rule);
}
.prose.alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.prose p,
.prose ul {
    margin-bottom: 16px;
    max-width: 720px;
}
.prose ul {
    list-style: none;
    padding-left: 0;
}
.prose ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}
.prose ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---------- footer ---------- */

footer {
    padding: 48px 0;
    border-top: 1px solid var(--rule);
    background: var(--bg);
    font-size: 14px;
    color: var(--muted);
}
footer p {
    margin-bottom: 8px;
}
footer .muted {
    color: var(--muted);
    font-size: 13px;
}

/* ---------- protected feeds page ---------- */

.protected-section {
    padding: 80px 0;
}
.login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--bg);
}
.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
}
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--fg);
}
.login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}
.login-card button {
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    color: var(--bg);
    background: var(--fg);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}
.login-card button:hover {
    background: var(--accent);
}
.login-card .error {
    color: #c0392b;
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}
.feed-list {
    list-style: none;
}
.feed-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}
.feed-list a {
    font-weight: 500;
}
.logout {
    float: right;
    font-size: 13px;
    background: none;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
}
.logout:hover {
    color: var(--fg);
    border-color: var(--fg);
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
    .hero h1 { font-size: 32px; }
    .lede { font-size: 18px; }
    .masthead-inner { flex-wrap: wrap; gap: 16px; }
    .masthead nav { width: 100%; }
}
