/* Rally Suite marketing site.
 *
 * The look follows rally-suite-pitch: sans-serif headings over a serif body,
 * generous measure, no ornament. It should read like a serious document, not a
 * SaaS landing page — the audience is buying operational infrastructure for an
 * organization, and the pitch earns trust by looking considered rather than sold.
 *
 * The accent is deliberately neither red nor blue. Both are partisan-coded in US
 * politics, and Rally Suite serves organizations across the spectrum.
 *
 * Fonts are system stacks on purpose: no third-party request, nothing to load,
 * nothing to leak.
 */

:root {
    --paper: #faf9f7;
    --ink: #17191c;
    --muted: #5b6068;
    --rule: #e2ded7;
    --accent: #1c5c54;
    --accent-ink: #123f39;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
        "DejaVu Serif", serif;
    --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;

    --measure: 38rem;
    --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #14161a;
        --ink: #e7e5e0;
        --muted: #989ea6;
        --rule: #2b3038;
        --accent: #79c5b7;
        --accent-ink: #a8ded4;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ---------- chrome ---------- */

.site-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.75rem var(--gutter);
}

.site-header__brand {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--sans);
    font-size: 0.875rem;
}

.site-header__nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-header__nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    max-width: 60rem;
    margin: 4rem auto 0;
    padding: 2rem var(--gutter) 3rem;
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

/* ---------- the stream ----------
 * A page is an ordered stream of blocks, so layout belongs to the blocks. Each
 * one constrains itself to the measure and is spaced by a flow gap; nothing may
 * assume what sits above or below it.
 */

.stream > * {
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.stream > * + * {
    margin-top: 1.6rem;
}

.stream img {
    max-width: 100%;
    height: auto;
}

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

.stream > .block-hero {
    max-width: 46rem;
    padding-top: 5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.stream > .block-hero + * {
    margin-top: 2.5rem;
}

.hero__heading {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(2rem, 4.4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hero__intro {
    max-width: 34rem;
    margin: 1.25rem auto 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.hero__image {
    margin-top: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--rule);
}

/* ---------- content blocks ---------- */

.block-heading h2 {
    margin: 3rem 0 0;
    font-family: var(--sans);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.block-heading + .block-paragraph {
    margin-top: 0.75rem;
}

.block-paragraph p {
    margin: 0 0 1.1rem;
    text-wrap: pretty;
}

.block-paragraph p:last-child {
    margin-bottom: 0;
}

/* The pitch leans on bolded lead-ins to open each point; carry that through. */
.block-paragraph strong {
    font-family: var(--sans);
    font-size: 0.97em;
    font-weight: 700;
}

.block-image figure {
    margin: 0;
}

.block-image img {
    border-radius: 4px;
    border: 1px solid var(--rule);
}

.block-image figcaption {
    margin-top: 0.6rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.block-quote blockquote {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--accent);
    font-size: 1.15rem;
    font-style: italic;
}

.block-quote blockquote p {
    margin: 0;
}

.block-quote cite {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-style: normal;
    color: var(--muted);
}

.block-cta {
    margin-top: 2rem;
}

.block-cta p {
    margin: 0;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-ink);
    color: var(--paper);
}

@media (prefers-color-scheme: dark) {
    .button {
        color: #10161a;
    }

    .button:hover {
        color: #10161a;
    }
}
