/* The intro: the stylesheet for intro/index.html. The site's bones are in css/main.css;
   this page links this file after it (the layout reads `css:` from the front matter). */

.intro-page .lede { color: var(--soft); }
.intro-page .stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.intro-page .stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
.intro-page canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.intro-page .stage:fullscreen canvas { object-fit: contain; }
.intro-page .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
}
.intro-page .veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.66);
    color: #c9c9d1;
    font: 14px/1.6 var(--mono);
}
.intro-page .veil[hidden] { display: none; }
.intro-page .veil p { max-width: 460px; margin: 0 0 14px; }
.intro-page .veil .banner {
    font-size: 26px;
    letter-spacing: 0.3em;
    color: #ff3d9a;
    text-shadow: 0 0 12px rgba(255, 61, 154, 0.7);
}
.intro-page .veil button, .intro-page .bar button {
    font: 13px var(--mono);
    color: var(--ink);
    background: var(--code-bg);
    border: 1px solid var(--rule);
    padding: 6px 14px;
    cursor: pointer;
}
.intro-page .veil button { color: #ff3d9a; background: #000; border-color: #ff3d9a; padding: 8px 22px; letter-spacing: 0.1em; }
.intro-page .veil button:hover { background: #ff3d9a; color: #000; }
.intro-page .bar button:hover, .intro-page .bar button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.intro-page .bar { margin: 14px 0 30px; }
.intro-page .hint { font: 13px var(--mono); color: var(--faint); margin: 0 0 10px; }
.intro-page kbd { font: inherit; color: var(--soft); }
.intro-page .buttons { margin: 0; }
.intro-page .tune { font: 13px var(--mono); color: var(--faint); margin-left: 8px; }

/* Fullscreen without the Fullscreen API (iPhones): the stage pinned over the page. */
.intro-page .stage.filled {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    aspect-ratio: auto;
}
body.filled { overflow: hidden; }
.intro-page .unfill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    font: 22px/38px var(--mono);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #fff;
    border-radius: 0;
    cursor: pointer;
}
.intro-page .unfill[hidden] { display: none; }
.intro-page .stage.filled canvas { object-fit: contain; }
