@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #111214;
    color: #f2f0eb;
    font: 400 15px Manrope, Arial, sans-serif
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 40px;
    height: 144px;
    border-bottom: 1px solid #383a3d
}

header img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain
}

a {
    color: inherit;
    text-decoration: none
}

main {
    width: min(1200px, calc(100% - 32px));
    margin: 48px auto
}

.intro {
    text-align: center;
    margin-bottom: 32px
}

.eyebrow {
    color: #f07579;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em
}

h1 {
    font-size: clamp(32px, 5vw, 60px);
    letter-spacing: -.05em;
    margin: 12px 0
}

h1 span {
    color: #f07579
}

.intro>p:last-child,
.notice {
    color: #bcbcbc
}

.devices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px
}

button {
    font: inherit;
    font-weight: 600;
    color: #f2f0eb;
    background: #222427;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    min-height: 44px;
    cursor: pointer
}

button[aria-pressed=true] {
    background: #922d35;
    border-color: #f07579
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #f07579;
    outline-offset: 3px
}

button[hidden] {
    display: none
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0
}

.mode {
    color: #f07579;
    font-size: 12px;
    margin-right: auto
}

#dimensions {
    font-size: 12px;
    color: #bcbcbc
}

#viewport {
    display: flex;
    justify-content: center;
    padding: 12px 0 24px;
    min-width: 0
}

#device-frame {
    background: #35373b;
    padding: 12px;
    border-radius: 14px;
    max-width: 100%;
    flex: none
}

#device-frame[data-device=phone] {
    border-radius: 28px
}

#screen {
    position: relative;
    overflow: hidden;
    background: #181a1d;
    border-radius: 5px
}

iframe {
    display: block;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left
}

#device-frame[data-device=phone] #screen {
    border-radius: 18px
}

.notice {
    border-top: 1px solid #383a3d;
    padding-top: 18px;
    font-size: 13px
}

#status:empty {
    display: none
}

#viewer:fullscreen,
#viewer.expanded {
    background: #111214;
    padding: 12px;
    overflow: auto
}

#viewer.expanded {
    position: fixed;
    inset: 0;
    z-index: 1000
}

#viewer:fullscreen #device-frame,
#viewer.expanded #device-frame {
    padding: 0;
    border-radius: 0
}

#viewer:fullscreen #screen,
#viewer.expanded #screen {
    border-radius: 0
}

@media(max-width:480px) {
    main {
        margin: 28px auto
    }

    .devices button {
        font-size: 12px;
        padding: 8px 4px
    }

    .toolbar {
        gap: 6px
    }

    .toolbar button {
        font-size: 12px
    }
}

@media(max-width:1100px) {
    header {
        padding-left: 24px;
        padding-right: 24px
    }
}

@media(max-width:600px) {
    header {
        height: 136px;
        padding-left: 18px;
        padding-right: 18px
    }
}