/* Forge Solo's website: the colours and the type of pool.bch2.org (its css/common.css), dark with
   BCH2 green and Inter. Inter is served from this site (fonts/OFL.txt is its license), so the page
   fetches nothing from anywhere else. Text sizes are in rem, so a larger default font size set in
   the browser makes the text larger. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --green: #0ac18e;
    --green-dark: #089e74;
    --bg: #0a0a0a;
    --bg-card: #111111;
    --border: #222222;
    --border-strong: #333333;
    --text: #ffffff;
    --text-2: #a0a0a0;
    --radius: 16px;
    --radius-sm: 10px;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--text); font-weight: 600; }

/* No word left alone on the last line of a heading, the lede or a footer line. */
h1, h2, h3, .hero .lede, .site-footer p { text-wrap: balance; }

/* Links in text are underlined: the green alone is too close to the grey text to tell them apart. */
a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(10, 193, 142, 0.55);
    text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
}

/* Read by a screen reader, not shown: what tells links of the same name apart. */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Above the top of the page until it has the focus, at any text size. */
.skip-link {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 0 0 8px 8px;
    background: var(--green);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-110%);
}
.skip-link:focus { transform: none; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}
.brand img { width: 36px; height: 36px; flex: none; }
.brand-name { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.brand-sub { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--text-2); }

.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a {
    color: var(--text-2);
    padding: 10px 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--green); }

/* Hero */

.hero { padding: 80px 0 72px; text-align: center; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero h1 span { color: var(--green); }
.hero .lede { margin-top: 16px; font-size: 1.375rem; font-weight: 600; line-height: 1.4; }
.hero .intro {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--text-2);
    font-size: 1.0625rem;
}
.hero .note { margin-top: 18px; color: var(--text-2); font-size: 0.875rem; }

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

/* The transparent border is what Windows' contrast themes draw round a button. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--green); }

/* Sections */

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.section .intro { max-width: 720px; margin-top: 12px; color: var(--text-2); }
.section .after { max-width: 760px; margin-top: 24px; color: var(--text-2); }

.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card h3 { color: var(--green); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.card p, .card li { color: var(--text-2); }
.card p { margin-top: 10px; }
.card ul { margin-top: 12px; padding-left: 20px; }
.card li + li { margin-top: 8px; }
.card li::marker { color: var(--green); }

.card .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

/* A block, not a flex box: a chip's text is one run, so the space beside a .vh part stays. */
.chip {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); }

.tile {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.tile h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.tile p { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps li {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 14px;
    border: 2px solid var(--green);
    border-radius: 50%;
    color: var(--green);
    font-weight: 700;
}
.steps h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.steps p { margin-top: 8px; color: var(--text-2); }

/* Footer */

.site-footer {
    padding: 40px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.875rem;
    text-align: center;
}
.site-footer p + p { margin-top: 10px; }

/* The page that answers an address the site does not have */

.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: 2.5rem; line-height: 1.15; }
.notfound p { max-width: 560px; margin: 16px auto 0; color: var(--text-2); }

/* Four tiles in two rows; the three platform cards one under the other, not two and one. */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .site-nav .in-page { display: none; }
    .hero { padding: 48px 0 48px; }
    .hero h1 { font-size: 2.625rem; }
    .hero .lede { font-size: 1.1875rem; }
    .hero .intro { font-size: 1rem; }
    .actions .btn { width: 100%; }
    .section { padding: 48px 0; }
    .section h2 { font-size: 1.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .card, .steps li { padding: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* On paper: dark text on white, since printing drops the backgrounds, and no navigation. */
@media print {
    :root {
        color-scheme: light;
        --bg: #ffffff;
        --bg-card: #ffffff;
        --text: #000000;
        --text-2: #222222;
        --border: #999999;
        --border-strong: #999999;
        --green: #05664a;
    }
    .skip-link, .site-nav, .actions { display: none; }
}
