* {
    box-sizing: border-box;
}

:root {
    --blue: #287db4;
    --ink: #111111;
    --muted: #4b4b4b;
    --paper: #ffffff;
    --line: #d7e4ec;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f3f5f6;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

* {
    max-width: 100%;
}

.document {
    width: min(100% - 2rem, 920px);
    margin: 2rem auto;
    padding: clamp(2rem, 6vw, 5.5rem) clamp(1.25rem, 7vw, 6rem);
    background: var(--paper);
    box-shadow: 0 12px 40px rgb(22 46 61 / 12%);
}

.document__header {
    text-align: center;
}

.document__kicker {
    margin: 0 0 1.5rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.document__header,
.step,
.practice,
.document__footer {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.document__tagline {
    margin: 1rem 0 0;
    color: var(--blue);
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
}

.document__intro {
    max-width: 650px;
    margin: 2.5rem auto 0;
    color: var(--muted);
}

.step,
.practice {
    max-width: 650px;
    margin: 3.5rem auto 0;
}

h2 {
    margin: 0 0 1.25rem;
    color: var(--blue);
    font-size: 1.4rem;
}

h3 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
}

p {
    margin: 0 0 1rem;
}

.definition-list {
    margin-top: 2rem;
}

.definition-list p {
    margin-bottom: 1rem;
}

strong {
    color: var(--blue);
}

ul {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
}

li::marker {
    color: var(--blue);
}

.practice {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.practice ol {
    display: grid;
    gap: 0.8rem;
    padding-left: 1.5rem;
}

.practice li::marker {
    color: var(--blue);
}

.practice__note,
.tip {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--blue);
    background: #f1f7fa;
}

.practice__note {
    color: var(--muted);
}

.tip strong {
    color: var(--blue);
}

.shortcut-box {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border: 1px solid var(--line);
}

.shortcut-box h4 {
    margin: 0 0 0.5rem;
    color: var(--blue);
}

.shortcut-box p {
    margin: 0;
    font-size: 0.95rem;
}

kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border: 1px solid #b7c8d1;
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: 0.85em;
}

.document__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.document__footer a,
.document__footer span {
    word-break: break-word;
}

a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .document {
        width: 100%;
        margin: 0;
        padding: 1.5rem 1rem 2rem;
        box-shadow: none;
    }

    .document__kicker {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    h1 {
        font-size: 2.1rem;
    }

    .document__tagline {
        font-size: 1.1rem;
    }

    .shortcut-box p {
        line-height: 1.7;
    }

    kbd {
        margin: 0.15rem 0;
    }

    .document__footer {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: start;
    }
}
