:root {
    --bg-paper: #f9f7f1;
    --ink-black: #111111;
    --border-color: #222222;
    --muted-grey: #666666;
    --accent-red: #c0392b; /* Subtle link color or attention */
    --font-serif: "Times New Roman", Times, Georgia, serif;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-paper);
    color: var(--ink-black);
    font-family: var(--font-serif);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Masthead */
.masthead {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.masthead h1 {
    font-size: 3rem;
    margin: 1rem 0;
    line-height: 1;
}

.meta-top, .meta-bottom {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-black);
}

.meta-top span { margin: 0 0.5rem; }

.double-line {
    border: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    height: 3px;
    margin: 1rem auto;
    width: 90%;
}

/* Layout */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.column {
    padding: 1rem;
}

.main-col { border-right: 1px solid var(--border-color); }
.content-col { border-right: 1px solid var(--border-color); }

@media (max-width: 768px) {
    .main-col, .content-col { border-right: none; border-bottom: 1px solid var(--border-color); }
}

/* Editorial Content */
.column h2 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.column h3 {
    font-size: 1rem;
    color: var(--ink-black);
    margin-top: 1.5rem;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 0.2rem;
}

.column p {
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 1rem;
}

.separator {
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
    color: var(--muted-grey);
}

/* Weather Elements */
.weather-box {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: #fff;
    margin-top: 1rem;
    box-shadow: 2px 2px 0 var(--muted-grey);
}

.weather-metric {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}
.weather-metric:last-child { border-bottom: none; }
.metric-label { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.metric-value { font-family: var(--font-sans); }

/* API Endpoints */
.endpoint {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.endpoint-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: bold;
    background: #eee;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
}

.code-block {
    font-family: "Courier New", Courier, monospace;
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 0.9rem;
    white-space: pre-wrap;
    margin-top: 0.5rem;
}

/* Sidebar Dictionary */
.data-list {
    list-style: none;
    padding: 0;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--muted-grey);
    font-size: 0.9rem;
}
.data-list li strong { text-transform: uppercase; }
.data-list li span { color: var(--muted-grey); font-style: italic; }

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2rem;
}

.loading {
    font-style: italic;
    color: var(--muted-grey);
}
