/* --- 1. THE NEW COLOR PALETTE --- */
:root {
    --ink: #2C2C2C; /* Sophisticated deep gray, softer than black */
    --page-bg: #FAF9F6; /* Warm "newsprint" cream/off-white */
    --nav-bg: #F4F1EA; /* Slightly darker cream for the navbar */
    --accent-blue: #2A6496; /* Refined "Lake Michigan" blue for links */
    --line: #D8D3C9; /* Subtle "aged paper" gray for dividers */
    --card-shadow: rgba(44, 44, 44, 0.05); /* Soft ink-colored shadow */
    --gray: #888888; /* Secondary text for labels and counters */
}

/* --- 2. APPLIED STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--page-bg); /* Warm background */
    color: var(--ink); /* Readable text */
    font-family: 'Source Serif 4', serif;
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
}

section {
    scroll-margin-top: 90px; /* Offset for sticky header height */
}

hr.divider {
    border: none;
    border-top: 2px solid var(--ink);
    margin: 0;
}

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

/* --- 3. THE NEW NAV BAR --- */
header {
    background-color: #C8DFF0;
    border-bottom: 2px solid var(--line); /* A stronger divider line */
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--ink);
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    color: var(--accent-blue); /* The blue accent color for navigation */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 25px;
    transition: all 0.3s ease;
}

/* Hover effect: The link turns black and gets a subtle underline */
nav a:hover {
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 5px;
}

nav a.active {
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 5px;
}

/* --- 4. THE FULL-COLOR HERO IMAGE --- */
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

/* We removed the 'filter: grayscale(100%)' to make it full color */
.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    /* Added a nice colored border frame */
    border: 5px solid white;
    box-shadow: 15px 15px 0px var(--line); /* Stronger offset shadow in accent gray */
    border-radius: 4px;
}

/* --- 5. AS SEEN IN LOGO STRIP --- */
#as-seen-in {
    padding: 50px 0;
    text-align: center;
}

.as-seen-in-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    margin: 0 0 30px;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 50px;
}

.logo-strip img {
    height: 28px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-strip img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 6. THE NEW "BLUE LINK" PORTFOLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.article-card {
    border: 1px solid var(--line);
    background-color: white; /* Clean white card for contrast */
    padding: 25px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect: The card pops out with a soft shadow */
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--card-shadow);
}

.article-card .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-blue); /* Section labels are now blue */
    letter-spacing: 1px;
    font-weight: 700;
}

.article-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    margin: 15px 0;
    color: var(--ink);
}

/* The link is now the prominent blue accent */
.read-more {
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* --- FULL-WIDTH ARCHIVE STYLES --- */
#archive {
    padding: 80px 0;
    border-top: 2px solid var(--line);
    background-color: var(--page-bg);
}

.archive-layout {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Sidebar */
.archive-sidebar {
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin: 0 0 4px;
}

.sidebar-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-nav a:hover {
    color: var(--ink);
}

/* Main content */
.archive-container-inner {
    flex: 1;
    min-width: 0;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back to top */
.back-to-top-wrapper {
    text-align: right;
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 80px 60px;
}

.back-to-top {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--ink);
}

.archive-group {
    margin-bottom: 60px;
    scroll-margin-top: 110px;
}


.outlet-header a.outlet-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.outlet-header a.outlet-link::after {
    content: ' ↗';
    font-size: 0.75em;
    opacity: 0.6;
}

.outlet-header a.outlet-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.outlet-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    border-bottom: 3px solid var(--accent-blue);
    padding-bottom: 12px;
    margin-bottom: 30px;
    display: inline-block; /* Keeps the underline only as long as the text */
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    font-family: 'Source Serif 4', serif;
    font-size: 1.1rem; /* Slightly larger for the single column */
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
    transition: color 0.2s ease;
}

/* Subtle hover effect for the headlines */
.archive-list li:hover {
    color: var(--accent-blue);
}

.archive-list a,
.archive-list a:visited {
    color: var(--accent-blue);
}

.front-page-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Desktop to Mobile transition stays consistent */
@media (max-width: 768px) {
    .archive-list li {
        font-size: 1rem;
    }
}

/* --- STRUCTURED BOX CONTACT SECTION --- */
#contact {
    padding: 50px 0 100px;
    background-color: var(--page-bg);
}

.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-subtext {
    font-family: 'Source Serif 4', serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 40px;
}

/* The Form Layout */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Label Styling */
.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 8px;
}

/* THE BOXES: Pure white, defined borders */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #FFFFFF; /* Forced pure white */
    border: 1px solid var(--line); /* Soft gray border */
    border-radius: 2px; /* Very slight rounding for a modern feel */
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    color: var(--ink);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Subtle "lift" when the user clicks inside */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Very light shadow to "pop" the box */
}

#char-counter {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: var(--gray);
    margin-top: 6px;
}

/* The Button */
.submit-btn {
    align-self: flex-start;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--ink);
}

/* --- AWARDS PAGE --- */
#awards-page {
    padding: 80px 0;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 80px;
}

.award-item {
    padding: 35px 0;
    border-bottom: 1px solid var(--line);
}

.award-item:first-child {
    border-top: 1px solid var(--line);
}

.award-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.award-org {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
}

.award-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.award-title {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.4;
}

.award-context {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

.award-context a {
    color: var(--accent-blue);
    text-decoration: none;
}

.award-context a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #awards-page {
        padding: 50px 0;
    }

    .award-title {
        font-size: 1.2rem;
    }

    .awards-list {
        margin-bottom: 50px;
    }

    .award-item {
        display: flex;
        flex-direction: column;
    }

    .award-meta {
        display: contents;
    }

    .award-org {
        order: 1;
    }

    .award-title {
        order: 2;
    }

    .award-date {
        order: 3;
        margin-bottom: 8px;
    }

    .award-context {
        order: 4;
    }
}

/* --- SECTION TITLE --- */
.section-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--ink);
    margin: 60px 0 40px;
}

/* --- FOOTER --- */
footer {
    background-color: #C8DFF0;
    border-top: 2px solid var(--line);
    padding: 30px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--ink);
    margin-top: 0;
}

/* --- MOBILE RESPONSIVE STYLES --- */

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Tablet & Large Phone (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    header {
        padding: 18px 0;
    }

    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 20px 0 8px;
        border-top: 1px solid var(--line);
        margin-top: 16px;
    }

    .nav-open nav {
        display: flex;
    }

    nav a {
        margin: 0;
    }

    /* Hero: single column, image appears first */
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .hero-image {
        order: -1; /* Photo above bio on mobile */
        text-align: center;
    }

    .hero-image img {
        max-width: 280px;
        margin: 0 auto;
        box-shadow: 8px 8px 0px var(--line);
    }

    /* Portfolio: single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }

    .article-card h3 {
        font-size: 1.35rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.6rem;
        margin: 40px 0 28px;
    }

    /* Contact form: stack name/email rows */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #contact {
        padding: 60px 0;
    }

    /* Archive */
    #archive {
        padding: 50px 0;
    }

    .archive-layout {
        flex-direction: column;
        gap: 0;
    }

    .archive-sidebar {
        display: none;
    }
}

/* Small Phone (480px and below) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.78rem;
        margin-left: 8px;
        margin-right: 8px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero-image img {
        max-width: 220px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }

    .contact-wrapper {
        padding: 0 16px;
    }
}
