/*
 * Smashrun Blog stylesheet. This one file is the whole design: it replaced the Bones starter
 * stylesheet and the CSS that used to sit in WordPress's Additional CSS box (keep that box empty).
 *
 * Contents: tokens, base, layout, header, post lists, posts, post content, panels after a post,
 * comments and forms, sidebar widgets, footer, phones, print.
 */

/* ---------- Tokens ---------- */
:root {
	--ink: #1f2630;          /* titles */
	--text: #343c48;         /* body text */
	--muted: #5a6372;        /* dates, captions: 6.1:1 on white, 5.2:1 on the page grey */
	--line: #e3e7ee;
	--line-soft: #eef0f4;
	--page: #eaedf2;
	--card: #fff;
	--dark: #393c41;         /* header, footer */
	--dark-line: #5d5d5f;
	--dark-muted: #a3a6ad;
	--brand: #ff6600;        /* the logo's orange: decoration only, never text on white */
	--accent: #b23b0a;       /* links and buttons: 6:1 on white, 5.1:1 on the page grey */
	--accent-hover: #9a3412;
	--focus: #ff8a3d;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(31, 38, 48, .06);
	--font: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--gap: 2.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	display: flex; flex-direction: column; min-height: 100vh; /* the footer stays at the bottom of short pages */
	margin: 0;
	background: var(--page);
	color: var(--text);
	font: 18px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 1.6em 0 .5em; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.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: 8px; top: -60px; z-index: 100;
	background: #fff; color: var(--ink);
	padding: 8px 16px; border-radius: 6px;
	font-weight: 700; text-decoration: none;
	box-shadow: 0 0 0 3px var(--focus);
}
.skip-link:focus { top: 8px; }

.button, button, input[type="submit"] {
	display: inline-block;
	background: var(--accent); color: #fff;
	border: 0; border-radius: 6px;
	padding: .55em 1.1em;
	font: 700 .9rem/1.2 var(--font);
	text-decoration: none; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { background: var(--accent-hover); color: #fff; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%;
	border: 1px solid #cfd5df; border-radius: 6px;
	background: #fff; color: var(--text);
	padding: .55em .7em;
	font: 1rem/1.4 var(--font);
}

/* ---------- Layout ---------- */
.wrap { width: calc(100% - 32px); max-width: 1080px; margin: 0 auto; }
.content { flex: 1 0 auto; padding: 1.75rem 0 2.5rem; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.content-single { max-width: 740px; }
.main { min-width: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; }
.site-logo img { display: block; width: 189px; height: 28px; } /* a double-size image, sharp on high-resolution screens */
.menu-toggle { display: none; }
.site-nav .nav { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: #fff; font-weight: 700; font-size: 1rem; padding: .9em .75em; text-decoration: none; }
.site-nav a:hover { color: var(--focus); }
.site-nav .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--brand); }

/* ---------- Post lists ---------- */
.list-header { margin: 0 0 1.25rem; }
.list-title { margin: 0; font-size: 1.6rem; }
.list-description { color: var(--muted); }

.post-feature, .post-rows, .entry, .panel {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 1.25rem;
}
.post-feature { overflow: hidden; }
.post-feature-image { display: block; aspect-ratio: 2.5 / 1; background: var(--line-soft); }
.post-feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { padding: 1.4rem 2rem 1.6rem; }
.kicker { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.post-feature .entry-title { margin: .2em 0 .25em; font-size: 2rem; line-height: 1.2; }
.post-feature .excerpt { margin: .6em 0 1em; }
.read-more { font-weight: 700; text-decoration: none; }

.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--accent); }

.byline { margin: 0; color: var(--muted); font-size: .85rem; }
.byline a { color: var(--muted); text-decoration: none; }
.byline a:hover { color: var(--accent); }
.byline .byline-author { color: var(--ink); font-weight: 700; }

.post-row {
	display: grid;
	grid-template-columns: 4.2rem minmax(0, 1fr) auto;
	gap: 0 1.25rem;
	padding: 1.15rem 1.6rem;
	border-top: 1px solid var(--line-soft);
	align-items: start;
}
.post-row:first-child { border-top: 0; }
.post-row-date { text-align: center; line-height: 1.1; color: var(--muted); padding-top: .15em; }
.post-row-date b { display: block; font-size: 1.35rem; color: var(--ink); }
.post-row-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.post-row .entry-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.post-row .excerpt {
	margin: .3em 0 .35em;
	font-size: .92rem;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row .byline time, .post-row .byline .dot:first-of-type { display: none; } /* the date column shows it */
.post-row-image { width: 120px; height: 72px; border-radius: 6px; object-fit: cover; }

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 1.5rem 0; padding: 0; }
.pagination a, .pagination span { display: block; background: var(--card); border-radius: 6px; padding: .55em .85em; line-height: 1; text-decoration: none; font-size: .95rem; }
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.pagination .dots { background: none; }

/* ---------- Posts ---------- */
.entry-header { padding: 2rem 2.75rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.entry .entry-title { margin: 0 0 .35em; font-size: 2.3rem; line-height: 1.18; letter-spacing: -.01em; }
.entry-content { padding: 1.75rem 2.75rem 1rem; }
.entry-footer { padding: 0 2.75rem 1.5rem; color: var(--muted); font-size: .9rem; }
.entry-footer .tags-title { font-weight: 700; }
.entry-not-found .searchform { margin-bottom: 1.5rem; }

/* ---------- Post content ---------- */
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.45rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content blockquote, .entry-content ul, .entry-content ol, .entry-content table { display: flow-root; } /* sit beside a floated picture, not under it */
.entry-content li { margin-bottom: .45em; }
.entry-content li > ul, .entry-content li > ol { margin: .45em 0 0; }

.entry-content blockquote {
	margin: 1.5em 0; padding: .1em 0 .1em 1.2em;
	border-left: 3px solid var(--brand);
	color: var(--muted); font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.entry-content th { background: #f6f7f9; color: var(--ink); }
.entry-content figure.wp-block-table { margin: 0 0 1.5em; overflow-x: auto; }

.entry-content pre { background: #2b2f35; color: #f1f2f4; padding: 1.1em 1.3em; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.entry-content code { font-size: .9em; }

/* Pictures. Pictures without an alignment sit centred in the column, their caption under them. */
.entry-content figure { margin: 1.75em 0; }
.entry-content figure.wp-block-image:not(.alignleft):not(.alignright) { text-align: center; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .gallery-caption {
	margin: .6em auto 0;
	color: var(--muted); font-size: .85rem; line-height: 1.45; text-align: center;
}
/* A centred or floated picture keeps its caption to the picture's width (WordPress sets display:table). */
.entry-content .wp-block-image.aligncenter,
.entry-content .wp-block-image .aligncenter { display: table; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-image.aligncenter > figcaption,
.entry-content .wp-block-image .aligncenter > figcaption { display: table-caption; caption-side: bottom; }
.entry-content img.aligncenter, .entry-content .wp-caption.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .35em 1.25em 1em 0; }
.entry-content .alignright { float: right; margin: .35em 0 1em 1.25em; }
.entry-content .wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.entry-content .wp-caption img { display: block; margin: 0 auto; }
.entry-content > img, .entry-content > a > img, .entry-content p > img:only-child { display: block; margin: 1.5em auto; }

.entry-content .gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.5em; }
.entry-content .gallery-item { margin: 0; flex: 1 1 150px; text-align: center; }
.entry-content .gallery-item img { border: 0 !important; }
.entry-content .wp-block-embed, .entry-content iframe { margin: 1.5em auto; }
.entry-content .wp-block-embed iframe { margin: 0; }

/* Numbered steps with big numerals: <ol class="simple-list"> in older posts */
.entry-content ol.simple-list { list-style: none; margin: 0 0 1.5em 3em; padding: 0; counter-reset: li-counter; }
.entry-content ol.simple-list > li { position: relative; margin-bottom: 20px; padding-left: .5em; min-height: 3em; border-left: 2px solid #ccc; }
.entry-content ol.simple-list > li::before {
	position: absolute; top: 0; left: -1em; width: .8em;
	font-size: 3em; line-height: 1; font-weight: 700; text-align: right; color: #464646;
	content: counter(li-counter); counter-increment: li-counter;
}

.page-links { margin: 1.5em 0; font-weight: 700; }

/* ---------- Panels after a post ---------- */
.panel { padding: 1.4rem 2rem; }
.panel-title { margin: 0 0 .8em; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-link, .post-nav-none { border: 1px solid var(--line); border-radius: 8px; padding: .8em 1em; }
.post-nav-link { display: block; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.35; }
.post-nav-link:hover { border-color: var(--accent); color: var(--accent); }
.post-nav-link span { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-bottom: .2em; }
.post-nav-newer { text-align: right; }
.post-nav-none { border-style: dashed; color: var(--muted); font-size: .85rem; }
.more-posts ul { list-style: none; margin: 0; padding: 0; }
.more-posts li { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-top: 1px solid var(--line-soft); }
.more-posts li:first-child { border-top: 0; padding-top: 0; }
.more-posts a { color: var(--ink); font-weight: 700; text-decoration: none; }
.more-posts a:hover { color: var(--accent); }
.more-posts span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.signup-band {
	display: flex; align-items: center; gap: 1.2rem;
	background: var(--dark); color: #e9e9e9;
	border-radius: var(--radius);
	padding: 1.2rem 1.6rem; margin-bottom: 1.25rem;
}
.signup-band p { margin: 0; flex: 1; }
.signup-band strong { color: #fff; }
.signup-band .button { white-space: nowrap; }

/* Email signup: Jetpack's subscribe form (#subscribe-email, #subscribe-submit) in the band and footer */
.signup-band.email-signup { display: block; padding: 1.4rem 1.6rem; }
.signup-band .signup-band-title { margin: 0 0 .8rem; }
.signup-band .signup-band-aside { margin: .9rem 0 0; font-size: .88rem; color: var(--dark-muted); }
.signup-band .signup-band-aside a { color: #fff; font-weight: 700; text-decoration: none; }
.signup-band .signup-band-aside a:hover { color: var(--focus); }
.email-signup .jetpack_subscription_widget, .email-signup .wp-block-jetpack-subscriptions__container { margin: 0; }
.email-signup form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.email-signup #subscribe-email, .email-signup #subscribe-submit { margin: 0; }
.email-signup #subscribe-email { flex: 1 1 13rem; }
.email-signup #subscribe-submit { flex: 0 0 auto; }
.email-signup #subscribe-email input {
	width: 100%; height: 2.6rem;
	border: 1px solid #cfd5df; border-radius: 6px;
	background: #fff; color: var(--text);
	padding: 0 .8em; font: 1rem var(--font);
}
.email-signup #subscribe-submit button {
	height: 2.6rem; margin: 0;
	background: var(--accent); color: #fff;
	border: 0; border-radius: 6px;
	padding: 0 1.3em;
	font: 700 .95rem var(--font);
	cursor: pointer;
}
.email-signup #subscribe-submit button:hover { background: var(--accent-hover); }
.email-signup .success, .email-signup .error { margin: 0; font-weight: 700; }
.email-signup .success p { margin: 0; }
.email-signup .success { color: #fff; }
.email-signup .error { color: #ffb4a3; margin-bottom: .6rem; }
.footer-signup { margin-bottom: 1.5rem; }
.footer-signup .footer-signup-label { margin: 0 0 .5rem; color: var(--dark-muted); }

/* ---------- Comments and forms ---------- */
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.5rem; }
.comment-body { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 1rem; }
.children .comment-body { border-left: 3px solid var(--focus); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .75rem; margin-bottom: .5em; }
.comment-author { display: flex; align-items: center; gap: .6rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { color: var(--ink); font-style: normal; font-weight: 700; }
.comment-author .fn a { color: inherit; text-decoration: none; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p { margin: 0 0 .7em; }
.reply a { font-weight: 700; font-size: .9rem; text-decoration: none; }
.bypostauthor > .comment-body { background: #fbfaf8; }
.comment-awaiting-moderation { color: var(--muted); font-style: italic; }

.comment-respond { margin-top: 1rem; font-size: 1rem; }
.comment-reply-title { margin: 0 0 .5em; font-size: 1.15rem; }
.comment-reply-title small { margin-left: .5em; font-size: .8rem; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .9rem; }
.comment-form label { display: block; margin: .8em 0 .25em; font-weight: 700; font-size: .9rem; color: var(--ink); }
.comment-form .comment-form-cookies-consent label,
.comment-form .comment-subscription-form label { display: inline; font-weight: 400; }
.comment-form-author input, .comment-form-email input, .comment-form-url input { max-width: 26rem; }
.comment-form .form-submit { margin-top: 1.2em; }

.searchform { display: flex; }
.searchform input[type="search"] { border-radius: 6px 0 0 6px; border-right: 0; min-width: 0; }
.searchform button { border-radius: 0 6px 6px 0; background: #f6f7f9; color: var(--ink); border: 1px solid #cfd5df; }
.searchform button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Sidebar widgets (their HTML is in the database's widget settings) ---------- */
.sidebar { font-size: .92rem; }
.widget { margin: 0 0 2rem; }
.widgettitle {
	margin: 0 0 .9em; padding-bottom: .6em;
	border-bottom: 1px solid #d5dae2;
	font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #4a5361;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0 0 .6em; line-height: 1.35; }
.widget li a { color: var(--ink); text-decoration: none; font-weight: 700; }
.widget li a:hover { color: var(--accent); }

.callout { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.callout p { margin: 0; line-height: 1.5; }
.callout p a { font-weight: 700; text-decoration: none; }
.callout-button { margin-top: .9rem; }
.callout-button a { display: inline-block; background: var(--accent); color: #fff; border-radius: 6px; padding: .5em 1.1em; font-weight: 700; text-decoration: none; }
.callout-button a:hover { background: var(--accent-hover); color: #fff; }

.follow-container { display: flex; align-items: center; gap: .75rem; }
.twt-update { width: 72px; height: 42px; flex: none; background: url('https://blog.smashrun.com/wp-content/uploads/sites/8/2013/11/smashrun72x42.png') no-repeat; }
.fb-wrap { display: none; } /* a Facebook like button that no longer loads */
.follow-container + p { margin: .6em 0 0; }
.update-content { margin-top: .6em; color: var(--muted); line-height: 1.5; }

.founder-container { position: relative; min-height: 56px; padding-left: 64px; margin-bottom: 1.25rem; }
.founder-container > .chris, .founder-container > .jacklyn, .founder-container > .steve {
	position: absolute; left: 0; top: 2px;
	width: 52px; height: 52px; border-radius: 50%;
	background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.founder-container > .chris { background-image: url('https://blog.smashrun.com/wp-content/uploads/sites/8/2013/11/chris75x100.jpg'); }
.founder-container > .jacklyn { background-image: url('https://blog.smashrun.com/wp-content/uploads/sites/8/2013/11/beach-ford75x100.jpg'); }
.founder-container > .steve { background-image: url('https://blog.smashrun.com/wp-content/uploads/sites/8/2014/01/2014-01-15_1614.jpg'); }
.founder-container p { margin: 0; line-height: 1.45; }
.founder-container p:first-of-type { color: var(--ink); font-weight: 700; }
.founder-container .quote { margin-top: .25em; color: var(--muted); }
.twt-wrap { margin-top: .3em; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--dark) url('https://blog.smashrun.com/wp-content/uploads/sites/8/2019/06/footerimg.jpg') no-repeat bottom right;
	color: #e9e9e9;
	padding: 40px 0;
	font-size: .95rem;
}
.site-footer-inner { display: flex; gap: 5%; }
.footer-col { width: 30%; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--focus); }
.footer-block { margin-bottom: 1.5rem; }
.footer-block > span:last-child { display: block; border-top: 2px solid var(--dark-line); color: var(--dark-muted); }
.footer-title { display: block; font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-muted { margin: 0; color: var(--dark-muted); }
.footer-heading { margin: 0 0 .3em; color: var(--dark-muted); border-bottom: 2px solid var(--dark-line); display: inline-block; padding-bottom: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Tablets: sidebar moves under the posts ---------- */
@media (max-width: 959px) {
	.content-with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 2rem; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	body { font-size: 17px; }
	.wrap { width: 100%; }
	.content { padding-top: 0; }
	.content-single { max-width: none; }

	.site-header-inner { padding: 0 16px; min-height: 54px; }
	.site-logo img { width: 150px; height: auto; }
	.js .menu-toggle {
		display: block;
		background: none; color: #fff;
		border: 1px solid #5d6068; border-radius: 6px;
		padding: 6px 12px; font-size: .85rem;
	}
	.js .site-nav { display: none; width: 100%; padding-bottom: 8px; }
	.js .site-nav.is-open { display: block; }
	.site-nav .nav { display: block; }
	.site-nav a { padding: .6em 0; border-top: 1px solid #4a4d54; }
	.site-nav .current-menu-item > a { box-shadow: none; color: var(--focus); }

	.post-feature, .post-rows, .entry, .panel, .signup-band { border-radius: 0; }
	.list-header { padding: 1.25rem 18px 0; }
	.post-feature-body { padding: 1.1rem 18px 1.3rem; }
	.post-feature .entry-title { font-size: 1.5rem; }
	.post-row { grid-template-columns: minmax(0, 1fr) auto; padding: 1rem 18px; gap: 0 1rem; }
	.post-row-date { display: none; }
	.post-row .byline time, .post-row .byline .dot:first-of-type { display: inline; }
	.post-row-image { width: 76px; height: 56px; }

	.entry-header { padding: 1.4rem 18px 1rem; }
	.entry .entry-title { font-size: 1.75rem; }
	.entry-content { padding: 1.3rem 18px .75rem; }
	.entry-footer { padding: 0 18px 1.25rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.5em auto; }

	.panel { padding: 1.2rem 18px; }
	.post-nav-links { grid-template-columns: 1fr; }
	.post-nav-newer { text-align: left; }
	.signup-band { flex-direction: column; align-items: flex-start; padding: 1.2rem 18px; }
	.comment-list .children { margin-left: .75rem; }

	.sidebar { padding: 1.5rem 18px 0; }
	.site-footer-inner { display: block; padding: 0 18px; }
	.footer-col { width: 100%; margin-bottom: 1.5rem; }
}

/* ---------- Print ---------- */
@media print {
	body { background: #fff; color: #000; font-size: 12pt; }
	.site-header, .site-footer, .sidebar, .post-nav, .more-posts, .signup-band, .comment-respond, .skip-link { display: none; }
	.entry, .panel { box-shadow: none; }
	a { color: #000; }
}
