/* Basic styling for the Telegraph clone.
 * The layout aims to mirror the minimalist aesthetic of the original
 * telegraph editor and article pages. Colors and typography are kept
 * simple for readability and to encourage focus on the content.
 */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.article {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.article-header h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.article-header address {
    font-style: normal;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-header .author {
    font-weight: 500;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Form styles */
form .form-group {
    margin-bottom: 1.2rem;
}

form .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

form .form-group input,
form .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

.form-actions {
    text-align: right;
}

.form-actions button {
    background-color: #0088cc;
    color: #fff;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-actions button:hover {
    background-color: #0075b8;
}

.error-msg {
    color: #c00;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 404 / error page styling */
.error-page {
    text-align: center;
    padding-top: 5rem;
}