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

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

:root {
    --ft-pink: #FFF1E5;
    --ft-pink-dark: #F2DFCE;
    --ft-black: #1A1A1A;
    --ft-dark: #333333;
    --ft-mid: #666666;
    --ft-light: #999999;
    --ft-border: #E5E5E5;
    --ft-bg: #FFF9F5;
    --ft-white: #FFFFFF;
    --ft-accent: #2E5A88;
    --ft-up: #0F7B4E;
    --ft-down: #CC3333;
    --font-serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 4px;
}

body {
    font-family: var(--font-sans);
    color: var(--ft-black);
    background: var(--ft-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Masthead */
.masthead {
    background: var(--ft-pink);
    border-bottom: 1px solid var(--ft-pink-dark);
    padding: 0 24px;
}

.masthead-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo-svg { display: block; }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.market-ticker {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 500;
    align-items: center;
}

.ticker-label {
    color: var(--ft-mid);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ticker-value { font-variant-numeric: tabular-nums; }
.ticker-value.up { color: var(--ft-up); }
.ticker-value.down { color: var(--ft-down); }

.user-nav { display: flex; gap: 12px; }
.nav-link {
    font-size: 13px;
    color: var(--ft-dark);
    font-weight: 500;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--ft-accent); }

/* Empty State */
.nav-primary {
    background: var(--ft-white);
    border-bottom: 2px solid var(--ft-border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ft-mid);
    padding: 12px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.15s;
}
.nav-item:hover, .nav-item.active {
    color: var(--ft-black);
    border-bottom-color: var(--ft-black);
}

.nav-search { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; }

.search-form { display: flex; align-items: center; }

.search-input {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    width: 200px;
    background: var(--ft-bg);
    font-family: var(--font-sans);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
    outline: none;
    border-color: var(--ft-accent);
    box-shadow: 0 0 0 2px rgba(46, 90, 136, 0.15);
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--ft-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.hero-lead { grid-row: span 2; }

.hero-image {
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--ft-pink-dark);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 8px 0 12px;
    color: var(--ft-black);
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-secondary-item {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ft-border);
}
.hero-secondary-item:last-child { border-bottom: none; }

.card-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ft-accent);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 8px;
    color: var(--ft-black);
    transition: color 0.15s;
}

.card-link:hover .card-title { color: var(--ft-accent); }

.card-summary {
    font-size: 14px;
    color: var(--ft-mid);
    line-height: 1.5;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--ft-light);
    font-weight: 500;
}

.card-source { font-weight: 600; }

/* Section Strip */
.section-strip {
    padding: 24px 0;
    border-bottom: 1px solid var(--ft-border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--ft-black);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title a {
    color: var(--ft-black);
    transition: color 0.15s;
}
.section-title a:hover { color: var(--ft-accent); }

.article-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.article-card { }
.article-card .card-image {
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--ft-pink-dark);
}
.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.article-card .card-link:hover .card-image img { transform: scale(1.03); }
.article-card .card-title { font-size: 14px; }

/* Page Header */
.page-header {
    padding: 32px 0 16px;
    border-bottom: 2px solid var(--ft-black);
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--ft-black);
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 40px;
}

.list-article {
    border-bottom: 1px solid var(--ft-border);
}

.list-link {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    transition: background 0.1s;
}
.list-link:hover { background: rgba(255, 241, 229, 0.3); }

.list-image {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--ft-pink-dark);
}
.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-body { flex: 1; min-width: 0; }
.list-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 8px;
    color: var(--ft-black);
    transition: color 0.15s;
}
.list-link:hover .list-title { color: var(--ft-accent); }
.list-summary {
    font-size: 14px;
    color: var(--ft-mid);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Article Detail */
.article-detail {
    padding: 32px 0 48px;
}

.article-header {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ft-border);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 12px 0 16px;
    color: var(--ft-black);
}

.article-byline {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 13px;
    color: var(--ft-mid);
}

.byline-author { font-weight: 600; color: var(--ft-dark); }

.article-hero {
    max-width: 800px;
    margin: 32px auto;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--ft-pink-dark);
}
.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 680px;
    margin: 0 auto;
}

.article-summary-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ft-dark);
    font-style: italic;
    border-left: 3px solid var(--ft-pink-dark);
    padding-left: 20px;
    margin-bottom: 24px;
}

.btn-read-full {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ft-accent);
    color: var(--ft-white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}
.btn-read-full:hover { background: #1E4068; }

.article-read-full { text-align: center; margin-top: 24px; }

/* Auth */
/* Removed - no authentication needed */
.empty-state {
    padding: 64px 0;
    text-align: center;
    color: var(--ft-mid);
    font-size: 15px;
}

/* Footer */
.site-footer {
    background: var(--ft-black);
    color: var(--ft-border);
    padding: 48px 24px 24px;
    margin-top: 48px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 13px;
    margin-top: 8px;
    color: var(--ft-light);
}

.footer-links {
    display: flex;
    gap: 64px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--ft-white);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--ft-light);
    padding: 4px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--ft-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    font-size: 12px;
    color: var(--ft-light);
}

.footer-bottom a { color: var(--ft-pink); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-title { font-size: 22px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .market-ticker { display: none; }
    .list-link { flex-direction: column; }
    .list-image { width: 100%; }
    .article-title { font-size: 26px; }
}

@media (max-width: 600px) {
    .masthead-inner { flex-direction: column; gap: 8px; }
    .nav-inner { gap: 0; }
    .nav-item { padding: 10px 10px; font-size: 11px; }
    .nav-search { display: none; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 24px; }
    .auth-card { padding: 24px; }
}
