:root {
    --background: hsla(0, 0%, 100%, 1);
    --text-color: hsla(0, 0%, 13%, 1);
    --secondary-text: hsla(0, 0%, 45%, 1);
    --tertiary-text: hsla(0, 0%, 65%, 1);
    --link-bg: #f4f4f4;
    --link-hover-bg: #e8e8e8;
    --border-color: hsla(0, 0%, 81%, 1);
    --shadow-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: hsla(0, 0%, 3%, 1);
        --text-color: hsla(0, 0%, 95%, 1);
        --secondary-text: hsla(0, 0%, 78%, 1);
        --tertiary-text: hsla(0, 0%, 62%, 1);
        --link-bg: #1e1e1e;
        --link-hover-bg: #292929;
        --border-color: hsla(0, 0%, 30%, 0.5);
        --shadow-color: rgba(255, 255, 255, 0.05);
    }
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 576px;
    padding: 24px;
    box-sizing: border-box;
    background: var(--background);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: var(--shadow-color);
}

footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 16px 0;
    font-size: 0.8rem;
    color: var(--tertiary-text);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text-color);
    color: var(--background);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.error-title {
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
}

.error-description {
    margin: 0 0 12px 0;
    color: var(--secondary-text);
}

.home-link {
    margin: 0;
}

.home-link a {
    color: var(--tertiary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-link a:hover {
    color: var(--text-color);
}

.movable-text {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}