/* =========================================================================
   Proof – main stylesheet
   Contact-sheet / darkroom design language.
   Colors come from the Customizer (inline stylesheet); this file only
   uses currentColor, transparent, and structural values.
   ========================================================================= */

* { margin: 0; padding: 0; }

:root {
	--frame-gap: 28px;
}

/* MAIN ------------------------------------------------------------------ */

body {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all 0.18s ease-out;
}

.mono,
nav,
#edge,
article .title .date,
article .cbox ul.post-categories,
aside .sidebox h4.sidetitle,
aside .sidebox .proj ul.links,
aside .sidebox .proj .inner .info .role,
#pagination,
footer #disc,
footer #cred,
#searchform #s,
article .entry a.more-link,
article #submit {
	font-family: 'Space Mono', monospace;
}

/* MASTHEAD --------------------------------------------------------------- */

#masthead {
	display: flow-root;
}

/* nav below the header graphic (Customizer option): flush under the graphic */
body.nav-below nav { margin: 0 auto 40px auto; }

/* SITE TITLE ------------------------------------------------------------ */

#site {
	margin: 0 auto;
	padding: 40px 0 32px 0; /* overridden by Customize > Layout */
	text-align: center;
	text-transform: uppercase;
}

#site h1 {
	font-family: 'Big Shoulders Display', sans-serif;
	font-size: clamp(42px, 5.75vw, 108px);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
}

/* film edge print under the title */
#edge {
	margin: 12px auto 0 auto;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 10px;
	letter-spacing: 0.55em;
	text-indent: 0.55em; /* balances the trailing letter-space so it stays centered */
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
}

#edge .arrow { letter-spacing: 0; }

/* MENU ------------------------------------------------------------------ */

/* full-width bar; colors and height come from the Customizer */
nav {
	width: 100%;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.35em;
}

nav ul.menu {
	margin: 0 auto;
	padding: 0 4%;
	max-width: 1180px;
	box-sizing: border-box;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	row-gap: 6px;
}

nav ul.menu li {
	display: flex;
	align-items: center;
}

nav ul.menu li a {
	display: inline-block;
	padding: 4px 2px;
	text-indent: 0.35em; /* balances the trailing letter-space */
}

/* diamond separators between items */
nav ul.menu li:not(:last-child)::after {
	content: '\2726';
	margin: 0 30px;
	font-size: 10px;
	letter-spacing: 0;
	text-indent: 0;
}

nav ul.menu li.current-menu-item > a,
nav ul.menu li.current_page_item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

#show-menu {
	padding: 13px 16px;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	display: none;
}

#show-menu i { margin-right: 12px; }

/* HEADER: full-width strip, image at natural size, centered (as original) -- */

header {
	width: 100%;
	height: 450px;
	background-position: center center;
	background-repeat: no-repeat;
}

/* WELCOME / LATEST ------------------------------------------------------- */

#wbox {
	margin: 56px auto 0 auto;
	width: 92%;
	max-width: 1180px;
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

#wbox #latest {
	max-width: 340px;
	position: relative;
	flex-shrink: 0;
}

#wbox #latest table { border-spacing: 0; }

#wbox #latest table td { text-align: left; vertical-align: top; position: relative; }

/* a proof print: white border + slight tilt */
#wbox #latest table td a,
#wbox #latest table td > img {
	display: inline-block;
	transform: rotate(-1.2deg);
	transition: transform 0.18s ease-out;
}

#wbox #latest table td a:hover { transform: rotate(0deg); }

#wbox #latest table td img {
	width: 300px;
	height: 170px;
	object-fit: cover;
	padding: 10px 10px 30px 10px;
	box-sizing: content-box;
	vertical-align: bottom;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

#wbox #latest table .ab {
	position: absolute;
	left: 16px; bottom: 6px;
	padding: 2px 8px;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(-1.2deg);
	z-index: 5;
}

#wbox #latest #lbl {
	margin-top: 18px;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

#wbox #welcome { flex: 1; }

/* page welcome-widget row */
#wbox.wbox-widgets .sidebox {
	flex: 1;
	min-width: 0;
	margin-bottom: 0;
}

#wbox #welcome hr {
	width: 46px; height: 8px;
	border: none;
	margin-bottom: 14px;
}

#wbox #welcome span {
	display: block;
	font-size: 16px;
	line-height: 1.85;
}

/* CONTENT --------------------------------------------------------------- */

main {
	margin: 90px auto;
	width: 92%;
	max-width: 1180px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 56px;
}

section#content { flex: 1; min-width: 0; }

section#nocontent { flex: 1; max-width: 100%; }

article {
	margin: 0 0 96px 0;
	position: relative;
}

section#nocontent article { margin-bottom: 0; }

/* post header: mono date stamp + condensed title + grease underline */
article .title { position: relative; }

article .title .date {
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 6px;
}

article .title h1,
article h2 {
	font-family: 'Big Shoulders Display', sans-serif;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	display: inline-block;
	position: relative;
	z-index: 5;
}

/* the grease-pencil stroke */
article .title h1::after,
article h2::after {
	content: '';
	position: absolute;
	left: -4px; right: 14%;
	bottom: 2px;
	height: 7px;
	transform: rotate(-0.7deg);
	border-radius: 3px / 40px;
	opacity: 0.85;
	z-index: -1;
}

article .entry {
	margin-top: 22px;
}

/* featured image: a marked select */
article .entry .featured {
	margin: 0 0 22px 0;
	position: relative;
	display: block;
}

article .entry .featured img {
	width: 100%;
	height: auto;
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 1px solid;
}

/* title/excerpt overlay mode */
article .entry .featured.has-overlay {
	overflow: hidden;
}

article .entry .featured.has-overlay .fovl {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 26px 26px 20px 26px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.74));
	box-sizing: border-box;
}

article .entry .featured.has-overlay .fovl .fdate {
	display: block;
	margin-bottom: 4px;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

article .entry .featured.has-overlay .fovl h1 {
	margin: 0;
	font-family: 'Big Shoulders Display', sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

article .entry .featured.has-overlay .fovl h1,
article .entry .featured.has-overlay .fovl h1 a {
	color: #ffffff;
}

article .entry .featured.has-overlay .fovl .ftag {
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

/* categories: taped-on labels */
article .cbox { margin-top: 26px; }

article .cbox ul.post-categories {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

article .cbox ul.post-categories li a {
	padding: 3px 10px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px dashed;
	display: inline-block;
	transform: rotate(-0.6deg);
}

article .cbox ul.post-categories li:nth-child(2n) a { transform: rotate(0.6deg); }

article .cbox ul.post-categories li a:hover { transform: rotate(0deg); }

/* POST ELEMENTS ---------------------------------------------------------- */

article .entry p,
aside .sidebox p,
article .entry ul,
aside .sidebox ul,
article .entry ol { margin: 0 0 16px 0; }

article .entry a,
aside .sidebox a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

article .entry img,
aside .sidebox img {
	padding: 5px;
	margin: 3px;
	box-sizing: border-box;
	border: 1px solid;
	transition: all 0.18s ease-out;
}

article .entry ul,
aside .sidebox ul { list-style: none; }

article .entry ul li,
aside .sidebox ul li {
	padding: 7px 0;
	border-bottom: 1px solid;
}

article .entry ul li::before {
	content: '\2715';
	margin-right: 12px;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
}

article .entry ol {
	list-style-position: inside;
	list-style-type: decimal-leading-zero;
	font-variant-numeric: tabular-nums;
}

article .entry ol li {
	padding: 7px 0;
	border-bottom: 1px solid;
}

article .cbox ul.post-categories li::before,
aside .sidebox .proj ul.links li::before { display: none; }

article .cbox ul.post-categories li,
aside .sidebox .proj ul.links li { border-bottom: none; padding: 0; }

article .entry iframe,
article .entry embed,
article .entry object,
article .entry video {
	max-width: 100%;
	margin: 6px 0 16px 0;
	border: 1px solid;
	box-sizing: border-box;
}

/* blockquote: an annotated margin note */
article .entry blockquote,
aside blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 22px;
	border-left: 5px solid;
	font-size: 15px;
	position: relative;
}

article .entry blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-style: normal;
}

article .entry blockquote cite a::before {
	content: '\2192  ';
	white-space: pre;
}

aside blockquote { font-style: italic; font-size: 12px; }

/* continue reading: mono ticket button */
article .entry a.more-link {
	margin: 20px 0 0 0;
	padding: 8px 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid;
	display: inline-block;
}

article .entry a.more-link span::after {
	content: ' \2192';
	white-space: pre;
}

article .alignleft   { text-align: left; }
article .aligncenter { text-align: center; }
article .alignright  { text-align: right; }

/* SIDEBAR ---------------------------------------------------------------- */

aside {
	min-width: 300px;
	max-width: 300px;
	position: sticky;
	top: 24px;
}

aside .sidebox {
	margin-bottom: 44px;
	font-size: 12px;
}

aside .sidebox h4.sidetitle {
	margin-bottom: 16px;
	padding-bottom: 9px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	border-bottom: 2px solid;
}

aside .sidebox h4.sidetitle::before {
	content: '// ';
	white-space: pre;
}

/* PROJECTS --------------------------------------------------------------- */

aside .sidebox .proj { margin-bottom: 22px; }

aside .sidebox .proj .inner {
	display: flex;
	align-items: flex-start;
	column-gap: 16px;
}

aside .sidebox .proj .inner .pic { max-width: 75px; flex-shrink: 0; }

aside .sidebox .proj .inner .pic img { margin: 0; padding: 4px; width: 100%; height: auto; box-sizing: border-box; }

aside .sidebox .proj .inner .info .title {
	font-family: 'Big Shoulders Display', sans-serif;
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
}

aside .sidebox .proj .inner .info .role {
	margin: 5px 0;
	padding: 2px 7px;
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: inline-block;
	transform: rotate(-0.8deg);
}

aside .sidebox .proj ul.links {
	margin-top: 8px;
	list-style: none;
	display: flex;
	gap: 14px;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

aside .sidebox .proj ul.links li::after { display: none; }

aside .sidebox .proj ul.links li a { text-decoration: none; }
aside .sidebox .proj ul.links li a::before { content: '\2192 '; white-space: pre; }

/* SEARCH ----------------------------------------------------------------- */

#searchform { position: relative; }

#searchform #s {
	width: 100%;
	padding: 10px 42px 10px 14px;
	font-size: 12px;
	border: 1px solid;
	background: transparent;
	box-sizing: border-box;
	outline: none;
}

#searchsubmit, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

#searchform::after {
	content: '\f002';
	position: absolute;
	top: 50%; right: 14px;
	transform: translateY(-50%);
	font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
	font-weight: 900;
}

/* PAGINATION ------------------------------------------------------------- */

#pagination {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

#pagination .total { margin-right: 14px; }

#pagination a,
#pagination span.page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
	padding: 6px 11px;
	border: 1px solid;
	text-decoration: none;
	margin: 0;
}

.wp-pagenavi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

#pagination span.total { border: none; padding: 6px 0; }

/* COMMENTS --------------------------------------------------------------- */

ol.commentslist { list-style: none; margin: 18px 0 0 0; clear: both; }

article .entry ol.commentslist li {
	border: none;
	padding: 14px 0;
	border-bottom: 1px dashed;
}

article .entry ol.commentslist li::before { display: none; }

article .entry ol.commentslist ul.children {
	margin: 14px 0 0 16px;
	padding-left: 16px;
	border-left: 1px solid;
	list-style: none;
}

article .entry ol.commentslist li .avatar {
	margin: 4px 10px 0 0;
	padding: 3px;
	border: 1px solid;
	float: left;
}

article .entry ol.commentslist cite,
article .entry ol.commentslist cite a {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

article .entry ol.commentslist p { margin: 10px 0; }

#commentform input[type=text],
#commentform textarea,
article .entry input {
	margin: 8px 8px 8px 0;
	padding: 8px 12px;
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	border: 1px solid;
	background: transparent;
	outline: none;
	box-sizing: border-box;
}

article #submit {
	margin: 12px 0;
	padding: 9px 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: all 0.18s ease-out;
}

/* FOOTER STYLE 2: gallery strip + band ----------------------------------- */

footer.footer-gallery {
	width: 100%;
	max-width: none;
	margin: 0;
}

#fstrip {
	position: relative;
	height: 170px;
	overflow: hidden;
}

/* cpmfetch renders a table; the fallback renders a flex row — style both */
#fstrip table {
	width: 100%;
	height: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

#fstrip td { padding: 0; }

#fstrip .fcells {
	display: flex;
	height: 100%;
}

#fstrip .fcells a { flex: 1; min-width: 0; }

#fstrip img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

#fbtn {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	padding: 15px 28px;
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-indent: 0.35em;
	text-transform: uppercase;
	white-space: nowrap;
	border: 1px solid #ffffff;
	background: rgba(12, 12, 12, 0.55);
	color: #ffffff;
}

#fbtn:hover {
	background: rgba(255, 255, 255, 0.88);
	color: #141414;
}

#fband {
	padding: 56px 4%;
	background-size: cover;
	background-position: center center;
	text-align: center;
}

#fband #fcopy {
	font-family: 'Space Mono', monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	text-transform: uppercase;
	margin-bottom: 26px;
}

#fband #fdisc {
	max-width: 900px;
	margin: 0 auto;
	line-height: 2;
}

#fband #fsocial { margin: -6px 0 24px 0; }
#fband #fsocial a { margin: 0 8px; font-size: 15px; }

/* FOOTER ----------------------------------------------------------------- */

footer {
	margin: 0 auto 40px auto;
	width: 92%;
	max-width: 1180px;
}

footer #disc {
	padding: 20px 0 20px 95px;
	min-height: 60px;
	background-position: left center;
	background-repeat: no-repeat;
	font-size: 10px;
	line-height: 1.9;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-width: 3px 0 1px 0;
	border-style: double none solid none;
	border-top-style: double;
}

footer #cred {
	padding: 18px 0;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

footer #cred ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

footer #cred ul li a { text-decoration: underline; text-underline-offset: 3px; }

footer #social { display: flex; gap: 14px; }

footer #social a { font-size: 14px; }
