@font-face {
    font-family: pixel;
    src: url(../fonts/PixelForge.otf);
}

@font-face {
    font-family: inked;
    src: url(../fonts/inkedgod.ttf);
}

:root {
    color-scheme: dark;
    --paper: #f3e7d7;
    --paper-shadow: #ddcbbd;
    --ink: #3d3047;
    --purple: #70517e;
    --line: rgba(112, 81, 126, .19);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: var(--ink);
    font-family: Arial, sans-serif;
    background-color: #21172a;
    background-image:
        linear-gradient(rgba(24, 16, 31, .28), rgba(24, 16, 31, .48)),
        url("../images/layout/4.png");
    background-size: auto, 170px auto;
    background-repeat: repeat;
}

.scrapbook-shell {
    width: min(100%, 900px);
    margin: 0 auto;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 24px;
}

.nav-item {
    display: inline-flex;
    height: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    color: #c7a7d5;
    font: 12px pixel, monospace;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(#48434b, #222025, #39343d);
    border: 2px solid #514455;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px #7b6d80, 0 2px 3px #111;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: linear-gradient(#665272, #393044, #51435d);
}

.nav-item:hover {
    transform: translateY(-1px);
}

.scrapbook-heading {
    margin: 0 auto 18px;
    padding: 10px;
    text-align: center;
    color: #f0dfcc;
}

.scrapbook-heading h1 {
    margin: 0;
    color: #f4e5f3;
    font: clamp(50px, 9vw, 78px) inked, cursive;
    line-height: 1;
    text-shadow: 2px 3px 0 #241b2d;
}

.scrapbook-wait {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    width: min(100%, 760px);
    min-height: 410px;
    margin: 0 auto;
    padding: 54px 44px 44px 64px;
    overflow: visible;
    text-align: center;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(112, 81, 126, .15) 50%, transparent 50.4%),
        repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 32px 33px),
        linear-gradient(100deg, var(--paper) 0%, #f0e1d0 49.5%, var(--paper-shadow) 50%, #f5e9d9 100%);
    border: 1px solid #bba69f;
    border-radius: 3px 8px 5px 3px;
    box-shadow: 12px 14px 0 rgba(13, 8, 18, .45), inset 0 0 0 8px rgba(255, 255, 255, .18);
    transform: rotate(-.6deg);
}

.scrapbook-wait::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 1px;
    background: rgba(172, 99, 132, .3);
    content: "";
}

.scrapbook-wait::after {
    position: absolute;
    top: -13px;
    right: 72px;
    width: 98px;
    height: 28px;
    background: rgba(196, 167, 201, .78);
    box-shadow: 0 1px 1px rgba(61, 48, 71, .15);
    content: "";
    transform: rotate(4deg);
}

.little-book {
    position: relative;
    display: flex;
    width: 108px;
    height: 78px;
    margin: 4px auto 22px;
    filter: drop-shadow(3px 4px 0 rgba(61, 48, 71, .2));
    transform: rotate(-3deg);
}

.little-book span {
    display: block;
    width: 50%;
    background: repeating-linear-gradient(to bottom, #fffaf1 0 10px, #d9c9d8 11px 12px);
    border: 1px solid #ac91b3;
}

.little-book span:first-child {
    border-radius: 5px 0 0 5px;
    transform: skewY(2deg);
}

.little-book span:nth-child(2) {
    background: repeating-linear-gradient(to bottom, #faf1e6 0 10px, #d7c2d3 11px 12px);
    border-radius: 0 5px 5px 0;
    transform: skewY(-2deg);
}

.little-book i {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: calc(50% - 1px);
    width: 2px;
    background: #8e719b;
}

.wait-label {
    margin: 0;
    padding: 6px 10px;
    color: #765a78;
    font: 10px pixel, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px dashed #a985a1;
    transform: rotate(-2deg);
}

.scrapbook-shell footer {
    margin: 28px 0 4px;
    text-align: center;
}

.scrapbook-shell footer a {
    color: #f0dff6;
    font: 12px pixel, monospace;
}

.scrapbook-shell a:focus-visible {
    outline: 2px solid #ffe6a8;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body {
        padding: 16px;
        background-size: auto, 125px auto;
    }

    .scrapbook-wait {
        min-height: 340px;
        padding: 42px 24px 32px 38px;
    }

    .scrapbook-wait::before {
        left: 22px;
    }

    .scrapbook-wait::after {
        right: 36px;
        width: 76px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }

    .navbar {
        gap: 6px;
        margin-bottom: 16px;
    }

    .nav-item {
        padding-inline: 8px;
        font-size: 10px;
    }

    .scrapbook-wait {
        min-height: 300px;
        padding: 36px 18px 28px 30px;
    }

    .scrapbook-wait::before {
        left: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
    }
}
