/*
Theme Name: Dunmore Journal
Theme URI: https://blog.dunmore.ltd
Description: A clear, editorial child theme for Dunmore Industrial Systems.
Author: Dunmore Industrial Systems
Template: blankslate
Version: 1.0.0
Text Domain: dunmore-journal
*/

:root {
	--ink: #142623;
	--paper: #f5f4ee;
	--white: #fffefa;
	--line: #d5d8ce;
	--green: #416f62;
	--green-dark: #254c42;
	--muted: #61706a;
	--measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green); }
img { display: block; width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; left: 1rem; top: 1rem; padding: .6rem .8rem; background: var(--ink); color: #fff; z-index: 100; }

.site-header, .site-main, .site-footer { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: .82rem; letter-spacing: -.08em; }
.brand-copy { font-size: .95rem; line-height: 1.05; }
.brand-copy small { display: block; color: var(--muted); font-size: .63rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; margin-top: .28rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.35rem; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.site-nav li { list-style: none; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--green); }

.site-main { padding-block: 5.5rem 7rem; }
.journal-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 4rem; padding-bottom: 4.5rem; border-bottom: 1px solid var(--line); }
.eyebrow, .post-meta { color: var(--green); font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.journal-intro h1, .entry-title, .page-title { margin: .7rem 0 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(3.1rem, 7vw, 6.6rem); font-weight: 700; letter-spacing: -.065em; line-height: .91; }
.journal-intro p { align-self: end; margin: 0; max-width: 22rem; color: var(--muted); font-size: 1.05rem; }

.post-list { border-bottom: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(150px, .42fr); gap: 2.2rem; padding: 2.35rem 0; border-top: 1px solid var(--line); }
.post-card.has-post-thumbnail { grid-template-columns: 62px minmax(180px, 255px) minmax(0, 1fr) minmax(120px, .32fr); }
.post-card:first-child { border-top: 0; }
.post-card .post-number { color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.post-thumbnail { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-thumbnail:hover img { transform: scale(1.035); }
.post-card h2 { margin: .45rem 0 .75rem; font-family: Arial, Helvetica, sans-serif; font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.post-card h2 a { text-decoration: none; }
.post-card .excerpt { max-width: 38rem; margin: 0; color: var(--muted); }
.post-card .card-link { align-self: end; color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.post-card .card-link::after { content: '  →'; }
.no-posts { padding: 4rem 0; border-top: 1px solid var(--line); }

.single-header, .page-header { max-width: 970px; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.single-header .entry-title, .page-header .page-title { max-width: 960px; font-size: clamp(3rem, 6.8vw, 6.3rem); }
.entry-summary { max-width: 40rem; margin: 1.6rem 0 0; color: var(--muted); font-size: 1.15rem; }
.single-featured-image { max-width: 970px; margin: 3rem 0 0; }
.single-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { max-width: var(--measure); margin: 3.8rem auto 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; line-height: 1.72; }
.entry-content > * { margin-block: 0 1.55rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.8rem; font-family: Arial, Helvetica, sans-serif; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.15; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.5rem; border-left: 2px solid var(--green); color: var(--green-dark); font-size: 1.5rem; line-height: 1.4; }
.entry-content a { color: var(--green-dark); }
.entry-content figcaption { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: .82rem; }
.entry-footer { max-width: var(--measure); margin: 3rem auto; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; font-weight: 700; }
.pagination a { color: var(--green-dark); }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.footer-brand { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.footer-note { margin-top: .3rem; }
.footer-links { display: flex; gap: 1.25rem; align-items: end; }

@media (max-width: 700px) {
	.site-header, .site-main, .site-footer { width: min(100% - 2rem, 1280px); }
	.site-header { padding-block: 1.1rem; min-height: 0; align-items: flex-start; }
	.site-nav { gap: .85rem; padding-top: .35rem; font-size: .63rem; }
	.site-main { padding-block: 3.5rem 4rem; }
	.journal-intro { display: block; padding-bottom: 3rem; }
	.journal-intro p { margin-top: 2rem; }
	.post-card, .post-card.has-post-thumbnail { grid-template-columns: 38px minmax(0, 1fr); gap: 1rem; padding: 1.8rem 0; }
	.post-card.has-post-thumbnail .post-thumbnail { grid-column: 2; width: min(100%, 300px); }
	.post-card .card-link { grid-column: 2; }
	.entry-content { font-size: 1.12rem; }
	.site-footer { grid-template-columns: 1fr; gap: 1rem; }
	.footer-links { align-items: start; }
}
