:root {
    color-scheme: light;
    --entry-nav: #182a3b;
    --entry-brand: #284d70;
    --entry-brand-strong: #193952;
    --entry-paper: #f4f1eb;
    --entry-ink: #202c37;
    --entry-muted: #53616e;
    --entry-line: #d9d7d2;
    --entry-input: #81909d;
    --entry-error: #8e3d27;
    color: var(--entry-ink);
    background: var(--entry-paper);
    font-family: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
input, button { font: inherit; }
:focus-visible { outline: 3px solid var(--entry-brand); outline-offset: 3px; }

.entry-frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.entry-skip {
    position: fixed;
    z-index: 1;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    background: #fff;
}
.entry-skip:not(:focus) { clip-path: inset(50%); }
.entry-header { border-bottom: 1px solid var(--entry-line); background: #fff; }
.entry-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.entry-brand, .entry-login { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.entry-brand { gap: 9px; color: var(--entry-nav); font-size: 22px; letter-spacing: -.05em; text-decoration: none; }
.entry-brand img { display: block; width: 34px; height: 34px; }
.entry-login { padding-inline: 6px; color: var(--entry-brand); font-size: 14px; text-underline-offset: 4px; }
.entry-header-actions { display: flex; align-items: center; gap: 8px; }
.entry-register-shortcut { display: none; }

.entry-main { padding-block: clamp(15px, 2.5vw, 24px); }
.entry-signup-page .entry-frame { width: min(1140px, calc(100% - 64px)); }
.entry-signup-page .entry-main { padding-block: 18px clamp(22px, 3vw, 44px); }
.entry-signup {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    grid-template-areas: "story form" "site form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4.2vw, 64px);
    row-gap: 20px;
    align-items: start;
}
.entry-story { grid-area: story; min-width: 0; }
.entry-story h1 {
    max-width: 13ch;
    color: var(--entry-nav);
    font-size: clamp(37px, 5vw, 65px);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: 1.03;
}
.entry-story h1 em { color: var(--entry-brand); font-style: normal; }
.entry-story p { max-width: 53ch; margin-top: 12px; color: var(--entry-muted); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.62; }
.entry-card {
    min-width: 0;
    padding: clamp(14px, 2.3vw, 24px);
    border: 1px solid var(--entry-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px #182a3b0d;
}
.entry-card h1, .entry-card h2 { font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.entry-card h1 { color: var(--entry-nav); font-size: clamp(25px, 3vw, 34px); }
.entry-intro { margin-top: 7px; color: var(--entry-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.entry-form { margin-top: 14px; }
.entry-signup .entry-card { grid-area: form; padding: 16px clamp(16px, 2.1vw, 24px) 20px; border-radius: 16px; }
.entry-signup .entry-card h2 { color: var(--entry-nav); font-size: clamp(23px, 2.4vw, 28px); }
.entry-signup .entry-intro { margin-top: 4px; }
.entry-signup .entry-form { margin-top: 9px; }
.entry-fields { display: grid; gap: 10px; }
.entry-field { min-width: 0; }
.entry-field > label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.entry-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--entry-input);
    border-radius: 7px;
    color: var(--entry-ink);
    background: #fff;
    font-size: 16px;
}
.entry-field input[aria-invalid="true"] { border-color: var(--entry-error); }
.entry-field-error { color: var(--entry-error); }
.entry-field-error, .entry-help { display: block; margin-top: 4px; font-size: 12px; line-height: 1.42; }
.entry-help { color: var(--entry-muted); }
.entry-password { position: relative; }
.entry-password input { padding-right: 120px; }
.entry-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--entry-brand);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.entry-acceptance { margin-block: 10px; }
.entry-acceptance label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--entry-ink);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}
.entry-acceptance input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--entry-brand); }
.entry-button, .entry-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.entry-button { color: #fff; background: var(--entry-brand); }
.entry-button:hover { background: var(--entry-brand-strong); }
.entry-form .entry-button { width: 100%; }
.entry-signup .entry-form .entry-button { min-height: 48px; background: var(--entry-nav); }
.entry-signup .entry-form .entry-button:hover { background: var(--entry-brand); }
.entry-secondary { border-color: var(--entry-input); color: var(--entry-brand); background: #fff; }
.entry-secondary:hover { border-color: var(--entry-brand); background: #e8eff6; }
.entry-button:disabled, .entry-secondary:disabled { opacity: .65; cursor: default; }
.entry-status:empty { display: none; }
.entry-status { margin-top: 11px; color: var(--entry-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.entry-status[data-tone="error"] { color: var(--entry-error); }
.entry-status[data-tone="success"] { color: #235a40; }

.entry-signup-next {
    margin-top: 10px;
    color: var(--entry-muted);
    font-size: 12px;
    line-height: 1.55;
}
.entry-site-preview { grid-area: site; min-width: 0; }
.entry-site-frame { overflow: hidden; border: 1px solid var(--entry-line); border-radius: 12px; box-shadow: 0 12px 24px #182a3b16; }
.entry-site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; }
.entry-site-header img { display: block; width: clamp(104px, 13vw, 155px); height: auto; }
.entry-site-header span { color: var(--entry-muted); font-size: 12px; }
.entry-site-image { position: relative; background: var(--entry-nav); }
.entry-site-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.98; object-fit: cover; }
.entry-site-image p {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(23px, 3.2vw, 42px);
    line-height: 1.04;
    text-shadow: 0 2px 16px #000a;
}
.entry-example-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--entry-brand-strong); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.entry-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.entry-result { width: min(570px, 100%); margin-inline: auto; }
.entry-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.entry-noscript { display: block; padding-bottom: 16px; color: var(--entry-error); font-size: 14px; }

@media (max-width: 800px) {
    .entry-frame, .entry-signup-page .entry-frame { width: min(610px, calc(100% - 32px)); }
    .entry-signup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "story" "form" "site"; }
    .entry-story h1 { max-width: 18ch; }
    .entry-register-shortcut {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-inline: 10px;
        border-radius: 8px;
        background: var(--entry-nav);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }
}
@media (max-width: 520px) {
    .entry-header-inner { min-height: 52px; }
    .entry-signup-page .entry-main { padding-top: 18px; }
    .entry-signup { row-gap: 16px; }
    .entry-story h1 { max-width: 15ch; font-size: clamp(33px, 9vw, 42px); }
    .entry-story p { margin-top: 8px; }
    .entry-signup .entry-card { padding: 14px; }
    .entry-signup .entry-form { margin-top: 10px; }
}
