/*!
Theme Name: 1-14
Theme URI: https://1-14.info/
Author: 1-14.info
Description: Clean newspaper-style shell for the 1-14 Orthodox Calendar portal.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.2
Text Domain: 1-14
*/

:root {
    --opn-ink: #171717;
    --opn-muted: #666;
    --opn-line: #d9d9d9;
    --opn-paper: #fff;
    --opn-accent: #8a1f11;
}

html {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--opn-paper);
    color: var(--opn-ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

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

.opn-masthead {
    border-bottom: 1px solid var(--opn-line);
    background: #fff;
}

.opn-masthead__inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: end;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 10px;
}

.opn-masthead__date,
.opn-masthead__section {
    color: var(--opn-muted);
    font-size: 12px;
    line-height: 1.25;
}

.opn-masthead__date {
    text-decoration: none;
}

.opn-masthead__date:hover {
    color: var(--opn-accent);
}

.opn-masthead__brand {
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
}

.opn-masthead__section {
    text-align: right;
}

.opn-breadcrumbs {
    border-bottom: 1px solid var(--opn-line);
    background: #fff;
    color: var(--opn-muted);
    font-size: 12px;
}

.opn-breadcrumbs__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 24px;
    list-style: none;
}

.opn-breadcrumbs__inner li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.opn-breadcrumbs__inner li + li::before {
    content: "/";
    margin: 0 8px;
    color: #9a9a9a;
}

.opn-breadcrumbs__inner a {
    color: var(--opn-muted);
    text-decoration: none;
}

.opn-breadcrumbs__inner a:hover {
    color: var(--opn-accent);
}

.opn-breadcrumbs__inner span {
    color: var(--opn-ink);
}

.opn-main {
    min-height: 60vh;
    background: #fff;
}

.opn-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 46px;
}

.opn-content .entry-title {
    margin: 0 0 20px;
    border-bottom: 2px solid var(--opn-ink);
    padding-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.1;
}

.opn-content .entry-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
}

.opn-footer {
    border-top: 1px solid var(--opn-line);
    color: var(--opn-muted);
    font-size: 12px;
}

.opn-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
}

.opn-fallback {
    max-width: 760px;
    margin: 40px auto;
    border: 1px solid var(--opn-line);
    padding: 24px;
    font-family: Georgia, "Times New Roman", serif;
}

.opn-fallback h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.1;
}

.opn-fallback p {
    margin: 0;
    color: var(--opn-muted);
    font-family: Arial, Helvetica, sans-serif;
}

body.home .opn-main > .ocwp-portal,
body.front-page .opn-main > .ocwp-portal {
    padding-top: 0;
}

@media (max-width: 640px) {
    .opn-masthead__inner {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 6px;
        padding: 14px 18px 10px;
        text-align: center;
    }

    .opn-masthead__brand {
        font-size: 42px;
    }

    .opn-masthead__section {
        text-align: center;
    }

    .opn-breadcrumbs__inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .opn-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .opn-content .entry-title {
        font-size: 28px;
    }
}
