/*
Theme Name: Woke Doodle Editions
Theme URI: https://wokeadoodle.com/
Author: Woke a Doodle
Description: A lightweight editorial theme for an image-led art archive.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: woke-doodle-editions
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
}

:root {
	--wd-paper: #f7f4ed;
	--wd-ink: #20251f;
	--wd-moss: #4c654e;
	--wd-clay: #ca6044;
	--wd-line: #d5d0c4;
	--wd-muted: #6c7168;
	--wd-serif: "Newsreader", Georgia, serif;
	--wd-sans: "Instrument Sans", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--wd-paper);
	color: var(--wd-ink);
	font-family: var(--wd-sans);
	font-size: 18px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
}

img { display: block; height: auto; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .14em; }
a:hover { color: var(--wd-clay); }

button, input, textarea { font: inherit; }

.site-shell { margin: 0 auto; max-width: 1440px; padding-left: clamp(1.25rem, 4vw, 4.5rem); padding-right: clamp(1.25rem, 4vw, 4.5rem); }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background: var(--wd-ink);
	clip: auto;
	clip-path: none;
	color: var(--wd-paper);
	display: block;
	height: auto;
	left: 1rem;
	padding: .75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100;
}

.site-header { border-bottom: 1px solid var(--wd-line); }
.site-header__inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; min-height: 78px; }
.site-brand { font-family: var(--wd-serif); font-size: clamp(1.65rem, 2.5vw, 2.25rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; text-decoration: none; }
.site-brand:hover { color: var(--wd-ink); }
.site-navigation .menu { align-items: center; display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-navigation a { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-navigation .current-menu-item a, .site-navigation a:hover { color: var(--wd-clay); }

.home-hero { background: var(--wd-ink); color: var(--wd-paper); overflow: hidden; position: relative; }
.home-hero::before { background: radial-gradient(circle at 88% 7%, #ca6044 0 9%, transparent 9.2%), radial-gradient(circle at 74% 62%, #4c654e 0 20%, transparent 20.2%); content: ""; inset: 0; opacity: .88; pointer-events: none; position: absolute; }
.home-hero__inner { padding-bottom: clamp(3.5rem, 8vw, 8rem); padding-top: clamp(3.5rem, 8vw, 8rem); position: relative; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 1.25rem; text-transform: uppercase; }
.home-hero h1 { font-family: var(--wd-serif); font-size: clamp(3.35rem, 8.5vw, 8.9rem); font-weight: 420; letter-spacing: -.065em; line-height: .83; margin: 0; max-width: 9ch; }
.home-hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.35; margin: 2rem 0 0; max-width: 31rem; }
.home-hero__note { border-left: 1px solid rgba(247,244,237,.55); font-size: .82rem; letter-spacing: .04em; margin: 3.5rem 0 0 auto; max-width: 15rem; padding-left: 1rem; }

.home-main { padding-bottom: clamp(4rem, 8vw, 8rem); padding-top: clamp(2.75rem, 5vw, 5.5rem); }
.section-kicker { align-items: baseline; border-bottom: 1px solid var(--wd-ink); display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: .65rem; }
.section-kicker h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; margin: 0; text-transform: uppercase; }
.section-kicker span { color: var(--wd-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.lead-story { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr); margin-bottom: clamp(4rem, 8vw, 8rem); }
.lead-story__image { background: #dcd8cd; display: block; overflow: hidden; }
.lead-story__image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); width: 100%; }
.lead-story__image:hover img { transform: scale(1.025); }
.lead-story__body { align-self: end; padding-bottom: 1rem; }
.post-taxonomy { color: var(--wd-moss); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .13em; margin-bottom: .8rem; text-transform: uppercase; }
.lead-story h2, .post-card h2, .archive-header h1, .entry-header h1, .not-found h1 { font-family: var(--wd-serif); font-weight: 500; letter-spacing: -.045em; }
.lead-story h2 { font-size: clamp(2.25rem, 4.5vw, 4.6rem); line-height: .95; margin: 0; }
.lead-story h2 a, .post-card h2 a { text-decoration: none; }
.lead-story__excerpt { color: #4d524b; font-size: 1rem; line-height: 1.45; margin: 1.4rem 0; }
.post-meta { color: var(--wd-muted); font-size: .72rem; letter-spacing: .05em; margin: 0; text-transform: uppercase; }
.read-link { color: var(--wd-clay); display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; margin-top: 1.3rem; text-decoration: none; text-transform: uppercase; }
.read-link::after { content: " ↗"; }

.post-grid { display: grid; gap: clamp(2.5rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 3.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { min-width: 0; }
.post-card__image { background: #ded9cc; display: block; margin-bottom: 1.15rem; overflow: hidden; }
.post-card__image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; width: 100%; }
.post-card__image:hover img { transform: scale(1.03); }
.post-card__placeholder { align-items: flex-end; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d9d2c3, #bbbca9); color: var(--wd-ink); display: flex; font-family: var(--wd-serif); font-size: 1.8rem; padding: 1rem; }
.post-card h2 { font-size: clamp(1.5rem, 2.25vw, 2.2rem); line-height: 1.02; margin: 0; }
.post-card .post-meta { margin-top: .85rem; }
.post-card__excerpt { color: #575c54; font-size: .9rem; line-height: 1.45; margin: .75rem 0 0; }

.archive-header { border-bottom: 1px solid var(--wd-ink); margin-bottom: clamp(2.5rem, 5vw, 5rem); padding-bottom: 1.5rem; padding-top: clamp(3rem, 6vw, 6rem); }
.archive-header h1 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: .86; margin: .5rem 0 0; }
.archive-header p { color: var(--wd-muted); font-size: 1rem; max-width: 40rem; }

.pagination { border-top: 1px solid var(--wd-line); display: flex; gap: .35rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; }
.pagination .page-numbers { font-size: .8rem; font-weight: 700; padding: .45rem .6rem; text-decoration: none; }
.pagination .current { background: var(--wd-ink); color: var(--wd-paper); }

.entry-header { margin: 0 auto; max-width: 900px; padding-bottom: clamp(2rem, 5vw, 5rem); padding-top: clamp(3rem, 7vw, 7rem); }
.entry-header h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .88; margin: .75rem 0 0; }
.entry-header .post-meta { margin-top: 1.5rem; }
.entry-hero { margin: 0 auto clamp(2.5rem, 6vw, 6rem); max-width: 1320px; padding: 0 clamp(1.25rem, 4vw, 4.5rem); }
.entry-hero img { max-height: 78vh; object-fit: cover; width: 100%; }
.entry-content { font-family: var(--wd-serif); font-size: clamp(1.17rem, 1.7vw, 1.45rem); line-height: 1.55; margin: 0 auto; max-width: 750px; padding-bottom: clamp(3.5rem, 7vw, 7rem); }
.entry-content > * { margin-bottom: 1.5em; margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--wd-sans); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin-top: 2em; }
.entry-content h2 { font-size: 1.55em; }
.entry-content h3 { font-size: 1.2em; }
.entry-content a { text-decoration-color: var(--wd-clay); text-decoration-thickness: 2px; }
.entry-content figure { margin-left: calc(clamp(1.25rem, 4vw, 4.5rem) * -1); margin-right: calc(clamp(1.25rem, 4vw, 4.5rem) * -1); max-width: none; }
.entry-content figcaption { color: var(--wd-muted); font-family: var(--wd-sans); font-size: .75rem; line-height: 1.4; margin: .75rem clamp(1.25rem, 4vw, 4.5rem) 0; }
.entry-content blockquote { border-left: 2px solid var(--wd-clay); font-size: 1.4em; font-style: italic; margin-left: 0; padding-left: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.wp-block-image img { height: auto; }

.site-footer { background: var(--wd-moss); color: var(--wd-paper); padding-bottom: 2rem; padding-top: clamp(3rem, 6vw, 6rem); }
.site-footer__inner { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }
.site-footer__title { font-family: var(--wd-serif); font-size: clamp(2.5rem, 5vw, 5.5rem); letter-spacing: -.055em; line-height: .85; margin: 0; max-width: 7ch; }
.site-footer p { font-size: .76rem; letter-spacing: .04em; margin: 0; max-width: 20rem; }
.site-footer a { color: inherit; }

.comment-area { border-top: 1px solid var(--wd-line); margin: 0 auto; max-width: 750px; padding-bottom: 5rem; padding-top: 2rem; }
.comment-area h2, .comment-area h3 { font-family: var(--wd-serif); }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--wd-line); padding: 1.5rem 0; }
.comment-form input, .comment-form textarea { background: transparent; border: 1px solid var(--wd-line); border-radius: 0; padding: .7rem; width: 100%; }
.comment-form input[type="submit"] { background: var(--wd-ink); color: var(--wd-paper); cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; width: auto; }

.not-found { min-height: 55vh; padding-bottom: 6rem; padding-top: 8rem; }
.not-found h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .9; margin: 0; max-width: 9ch; }
.not-found p { max-width: 32rem; }
.search-form { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 35rem; }
.search-form input { background: transparent; border: 1px solid var(--wd-ink); min-width: 0; padding: .7rem; width: 100%; }
.search-form button { background: var(--wd-ink); border: 1px solid var(--wd-ink); color: var(--wd-paper); cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .09em; padding: .7rem 1rem; text-transform: uppercase; }

@media (max-width: 820px) {
	.site-header__inner { align-items: flex-start; flex-direction: column; gap: .85rem; padding-bottom: 1rem; padding-top: 1rem; }
	.site-navigation .menu { gap: .25rem 1rem; }
	.lead-story, .post-grid { grid-template-columns: 1fr; }
	.lead-story__body { padding-bottom: 0; }
	.post-grid { gap: 3rem; }
	.entry-content figure { margin-left: 0; margin-right: 0; }
	.entry-content figcaption { margin-left: 0; margin-right: 0; }
	.site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
