/* Compete.News public site: editorial, newspaper-inspired. */

:root {
    --paper: #fbfaf7;
    --paper-2: #f3f1ea;
    --ink: #16150f;
    --ink-2: #3d3b33;
    --muted: #6d6a60;
    --rule: #dedbd1;
    --rule-strong: #16150f;
    --accent: #b42318;
    --accent-ink: #8f1c13;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --wrap: 1120px;
}

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

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

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Masthead ===== */

.masthead {
    border-bottom: 1px solid var(--rule-strong);
    background: var(--paper);
}

.masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.wordmark {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}

.wordmark span { color: var(--accent); }

.masthead nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.masthead nav a {
    text-decoration: none;
    color: var(--ink-2);
}

.masthead nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.masthead nav .btn { color: var(--paper); }
.masthead nav .btn:hover { text-decoration: none; }

/* ===== Type ===== */

.kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--ink);
}

.display {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.deck {
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.45;
    color: var(--ink-2);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-top: 2px solid var(--rule-strong);
    padding-top: 14px;
    margin-bottom: 28px;
}

.section-head h2 { font-size: 30px; }

.section-head a {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
}

.section-head a:hover { color: var(--ink); }

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 3px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--ink);
    transition: background 0.15s;
}

.btn:hover { background: #000; }

.btn-small { padding: 8px 16px; font-size: 14px; }

.text-link {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.text-link:hover { color: var(--accent); }

/* ===== Home: hero ===== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    padding: 72px 0 80px;
}

.hero > div:first-child { position: sticky; top: 40px; }
.hero .kicker { margin-bottom: 20px; }
.hero .display { margin-bottom: 24px; }
.hero .deck { margin-bottom: 32px; max-width: 34ch; }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fine-print {
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

/* The sample brief, presented like a clipping */

.clipping {
    background: #fff;
    border: 1px solid var(--rule);
    box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(22, 21, 15, 0.35);
    padding: 28px 28px 8px;
}

.clipping-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.clipping .brief .intelligence-list li:nth-child(n+6) { display: none; }

.clipping-foot {
    border-top: 1px solid var(--rule);
    margin-top: 4px;
    padding: 14px 0 18px;
    font-size: 15px;
}

/* ===== Brief content (AI output) ===== */

.brief .executive-summary h2,
.brief .competitor-section h2 { display: none; }

.brief .executive-summary p {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 20px;
}

.brief .intelligence-list { list-style: none; }

.brief .intelligence-list li {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
}

.brief .intel-item {
    display: block;
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 4px;
}

.brief .intel-source,
.brief .intel-date {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brief .intel-source {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.brief .intel-source:hover { text-decoration: underline; }

.brief .intel-date { color: var(--muted); margin-left: 10px; }

.brief .no-news {
    font-style: italic;
    color: var(--muted);
    padding: 14px 0;
    border-top: 1px solid var(--rule);
}

/* ===== Home: sections ===== */

.home-section { padding: 0 0 88px; }

.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.step-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
}

.columns-3 h3 { font-size: 23px; margin-bottom: 8px; }
.columns-3 p { color: var(--ink-2); }

.filter-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
}

.filter-table > div { padding: 24px 0; }
.filter-table > div + div { border-left: 1px solid var(--rule); padding-left: 32px; }

.filter-table h3 {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.filter-table .keep h3 { color: var(--ink); }
.filter-table .toss h3 { color: var(--muted); }

.filter-table ul { list-style: none; }

.filter-table li {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.6;
}

.filter-table .toss li {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: var(--accent);
}

.pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border: 1px solid var(--ink);
    padding: 40px;
    background: #fff;
}

.price {
    font-family: var(--serif);
    font-size: 84px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price small {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}

.pricing ul { list-style: none; margin-bottom: 24px; }

.pricing li {
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
}

.directory { border-top: 1px solid var(--rule); }

.directory-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.directory-row h3 { font-size: 19px; }
.directory-row h3 a { text-decoration: none; }
.directory-row h3 a:hover { color: var(--accent); }

.directory-row .names { color: var(--ink-2); }
.directory-row .names a { text-decoration: none; }
.directory-row .names a:hover { text-decoration: underline; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }

.faq details p {
    padding: 0 0 22px;
    max-width: 68ch;
    color: var(--ink-2);
}

.closing {
    border-top: 2px solid var(--rule-strong);
    padding: 56px 0 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.closing h2 { font-size: clamp(28px, 4vw, 40px); max-width: 22ch; }

/* ===== Article pages (company / category / index) ===== */

.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    padding: 48px 0 88px;
}

.breadcrumbs {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-head { margin-bottom: 36px; }
.article-head h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 16px; }
.article-head .deck { max-width: 60ch; }

.dateline {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 2px solid var(--rule-strong);
    padding-top: 12px;
    margin-bottom: 24px;
}

.past-week { border-top: 1px solid var(--rule); }
.past-week:last-child { border-bottom: 1px solid var(--rule); }

.past-week summary {
    cursor: pointer;
    padding: 16px 0;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.past-week .brief { padding-bottom: 16px; }

.article-section { margin-top: 56px; }
.article-section > h2 { font-size: 26px; margin-bottom: 18px; }

.disclaimer {
    margin-top: 48px;
    font-size: 14px;
    color: var(--muted);
}

.sidebar { display: flex; flex-direction: column; gap: 32px; }

.sidebar-box {
    border-top: 2px solid var(--rule-strong);
    padding-top: 14px;
}

.sidebar-box h2 {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sidebar-box ul { list-style: none; }

.sidebar-box li { border-bottom: 1px solid var(--rule); }

.sidebar-box li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 18px;
}

.sidebar-box li a:hover { color: var(--accent); }

.sidebar-box li .meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    align-self: center;
}

.cta-box {
    background: var(--ink);
    color: var(--paper);
    padding: 24px;
}

.cta-box h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--paper);
    margin-bottom: 10px;
}

.cta-box p { font-size: 15px; color: #d9d6cc; margin-bottom: 18px; }

.cta-box .btn {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    width: 100%;
    text-align: center;
}

.cta-box .btn:hover { background: #fff; }

.cta-box .fine { font-size: 13px; color: #a9a59a; margin: 12px 0 0; }

.story-list { border-top: 1px solid var(--rule); }

.story {
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}

.story h2 { font-size: 28px; margin-bottom: 10px; }
.story h2 a { text-decoration: none; }
.story h2 a:hover { color: var(--accent); }

.story p {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.story .more { font-size: 15px; }

/* ===== Comparisons and alternatives ===== */

.analysis p {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 18px;
    max-width: 66ch;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.compare-col h2 {
    font-size: 28px;
    border-top: 2px solid var(--rule-strong);
    padding-top: 12px;
    margin-bottom: 8px;
}

.compare-col h2 a { text-decoration: none; }
.compare-col h2 a:hover { color: var(--accent); }

.compare-about {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
}

.compare-col .brief .intel-item { font-size: 16px; }
.compare-col .more { display: inline-block; margin-top: 14px; font-size: 15px; }

.story .step-num { margin-bottom: 4px; }
.story .compare-about { font-family: var(--sans); font-size: 15px; }

.story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-family: var(--sans) !important;
    font-size: 15px !important;
}

/* ===== Footer ===== */

.site-footer {
    border-top: 1px solid var(--rule-strong);
    background: var(--paper-2);
    padding: 40px 0 48px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer .wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.site-footer .wordmark { font-size: 22px; }
.site-footer p { margin-top: 8px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 24px;
}

.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .hero, .article, .pricing, .compare-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 40px 0 56px; }
    .hero > div:first-child { position: static; }
    .columns-3 { grid-template-columns: 1fr; gap: 28px; }
    .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .masthead nav { gap: 14px; }
    .masthead nav a { white-space: nowrap; }
    .masthead .wordmark { font-size: 22px; }
    .masthead nav .btn-small { padding: 7px 12px; }
    .masthead nav .hide-sm { display: none; }
    .clipping { padding: 20px 18px 4px; }
    .filter-table { grid-template-columns: 1fr; }
    .filter-table > div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); }
    .directory-row { grid-template-columns: 1fr; gap: 4px; }
    .pricing { padding: 24px; }
    .price { font-size: 64px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}
