/*
Theme Name: EJG Website
Author: Eric Geller
Version: 2.4
Description: Minimalist single-page theme designed for journalists with smooth scrolling and perfectly balanced workspace padding.
*/

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Georgia", "Times New Roman", serif;
    color: #111;
    line-height: 1.6;
    background-color: #fff;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Section --- */
header {
    text-align: center;
    padding: 55px 0 15px 0;
}

header h1 {
    font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    color: #000;
}

header p.subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: #777;
    font-weight: 500;
}

/* --- Diamond & Navigation --- */
.separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 940px;
    margin: 0 auto;
    padding-top: 15px;
}

.separator-container::before,
.separator-container::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #eaeaea;
}

.blue-diamond {
    width: 6px;
    height: 6px;
    background-color: #0056b3;
    transform: rotate(45deg);
    margin: 0 15px;
    flex-shrink: 0;
}

nav.main-nav {
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    margin-bottom: 20px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav.main-nav a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

nav.main-nav a:hover {
    color: #000;
}

/* --- Sections Common --- */
section {
    padding: 25px 0;
    margin-bottom: 20px;
}

section h2 {
    font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
    color: #000;
}

/* --- About me --- */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-image {
    flex: 0 0 250px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    font-size: 0.95rem;
    color: #222;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text a {
    color: #0044cc;
    text-decoration: underline;
}

/* --- Grid Systems --- */
.intro-text {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 25px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.card-box {
    border: 1px solid #e2e2e2;
    padding: 22px 18px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.card-box-link {
    cursor: pointer;
    transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

.card-box-link:hover {
    background-color: #fafafa;
    border-color: #cccccc;
}

.card-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 15px;
    object-fit: contain;
}

.card-title {
    font-size: 0.9rem; /* Increased from 0.8rem */
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.8rem; /* Increased from 0.72rem */
    color: #444;
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.72rem; /* Increased slightly to maintain visual hierarchy */
    color: #888;
    word-break: break-all;
}

/* --- Footer --- */
footer {
    border-top: 1px solid #eaeaea;
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.65rem;
    color: #999;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .about-container { flex-direction: column; gap: 20px; }
    .about-image { flex: 1 0 auto; width: 100%; max-width: 300px; margin: 0 auto; }
    .grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-container { grid-template-columns: 1fr; }
}