@font-face {
    font-family: "Pacifico";
    src: url("../font/Pacifico-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --bg-start: #e6f5ff;
    --bg-end: #ffe7f1;
    --text-color: #23324a;
    --filing-color: rgba(35, 50, 74, 0.68);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: var(--text-color);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.page {
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 24px 24px 48px;
}

.title {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.22em;
    max-width: min(92vw, 15ch);
    font-family: "Pacifico", cursive;
    font-size: clamp(4rem, 12vw, 8.5rem);
    font-weight: 400;
    line-height: 1.05;
    padding-bottom: 0.16em;
    text-align: center;
    color: var(--text-color);
}

.title-line {
    display: block;
    white-space: nowrap;
}

.filing {
    width: min(100%, 720px);
    margin: 0.35rem auto 0;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.78rem;
    color: var(--filing-color);
}

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

.filing a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .page {
        padding: 16px 16px 44px;
    }

    .title {
        max-width: min(94vw, 11ch);
        font-size: clamp(2.8rem, 15vw, 5rem);
        line-height: 1;
        padding-bottom: 0.2em;
    }

    .filing {
        width: 100%;
        padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 360px) {
    .page {
        padding: 12px 12px 40px;
    }

    .title {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        font-size: clamp(2.15rem, 14vw, 3.3rem);
        line-height: 0.98;
        padding-bottom: 0.24em;
    }

    .filing {
        font-size: 0.72rem;
        padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-start: #24344c;
        --bg-end: #4a3144;
        --text-color: #f4f8ff;
        --filing-color: rgba(244, 248, 255, 0.72);
    }
}
