@charset "UTF-8";
/*
Theme Name: Stolen
Theme URI: https://stolenthedocu.com/
Description: A responsive rebuild of the FolioGrid Pro grid layout for STOLEN, the documentary by Violeta Ayala and Daniel Fallshaw. Keeps the original red/white card grid, drops the jQuery masonry and Flash-era markup.
Version: 1.0.0
Author: Daniel Fallshaw
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stolen
Tags: documentary, grid, responsive, two-columns, custom-menu
*/

/* -------------------------------------------------------------------
   Design tokens — recovered from FolioGridPro/styles/Red/red.css
   ------------------------------------------------------------------- */

:root {
	--red:            #990100;
	--red-dark:       #7a0100;
	--page-bg:        #f0eeee;
	--card-bg:        #ffffff;
	--chrome:         #dddfe0;
	--ink:            #222222;
	--ink-strong:     #000000;
	--ink-muted:      #5a5a5a;
	--rule:           #444444;

	--card-radius:    8px;
	--chip-radius:    3px;

	--shadow-card:    1px 1px 3px rgba(0, 0, 0, .2);
	--shadow-card-up: 0 0 10px rgba(0, 0, 0, .3);
	--shadow-header:  0 0 10px rgba(0, 0, 0, .2);

	/* The original letterpress highlight. Subtle, but it is the signature. */
	--letterpress:    #fff 0 1px 0;

	--font: "Helvetica Neue", Helvetica, Arial, sans-serif;

	--gap:            10px;
	--shell:          960px;
	--header-h:       70px;
}

/* -------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: calc(var(--header-h) + 30px) 20px 50px;
	background: var(--page-bg);
	color: var(--ink);
	/* Original was 11px/1.4. 14px keeps the tight, dense feel of the old theme
	   while staying legible on a phone; leading is kept close at 1.4. */
	font: 14px/1.4 var(--font);
	text-shadow: var(--letterpress);
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: bold; margin: 0; }

p { margin: 0 0 1em; }

blockquote {
	padding: 20px;
	margin: 0 0 20px 20px;
	border-left: 3px solid var(--red);
	font-style: italic;
}

table { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
table td { padding: 0 10px 0 0; }
caption, th { text-align: left; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 10px 16px;
	background: var(--card-bg);
	color: var(--red);
	text-shadow: none;
}
.skip-link:focus { left: 10px; }

/* -------------------------------------------------------------------
   Header — fixed bar, as in the original
   ------------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 10px 25px;
	background: var(--red);
	box-shadow: var(--shadow-header);
	text-shadow: none;
}

.site-branding { margin-right: auto; }

.site-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: capitalize;
}
.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; }

.site-description {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, .85);
	font-size: 12px;
	font-style: italic;
}

/* Nav */

.nav-toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--chip-radius);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav li { border-left: 1px solid rgba(255, 255, 255, .35); }
.main-nav li:first-child { border-left: 0; }

.main-nav a {
	display: block;
	padding: 4px 12px;
	color: #fff;
	font-size: 15px;
	text-transform: lowercase;
	font-style: italic;
}
.main-nav a:hover { text-decoration: underline; }

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { font-weight: bold; text-decoration: underline; }

/* -------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------- */

/* Reading width, for single posts and pages. */
.shell {
	width: 100%;
	max-width: var(--shell);
	margin: 0 auto;
}

/* The grid ran the full width of the window in the original, not boxed into
   960px. Capped only so it does not sprawl on an ultrawide display. */
.shell-wide {
	width: 100%;
	max-width: 1700px;
	margin: 0 auto;
}

/* Post + sidebar layout used on single / page / search */
.layout-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 40px;
	align-items: start;
}

/* -------------------------------------------------------------------
   The grid — CSS Grid replacing jQuery Masonry
   ------------------------------------------------------------------- */

/* CSS multi-column gives true masonry packing with no measurement step and no
   JavaScript. An earlier CSS Grid + row-span approach collapsed every card,
   because a grid item set to `auto` height occupies one 10px track and so
   measures ~10px rather than its content height. */
.post-grid {
	--col-min: 230px;
	columns: var(--col-min);
	column-gap: var(--gap);
	padding: 0;
	margin: 0 0 40px;
	list-style: none;
}

/*
 * Masonry mode.
 *
 * The multi-column rule above flows cards top-to-bottom and then across, so the
 * newest post is followed *below* by the second newest. The original site ran
 * jQuery Masonry, which placed each item into the shortest column in document
 * order — giving a left-to-right reading order along the top row. That reading
 * order is the thing being preserved here.
 *
 * Multi-column stays as the no-JS fallback: it keeps the same look and only the
 * reading order differs. `js/stolen.js` adds `.is-masonry` and takes over
 * positioning. Column width is derived from `--col-min`, so the breakpoints
 * below remain the single source of truth for how many columns there are.
 */
.post-grid.is-masonry {
	columns: auto;
	position: relative;
}

.post-grid.is-masonry .card {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
}

.card {
	display: block;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 var(--gap);
	padding: 10px;
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
	transition: box-shadow .18s ease;
}

.card:hover, .card:focus-within { box-shadow: var(--shadow-card-up); }

.card-thumb { display: block; margin: 0 0 10px; }
.card-thumb img { display: block; width: 100%; border-radius: var(--chip-radius); }

.card-title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.1;
}
.card-title a { color: var(--ink-strong); }
.card-title a:hover { color: var(--red); text-decoration: none; }

.card-excerpt { font-size: 13px; line-height: 1.4; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-footer {
	padding-top: 8px;
	font-size: 11px;
	color: var(--ink-muted);
}
.card-footer a { text-decoration: underline; }
.card-footer a:hover { text-decoration: none; }

/* -------------------------------------------------------------------
   Single post / page
   ------------------------------------------------------------------- */

.entry-title {
	margin: 0 0 20px;
	padding: 0 0 20px;
	border-bottom: 3px dotted var(--ink-strong);
	color: var(--ink-strong);
	font-size: clamp(32px, 6vw, 56px);
	line-height: .95;
}

.entry-meta {
	margin: 0 0 20px;
	font-size: 12px;
	font-style: italic;
	color: var(--ink-muted);
}

.entry-content { font-size: 15px; line-height: 1.55; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 32px 0 16px;
	padding: 12px 0 0;
	border-top: 1px dotted var(--rule);
	color: var(--ink-strong);
	line-height: 1.2;
}
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }

.entry-content img { border: 1px solid var(--rule); border-radius: 2px; }
.entry-content ul, .entry-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }

.alignleft  { float: left;  margin: 0 30px 20px 0; }
.alignright { float: right; margin: 0 0 20px 30px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; font-style: italic; color: var(--ink-muted); }

@media (max-width: 560px) {
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 20px; }
}

/* Character portrait + quote (The Characters, post 9). A flex row rather
   than the float-plus-manual-spacer trick the 2011 content used, which broke
   as soon as a replacement photo's dimensions didn't match the original --
   a differently sized image either left the quote crammed into a sliver
   beside it or stranded under a wall of empty space. This holds regardless
   of each photo's native size. */
.character {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 28px;
}
.character img {
	flex: 0 0 220px;
	width: 220px;
	height: 220px;
	object-fit: cover;
	border: 1px solid var(--rule);
	border-radius: var(--chip-radius);
}
.character-quote { flex: 1; min-width: 0; }
.character-quote p { margin: 0; }
.character-quote p + p { margin-top: .6em; }

@media (max-width: 560px) {
	.character { flex-direction: column; align-items: stretch; gap: 12px; }
	.character img { width: 100%; height: auto; max-height: 320px; flex-basis: auto; }
}

/* Responsive video — wraps every embed, see inc/embeds.php */
.video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 0 24px;
	background: #000;
	border-radius: var(--chip-radius);
	overflow: hidden;
}
.video-frame > iframe,
.video-frame > object,
.video-frame > embed,
.video-frame > video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------------------------------------------------------------------
   Archive heading
   ------------------------------------------------------------------- */

.archive-head {
	padding: 16px 20px;
	margin: 0 0 24px;
	background: var(--chrome);
	border-radius: var(--card-radius);
}
.archive-head h1 {
	margin: 0;
	color: var(--ink-strong);
	font-size: 18px;
	font-style: italic;
	border: 0;
	padding: 0;
}
.archive-head p { margin: 8px 0 0; font-size: 14px; }

/* -------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------- */

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 20px 0;
	margin: 20px 0 0;
	border-top: 1px dotted var(--ink-strong);
	border-bottom: 1px dotted var(--ink-strong);
}

.pagination .page-numbers {
	padding: 10px 15px;
	background: var(--chrome);
	border-radius: var(--chip-radius);
	color: var(--ink-strong);
	font-style: italic;
	text-shadow: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--red);
	color: #fff;
	text-decoration: none;
}

/* -------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------- */

.sidebar { font-size: 15px; }

.widget {
	padding: 14px;
	margin: 0 0 var(--gap);
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
	line-height: 1.45;
}

.widget-title {
	display: block;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink-strong);
}

.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 4px 0; border-bottom: 1px dotted #cfcfcf; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink-strong); }
.widget a:hover { color: var(--red); }
.widget select, .widget input { max-width: 100%; }

/* Social links, replacing the retired Facebook Like Box */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
	padding: 6px 12px;
	background: var(--chrome);
	border-radius: var(--chip-radius);
	font-size: 14px;
	text-shadow: none;
}
.social-links a:hover { background: var(--red); color: #fff; text-decoration: none; }

/* -------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */

label { display: block; font-size: 14px; margin-bottom: 4px; }

input[type=text], input[type=email], input[type=url],
input[type=search], input[type=password], textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid #cfcfcf;
	border-radius: 5px;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

input:focus, textarea:focus { border-color: var(--red); outline: none; }

textarea { min-height: 160px; }

input[type=submit], .button {
	padding: 9px 18px;
	background: #333;
	border: 1px solid #333;
	border-radius: var(--chip-radius);
	color: #fff;
	font: inherit;
	font-weight: bold;
	text-shadow: none;
	cursor: pointer;
}
input[type=submit]:hover, .button:hover { background: var(--red); border-color: var(--red); }

.search-form { display: flex; gap: 6px; }
.search-form input[type=search] { margin: 0; }

/* -------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------- */

.comments-area { clear: both; margin-top: 40px; }
.comments-title { padding: 12px 0; border-top: 1px dotted var(--ink-strong); font-size: 24px; font-style: italic; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { padding: 15px 0; border-top: 1px dotted var(--ink-strong); }
.comment-author img { border-radius: var(--chip-radius); margin-right: 12px; vertical-align: middle; }
.comment-meta { font-size: 13px; color: var(--ink-muted); }
.no-comments { padding: 20px 0; font-style: italic; color: var(--ink-muted); }

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */

.site-footer {
	max-width: 1700px;
	margin: 40px auto 0;
	padding: 24px 0 10px;
	border-top: 1px solid var(--ink-strong);
	font-size: 13px;
	text-transform: uppercase;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.site-footer ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0 8px; border-left: 1px solid var(--ink-strong); }
.site-footer li:first-child { border-left: 0; padding-left: 0; }
.site-footer a { color: var(--red); text-transform: capitalize; font-style: italic; }
.site-footer p { margin: 0; }

/* -------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------- */

.to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	width: 42px;
	height: 42px;
	display: none;
	place-items: center;
	background: var(--chrome);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--shadow-card);
	color: var(--ink-strong);
	font-size: 18px;
	text-shadow: none;
	cursor: pointer;
}
.to-top.is-visible { display: grid; }
.to-top:hover { background: var(--red); color: #fff; }

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */

@media (max-width: 900px) {
	.layout-split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 700px) {
	:root { --header-h: 56px; }

	body { padding: calc(var(--header-h) + 20px) 14px 40px; }

	.site-header { padding: 8px 14px; gap: 10px; }
	.site-title { font-size: 22px; }
	.site-description { display: none; }

	.nav-toggle { display: block; }

	.main-nav {
		flex-basis: 100%;
		display: none;
	}
	.main-nav.is-open { display: block; }

	.main-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
	.main-nav li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
	.main-nav li:first-child { border-top: 0; }
	.main-nav a { padding: 10px 4px; font-size: 16px; }

	.post-grid { --col-min: 165px; }

	.site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
	/* Larger than any phone viewport, so exactly one column fits. Expressed as a
	   width rather than `columns: 1` so masonry mode reads the same value. */
	.post-grid { --col-min: 3000px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------
   Print
   ------------------------------------------------------------------- */

@media print {
	body { padding: 0; background: #fff; text-shadow: none; }
	.site-header, .sidebar, .to-top, .pagination, .site-footer { display: none; }
	.layout-split { grid-template-columns: 1fr; }
}
