:root {
    /* Colors */
    --color-castle-gold: #C9A672;
    --color-slate-blue: #4A5F7F;
    --color-forest-green: #2D4A2B;
    --color-sandstone: #D4C4A8;
    --color-burgundy: #8B3A3A;
    --color-timber: #5C4033;
    --color-stone-grey: #7A8289;
    --color-mist: #E8E6E3;
    --color-charcoal: #2C3236;

    /* Typography - Font Families */
    --font-primary: Georgia, 'Times New Roman', Times, serif;
    --font-display: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;

    /* Typography - Type Scale */
    --text-display: 3.052rem;
    --text-h1: 2.441rem;
    --text-h2: 1.953rem;
    --text-h3: 1.563rem;
    --text-h4: 1.250rem;
    --text-body: 1rem;
    --text-small: 0.800rem;

    /* Typography - Line Heights */
    --leading-tight: 1.1;
    --leading-heading: 1.2;
    --leading-ui: 1.4;
    --leading-relaxed: 1.5;
    --leading-body: 1.6;

    /* Typography - Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    background:
        linear-gradient(180deg, rgba(74, 95, 127, 0.75) 0%, rgba(232, 230, 227, 0.60) 50%, rgba(44, 50, 54, 0.75) 100%),
        url('landscape.jpg');
    background-size: auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
}

.container {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 3rem 4rem;
    box-shadow: 0 20px 60px rgba(44, 50, 54, 0.4);
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--color-sandstone);
}

h1 {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-castle-gold);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(92, 64, 51, 0.2);
}

.subtitle {
    font-size: var(--text-h4);
    line-height: var(--leading-relaxed);
    color: var(--color-timber);
    margin-bottom: 2rem;
    font-weight: var(--weight-regular);
}

.description {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-timber);
    margin-bottom: 2.5rem;
}

.features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-sandstone);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(122, 130, 137, 0.2);
}

.feature:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(74, 95, 127, 0.15);
    background: linear-gradient(90deg, var(--color-sandstone) 0%, var(--color-mist) 100%);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.feature-text {
    font-size: var(--text-body);
    line-height: var(--leading-ui);
    color: var(--color-timber);
}

.feature-text strong {
    font-weight: var(--weight-semibold);
    color: var(--color-charcoal);
}

.footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-stone-grey);
    font-size: var(--text-small);
    line-height: var(--leading-relaxed);
    color: var(--color-stone-grey);
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-forest-green);
    color: var(--color-mist);
    border-radius: 20px;
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    line-height: var(--leading-ui);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(45, 74, 43, 0.3);
}

/* Error page specific styles */
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-burgundy);
    line-height: 1;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-timber);
    margin-bottom: 2rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-slate-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 95, 127, 0.3);
}

/* Responsive Typography */
@media (max-width: 767px) {
    html { font-size: 14px; }
    h1 { font-size: 2.5rem; }
    .container { padding: 2rem; }
    .error-code { font-size: 4rem; }
}

@media (min-width: 768px) {
    html { font-size: 15px; }
}

@media (min-width: 1024px) {
    html { font-size: 16px; }
}
