/*
Theme Name: The Hallion
Theme URI: https://thehallion.com
Author: Arscale
Description: Times-style newspaper theme for The Hallion. Sections: News, Politics, Sport, Letters.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hallion
*/

:root {
  --ink: #1D1D1B;
  --ink-soft: #3A3A37;
  --muted: #4A4A46;
  --rule: #D8D8D4;
  --green: #1B5E3A;
  --gold: #C9A227;
  --photo: #EDEDEA;
  --paper: #FFFFFF;
  --serif-display: 'Noto Serif Display', 'Times New Roman', serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Libre Franklin', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Date line */
.dateline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); padding: 6px 0 4px; }
.masthead a { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); color: var(--ink); }
.masthead .word { font-family: var(--serif-display); font-weight: 700; font-size: clamp(34px, 6.6vw, 84px); line-height: 1; letter-spacing: 1px; }
.masthead .crest { height: clamp(58px, 9.6vw, 124px); width: auto; }
.motto { margin: 0; padding: 0 0 12px; text-align: center; font-family: var(--serif-display); font-style: italic; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 1.5px; color: var(--green); }

/* Section nav */
.sections { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 40px; padding: 11px 0; margin: 0; list-style: none; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.sections a { display: inline-block; padding: 6px 0; }
.sections .current a { color: var(--green); border-bottom: 2px solid var(--gold); }

/* Section heads */
.section { padding-top: 36px; }
.section:first-of-type { padding-top: 24px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.section-head a, .section-head span.label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--ink); }

/* Photo placeholder */
.photo { background: var(--photo); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }

/* Headlines */
.hl { margin: 0; font-family: var(--serif-display); font-weight: 700; line-height: 1.15; }
.hl-lead { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.hl-2 { font-size: 22px; }
.hl-3 { font-size: 19px; line-height: 1.2; }
.hl-card { font-size: 20px; line-height: 1.18; }
.standfirst { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.summary { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.byline { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted); }
.byline time { font-weight: 500; }

/* News block */
.news-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.news-lead { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.news-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.news-side article { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.news-side article:first-child { padding-top: 0; display: flex; flex-direction: column; gap: 8px; }
.news-side article:last-child { border-bottom: 0; }

/* Four-up rows */
.row4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.row4 article { display: flex; flex-direction: column; gap: 8px; }

/* Letters */
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.letters article { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.letters .hl { font-size: 19px; }

.empty { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0; }

/* Single article */
.article { max-width: 760px; margin: 0 auto; padding: 32px 0 0; }
.kicker { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); }
.article .hl { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin: 10px 0 14px; }
.article .standfirst { font-size: 21px; margin-bottom: 16px; }
.article .byline { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.article figure { margin: 0 0 24px; }
.article figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding-top: 6px; }
.entry { font-size: 19px; line-height: 1.65; }
.entry p { margin: 0 0 1.1em; }
.entry h2, .entry h3 { font-family: var(--serif-display); line-height: 1.2; }
.entry blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--gold); font-style: italic; }
.entry img { margin: 1.2em 0; }
.entry a { color: var(--green); text-decoration: underline; }

/* Archive */
.archive-list article { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.archive-list .photo { flex: 0 0 240px; }
.archive-list .text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pagination { display: flex; justify-content: center; gap: 12px; padding: 28px 0; font-family: var(--sans); font-size: 14px; font-weight: 700; }
.pagination .current { color: var(--green); }

/* Footer */
.site-footer { margin-top: 44px; border-top: 3px double var(--ink); padding: 18px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.site-footer .name { font-family: var(--serif-display); font-weight: 700; font-size: 18px; color: var(--ink); }

@media (max-width: 600px) {
  .sections { gap: 2px 22px; }
  .archive-list .photo { flex-basis: 100%; }
}
