/* ==========================================================================
   The page a visitor lands on: /, served before anyone has signed in.

   Values come from theme_russim.css, which this page links first -- the front
   door and the panel behind it are one product, and a second palette here
   would drift from the first the moment either is touched. What is written
   here is layout only.

   Plain media queries, unlike the panel: the `.is-narrow` class exists in the
   shell because a Tailwind build there has to switch at the same width as the
   chrome, and none of that is on this page. Nothing else reads these rules.
   ========================================================================== */

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

body {
    margin: 0;
    background: var(--rs-bg, #121412);
    color: var(--rs-text, #d9d3c0);
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--rs-heading-font, "Arial Narrow", sans-serif);
    text-transform: var(--rs-heading-case, uppercase);
    letter-spacing: var(--rs-heading-spacing, 0.08em);
    font-weight: 600;
    margin: 0;
}

a {
    color: var(--rs-link, #f0a640);
}

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    /* 16px of gutter at phone width: no rule on this page may make the body
       scroll sideways. */
    padding: 0 16px;
}

/* --- the bar at the top ------------------------------------------------- */

.top {
    border-bottom: 1px solid var(--rs-rule, #2a302b);
    background: var(--rs-bg-raised, #181b19);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.mark {
    font-family: var(--rs-heading-font, "Arial Narrow", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1.25rem;
    color: var(--rs-accent, #e0922f);
    text-decoration: none;
}

/* --- the buttons -------------------------------------------------------- */

.button {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: var(--rs-radius, 2px);
    border: 1px solid var(--rs-accent-soft-border, rgba(224, 146, 47, 0.45));
    background: var(--rs-accent, #e0922f);
    color: var(--rs-on-accent, #17130c);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    background: var(--rs-accent-hover, #f0a640);
}

.button.quiet {
    background: transparent;
    color: var(--rs-text, #d9d3c0);
    border-color: var(--rs-border-strong, #4c554d);
}

.button.quiet:hover {
    background: var(--rs-control-hover, #384039);
}

/* --- the first screen --------------------------------------------------- */

.hero {
    padding: 72px 0 56px;
    /* A horizon rather than a picture: the page ships no screenshots, and a
       stock photograph of somebody else's railway would say less than this. */
    background:
        radial-gradient(120% 90% at 50% 0%, var(--rs-accent-veil, rgba(224, 146, 47, 0.14)) 0%, transparent 60%),
        linear-gradient(180deg, var(--rs-bg-raised, #181b19) 0%, var(--rs-bg, #121412) 100%);
    border-bottom: 1px solid var(--rs-rule, #2a302b);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.1;
}

.hero .lead {
    margin: 20px 0 0;
    max-width: 62ch;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: var(--rs-text, #d9d3c0);
}

.hero .note {
    margin: 12px 0 0;
    max-width: 62ch;
    color: var(--rs-text-dim, #9c9682);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* --- what it does ------------------------------------------------------- */

section.block {
    padding: 56px 0;
    border-bottom: 1px solid var(--rs-rule, #2a302b);
}

section.block > .wrap > h2 {
    font-size: 1.1rem;
    color: var(--rs-text-faint, #6f6b5e);
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    background: var(--rs-surface, #202421);
    border: 1px solid var(--rs-border, #3b423c);
    border-radius: var(--rs-radius, 2px);
    padding: 22px 24px;
}

.card h3 {
    font-size: 1.05rem;
    color: var(--rs-accent, #e0922f);
}

.card p {
    margin: 12px 0 0;
    color: var(--rs-text-dim, #9c9682);
}

/* --- how to start ------------------------------------------------------- */

.steps {
    counter-reset: step;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 18px 20px 18px 56px;
    background: var(--rs-bg-raised, #181b19);
    border: 1px solid var(--rs-border, #3b423c);
    border-radius: var(--rs-radius, 2px);
    color: var(--rs-text-dim, #9c9682);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 16px;
    font-family: var(--rs-heading-font, "Arial Narrow", sans-serif);
    font-size: 1.4rem;
    color: var(--rs-accent, #e0922f);
}

.steps b {
    display: block;
    color: var(--rs-text, #d9d3c0);
    font-weight: 600;
}

/* --- the foot ----------------------------------------------------------- */

footer {
    padding: 28px 0 48px;
    color: var(--rs-text-faint, #6f6b5e);
    font-size: 0.9rem;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: baseline;
    justify-content: space-between;
}
