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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #c0c0c0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,.05) 2px,
        rgba(0,0,0,.05) 4px
    );
    color: #000000;
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
}

header {
    background-color: #e8e8e8;
    padding: 20px 30px;
    border-bottom: 3px solid #000000;
}

.header-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid #000000;
    display: block;
}

h1 {
    font-size: 2.5em;
    color: #000000;
    font-weight: bold;
    margin: 0;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
}

main {
    padding: 30px;
}

h2 {
    font-size: 1.5em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    text-decoration: underline;
}

h3 {
    font-size: 1.2em;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

section {
    margin-bottom: 35px;
}

p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 1em;
    line-height: 1.7;
}

.variant {
    background-color: #f5f5f5;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid #000000;
}

.variant h3 {
    margin-top: 0;
    color: #000000;
}

strong {
    color: #000000;
    font-weight: bold;
}

footer {
    background-color: #e8e8e8;
    text-align: center;
    padding: 20px;
    border-top: 3px solid #000000;
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
}

/* Link styling inspired by the reference */
a {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .container {
        border-width: 2px;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    }
    
    header, main, footer {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    p {
        font-size: 0.95em;
    }
}
