/*
Theme Name: Fayetteville First Baptist
Description: Newspaper-style theme for Fayetteville First Baptist Church, Fayetteville, Ohio
Author: Fayetteville First Baptist Church
Version: 1.0
*/

/* =============================================
   RESET & BASE
============================================= */

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

:root {
    --paper:      #f6f3ee;
    --ink:        #1a1209;
    --rule:       #1a1209;
    --mid:        #6b6258;
    --light-rule: #c4bdb4;
    --paper-dark: #edebe5;
}

html { font-size: 16px; }

body {
    background-color: #b0aca6;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 24px,
        rgba(0,0,0,0.04) 24px,
        rgba(0,0,0,0.04) 25px
    );
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    line-height: 1.65;
}

.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--paper);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid #8a7a60;
    border-right: 1px solid #8a7a60;
}

a { color: var(--ink); }
a:hover { text-decoration: underline; }

/* =============================================
   MASTHEAD
============================================= */

.site-masthead {
    padding: 1.2rem 2rem 1rem;
    text-align: center;
    border-bottom: 4px double var(--rule);
    background-color: var(--paper);
}

.masthead-top-rule {
    border: none;
    border-top: 5px solid var(--rule);
    margin-bottom: 2px;
}

.masthead-top-rule-thin {
    border: none;
    border-top: 1px solid var(--rule);
    margin-bottom: 0.9rem;
}

.masthead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    color: var(--mid);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.site-title {
    text-align: center;
    margin: 0.3rem 0;
}

.site-title a {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
}

/* inline-block so its width is determined by the widest child (line 1) */
.site-title-inner {
    display: inline-block;
    text-align: center;
}

.site-title-line1 {
    display: block;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
    white-space: nowrap;
    font-family: "Times New Roman", Times, serif;
}

/* Thin rules above line 1 and below line 2, same width as the text block */
.site-title-inner::before,
.site-title-inner::after {
    content: '';
    display: block;
    border-top: 1px solid var(--ink);
}

.site-title-inner::before { margin-bottom: 0.2rem; }
.site-title-inner::after  { margin-top: 0.2rem; }


.site-title-line2 {
    display: block;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: "Times New Roman", Times, serif;
    width: 100%;
    text-align: center;
    letter-spacing: 0.28em;
}

.masthead-ornament {
    font-size: 1rem;
    letter-spacing: 0.6em;
    margin: 0.45rem 0;
    color: var(--mid);
}

.masthead-subhead {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.3rem 0;
    margin: 0.5rem 0 0.6rem;
}

/* =============================================
   NAVIGATION
============================================= */

.site-nav {
    border-bottom: 4px double var(--rule);
    padding: 0;
    text-align: center;
    background-color: var(--ink);
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.site-nav li { display: inline; }

.site-nav a {
    display: inline-block;
    color: var(--paper);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 1.3rem;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.site-nav li:first-child a {
    border-left: 1px solid rgba(255,255,255,0.25);
}

.site-nav a:hover { text-decoration: underline; }

.site-nav a.current-menu-item { text-decoration: underline; }

/* =============================================
   LAYOUT SHELL
============================================= */

.site-content {
    padding: 1.8rem 2.2rem 2.5rem;
}

/* =============================================
   FRONT PAGE
============================================= */

.front-page-headline {
    text-align: center;
    border-bottom: 3px double var(--rule);
    padding-bottom: 1rem;
    margin-bottom: 1.8rem;
}

.edition-date {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mid);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.front-page-headline h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    font-weight: 900;
}

.front-page-headline .deck {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--mid);
    margin-top: 0.4rem;
}

/* Three-column newspaper grid */
.front-columns {
    display: grid;
    grid-template-columns: 1fr 1px 1.85fr 1px 1fr;
    gap: 0 1.6rem;
    margin-bottom: 2rem;
}

.column-rule {
    background-color: var(--rule);
    width: 1px;
}

.front-columns .col { min-width: 0; }

/* Section heads */
.col h2,
.section-head {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-top: 3px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.25rem 0;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.col p {
    font-size: 0.88rem;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 0.8rem;
}

/* Drop cap */
.drop-cap::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: 0.72;
    margin-right: 0.07em;
    margin-top: 0.06em;
    font-weight: 900;
    color: var(--ink);
}

/* Pull quote */
.pull-quote {
    border-top: 2px solid var(--rule);
    border-bottom: 2px solid var(--rule);
    padding: 0.7rem 0.8rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
}

/* Info boxes */
.info-box {
    border: 1px solid var(--rule);
    padding: 0.85rem 0.9rem;
    margin-bottom: 1.1rem;
    background-color: var(--paper-dark);
}

.info-box h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-box p,
.info-box address {
    font-size: 0.875rem;
    line-height: 1.75;
    font-style: normal;
}

/* =============================================
   FIVE SOLAS BANNER
============================================= */

.solas-section {
    border-top: 4px double var(--rule);
    border-bottom: 4px double var(--rule);
    padding: 1.4rem 0;
    margin-bottom: 0;
    text-align: center;
    background-color: var(--paper-dark);
}

.solas-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--mid);
}

.solas-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.sola-item {
    text-align: center;
    padding: 0 1.8rem;
    border-right: 1px solid var(--light-rule);
}

.sola-item:last-child { border-right: none; }

.sola-latin {
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 700;
    display: block;
    letter-spacing: 0.02em;
}

.sola-english {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--mid);
    display: block;
    margin-top: 0.15rem;
}

/* =============================================
   ORNAMENTS & RULES
============================================= */

.ornament-rule {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--mid);
    border-top: 1px solid var(--light-rule);
    border-bottom: 1px solid var(--light-rule);
    padding: 0.3rem 0;
}

/* =============================================
   INTERIOR PAGES
============================================= */

.page-headline {
    border-bottom: 3px double var(--rule);
    padding-bottom: 0.8rem;
    margin-bottom: 1.6rem;
}

.page-headline h1 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    font-weight: 900;
}

.page-headline .deck {
    font-size: 1rem;
    font-style: italic;
    color: var(--mid);
    margin-top: 0.3rem;
}

.page-body {
    columns: 2;
    column-gap: 2.2rem;
    column-rule: 1px solid var(--rule);
}

.page-body.single-col { columns: 1; }

.page-body h2 {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-top: 3px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.25rem 0;
    margin: 1.4rem 0 0.7rem;
    font-weight: 700;
    column-span: all;
    break-after: avoid;
}

.page-body h2:first-child { margin-top: 0; }

.page-body h3 {
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 0.4rem;
    break-after: avoid;
}

.page-body p {
    font-size: 0.9rem;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 0.75rem;
}

.page-body ul,
.page-body ol {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-body li {
    margin-bottom: 0.3rem;
    text-align: justify;
}

/* =============================================
   SERMONS
============================================= */

.sermon-entry {
    border-bottom: 1px solid var(--light-rule);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    break-inside: avoid;
}

.sermon-entry h3 {
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sermon-entry h3 a { text-decoration: none; }
.sermon-entry h3 a:hover { text-decoration: underline; }

.sermon-meta {
    font-size: 0.78rem;
    color: var(--mid);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.sermon-entry p { font-size: 0.875rem; }

/* =============================================
   CONTACT PAGE
============================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.contact-grid iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 2px solid var(--rule);
    filter: grayscale(100%) sepia(15%);
}

/* Contact form */
.contact-form-wrap {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.contact-notice {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--rule);
    font-style: italic;
}

.contact-notice--success {
    background-color: #eaf0e8;
    border-color: #5a7a52;
    color: #3a5a34;
}

.contact-notice--error {
    background-color: #f0e8e8;
    border-color: #8a4a4a;
    color: #6a2a2a;
}

.contact-form {
    margin-top: 1rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-form__row .contact-form__field {
    margin-bottom: 0;
}

.contact-form__field label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.contact-form__field .required {
    color: #8a4a4a;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field textarea {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.9rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--rule);
    background-color: var(--paper);
    color: var(--ink);
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.contact-form__field textarea {
    resize: vertical;
    line-height: 1.6;
}

.contact-form__submit {
    margin-top: 0.5rem;
}

.contact-form__submit button {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    padding: 0.55rem 2rem;
    background-color: var(--ink);
    color: var(--paper);
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.contact-form__submit button:hover {
    background-color: var(--paper);
    color: var(--ink);
}

@media (max-width: 600px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   FOOTER
============================================= */

.site-footer {
    border-top: 4px double var(--rule);
    padding: 1.5rem 2rem 1.8rem;
    text-align: center;
    background-color: var(--paper-dark);
}

.footer-rule {
    border: none;
    border-top: 1px solid var(--light-rule);
    margin-bottom: 1rem;
}

.footer-church-name {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
}

.footer-info {
    font-size: 0.8rem;
    color: var(--mid);
    line-height: 1.9;
}

.footer-solas {
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.1em;
    margin-top: 0.85rem;
    color: var(--mid);
    border-top: 1px solid var(--light-rule);
    padding-top: 0.6rem;
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 800px) {
    .site-title-line1 { font-size: 2.4rem; }
    .site-title-line2 { font-size: 1.35rem; }

    .front-columns {
        grid-template-columns: 1fr;
    }

    .column-rule { display: none; }

    .contact-grid { grid-template-columns: 1fr; }

    .page-body { columns: 1; }

    .sola-item {
        padding: 0 1rem;
    }

    .masthead-meta {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .site-content { padding: 1rem 1.1rem 1.5rem; }
    .site-masthead { padding: 1rem 1rem 0.8rem; }
    .site-title-line1 { font-size: 1.75rem; }
    .site-title-line2 { font-size: 0.98rem; }
    .front-page-headline h1 { font-size: 1.85rem; }
    .page-headline h1 { font-size: 1.7rem; }

    .solas-grid { flex-direction: column; align-items: center; gap: 0.6rem; }
    .sola-item { border-right: none; border-bottom: 1px solid var(--light-rule); padding-bottom: 0.4rem; width: 100%; }
    .sola-item:last-child { border-bottom: none; }
}
