/* The look is Telegram's, with one green in place of every blue.
   Plain white, black text, a single accent, generous measure - the site should
   read like the app it belongs to and get out of the way. */

/* The light-theme green is darker than the icon's. #22a95f reads as the brand
   colour but sits at 3.04:1 against white, under the 4.5:1 that normal text
   needs; this one is 5.24:1 and still ours. The dark theme already passed. */
:root {
    --accent: #177c45;
    --accent-hover: #106036;
    --ink: #000000;
    --ink-soft: #666e78;
    --paper: #ffffff;
    --line: #e6ecf0;
    --band: #f4f4f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #2fa863;
        --accent-hover: #3cbb73;
        --ink: #f5f5f5;
        --ink-soft: #8d949c;
        --paper: #212121;
        --line: #303030;
        --band: #1a1a1a;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0 1.25rem 4rem;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
}

main {
    max-width: 40rem;
    margin: 0 auto;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* The mark, the same two rectangles as the launcher icon. */
.mark {
    display: block;
    width: 5rem;
    height: 5rem;
    margin: 3.5rem auto 1.5rem;
    border-radius: 1.2rem;
    background: linear-gradient(160deg, #2e9e63, #14663c);
    position: relative;
}

.mark::before,
.mark::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 0.35rem;
    width: 1.91rem;
    height: 1.43rem;
}

.mark::before {
    left: 0.82rem;
    top: 1.04rem;
}

.mark::after {
    left: 2.27rem;
    top: 2.54rem;
}

.home {
    text-align: center;
}

h1 {
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 2.4rem 0 0.6rem;
}

p,
li {
    margin: 0 0 0.85rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
}

.updated {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: -0.2rem 0 2.5rem;
}

ul {
    padding-left: 1.2rem;
    margin: 0 0 0.85rem;
}

li {
    margin-bottom: 0.4rem;
}

/* A sentence that carries more weight than the paragraph around it. */
.plain {
    background: var(--band);
    border-left: 3px solid var(--accent);
    padding: 0.85rem 1rem;
    margin: 1.4rem 0;
    border-radius: 0 4px 4px 0;
}

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

.buttons {
    margin: 2rem 0 1rem;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    margin: 0 0.3rem 0.6rem;
}

.button:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}

nav {
    margin-top: 3.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
    color: var(--ink-soft);
}

nav a {
    margin-right: 1.2rem;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.home nav a {
    margin: 0 0.6rem 0.4rem;
}

.back {
    display: inline-block;
    margin: 2.5rem 0 1.2rem;
    font-size: 0.94rem;
}

/* Coming soon: the line that says why there is nothing to download yet. */
.soon {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin: 0 0 1.2rem;
}
