*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background: #c0c0c0;
}

.container {
    max-width: 720px;
    margin: 16px auto;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #888;
    padding: 20px 28px;
}

h1, h2, h3 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    margin: 0.8em 0 0.4em;
}
h1 { font-size: 1.6em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }

p { margin: 0.5em 0; }

a { color: #0000EE; text-decoration: underline; }
a:visited { color: #551A8B; }
a:hover { color: #FF0000; }

hr {
    border: none;
    border-top: 1px solid #999;
    margin: 1.2em 0;
}

pre, code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}
code {
    background: #e8e8e8;
    padding: 1px 4px;
    border: 1px solid #ccc;
}
pre {
    background: #f0f0f0;
    border: 1px solid #999;
    padding: 10px 14px;
    overflow-x: auto;
    margin: 1em 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
pre code {
    background: none;
    border: none;
    padding: 0;
}

blockquote {
    border-left: 3px solid #999;
    margin: 1em 0;
    padding: 0.5em 1em;
    background: #f5f5f0;
    font-style: italic;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
}
th, td {
    border: 1px solid #000;
    padding: 6px 10px;
    text-align: left;
}
th {
    background: #c0c0c0;
    font-weight: bold;
}
tr:nth-child(even) { background: #f0f0f0; }
tr:hover { background: #e0e0ff; }

header {
    background: #000080;
    color: #fff;
    border-bottom: 2px solid #000;
}
header nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
.logo:visited { color: #fff !important; }
.logo:hover { color: #ffff00 !important; }
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.nav-links a {
    color: #fff;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}
.nav-links a:visited { color: #ddd; }
.nav-links a:hover { color: #ffff00; }

footer {
    text-align: center;
    padding: 10px;
    font-size: 0.85em;
    color: #666;
    margin-top: 16px;
}

.article-meta {
    font-size: 0.85em;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-bottom: 1em;
}

button, input[type="submit"] {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    padding: 5px 14px;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #ddd;
    cursor: pointer;
}
button:hover { background: #d0d0d0; }
button:active { border-style: inset; }

.btn-primary {
    background: #000080;
    color: #fff;
    border-color: #0000aa #000044 #000044 #0000aa;
}
.btn-primary:hover { background: #0000aa; }

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    padding: 4px 8px;
    border: 2px inset #bbb;
    background: #fff;
    color: #000;
}
input:focus, textarea:focus {
    outline: 1px dotted #000;
}

@media (max-width: 760px) {
    .container { margin: 8px; padding: 14px 16px; }
    h1 { font-size: 1.4em; }
}
@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { margin: 4px; padding: 10px 12px; }
    table { font-size: 0.85em; }
}

@media print {
    body { background: #fff; }
    .container { border: none; box-shadow: none; margin: 0; padding: 0; }
    header, footer { display: none; }
}
