
/*
Theme Name: Meanwhile in Louisiana
Theme URI: https://meanwhileinlouisiana.com/
Author: Meanwhile in Louisiana
Description: Custom Louisiana news and culture WordPress theme with Hard Hyde editorial branding.
Version: 0.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: meanwhile-louisiana
*/

/* BASE */
:root {
    --purple: #4c2479;
    --gold: #f5c518;
    --green: #176d43;
    --ink: #211c27;
    --muted: #686471;
}

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

html {
    width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    min-width: 0;
    background: #fff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--purple);
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 22px;
}

/* TOP BRANDING */
.eyebrow {
    background: var(--purple);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
}

.masthead {
    padding: 30px 0 22px;
    border-bottom: 5px solid var(--gold);
}

.masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-block;
    font-family: Georgia, serif;
    font-weight: 900;
    font-size: clamp(27px, 4vw, 53px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.brand span {
    color: var(--purple);
}

.tagline {
    color: var(--muted);
    font-size: 12px;
    margin-top: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.edition {
    color: var(--green);
    font-weight: bold;
    font-size: 13px;
    text-align: right;
}

/* NAVIGATION */
.nav {
    background: var(--purple);
    color: #fff;
}

.nav .wrap {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.nav a {
    display: block;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .4px;
}

.nav a:hover,
.nav a:focus-visible {
    background: var(--green);
    color: #fff;
}

/* NEWS TICKER */
.ticker {
    border-bottom: 1px solid #ddd;
    padding: 13px 0;
    font-size: 13px;
}

.ticker .wrap {
    line-height: 1.8;
}

.ticker strong {
    display: inline-block;
    background: var(--gold);
    color: #1e1630;
    padding: 4px 9px;
    margin-right: 10px;
}

/* HOMEPAGE */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 30px;
    align-items: start;
}

.feature {
    min-width: 0;
    background: #f8f7f5;
    border: 1px solid #e8e5e9;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.kicker {
    color: var(--green);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.feature h1 {
    font: 900 clamp(30px, 4vw, 49px)/1.13 Georgia, serif;
    margin: 15px 0;
    overflow-wrap: anywhere;
}

.feature p {
    color: #555;
    font-size: 16px;
}

.byline {
    font-size: 12px;
    font-weight: bold;
    color: var(--purple);
    text-transform: uppercase;
}

/* FEATURED PHOTOGRAPH */
.feature-image-link {
    display: block;
    width: 100%;
    margin: 12px 0 16px;
    overflow: hidden;
}

.feature-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* HARD HYDE SIDEBAR */
.hydepane {
    min-width: 0;
    background: #f8f5fc;
    border-top: 5px solid var(--purple);
    padding: 15px;
}

.hydepane img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.65;
    object-fit: cover;
    object-position: center;
}

.hydepane h2 {
    font: 800 25px Georgia, serif;
    margin: 12px 0 4px;
}

.hydepane p {
    font-size: 14px;
    color: #555;
    margin: 4px 0 10px;
}

/* LATEST STORIES */
.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 34px 0 18px;
    font-family: Georgia, serif;
    font-size: 27px;
}

.section-heading::after {
    content: "";
    height: 3px;
    background: var(--gold);
    flex: 1;
}

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.story {
    min-width: 0;
    border-top: 4px solid var(--gold);
    border-bottom: 1px solid #ddd;
    background: #fff;
    padding: 18px 0;
}

.story-image-link {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    overflow: hidden;
}

.story-image {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.story h3 {
    font: 800 22px/1.2 Georgia, serif;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.story p {
    font-size: 14px;
    color: var(--muted);
}

.story time {
    font-size: 12px;
    color: #777;
}

.placeholder {
    padding: 24px;
    background: #f8f7f5;
    border-left: 4px solid var(--green);
    grid-column: 1 / -1;
}

/* ARTICLE PAGES */
.article {
    width: 100%;
    max-width: 780px;
    margin: 40px auto;
    padding: 0 22px;
}

.article h1 {
    font: 900 clamp(32px, 5vw, 56px)/1.13 Georgia, serif;
    overflow-wrap: anywhere;
}

.article .entry {
    font-size: 18px;
}

.article .entry a {
    text-decoration: underline;
    color: var(--purple);
}

.article .entry img {
    max-width: 100%;
    height: auto;
}

.pagination {
    margin: 20px 0 40px;
}

.pagination a {
    color: var(--purple);
}

/* FOOTER */
.footer {
    background: #24182f;
    color: #fff;
    margin-top: 50px;
    padding: 35px 0;
}

.footer p {
    color: #d3cbdc;
    font-size: 13px;
}

/* TABLET */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 16px;
    }

    .posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature {
        padding: 20px;
    }
}

/* MOBILE */
@media (max-width: 740px) {
    .wrap {
        padding-inline: 16px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: .8px;
        line-height: 1.5;
    }

    .masthead {
        padding: 20px 0;
    }

    .masthead .wrap {
        display: block;
    }

    .brand {
        font-size: clamp(28px, 7vw, 38px);
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 10px;
        letter-spacing: .6px;
    }

    .edition {
        text-align: left;
        margin-top: 12px;
        font-size: 12px;
    }

    /* Navigation scrolls sideways independently */
    .nav .wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-inline: 8px;
    }

    .nav a {
        font-size: 12px;
        padding: 12px 11px;
        white-space: nowrap;
    }

    .ticker {
        font-size: 12px;
    }

    .ticker strong {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 20px;
    }

    .feature {
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 16px;
    }

    .feature h1 {
        font-size: clamp(26px, 7vw, 36px);
    }

    .feature p {
        font-size: 14px;
    }

    .feature-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .hydepane {
        width: 100%;
    }

    .hydepane img {
        aspect-ratio: 1.8;
    }

    .section-heading {
        font-size: 24px;
        margin-top: 28px;
    }

    .posts {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .story {
        padding: 14px 0;
    }

    .story-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .story h3 {
        font-size: 23px;
    }

    .article {
        margin: 24px auto;
        padding-inline: 16px;
    }

    .article h1 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .article .entry {
        font-size: 16px;
    }
}
