/* Tokens */
:root {
    --brand: #0065F4;
    --brand-soft: #E6F0FF;
    --text: #1E1B4B;
    --page-width: 920px;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(120% 80% at 50% -10%, #ffffff, transparent 55%),
            var(--brand-soft);
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* Layout */
.screen {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
}

.content {
    max-width: var(--page-width);
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
}

.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Doc */
.doc {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    width: 100%;
    margin: 24px auto 32px;
    padding: 16px;
    font-size: 1.2rem;
}

.doc h1 {
    font-size: clamp(24px, 5.5vw, 36px);
    line-height: 1.2;
    margin: 0 0 16px;
    color: #111;
}

.doc h2,
.doc strong {
    display: block;
    font-size: clamp(16px, 3.5vw, 20px);
    color: #111;
}

.doc p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: #333;
}

.doc ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
    color: #333;
}

.doc li + li {
    margin-top: 4px;
}

.doc a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .doc {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
        min-height: 100dvh;
    }
}

@media (max-height: 640px) {
    :root {
        --chrome-space: 218px;
    }

    .join-page { padding: 18px 20px 20px; }
    .join-subtitle { display: none; }
    .join-doodle { display: none; }
    .join-card-hint { display: none; }
    .join-title { font-size: 20px; }
    .action-button { padding: 15px 24px; }
}

@media (min-width: 720px) {
    :root {
        --side-space: 62vw;
    }
}

button {
    display: inline-block;
    padding: 15px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font: 600 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: pointer;
}

button:hover {
    background: #0056d2;
}

button:active {
    background: #004bb8;
}
