/* The palette is Theme.swift, converted: the page and the overlay are the same
   thing seen twice. */
:root {
    --plate-top: #33363d;
    --plate-bottom: #17171c;
    --panel: #1c1c1f;
    --tile: rgba(255, 255, 255, 0.05);
    --hairline: rgba(255, 255, 255, 0.1);
    --blue: #0a85ff;
    --ink: rgba(255, 255, 255, 0.92);
    --ink-dim: rgba(255, 255, 255, 0.55);
    --ink-faint: rgba(255, 255, 255, 0.38);
    --mono: ui-monospace, "SF Mono", Menlo, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--plate-bottom);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* The same gradient the application icon is drawn with. */
header {
    background: linear-gradient(180deg, var(--plate-top) 0%, var(--plate-bottom) 100%);
    border-bottom: 1px solid var(--hairline);
    padding: 72px 0 56px;
    text-align: center;
}

header img.icon { width: 104px; height: 104px; }

h1 {
    font-size: 44px;
    font-weight: 600;
    margin: 16px 0 8px;
    letter-spacing: -0.02em;
}

.tagline { font-size: 18px; color: var(--ink-dim); margin: 0 0 4px; }
.tagline strong { color: var(--ink); font-weight: 500; }

.version {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 20px;
}

/* The install line is the call to action; there is nothing to click but this. */
.install {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 12px 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 14px;
    text-align: left;
}

.install code { color: var(--ink); }
.install .prompt { color: var(--ink-faint); user-select: none; }

button.copy {
    font-family: var(--sans);
    /* Pushed to the right edge so the buttons line up whatever the command's
       length, rather than trailing each one at a different place. */
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-dim);
    background: var(--tile);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}

button.copy:hover { color: var(--ink); border-color: var(--blue); }

.secondary { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

section { padding: 64px 0; border-bottom: 1px solid var(--hairline); }

h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 28px;
}

h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }

p { margin: 0 0 16px; color: var(--ink-dim); }
p.lead { font-size: 17px; color: var(--ink); }

figure { margin: 0; }

figure img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    display: block;
}

figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-faint);
    text-align: center;
}

/* Measurements are the thing no comparable page shows, so they get the room. */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
}

.stat { background: var(--panel); padding: 24px; }

.stat .value {
    font-family: var(--mono);
    font-size: 30px;
    color: var(--blue);
    letter-spacing: -0.02em;
}

.stat .what { font-size: 14px; color: var(--ink); margin-top: 6px; }
.stat .note { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 22px;
}

.card p { margin: 0; font-size: 14px; }

/* Keys are drawn as keys — the same treatment the settings window gives them. */
.keys { width: 100%; border-collapse: collapse; }
.keys td { padding: 11px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.keys tr:last-child td { border-bottom: none; }
.keys td:last-child { color: var(--ink-dim); font-size: 14px; padding-left: 24px; }

kbd {
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    background: var(--tile);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 4px 9px;
    white-space: nowrap;
}

kbd + kbd { margin-left: 6px; }

.how { display: grid; gap: 28px; }
.how h3 { color: var(--ink); }
.how p { margin: 0; font-size: 15px; }

/* The one thing a first-time visitor may actually get stuck on, so it is set
   apart rather than left as a sentence in a paragraph. */
.notice {
    margin-top: 32px;
    padding: 24px 26px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--blue);
    border-radius: 12px;
}

.notice h3 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice .install { margin-top: 4px; font-size: 13px; }
.notice ol { color: var(--ink-dim); padding-left: 20px; margin: 0 0 16px; }
.notice li { margin-bottom: 6px; }
.notice strong, .notice em { color: var(--ink); font-style: normal; }
.fineprint { font-size: 13px; color: var(--ink-faint); }

/* The guide is a sequence, so it is numbered and the numbers carry the eye down
   the page rather than a row of identical cards. */
.steps { display: grid; gap: 40px; }

.step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; }

.step .num {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--blue);
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 { margin-top: 8px; }
.step p { font-size: 15px; }
.step p:last-child { margin-bottom: 0; }

/* The key being taught, big enough to be the thing you look at. */
.taught { margin: 0 0 14px; }
.taught kbd { font-size: 18px; padding: 8px 14px; }

/* A short aside inside a step: the thing that trips people up. */
.aside {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    font-size: 14px;
}

.aside p { margin: 0; font-size: 14px; }
.aside p + p { margin-top: 10px; }
.aside strong { color: var(--ink); }

/* Back to the front page, and on the front page over to the guide. */
.crumbs { font-size: 13px; margin-bottom: 20px; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--ink); }

.next {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 20px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
}

.next:hover { border-color: var(--blue); text-decoration: none; }

footer {
    padding: 40px 0 64px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-faint);
}

@media (max-width: 620px) {
    .step { grid-template-columns: 1fr; gap: 10px; }
    .step .num { width: 36px; height: 36px; }
}

@media (max-width: 620px) {
    header { padding: 48px 0 40px; }
    h1 { font-size: 34px; }
    .install { flex-direction: column; align-items: stretch; gap: 10px; }
    .keys td:last-child { padding-left: 12px; }
}
