@font-face {
    font-family: Inter;
    src: url("assets/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    color-scheme: light;
    background: #d3d3d3;
    color: #000;
    font: 500 100%/1.2 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body {
    --gutter: clamp(16px, 4.74vw, 56px);
    width: calc(100% - 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(16px, 2.71vw, 32px) 0 clamp(32px, 6.1vw, 72px);
}
h1, p { margin: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(16px, 2.54vw, 30px);
    margin-left: max(-26px, calc(0px - var(--gutter)));
    padding-right: 8px;
}
.flower {
    width: 128px;
    height: 128px;
    background: url("assets/garden.svg") center / contain no-repeat;
}
h1 { margin-bottom: 1.2em; }
.source { align-self: start; margin-top: 26px; }
.computer {
    --rim: clamp(12px, 2.71vw, 32px);
    --inset: clamp(12px, 1.95vw, 23px);
    position: relative;
    isolation: isolate;
    margin-top: clamp(24px, 2.71vw, 32px);
    padding: var(--rim) var(--rim) 0;
    border-radius: clamp(18px, 3.05vw, 36px);
    background: linear-gradient(171deg, color(display-p3 1 .851 0) 7.34%, color(display-p3 .9412 .77255 0) 67%);
    box-shadow: 0 5px 25px #50380024, 0 5px 11.2px #5038001c, 0 0 1px #0005;
}
.computer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    border: .5px solid rgb(0 0 0 / 26%);
    border-radius: inherit;
    box-shadow: inset .5px 1px 3px #ffff7a, inset 0 -1px 4px #59330099;
}
.computer.unavailable { display: grid; place-items: center; min-height: 10rem; padding: 1.5rem; background: none; box-shadow: none; }
.computer.unavailable::after { content: none; }
.unavailable p { max-width: 42ch; text-align: center; }
.screen {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1005 / 637;
    overflow: hidden;
    border-radius: 0.398% / 0.628%;
    background: black;
    color: #ddd;
    box-shadow: 0 0 0 clamp(4px, .68vw, 8px) black;
}
.screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.controls {
    position: relative;
    height: calc(2 * var(--inset) + 35px);
    margin-inline: calc(var(--inset) - var(--rim));
    padding-bottom: var(--inset);
    display: flex;
    align-items: end;
    gap: 10px;
}
.control {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
/* These Figma exports include the shadow outside each 28px button face. */
.control::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 31px;
    height: 31px;
    background: url("assets/power-button.png") center no-repeat;
}
.control.window::before { background-image: url("assets/window-button.png"); }
.control:active { transform: translateY(1px); }
.maker-mark {
    width: 40px;
    height: 30px;
    margin: 0 -1px -2px auto;
    background: url("assets/playbit-mark.svg") center / contain no-repeat;
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: clamp(32px, calc(14px + 3.75vw), 96px);
    padding-inline: 8px;
    color: rgb(0 0 0 / 40%);
}
@media (max-width: 42rem) {
    header {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        row-gap: 12px;
        margin-left: 0;
    }
    .flower { width: clamp(56px, 14vw, 88px); height: auto; aspect-ratio: 1; }
    .intro { padding-top: .4em; }
    .source { grid-column: 2; margin-top: 0; }
}
