/*
Theme Name: Puro SA Broadsheet
Theme URI: https://example.com/puro-sa
Author: Puro SA
Description: Broadsheet newspaper theme for Puro SA, local news for San Antonio, checked against public sources.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: puro-sa
*/

:root {
	--ink: #141414;
	--ink-soft: #3a3a3a;
	--paper: #f5f3ee;
	--rule: #c9c4b8;
	--accent: #a11d21;
	--photo: #dcd8cf;
	--serif-display: "Playfair Display", Georgia, serif;
	--serif-body: Georgia, "Times New Roman", serif;
	--sans: "Libre Franklin", system-ui, sans-serif;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Masthead ---------- */

.dateline {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
	border-bottom: 1px solid var(--ink); padding: 24px 0 10px;
}

.masthead {
	text-align: center; padding: 22px 0 14px;
	border-bottom: 4px double var(--ink);
}
.masthead__title {
	font-family: var(--serif-display); font-weight: 900;
	font-size: clamp(52px, 9vw, 92px); letter-spacing: -2px; line-height: 0.9;
	margin: 0;
}
.masthead__tagline {
	font-family: var(--serif-display); font-style: italic;
	font-size: 18px; color: var(--ink-soft); margin: 8px 0 0;
}

.site-nav { border-bottom: 1px solid var(--ink); }
.site-nav ul {
	list-style: none; margin: 0; padding: 12px 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px;
	font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
}

/* ---------- Shared bits ---------- */

.kicker {
	font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 1.5px; color: var(--accent);
}
.byline {
	font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.photo-placeholder { background: var(--photo); aspect-ratio: 16 / 7; }

/* ---------- Front page ---------- */

.front-top {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	padding-top: 24px;
}
.lead { padding-right: 28px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.lead__title {
	margin: 0; font-family: var(--serif-display); font-weight: 800;
	font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02;
}
.dek {
	margin: 0; font-family: var(--serif-display); font-style: italic;
	font-size: 21px; line-height: 1.45; color: var(--ink-soft);
}
.lead__excerpt {
	columns: 2 240px; column-gap: 28px; column-rule: 1px solid var(--rule);
	font-family: var(--serif-body); font-size: 16px; line-height: 1.6;
}
.lead__excerpt p:first-child::first-letter {
	float: left; font-family: var(--serif-display); font-weight: 900;
	font-size: 58px; line-height: 0.85; padding: 4px 8px 0 0;
}

.sidebar { padding-left: 28px; display: flex; flex-direction: column; gap: 16px; }
.sidebar__title {
	margin: 0; font-family: var(--serif-display); font-size: 26px; font-weight: 800;
	border-bottom: 2px solid var(--ink); padding-bottom: 8px;
}
.sidebar__item { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.sidebar__item strong { font-family: var(--serif-display); font-size: 18px; }

.newsletter-box {
	background: var(--ink); color: var(--paper); padding: 18px;
	display: flex; flex-direction: column; gap: 6px;
}
.newsletter-box strong { font-family: var(--serif-display); font-size: 20px; }
.newsletter-box a { text-decoration: underline; font-weight: 700; }

.story-row {
	margin-top: 28px; border-top: 4px double var(--ink); padding-top: 16px;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-card { padding: 0 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.story-card:first-child { padding-left: 0; }
.story-card:last-child { padding-right: 0; border-right: 0; }
.story-card__title { font-family: var(--serif-display); font-size: 24px; font-weight: 700; line-height: 1.15; }

.more-list { margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 8px; }
.more-list article { border-bottom: 1px solid var(--rule); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.more-list h3 { margin: 0; font-family: var(--serif-display); font-size: 22px; }

/* ---------- Single article ---------- */

.article { max-width: 760px; margin: 0 auto; padding: 40px 0 24px; display: flex; flex-direction: column; gap: 18px; }
.article__title {
	margin: 0; font-family: var(--serif-display); font-weight: 800;
	font-size: clamp(36px, 5vw, 54px); line-height: 1.03;
}
.article__meta {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0;
	font-size: 14px;
}
.article__body { font-family: var(--serif-body); font-size: 19px; line-height: 1.7; }
.article__body h2, .article__body h3 { font-family: var(--serif-display); line-height: 1.2; }
.article__body a { text-decoration: underline; color: var(--accent); }

/* Spurs Watch band */
.spurs { margin-top: 28px; padding: 16px 0 6px; border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); }
.spurs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.spurs__title { margin: 0; font-family: var(--serif-display); font-weight: 900; font-size: 34px; letter-spacing: -0.5px; text-transform: uppercase; }
.spurs__all { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.spurs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.spurs__item { padding: 0 20px 14px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.spurs__item:first-child { padding-left: 0; border-left: 0; }
.spurs__time { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.spurs__headline { font-family: var(--serif-display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.spurs__dek { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 760px) {
	.spurs__item { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* Author pages */
.author-page { display: flex; gap: 22px; align-items: center; padding: 32px 0 20px; border-bottom: 2px solid var(--ink); }
.author-page__initials {
	flex: none; width: 96px; height: 96px; border-radius: 999px; border: 3px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif-display); font-weight: 800; font-size: 34px;
}
.author-page__name { margin: 0; font-family: var(--serif-display); font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: 1; }
.author-page__desk { margin: 6px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); }
.author-page__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.author-page__bio { padding-right: 28px; border-right: 1px solid var(--rule); font-family: var(--serif-body); font-size: 18px; line-height: 1.7; }
.author-page__bio p { margin: 0 0 16px; }
.author-page__side { padding-left: 28px; font-size: 15px; line-height: 1.5; }
.author-page__side h2 { margin: 0 0 10px; font-family: var(--serif-display); font-size: 22px; }
.author-page__side ul { margin: 0 0 16px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.author-page__signoff { font-family: var(--serif-display); font-style: italic; font-size: 17px; }
.author-page__note { font-size: 12px; color: var(--ink-soft); }
.author-page__latest { margin: 28px 0 0; font-family: var(--serif-display); font-size: 28px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
@media (max-width: 760px) {
	.author-page { flex-direction: column; align-items: flex-start; }
	.author-page__body { grid-template-columns: minmax(0, 1fr); }
	.author-page__bio { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
	.author-page__side { padding-left: 0; }
}

/* Breaking-news banner */
.breaking { background: var(--accent); color: #fff; }
.breaking__inner { padding-top: 10px; padding-bottom: 10px; font-size: 15px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.breaking__tag { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; background: #fff; color: var(--accent); padding: 2px 8px; }
.breaking a { color: #fff; text-decoration: underline; }
.breaking a:hover { color: #fff; }

/* Weather strip */
.today {
	margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
	display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
}
.today__now { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.today__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.today__temp { font-family: var(--serif-display); font-weight: 800; font-size: 34px; line-height: 1; }
.today__text { font-size: 14px; color: var(--ink-soft); }
.today__periods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.today__name { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.today__alerts { display: flex; flex-wrap: wrap; gap: 8px; }
.today__alert { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.today__alert:hover { color: #fff; text-decoration: underline; }
.today__source { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.today__source a { text-decoration: underline; }

/* Latest Briefs */
.briefs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.brief { border-bottom: 1px solid var(--rule); padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.brief__time { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.brief__title { font-family: var(--serif-display); font-size: 17px; font-weight: 700; line-height: 1.2; }
.brief__dek { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* Reader form (tips and corrections) */
.puro-form { font-family: var(--sans); font-size: 16px; display: flex; flex-direction: column; gap: 4px; margin: 20px 0; }
.puro-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.puro-form__hint { font-weight: 400; color: var(--ink-soft); }
.puro-form input[type="text"], .puro-form input[type="url"], .puro-form input[type="email"], .puro-form textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--ink); background: #fff; color: #141414; border-radius: 0;
}
.puro-form__button { font: inherit; font-weight: 700; padding: 12px 28px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; min-height: 44px; }
.puro-form__trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.puro-form__notice { padding: 12px 16px; border: 2px solid var(--ink); font-family: var(--sans); font-weight: 700; margin: 16px 0; }
.puro-form__notice--ok { border-color: #2e6b3a; }
.puro-form__notice--short, .puro-form__notice--limit, .puro-form__notice--error { border-color: var(--accent); }

/* Charts, photos and video inside a story */
.article__body figure { margin: 28px 0; }
.article__body figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.article__body figcaption, .article__figure figcaption {
	font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink-soft); margin-top: 8px;
}
.article__body figcaption a, .article__figure figcaption a { text-decoration: underline; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__figure { margin: 0; }
.article__figure img { width: 100%; height: auto; display: block; }

.facts-box {
	border: 2px solid var(--ink); padding: 20px 24px; margin: 28px 0;
	font-family: var(--sans); font-size: 17px; line-height: 1.55;
}
.facts-box > :first-child { margin-top: 0; }
.facts-box h2, .facts-box h3, .facts-box strong:first-child {
	font-family: var(--serif-display); font-size: 20px;
}

.made-box { border-top: 4px double var(--ink); padding-top: 16px; font-size: 15px; }
.made-box h2 { font-family: var(--serif-display); font-size: 20px; margin: 0 0 10px; }
.made-box ol { margin: 0; padding-left: 20px; }
.claims-list { list-style: none; padding: 0; margin: 10px 0 0; }
.claims-list li { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.claims-list .ok { color: #2e6b3a; font-weight: 700; }
.claims-list .flag { color: var(--accent); font-weight: 700; }

.author-box { display: flex; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; }
.author-box__initials, .correspondent__initials {
	flex: none; width: 56px; height: 56px; border-radius: 999px; border: 2px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif-display); font-weight: 800; font-size: 20px;
}

/* ---------- Archive ---------- */

.archive-head { padding: 28px 0 8px; border-bottom: 2px solid var(--ink); }
.archive-head h1 { margin: 0; font-family: var(--serif-display); font-size: 40px; }

.pagination { padding: 24px 0; display: flex; gap: 16px; font-weight: 700; }

/* ---------- Footer ---------- */

.correspondents { margin-top: 36px; border-top: 1px solid var(--ink); padding-top: 16px; }
.correspondents h2 {
	margin: 0 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 2px; text-align: center;
}
.correspondents__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.correspondent { display: flex; gap: 12px; align-items: center; }
.correspondent__name { font-family: var(--serif-display); font-weight: 700; font-size: 18px; }
.correspondent__desk { font-size: 13px; color: var(--ink-soft); }

.site-footer {
	margin-top: 40px; border-top: 4px double var(--ink); padding: 24px 0 48px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
	font-size: 14px; color: var(--ink-soft);
}
.site-footer strong { color: var(--ink); display: block; margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
	.front-top { grid-template-columns: minmax(0, 1fr); }
	.lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--ink); padding-bottom: 24px; }
	.sidebar { padding-left: 0; padding-top: 24px; }
	.story-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.story-card { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
	.dateline { justify-content: center; text-align: center; }
}
