/* Metronome Desk Wizard: one page, in the game's own colours and fonts.
   Colours are taken from assets/UI/palette_light.tres and the bench backdrop. */

@font-face { font-family: "m6x11"; src: url("fonts/m6x11plus.ttf"); font-display: swap; }
@font-face { font-family: "m5x7";  src: url("fonts/m5x7.ttf");      font-display: swap; }

:root {
    --bench: #24404f;
    --bench-dark: #1b3340;
    --frame: #c5c8cd;
    --page: #d4d7da;
    --well: #c0c3c8;
    --label: #323944;
    --dim: #5d6269;
    --btn: #99a2aa;
    --edge: #323944;
    --live: #0a8867;
    --gold: #e6a51a;
}

* { box-sizing: border-box; }

html { background: var(--bench); }

body {
    margin: 0;
    color: var(--label);
    font-family: "m5x7", "Courier New", monospace;
    font-size: 32px;
    line-height: 1;
    -webkit-font-smoothing: none;
    font-smooth: never;
    /* the bench's faint grid */
    background:
        linear-gradient(var(--bench-dark) 2px, transparent 2px) 0 0 / 64px 64px,
        linear-gradient(90deg, var(--bench-dark) 2px, transparent 2px) 0 0 / 64px 64px,
        var(--bench);
}

img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }

/* ---- hero ---- */
.hero { padding: 64px 24px 40px; text-align: center; }
.logo { width: 710px; margin: 0 auto; }
.pitch { color: #e8ecef; margin: 32px auto 0; max-width: 760px; }
.cta { margin-top: 32px; }

/* ---- buttons: the game's one button ---- */
.btn {
    display: inline-block;
    padding: 8px 16px 10px;
    margin: 4px;
    font-family: "m6x11", monospace;
    font-size: 32px;
    color: var(--label);
    background: var(--btn);
    border: 2px solid var(--edge);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
    text-decoration: none;
}
.btn:hover { background: #b0bcc6; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }
.btn.big { font-size: 48px; padding: 12px 28px 16px; background: var(--gold); }
.btn.big:hover { background: #f2b93a; }
.btn.off { cursor: default; }
.btn.off:active { transform: none; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }

/* ---- the browser window ---- */
.window {
    max-width: 960px;
    margin: 0 auto;
    background: var(--page);
    border: 2px solid var(--edge);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}
.titlebar, .statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px 6px;
    background: var(--frame);
    color: var(--dim);
    font-family: "m6x11", monospace;
}
.titlebar { border-bottom: 2px solid var(--edge); }
.statusbar { border-top: 2px solid var(--edge); }
.dots i {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    background: var(--btn);
    border: 2px solid var(--edge);
}
.dots i:last-child { background: #c2453c; }

.page { padding: 32px 40px 40px; }

h1, h2 { font-family: "m6x11", monospace; font-weight: normal; margin: 0; }
h1 { font-size: 64px; }
h2 { font-size: 48px; margin-top: 48px; padding-bottom: 6px; border-bottom: 2px solid var(--well); }
p { margin: 16px 0 0; }

.list { list-style: none; margin: 16px 0 0; padding: 0; }
.list li { padding: 6px 0 6px 28px; position: relative; }
.list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    width: 12px;
    height: 12px;
    background: var(--live);
}
.list b { font-weight: normal; color: var(--live); }

/* ---- pictures ---- */
.shot { margin: 0; background: var(--bench); border: 2px solid var(--edge); }
.shot img { margin: 0 auto; }
.shot.wide { margin-top: 32px; }
.shot.wide img { max-height: 743px; }
.shot figcaption {
    padding: 2px 8px 4px;
    background: var(--frame);
    border-top: 2px solid var(--edge);
    font-family: "m6x11", monospace;
    color: var(--dim);
}
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.shots .shot { display: flex; flex-direction: column; }
.shots .shot img { width: 100%; height: 280px; object-fit: cover; object-position: left top; }

.links { margin-top: 24px; }

/* ---- footer ---- */
footer { padding: 48px 24px 64px; text-align: center; color: #9fb3bf; }
footer img { width: 123px; margin: 0 auto; }

/* ---- phones ---- */
@media (max-width: 720px) {
    body { font-size: 32px; }
    .hero { padding: 32px 16px 24px; }
    .page { padding: 24px 16px 32px; }
    .window { border-left: 0; border-right: 0; box-shadow: none; }
    h1 { font-size: 48px; }
    h2 { font-size: 32px; }
    .btn.big { font-size: 32px; }
    .shots { grid-template-columns: 1fr; }
}
