/*
Theme Name: SodusNY
Theme URI: https://sodusny.com
Author: Ash
Description: Custom newspaper theme for SodusNY.com - the digital archive and guide for Sodus, New York.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sodusny
*/

:root {
	--bay-navy: #1F3864;
	--lighthouse-red: #B22234;
	--archive-cream: #F7F3EC;
	--ink: #1A1A1A;
	--paper-line: #E8E3D8;
	--font-headline: 'Playfair Display', Georgia, serif;
	--font-body: 'Source Sans 3', -apple-system, sans-serif;
}

body { margin: 0; background: var(--archive-cream); color: var(--ink); font-family: var(--font-body); }
.masthead { background: var(--bay-navy); color: #fff; padding: 2.5rem 1rem; text-align: center; }
.site-title { font-family: var(--font-headline); font-size: 2.6rem; margin: 0; }
.site-title a { color: #fff; text-decoration: none; }
.site-tagline { color: #d8dcea; margin: .5rem 0 0; }
.site-main { max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
.post-card { background: #fff; border: 1px solid var(--paper-line); padding: 1.25rem; margin-bottom: 1.25rem; }
.entry-title { font-family: var(--font-headline); margin: 0 0 .5rem; }
.entry-title a { color: var(--bay-navy); text-decoration: none; }
.entry-title a:hover { color: var(--lighthouse-red); }
.site-footer { background: var(--ink); color: #cfcfcf; text-align: center; padding: 1.5rem 1rem; font-size: .85rem; }

.top-bar { background: var(--ink); color: #cfcfcf; font-size: .8rem; }
.top-bar-inner { max-width: 1080px; margin: 0 auto; padding: .45rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.main-nav { background: var(--bay-navy); border-top: 1px solid rgba(255,255,255,.12); }
.main-nav ul { list-style: none; margin: 0; padding: 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a { display: block; padding: .8rem 1.1rem; color: #e8ebf5; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.main-nav a:hover { color: #fff; background: var(--lighthouse-red); }
.empty-note { text-align: center; color: #7a746a; font-style: italic; }

.front-page { max-width: 1080px; margin: 2rem auto; padding: 0 1rem; }
.lead-story { background: #fff; border: 1px solid var(--paper-line); border-top: 4px solid var(--cat-color, var(--lighthouse-red)); padding: 2rem; margin-bottom: 2rem; text-align: center; }
.kicker { display: inline-block; background: var(--cat-color, var(--lighthouse-red)); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; }
.lead-title { font-family: var(--font-headline); font-size: 2.2rem; margin: .8rem 0 .6rem; }
.lead-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover { color: var(--lighthouse-red); }
.lead-standfirst { color: #4a4a4a; max-width: 60ch; margin: 0 auto .6rem; }
.lead-date { color: #8a8578; font-size: .85rem; }
.cat-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cat-section { background: #fff; border: 1px solid var(--paper-line); padding: 1.25rem; }
.cat-title { font-family: var(--font-headline); border-bottom: 3px solid var(--cat-color); padding-bottom: .4rem; margin: 0 0 .8rem; }
.cat-title a { color: var(--ink); text-decoration: none; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px dashed var(--paper-line); padding: .6rem 0; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { color: var(--bay-navy); text-decoration: none; font-weight: 600; }
.cat-list a:hover { color: var(--lighthouse-red); }
.cat-list time { display: block; color: #8a8578; font-size: .8rem; margin-top: .2rem; }

.front-page { max-width: 1080px; margin: 2rem auto; padding: 0 1rem; }
.lead-story { background: #fff; border: 1px solid var(--paper-line); border-top: 4px solid var(--cat-color, var(--lighthouse-red)); padding: 2rem; margin-bottom: 2rem; text-align: center; }
.kicker { display: inline-block; background: var(--cat-color, var(--lighthouse-red)); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; }
.lead-title { font-family: var(--font-headline); font-size: 2.2rem; margin: .8rem 0 .6rem; }
.lead-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover { color: var(--lighthouse-red); }
.lead-standfirst { color: #4a4a4a; max-width: 60ch; margin: 0 auto .6rem; }
.lead-date { color: #8a8578; font-size: .85rem; }
.cat-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cat-section { background: #fff; border: 1px solid var(--paper-line); padding: 1.25rem; }
.cat-title { font-family: var(--font-headline); border-bottom: 3px solid var(--cat-color); padding-bottom: .4rem; margin: 0 0 .8rem; }
.cat-title a { color: var(--ink); text-decoration: none; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px dashed var(--paper-line); padding: .6rem 0; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { color: var(--bay-navy); text-decoration: none; font-weight: 600; }
.cat-list a:hover { color: var(--lighthouse-red); }
.cat-list time { display: block; color: #8a8578; font-size: .8rem; margin-top: .2rem; }

.article { background: #fff; border: 1px solid var(--paper-line); padding: 2.5rem 2rem; }
.article-header { text-align: center; margin-bottom: 1.5rem; }
.kicker a { color: #fff; text-decoration: none; }
.article-title { font-family: var(--font-headline); font-size: 2.4rem; margin: .8rem 0 .5rem; color: var(--ink); }
.article-meta { color: #8a8578; font-size: .9rem; }
.article-featured img { width: 100%; height: auto; display: block; border: 1px solid var(--paper-line); }
.article-body { font-size: 1.08rem; line-height: 1.75; max-width: 68ch; margin: 0 auto; }
.article-body h2, .article-body h3 { font-family: var(--font-headline); }
.article-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--paper-line); color: #8a8578; font-style: italic; text-align: center; }
.page-title { font-family: var(--font-headline); color: var(--bay-navy); }
.archive-header { text-align: center; margin: 1rem 0 1.5rem; padding-bottom: .6rem; border-bottom: 4px solid var(--cat-color, var(--lighthouse-red)); }
.archive-title { font-family: var(--font-headline); margin: 0; }
.archive-nav { text-align: center; }
.not-found { text-align: center; }

.hero-wrap { max-width: 1080px; margin: 1.5rem auto 0; padding: 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.hero-main { position: relative; min-height: 420px; background-color: var(--bay-navy); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.hero-overlay { background: linear-gradient(transparent, rgba(10,15,30,.88)); width: 100%; padding: 3rem 1.5rem 1.25rem; color: #fff; }
.hero-title { font-family: var(--font-headline); font-size: 2rem; margin: .5rem 0; }
.hero-title a { color: #fff; text-decoration: none; }
.hero-standfirst { color: #e6e6e6; margin: 0 0 .4rem; }
.hero-date { color: #c9c9c9; font-size: .8rem; }
.hero-side { display: grid; gap: 1rem; align-content: stretch; }
.side-card { background: #fff; border: 1px solid var(--paper-line); border-top: 4px solid var(--cat-color); padding: 1.25rem; text-decoration: none; }
.side-card h3 { font-family: var(--font-headline); margin: 0 0 .4rem; color: var(--ink); }
.side-card p { margin: 0; color: #555; }
.front-columns { max-width: 1080px; margin: 2rem auto; padding: 0 1rem; display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.cat-sections.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.widget { background: #fff; border: 1px solid var(--paper-line); padding: 1.25rem; margin-bottom: 1.5rem; }
.widget-title { font-family: var(--font-headline); border-bottom: 3px solid var(--lighthouse-red); padding-bottom: .4rem; margin: 0 0 .8rem; }
.btn { display: inline-block; background: var(--lighthouse-red); color: #fff !important; padding: .5rem .9rem; text-decoration: none; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.widget-cats { list-style: none; margin: 0; padding: 0; }
.widget-cats li { border-left: 3px solid var(--cat-color); padding-left: .6rem; margin-bottom: .6rem; }
.widget-cats a { color: var(--bay-navy); text-decoration: none; font-weight: 600; }
@media (max-width: 800px) { .hero-grid, .front-columns, .cat-sections.two-col { grid-template-columns: 1fr; } .hero-main { min-height: 320px; } }
.footer-credit { font-size: .75rem; color: #9a958a; margin-top: .4rem; }

/* v2 - phase 1 */
.main-nav ul { justify-content: center; }
.main-nav { border-bottom: 3px solid var(--lighthouse-red); }
.hero-wrap { margin: 2rem auto 0; }
.hero-side .side-card { flex: 1; display: flex; flex-direction: column; border-top: 0; border-left: 4px solid var(--cat-color); background: linear-gradient(180deg, #ffffff 0%, #f6f2ea 100%); }
.side-browse { margin-top: auto; padding-top: .8rem; color: var(--cat-color); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.side-card:hover .side-browse { text-decoration: underline; }
.ornament { color: var(--lighthouse-red); margin-right: .35rem; }
.cat-section { min-height: 190px; }

/* v5 - Heritage Edition system */
:root { --space-2: 16px; --space-3: 24px; --space-6: 48px; --space-12: 96px; --font-body: 'Inter', -apple-system, sans-serif; }
body { font-family: var(--font-body); }
.post-card, .cat-section, .widget, .side-card, .article, .info-box, button, input { border-radius: 0; }
.site-tagline { font-family: var(--font-headline); font-style: italic; }
.eyebrow { display: block; color: var(--lighthouse-red); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--space-2); }
.top-bar-cta { background: var(--lighthouse-red); color: #fff; padding: .35rem .9rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.top-bar-cta:hover { background: #9d1b29; }
.main-nav { background: rgba(31,56,100,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-primary { display: inline-block; background: var(--lighthouse-red); color: #fff; padding: 14px 32px; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .3s ease; }
.btn-primary:hover { background: #9d1b29; }
.btn-ghost { display: inline-block; border: 1px solid #fff; color: #fff; padding: 13px 31px; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .3s ease; }
.btn-ghost:hover { background: #fff; color: var(--bay-navy); }

/* v6 - Heritage front page */
.hero-full { min-height: 88vh; background: var(--bay-navy) center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-full::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,20,50,.88), rgba(0,20,50,.25) 55%, rgba(0,20,50,.4)); }
.hero-inner { position: relative; z-index: 1; max-width: 820px; padding: 4rem 1.5rem; color: #fff; }
.hero-eyebrow { color: #fff; letter-spacing: .3em; }
.hero-display { font-family: var(--font-headline); font-style: italic; font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; margin: 1rem 0; }
.hero-display a { color: #fff; text-decoration: none; }
.hero-stand { color: #e6e6e6; max-width: 56ch; margin: 0 auto 1.2rem; }
.hero-date { color: #d9d9d9; letter-spacing: .06em; }
.hero-rule { width: 56px; height: 2px; background: var(--lighthouse-red); margin: 1rem auto; }
.hero-loc { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: #cfcfcf; margin: 0 0 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.band { padding: var(--space-12) 0; }
.band-cream { background: var(--archive-cream); }
.band-white { background: #fff; }
.band-navy { background: var(--bay-navy); }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.band-inner.center { text-align: center; }
.band-title { font-family: var(--font-headline); font-size: 2.4rem; color: var(--ink); margin: 0 0 2.5rem; }
.band-title.light { color: #fff; }
.band-copy { color: #cfd6e4; max-width: 52ch; margin: 0 auto 2rem; }
.eyebrow-light { color: #ff8082; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.trio-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--paper-line); color: var(--bay-navy); margin-bottom: 1.2rem; }
.trio-icon svg { width: 28px; height: 28px; }
.trio-item h3 { font-family: var(--font-headline); font-size: 1.3rem; margin: 0 0 .6rem; }
.trio-item p { color: #555; font-size: .95rem; margin: 0 0 .8rem; }
.trio-link { color: var(--lighthouse-red); font-weight: 600; font-size: .85rem; text-decoration: none; letter-spacing: .04em; }
.trio-link:hover { text-decoration: underline; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; }
.band-head .band-title { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bay-navy); }
.news-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .7s ease-in-out, transform .7s ease-in-out; }
.news-card:hover .news-img img { filter: grayscale(0%); transform: scale(1.05); }
.news-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bay-navy), #0a1428); }
.news-meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8578; margin: 1rem 0 .4rem; }
.news-cat { color: var(--cat-color, var(--lighthouse-red)); font-weight: 600; }
.news-title { font-family: var(--font-headline); font-size: 1.35rem; margin: 0; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--lighthouse-red); }
.cat-sections.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cat-section, .widget, .side-card { box-shadow: none; }
@media (max-width: 1024px) { .cat-sections.four-col { grid-template-columns: 1fr 1fr; } .news-grid, .trio { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cat-sections.four-col { grid-template-columns: 1fr; } }

/* v7 - Heritage palette swap: beige is dead */
:root {
	--bay-navy: #003257;
	--lighthouse-red: #ec2224;
	--archive-cream: #f2f2f2;
	--ink: #333333;
	--paper-line: #e3e3e3;
}
body { color: var(--ink); }
.site-footer { background: #001529; }
.main-nav { background: rgba(0,50,87,.95); }
.btn-primary:hover, .top-bar-cta:hover { background: #c9191b; }
.info-box { background: #f2f2f2; }
.hero-side .side-card { background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%); }
.empty-note, .news-meta, .cat-list time, .lead-date, .article-meta, .footer-credit { color: #666666; }
.footer-legal { color: #8fa0b5; border-top-color: #14304d; }

/* v8 - Know the Bay refinement */
.band-title { font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.01em; line-height: 1.1; }
.band-lead { color: #555; font-size: 1.05rem; line-height: 1.7; max-width: 52ch; margin: -1.5rem 0 4rem; }
.trio { gap: 4rem; }
.trio-icon { width: 72px; height: 72px; margin-bottom: 1.6rem; border: 1px solid #e3e3e3; }
.trio-icon svg { width: 32px; height: 32px; }
.trio-icon svg * { stroke-width: 1.8; }
.trio-item h3 { font-size: 1.5rem; color: var(--bay-navy); margin: 0 0 .8rem; }
.trio-item p { font-size: 1rem; line-height: 1.7; color: #555; max-width: 32ch; margin: 0 0 1.3rem; }
.trio-link { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }

/* v9 - subscribe button in nav */
.main-nav li.nav-cta a { background: var(--lighthouse-red); color: #fff; padding: .6rem 1.2rem; margin-left: .8rem; font-size: .78rem; letter-spacing: .12em; }
.main-nav li.nav-cta a:hover { background: #c9191b; }

/* v10 - nav centering + step cards */
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav li.nav-cta a { padding: .7rem 1.6rem; margin-left: 1rem; font-size: .8rem; letter-spacing: .08em; }
.band-deep { background: #001b3a; }
.sans-head { display: flex; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.sans-title { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin: 0; letter-spacing: -0.01em; }
.sans-rule { flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.band-lead.light { color: #b8c4d6; margin: 0 0 3.5rem; }
.trio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 2.2rem 1.8rem; display: flex; flex-direction: column; min-height: 320px; }
.step-num { color: #8fa0b5; font-weight: 600; margin-bottom: .6rem; }
.step-card h3 { font-family: var(--font-body); color: #fff; font-size: 1.35rem; font-weight: 600; margin: 0 0 1rem; }
.step-card p { color: #b8c4d6; font-size: .95rem; line-height: 1.7; margin: 0 0 2rem; }
.btn-step { margin-top: auto; align-self: flex-start; background: var(--lighthouse-red); color: #fff; padding: .7rem 1.5rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .3s ease; }
.btn-step:hover { background: #c9191b; }
@media (max-width: 1024px) { .trio-cards { grid-template-columns: 1fr; } }

/* v11 - subscribe matches nav button size */
.main-nav li.nav-cta a { font-size: .95rem; padding: .8rem 1.4rem; letter-spacing: .03em; margin-left: 1rem; }

/* v12 - force nav centering */
.main-nav ul { display: flex !important; flex-wrap: wrap; justify-content: center !important; align-items: center; width: 100%; margin: 0 auto; padding: 0; list-style: none; }

/* v13 - Know the Bay on white */
.band-deep { background: #ffffff; }
.sans-title { color: var(--ink); }
.sans-rule { background: #e3e3e3; }
.band-lead.light { color: #555555; }
.step-card { background: #f2f2f2; border: 1px solid #e3e3e3; }
.step-num { color: #666666; }
.step-card h3 { color: var(--bay-navy); }
.step-card p { color: #555555; }
.band-white { background: #f2f2f2; }

/* v14 - proper band rhythm: sand band, white cards, white news band */
.band-deep { background: #f2f2f2; }
.step-card { background: #ffffff; border: 1px solid #e3e3e3; }
.band-white { background: #ffffff; }
.news-grid .news-card:only-child { grid-column: 1 / -1; max-width: 680px; }
